/* ============================================================
   NAMEBASE - Handshake name registry
   Aesthetic: refined light & bright, editorial, brand-vivid
   ============================================================ */

:root {
	/* ---- canvas & ink ---- */
	--canvas:        #F4F3EE;   /* warm paper */
	--canvas-raised: #FCFBF8;   /* cards */
	--canvas-glass:  rgba(252, 251, 248, 0.72);
	--ink:           #000C21;   /* near-black navy (wordmark) */
	--ink-soft:      #444C5E;
	--ink-mute:      #7A8294;
	--line:          rgba(0, 12, 33, 0.10);
	--line-strong:   rgba(0, 12, 33, 0.18);

	/* ---- brand ---- */
	--blue:  #007FFF;
	--gold:  #FFB700;
	--pink:  #FF5980;
	--peach: #FFA882;
	--grad-dot:  linear-gradient(135deg, var(--pink), var(--peach));
	--grad-warm: linear-gradient(120deg, var(--gold), var(--peach), var(--pink));

	/* ---- type ---- */
	--font-display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

	/* ---- structure ---- */
	--maxWidth:     1180px;
	--headerHeight: 62px;
	--padding:      10px;
	--gap:          10px;
	--radius:       14px;
	--radius-lg:    24px;
	--radius-pill:  999px;
	--blur:         14px;

	/* ---- shadow ---- */
	--shadow-sm: 0 1px 2px rgba(0,12,33,.04), 0 4px 14px rgba(0,12,33,.05);
	--shadow-md: 0 2px 6px rgba(0,12,33,.05), 0 18px 50px rgba(0,12,33,.09);
	--shadow-lg: 0 4px 12px rgba(0,12,33,.06), 0 40px 90px rgba(0,12,33,.14);

	--img-logo: url("../img/logo.svg");

	--ease: cubic-bezier(.21, .9, .26, 1);

	/* ---- semantic surfaces (theme-aware) ---- */
	--subtle:       rgba(0, 12, 33, 0.05);
	--hover:        rgba(0, 12, 33, 0.06);
	--glass-border: rgba(255, 255, 255, 0.60);
	--glass-hi:     rgba(255, 255, 255, 0.70);
	--cta-base:     #000C21;

	color-scheme: light;
}

/* ============================================================
   DARK THEME
   ============================================================ */
:root[data-theme="dark"] {
	--canvas:        #0A0E18;
	--canvas-raised: #141A28;
	--canvas-glass:  rgba(20, 26, 40, 0.72);
	--ink:           #EDF0F6;
	--ink-soft:      #A7B0C0;
	--ink-mute:      #707A8E;
	--line:          rgba(255, 255, 255, 0.10);
	--line-strong:   rgba(255, 255, 255, 0.20);

	--blue: #2E92FF;

	--subtle:       rgba(255, 255, 255, 0.05);
	--hover:        rgba(255, 255, 255, 0.08);
	--glass-border: rgba(255, 255, 255, 0.10);
	--glass-hi:     rgba(255, 255, 255, 0.06);
	--cta-base:     #161D2D;

	--shadow-sm: 0 1px 2px rgba(0,0,0,.40), 0 4px 14px rgba(0,0,0,.45);
	--shadow-md: 0 2px 6px rgba(0,0,0,.45), 0 18px 50px rgba(0,0,0,.55);
	--shadow-lg: 0 4px 12px rgba(0,0,0,.50), 0 40px 90px rgba(0,0,0,.65);

	color-scheme: dark;
}

/* ============================================================
   BASE
   Keep the foundation's box-sizing + icon (bg/mask) defaults,
   but layout is applied intentionally - not forced globally.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	min-width: 320px;
	min-height: 100%;
	background-color: var(--canvas);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	position: relative;
}

/* atmosphere: faint brand blooms + fine grain */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(60vw 50vh at 8% -6%, rgba(0,127,255,.10), transparent 60%),
		radial-gradient(55vw 50vh at 100% 8%, rgba(255,168,130,.14), transparent 58%),
		radial-gradient(50vw 45vh at 85% 100%, rgba(255,89,128,.08), transparent 60%);
	pointer-events: none;
}
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	opacity: .035;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, p { margin: 0; }

a { color: inherit; text-decoration: none; }

b, strong { font-weight: 700; }

.row { display: flex; flex-direction: row; align-items: center; }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; }

.wrap {
	width: 100%;
	max-width: var(--maxWidth);
	margin-inline: auto;
	padding-inline: clamp(20px, 5vw, 40px);
}

::selection { background: var(--peach); color: #08111f; }

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
	border-radius: 4px;
}

/* the signature gradient dot (echoes the logo) */
.dot {
	display: inline-block;
	width: .62em;
	height: .62em;
	border-radius: 50%;
	background: var(--grad-dot);
	flex-shrink: 0;
	vertical-align: baseline;
}
.dot-period {
	width: .34em;
	height: .34em;
	margin-left: .04em;
	box-shadow: 0 0 0 0 rgba(255,89,128,.4);
	animation: dotPulse 4s var(--ease) infinite;
}
@keyframes dotPulse {
	0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(255,89,128,.35); }
	35% { box-shadow: 0 0 0 .5em rgba(255,89,128,0); }
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
	position: fixed;
	top: calc(var(--padding) * 1.6);
	/* fixed elements center on the viewport, not the body - below the page's
	   320px floor, keep centering on the 320px canvas like the content does */
	left: max(50%, 160px);
	transform: translateX(-50%);
	width: min(calc(100% - 28px), var(--maxWidth));
	min-width: 292px; /* page min-width (320px) minus the 28px side margins */
	height: var(--headerHeight);
	padding: 0 8px 0 14px;
	z-index: 100;
	justify-content: space-between;
	gap: 12px; /* guaranteed separation between title and buttons */
	background: var(--canvas-glass);
	border: 1px solid var(--glass-border);
	box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-hi);
	border-radius: var(--radius-pill);
	-webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
	backdrop-filter: blur(var(--blur)) saturate(1.4);
	transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-hi); }

/* overflow backstop: if space ever runs out, the wordmark truncates first -
   buttons and logo never spill out of the pill */
.title { gap: 9px; min-width: 0; }
.logo {
	height: 38px;
	width: 38px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: var(--shadow-sm);
}
.logo .image {
	height: 56%;
	width: 56%;
	background-image: var(--img-logo);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	/* nudge up/right so the "n" reads as centered - the dot skews true-center */
	margin: 0 -3px 3px 0;
}
.name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.32rem;
	letter-spacing: -.02em;
	color: var(--ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


.buttons { gap: 6px; flex-shrink: 0; }

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: .95rem;
	white-space: nowrap;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	padding: 10px 18px;
	transition: transform .18s var(--ease), background .2s, color .2s, box-shadow .25s, border-color .2s;
}
.button:active { transform: translateY(1px) scale(.99); }

.button.primary {
	background: var(--ink);
	color: var(--canvas);
	box-shadow: var(--shadow-sm);
}
.button.primary:hover {
	opacity: .9;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}
.button.ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line-strong);
}
.button.ghost:hover { border-color: var(--ink); background: var(--hover); transform: translateY(-1px); }
.button.danger { background: #e5484d; color: #fff; box-shadow: var(--shadow-sm); }
.button.danger:hover:not(:disabled) { opacity: .92; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* header controls share one height so the toggle is a true circle */
.header .buttons .button { height: 42px; padding-block: 0; }
.theme-toggle {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.theme-toggle:hover { background: var(--hover); border-color: var(--ink); transform: translateY(-1px); }
.theme-toggle .ico { width: 18px; height: 18px; color: var(--ink); }

/* ============================================================
   SECTION RHYTHM
   ============================================================ */

.content { display: block; }

.section { padding-block: clamp(72px, 11vw, 138px); }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--split {
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ink-mute);
	margin-bottom: 18px;
}

h2 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	line-height: 1.02;
	letter-spacing: -.035em;
}

/* ============================================================
   HERO
   ============================================================ */

.section[data-name="hero"] {
	padding-top: clamp(140px, 20vh, 220px);
	padding-bottom: clamp(60px, 9vw, 110px);
	position: relative;
	overflow: hidden;
}
.hero-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.hero-glow {
	position: absolute;
	top: -10%; left: 50%;
	transform: translateX(-50%);
	width: 120vw; height: 80vh;
	background: radial-gradient(45% 50% at 50% 30%, rgba(0,127,255,.12), transparent 70%);
	z-index: -1;
	pointer-events: none;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 15px 7px 12px;
	background: var(--canvas-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	font-size: .85rem;
	font-weight: 600;
	color: var(--ink-soft);
	box-shadow: var(--shadow-sm);
	margin-bottom: 30px;
}

.hero-title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.9rem, 8.6vw, 6.4rem);
	line-height: .92;
	letter-spacing: -.04em;
	margin: 0;
}
.hero-title .line { display: block; }
.hero-title .line:last-child { display: inline-flex; align-items: baseline; }
.hero-title .dot-period {
	width: .16em; height: .16em;
	align-self: flex-end;
	margin-bottom: .14em;
	margin-left: .04em;
}

.hero-sub {
	max-width: 46ch;
	margin-top: 28px;
	font-size: clamp(1.05rem, 1.6vw, 1.28rem);
	line-height: 1.55;
	color: var(--ink-soft);
}

/* ---- search field ---- */
.search {
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: min(100%, 600px);
	margin-top: 40px;
	padding: 8px;
	background: var(--canvas-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-md);
	transition: box-shadow .35s var(--ease), border-color .25s, transform .25s var(--ease);
}
.search:focus-within {
	border-color: rgba(0,127,255,.5);
	/* contained, on-brand glow (negative spread keeps it from spilling past the
	   hero section's overflow:hidden edge, which clipped the old --shadow-lg) */
	box-shadow: 0 0 0 4px rgba(0,127,255,.15), 0 12px 28px -8px rgba(0,127,255,.35);
	transform: translateY(-2px);
}
.search-field {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	padding-left: 18px;
	cursor: text;
}
.search-field input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	font-family: var(--font-mono);
	font-size: 1.18rem;
	font-weight: 500;
	color: var(--ink);
	letter-spacing: -.01em;
}
.search-field input:focus { outline: none; }
.search-field input::placeholder { color: var(--ink-mute); }
.search-caret {
	font-family: var(--font-mono);
	font-size: 1.18rem;
	font-weight: 500;
	color: var(--ink-mute);
	flex-shrink: 0;
}
.search-go {
	background: var(--blue);
	color: #fff;
	font-size: 1.02rem;
	padding: 13px 24px;
	box-shadow: 0 6px 18px rgba(0,127,255,.32);
	flex-shrink: 0;
}
.search-go:hover {
	background: #0a72e0;
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(0,127,255,.4);
}

/* ---- dedicated search results page ---- */
.search-page {
	padding-top: clamp(120px, 16vh, 168px);
	padding-bottom: clamp(56px, 9vw, 110px);
	min-height: 78vh;
}
.search-page .search {
	width: min(100%, 720px);
	margin: 0 auto 16px;
}
.search-page .results {
	width: min(100%, 720px);
	margin: 0 auto;
}
.results-note {
	width: min(100%, 720px);
	margin: 18px auto 0;
	text-align: center;
	font-size: .9rem;
	color: var(--ink-mute);
}
.results-note a { color: var(--blue); font-weight: 600; }
.results-note a:hover { text-decoration: underline; }

/* ---- live results ---- */
.results {
	width: min(100%, 600px);
	margin-top: 18px;
	background: var(--canvas-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	text-align: left;
}
.results-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 14px 20px;
	border-bottom: 1px solid var(--line);
	font-size: .85rem;
	color: var(--ink-mute);
	gap: 12px 16px;
	flex-wrap: wrap;
}
.results-head b { color: var(--ink); font-weight: 700; }
.results-name { flex-shrink: 0; }

/* segmented filter controls */
.results-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-left: auto;
}
.seg {
	display: inline-flex;
	padding: 3px;
	background: var(--subtle);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
}
.seg button {
	font-family: var(--font-body);
	font-size: .78rem;
	font-weight: 600;
	color: var(--ink-mute);
	background: transparent;
	border: none;
	padding: 5px 12px;
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: color .2s, background .2s, box-shadow .2s;
	white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button.active {
	color: var(--ink);
	background: var(--canvas-raised);
	box-shadow: var(--shadow-sm);
}

.results-empty {
	padding: 32px 20px;
	text-align: center;
	color: var(--ink-mute);
	font-size: .95rem;
}

.results-list { list-style: none; margin: 0; padding: 6px; }
.results-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	border-radius: var(--radius);
	transition: background .2s;
}
.results-row:hover { background: var(--hover); }
.results-row .rname {
	font-family: var(--font-mono);
	font-size: 1.02rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.results-row .rname .status {
	width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.results-row.is-available .status { background: var(--blue); box-shadow: 0 0 0 3px rgba(0,127,255,.15); }
.results-row.is-taken .status { background: var(--line-strong); }
.results-row.is-taken .rname { color: var(--ink-mute); }
.rdomain { white-space: nowrap; }
.results-row .rname .ext { color: var(--ink-soft); }
.results-row.is-taken .rname .ext { color: var(--ink-mute); }
.rtag {
	font-family: var(--font-mono);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--pink);
	padding: 3px 7px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255,89,128,.35);
	background: rgba(255,89,128,.08);
	white-space: nowrap;
}
.results-row.is-taken .rtag { opacity: .5; }
/* chain logos: a black mark inside a white circle - identical in light + dark theme */
.rchain, .tld-chain, .chain-card img, .seg-chain button img {
	background: #fff; border-radius: 50%; object-fit: contain;
	box-sizing: border-box; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}
.rchain { width: 18px; height: 18px; padding: 3px; flex-shrink: 0; }
.results-row.is-taken .rchain { opacity: .5; }
.seg-chain button img { width: 17px; height: 17px; padding: 3px; vertical-align: -4px; margin-right: 5px; }
.tld-chain { width: 22px; height: 22px; padding: 4px; vertical-align: -5px; margin-right: 7px; }
.chain-picker { display: flex; gap: 12px; margin: 6px 0 18px; }
.chain-card { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 18px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.chain-card:hover { border-color: var(--line-strong); }
.chain-card input { position: absolute; opacity: 0; pointer-events: none; }
.chain-card img { width: 46px; height: 46px; padding: 9px; }
.chain-card span { font-weight: 600; font-size: .92rem; }
.chain-card:has(input:checked) { border-color: var(--blue); background: rgba(0, 127, 255, .06); }

.results-row .rname { min-width: 0; }
.results-row .rright {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-shrink: 0;
	flex-wrap: wrap;
}
.rprices { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.rcoins { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.rprice { font-family: var(--font-mono); font-size: .92rem; color: var(--ink-soft); white-space: nowrap; }
.rsep { color: var(--ink-mute); opacity: .6; margin: 0 -2px; }
.rusd { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-mute); }
.rget {
	font-size: .82rem;
	font-weight: 600;
	color: var(--blue);
	padding: 5px 12px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(0,127,255,.3);
	background: rgba(0,127,255,.06);
	transition: background .2s, color .2s;
}
.results-row:hover .rget { background: var(--blue); color: #fff; }
.rtaken { font-size: .82rem; font-weight: 600; color: var(--ink-mute); }
/* reserved name: muted "Taken" pill, struck price, no hover affordance */
.rget.is-taken, .rget[disabled] { color: var(--ink-mute); border-color: var(--line); background: transparent; cursor: not-allowed; }
.results-row:hover .rget.is-taken { background: transparent; color: var(--ink-mute); }
.results-row.is-taken .rprice { text-decoration: line-through; color: var(--ink-mute); }

.results-more { display: flex; justify-content: center; padding: 18px 6px 6px; }
.results-more[hidden] { display: none; }
.results-more .button { min-width: 220px; justify-content: center; }

/* ---- search controls (filters + sort), reuse .seg ---- */
/* type filter sits left; price filter + sort are pushed to the right edge */
.results-controls { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; width: 100%; flex-wrap: wrap; }
.rc-col { display: flex; flex-direction: column; gap: 10px; }
.rc-left { align-items: flex-start; }
.rc-right { align-items: flex-end; }
.sort-control { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ink-mute); }
.sort-selects { display: inline-flex; align-items: center; gap: 6px; }
.sort-control select {
	font-family: var(--font-body); font-size: .78rem; font-weight: 600;
	color: var(--ink); background: var(--subtle);
	border: 1px solid var(--line); border-radius: var(--radius-pill);
	height: 34px; padding: 0 28px 0 12px; cursor: pointer; appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8294' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 8px center; background-size: 13px;
}
.sort-dir {
	font-family: var(--font-body); font-size: .95rem; font-weight: 700; line-height: 1;
	color: var(--ink); background: var(--subtle);
	border: 1px solid var(--line); border-radius: var(--radius-pill);
	height: 34px; min-width: 38px; padding: 0 10px; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.sort-dir:hover { border-color: var(--line-strong); }

/* ---- result Add button (a real <button> now) ---- */
.rget { font-family: var(--font-body); cursor: pointer; }
.rget.is-added { background: var(--blue); color: #fff; border-color: var(--blue); }

/* infinite-scroll sentinel */
#scroll-sentinel { height: 1px; }

/* ---- header cart ---- */
.ico-cart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20.5' r='1.5'/%3E%3Ccircle cx='18' cy='20.5' r='1.5'/%3E%3Cpath d='M2 2.5h2.6l2.2 11.1a1.6 1.6 0 0 0 1.6 1.3h9a1.6 1.6 0 0 0 1.55-1.2L21.5 7H6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20.5' r='1.5'/%3E%3Ccircle cx='18' cy='20.5' r='1.5'/%3E%3Cpath d='M2 2.5h2.6l2.2 11.1a1.6 1.6 0 0 0 1.6 1.3h9a1.6 1.6 0 0 0 1.55-1.2L21.5 7H6'/%3E%3C/svg%3E"); }
.cart { position: relative; flex-shrink: 0; }
.cart-toggle {
	position: relative;
	width: 42px; height: 42px;
	display: grid; place-items: center;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: transparent; color: var(--ink); cursor: pointer;
	transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.cart-toggle:hover { background: var(--hover); border-color: var(--ink); transform: translateY(-1px); }
.cart.open .cart-toggle { background: var(--hover); border-color: var(--ink); }
.cart-toggle .ico { width: 19px; height: 19px; color: var(--ink); }
.cart-count {
	position: absolute; top: -3px; right: -3px;
	min-width: 18px; height: 18px; padding: 0 4px;
	display: grid; place-items: center;
	background: var(--blue); color: #fff;
	font-family: var(--font-body); font-size: .66rem; font-weight: 700; line-height: 1;
	border-radius: var(--radius-pill); box-shadow: 0 0 0 2px var(--canvas-glass);
}
.cart-count[hidden] { display: none; }
.cart-menu {
	position: absolute; top: calc(100% + 10px); right: 0;
	width: 320px; max-width: calc(100vw - 24px); padding: 8px;
	background: var(--canvas-raised); border: 1px solid var(--line);
	border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
	z-index: 200;
}
.cart.open .cart-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-empty { padding: 20px 12px; text-align: center; color: var(--ink-mute); font-size: .9rem; }
.cart-items { max-height: 320px; overflow-y: auto; }
.cart-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; }
.cart-item:hover { background: var(--hover); }
.cart-item-name { font-family: var(--font-mono); font-size: .9rem; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-name .ext { color: var(--ink-soft); }
.cart-item-price { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.cart-item-x { border: none; background: transparent; color: var(--ink-mute); cursor: pointer; font-size: .85rem; padding: 2px 5px; border-radius: 6px; line-height: 1; }
.cart-item-x:hover { color: #e5484d; background: var(--hover); }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 8px 4px; margin-top: 6px; border-top: 1px solid var(--line); }
.cart-total { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.cart-checkout { padding: 8px 16px; font-size: .9rem; }
.cart-checkout:disabled { opacity: .45; cursor: not-allowed; }

/* ---- checkout page ---- */
.checkout-page { padding: 120px 0 60px; }
.checkout-page .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.checkout-title { font-family: var(--font-display); font-size: 1.8rem; align-self: flex-start; width: min(100%, 520px); margin-inline: auto; }
.checkout-page .auth-error { width: min(100%, 520px); margin-inline: auto; }
.checkout-card {
	width: min(100%, 520px);
	background: var(--canvas-raised); border: 1px solid var(--line);
	border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
	padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.checkout-items { list-style: none; margin: 0; padding: 0; }
.co-row, .checkout-items li {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 11px 2px; border-bottom: 1px solid var(--line);
}
.co-name { font-family: var(--font-mono); color: var(--ink); }
.co-name .ext { color: var(--ink-soft); }
.co-price { font-family: var(--font-mono); font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.checkout-empty { padding: 20px 2px; color: var(--ink-mute); }
.checkout-empty a { color: var(--blue); font-weight: 600; }
.checkout-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.checkout-total { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.checkout-note { font-size: .82rem; color: var(--ink-mute); }
.checkout-card > .button { align-self: flex-start; }
.checkout-auth { display: flex; flex-direction: column; gap: 12px; }
.checkout-auth p { color: var(--ink-soft); font-size: .95rem; }
.checkout-auth-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.checkout-confirm { align-items: flex-start; }
.checkout-check { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,127,255,.12); color: var(--blue); font-size: 1.3rem; font-weight: 700; }
.checkout-confirm h1 { font-family: var(--font-display); font-size: 1.55rem; }
.checkout-sub { color: var(--ink-soft); }

/* ---- account page ---- */
.account-page, .orders-page, .domains-page { padding: 120px 0 60px; }
.account-page .wrap, .orders-page .wrap, .domains-page .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.account-title, .orders-title { font-family: var(--font-display); font-size: 1.8rem; width: min(100%, 520px); }
.account-card {
	width: min(100%, 520px);
	display: flex; flex-direction: column; gap: 12px;
	background: var(--canvas-raised); border: 1px solid var(--line);
	border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px;
}
.account-card h2 { font-family: var(--font-display); font-size: 1.15rem; }
.account-card label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.account-card input { padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--canvas); color: var(--ink); font-size: 1rem; }
.account-card input:focus { outline: none; border-color: var(--blue); }
.account-card .button { align-self: flex-start; margin-top: 4px; }
.account-ok { color: #1a9d5a; font-size: .9rem; }
/* two-factor section */
.account-card form { display: flex; flex-direction: column; gap: 12px; }
.twofa-status { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); }
.twofa-status.is-on { color: var(--ink); font-weight: 600; }
.twofa-dot { width: 9px; height: 9px; border-radius: 50%; background: #1a9d5a; box-shadow: 0 0 0 3px rgba(26, 157, 90, .18); flex-shrink: 0; }
.twofa-step { color: var(--ink-soft); }
.twofa-setup { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.twofa-qr { flex-shrink: 0; line-height: 0; padding: 8px; background: #fff; border-radius: var(--radius); }
.twofa-qr svg { display: block; width: 160px; height: 160px; }
.twofa-setup-manual { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.twofa-key-row { display: flex; align-items: center; gap: 10px; }
.twofa-key { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: .06em; padding: 11px 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.twofa-hint { font-size: .85rem; color: var(--ink-mute); line-height: 1.5; }
.twofa-hint a { color: var(--blue); }
.twofa-actions { display: flex; gap: 10px; }
.twofa-actions .button { margin-top: 0; }

/* ---- domains page ---- */
.domains-page .wrap > * { width: min(100%, 620px); }
.domains-title { font-family: var(--font-display); font-size: 1.8rem; }
.domains-title .ext { color: var(--ink-soft); }
.domains-empty { color: var(--ink-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 0; }
.domain-list { display: flex; flex-direction: column; gap: 12px; }
.domain-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--canvas-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 16px 20px; }
.domain-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.domain-name { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.domain-name .ext { color: var(--ink-soft); }
.domain-meta { font-size: .82rem; color: var(--ink-mute); }
.domain-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.domain-badge { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); color: #1a9d5a; background: rgba(26, 157, 90, .14); }
.domain-badge.is-pending { color: #c98a00; background: rgba(255, 183, 0, .14); }
.domain-badge.is-expired { color: #e5484d; background: rgba(229, 72, 77, .14); }
.domain-badge.is-released { color: var(--ink-mute); background: rgba(127, 127, 127, .14); }
.domain-badge.is-incomplete { color: #e5484d; background: rgba(229, 72, 77, .14); }
.stake-recs { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 18px; }
.stake-rec { display: flex; align-items: baseline; gap: 12px; }
.stake-rec .rec-type { flex: 0 0 34px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; opacity: .6; }
.stake-rec code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; word-break: break-all; min-width: 0; background: rgba(127, 127, 127, .1); padding: 4px 9px; border-radius: 7px; }
.stake-rec code.muted { opacity: .55; }
.stake-copy { margin-left: auto; padding: 5px 12px; font-size: .78rem; }
.stake-remove { margin: 0 0 0 auto; }
.button.button-sm { padding: 7px 14px; font-size: .85rem; }
.button.ghost.button-danger { color: var(--ink-mute); border-color: var(--line); }
.button.ghost.button-danger:hover { color: #e5484d; border-color: #e5484d; background: rgba(229, 72, 77, .06); transform: none; }
.prem-list { display: flex; flex-direction: column; margin: 12px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prem-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.prem-row:last-child { border-bottom: 0; }
.prem-name { flex: 1; }
.prem-price { font-weight: 600; }
.resv-row .prem-price { color: var(--ink-mute); font-weight: 500; }
.resv-copy { flex-shrink: 0; }
.claim-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); margin: 6px 0; }
.claim-name .co-name { font-weight: 700; font-size: 1.1rem; }
.claim-name .co-price { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }

/* ---- TLD management tabs ---- */
.tab-nav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab-btn { border: 0; background: transparent; padding: 10px 16px; font-family: var(--font-body); font-weight: 600; font-size: .92rem; color: var(--ink-mute); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s, border-color .2s; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.is-active { display: flex; flex-direction: column; gap: 18px; }
.tld-tabs .account-card { width: 100%; } /* fill the panel (override the 520px card cap) */

/* ---- sales stat cards + bar chart ---- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stat-cards-wide { margin: 4px 0 22px; }
.stat-card { background: var(--canvas-raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-mute); }
.stat-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; margin-top: 14px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bar-track { width: 100%; height: 140px; display: flex; align-items: flex-end; }
.bar { width: 68%; margin: 0 auto; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 0; }
.bar-label { font-size: .66rem; color: var(--ink-mute); }
.sale-date { color: var(--ink-mute); font-size: .82rem; white-space: nowrap; }

/* ---- billing / invoices ---- */
.invoice-card { gap: 10px; }
.invoice-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invoice-period { font-weight: 700; font-size: 1.05rem; }
.invoice-amount { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); }

/* ---- admin dashboard ---- */
.admin-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .9rem; padding: 7px 0; border-bottom: 1px solid var(--line); }
.admin-kv:last-child { border-bottom: 0; }
.admin-kv span:first-child { color: var(--ink-soft); }
.admin-kv span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-table-wrap { overflow-x: auto; }
.admin-table-wrap .admin-table { min-width: 560px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-mute); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr[data-href] { cursor: pointer; }
.admin-table tbody tr[data-href]:hover { background: var(--hover); }
.admin-rowlink { color: inherit; text-decoration: none; }
.admin-rowlink:hover { color: var(--blue); text-decoration: underline; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table .admin-email { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }

/* ---- unstake waiver ---- */
.waiver-box { height: 300px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; background: var(--canvas); font-size: .84rem; line-height: 1.6; color: var(--ink-soft); }
.waiver-box p { margin: 0 0 10px; }
.waiver-box p:last-child { margin-bottom: 0; }
.waiver-box h4 { font-size: .82rem; font-weight: 700; color: var(--ink); margin: 16px 0 6px; }
.waiver-box h4:first-child { margin-top: 0; }
.waiver-box ul, .waiver-box ol { margin: 0 0 10px; padding-left: 22px; }
.waiver-box li { margin: 0 0 5px; }
.waiver-box li:last-child { margin-bottom: 0; }
.waiver-accept { display: flex; flex-direction: row; align-items: flex-start; gap: 9px; font-size: .9rem; line-height: 1.5; color: var(--ink); cursor: pointer; }
.waiver-tools { display: flex; flex-wrap: wrap; gap: 16px; margin: 2px 0 2px; }
.migrate-choice { margin-top: 2px; }
.waiver-accept + .dns-form-actions { margin-top: 12px; }
/* The waiver gate lives inside .account-card on some pages (e.g. migrate), whose generic
   `label { flex-direction: column }` / `input { padding/border }` would stack the checkbox above its
   text and box the checkbox. Higher specificity keeps the checkbox inline with its label. */
.account-card .waiver-accept { flex-direction: row; gap: 9px; color: var(--ink); }
.account-card .waiver-accept input { width: auto; padding: 0; border: 0; background: none; margin: 3px 0 0; }
.waiver-download { font-size: .85rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.waiver-download:hover { text-decoration: underline; }
.waiver-accept input { flex-shrink: 0; margin: 3px 0 0; }
.waiver-accept span { flex: 1; min-width: 0; }
.waiver-accept input:disabled { cursor: not-allowed; }

/* ---- collapsible "List a TLD" panel ---- */
/* Migrate panel: the two-step legacy-TLD migration explainer */
.migrate-steps { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-soft); line-height: 1.55; }
.migrate-steps li { padding-left: 4px; }
.migrate-steps b { color: var(--ink); }
.migrate-steps a { color: var(--blue); }

/* "List a TLD": a button that opens the form (with the agreement) in a modal */
.list-tld-cta { display: flex; justify-content: center; margin-top: 22px; }
/* the overlay is a child of `.domains-page .wrap`, which caps children at 620px; the fixed
   overlay must span the viewport (inset:0) so its panel centers instead of pinning left */
#list-tld-modal { width: auto; }
#list-tld-modal .modal-panel { width: min(100%, 520px); }
#list-tld-modal .modal-body { display: flex; flex-direction: column; gap: 14px; }
#list-tld-modal .dns-form { border-top: 0; padding-top: 2px; }

/* ---- in-app owner notice banners (billing / delinquency / fee changes) ---- */
.nb-banners { display: flex; flex-direction: column; }
.nb-banner { display: flex; align-items: center; gap: 12px; padding: 11px 20px; font-size: .9rem; line-height: 1.4; border-bottom: 1px solid var(--line); }
.nb-banner-msg { flex: 1; min-width: 0; }
.nb-banner-link { flex-shrink: 0; font-weight: 600; color: inherit; text-decoration: underline; }
.nb-banner-dismiss { flex-shrink: 0; margin: 0; }
.nb-banner-x { border: 0; background: transparent; color: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; opacity: .55; padding: 2px 5px; }
.nb-banner-x:hover { opacity: 1; }
.nb-banner.is-info { background: rgba(0, 127, 255, .10); }
.nb-banner.is-warning { background: rgba(230, 150, 0, .15); }
.nb-banner.is-critical { background: rgba(214, 45, 45, .15); }

/* ---- billing invoice dispute + admin write actions ---- */
.invoice-dispute { margin-top: 4px; }
.invoice-dispute summary { cursor: pointer; font-size: .85rem; color: var(--ink-soft); }
.invoice-dispute textarea { width: 100%; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--canvas); color: var(--ink); font: inherit; font-size: .9rem; resize: vertical; }
/* Keep the actions <td> a real table-cell (NOT display:flex) so empty cells on paid
   rows still hold the column and draw their border; lay the controls out inline. */
.admin-actions { white-space: nowrap; }
/* Direct-child scope only, so these inline-layout rules don't leak into the kebab menu's nested forms. */
.admin-actions > form { display: inline-block; margin: 0; vertical-align: middle; }
.admin-actions > form:not(:first-child) { margin-left: 6px; }
.admin-actions .button { white-space: nowrap; }
.admin-actions .button + .button { margin-left: 6px; }
.admin-actions .button.button-sm { padding: 6px 10px; font-size: .78rem; }
.admin-note { max-width: 280px; white-space: normal; color: var(--ink-soft); font-size: .85rem; }
.admin-sub { color: var(--ink-mute); font-size: .8rem; font-weight: 400; }

/* Kebab (dot) menu for per-row admin actions (invoices). Modeled on .account-menu. */
.admin-menu { position: relative; display: inline-block; }
.admin-menu-toggle {
	width: 30px; height: 30px;
	display: grid; place-items: center;
	border: 1px solid var(--line-strong); border-radius: 8px;
	background: transparent; color: var(--ink);
	font-size: 1.15rem; line-height: 1; letter-spacing: .03em;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.admin-menu-toggle:hover { background: var(--hover); border-color: var(--ink); }
.admin-menu.open .admin-menu-toggle { background: var(--hover); border-color: var(--ink); }
.admin-menu-list {
	position: absolute;
	top: calc(100% + 6px); right: 0;
	min-width: 156px;
	padding: 5px;
	background: var(--canvas-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
	z-index: 200;
	text-align: left;
}
.admin-menu.open .admin-menu-list { opacity: 1; visibility: visible; transform: translateY(0); }
.admin-menu-list form { display: block; margin: 0; }
.admin-menu-item {
	display: block; width: 100%;
	text-align: left; white-space: nowrap;
	padding: 8px 12px;
	border: none; border-radius: 7px;
	background: transparent;
	font-family: var(--font-body); font-size: .9rem; font-weight: 500;
	color: var(--ink); cursor: pointer;
	transition: background .15s;
}
.admin-menu-item:hover { background: var(--hover); }
.admin-menu-item-danger { color: #d1463f; }
.admin-menu-item-danger:hover { background: color-mix(in srgb, #d1463f 12%, transparent); }

/* Admin: homepage featured-TLD builder (mode radios + custom drag/drop picker) */
.featured-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.featured-mode { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); cursor: pointer; font-size: .88rem; transition: border-color .15s, background .15s; }
.featured-mode:hover { border-color: var(--ink); }
.featured-mode input { accent-color: var(--blue); margin: 0; }
.featured-mode:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.featured-count { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.featured-count input { width: 72px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--canvas); color: var(--ink); font-size: 1rem; }
.featured-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
@media (max-width: 620px) { .featured-custom { grid-template-columns: 1fr; } }
.featured-col-title { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-mute); font-weight: 700; margin-bottom: 8px; }
.featured-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 44px; }
.featured-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas-raised); cursor: grab; }
.featured-item.is-dragging { opacity: .45; }
.featured-grip { color: var(--ink-mute); font-size: .95rem; cursor: grab; }
.featured-item-tld { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: .9rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-remove { border: 0; background: transparent; color: var(--ink-mute); font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.featured-remove:hover { color: #d1463f; }
.featured-empty { color: var(--ink-mute); font-size: .85rem; margin: 8px 0 0; }
.featured-pool { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; max-height: 224px; overflow-y: auto; }
.featured-chip { border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-family: var(--font-mono); font-size: .82rem; padding: 5px 11px; cursor: pointer; transition: border-color .15s, color .15s; }
.featured-chip:hover { border-color: var(--blue); color: var(--blue); }
.featured-chip[hidden] { display: none; }
.results-row .rtag { margin-left: 8px; font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #b8860b; background: rgba(212, 175, 55, .16); padding: 2px 6px; border-radius: var(--radius-pill); vertical-align: middle; }
.domain-summary { gap: 12px; }
.domain-back a { color: var(--ink-mute); font-size: .88rem; }

/* ---- DNS editor ---- */
.dns-card { gap: 16px; }
.dns-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dns-row { display: grid; grid-template-columns: 64px 110px 1fr 56px 72px; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.dns-row:last-child { border-bottom: 0; }
.dns-head { background: var(--canvas); color: var(--ink-mute); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.dns-type { font-weight: 700; color: var(--ink); }
.dns-host, .dns-value { font-family: var(--font-mono); overflow-wrap: anywhere; min-width: 0; }
.dns-value { color: var(--ink-soft); }
.dns-ttl { color: var(--ink-mute); }
.dns-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.dns-actions form { margin: 0; }
.dns-edit { color: var(--blue); font-size: .82rem; }
.dns-del { border: 0; background: transparent; color: var(--ink-mute); cursor: pointer; font-size: .82rem; padding: 4px 6px; border-radius: var(--radius-pill); line-height: 1; }
.dns-del:hover { color: #e5484d; background: var(--canvas); }

.dns-form { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.dns-form-title { font-size: .95rem; font-weight: 700; color: var(--ink); }
.dns-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.dns-fields label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--ink-soft); }
.dns-fields label[hidden] { display: none; } /* the flex rule above would otherwise un-hide [hidden] */
.dns-f-type { width: 96px; }
.dns-f-host { flex: 1; min-width: 130px; }
.dns-f-priority { width: 104px; }
.dns-f-ttl { width: 124px; }
.dns-f-value { order: 10; width: 100%; }
.dns-fields input, .dns-fields select { padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--canvas); color: var(--ink); font: inherit; font-size: .9rem; }
.dns-fields input:focus, .dns-fields select:focus { outline: none; border-color: var(--blue); }
.dns-form-actions { display: flex; gap: 10px; }
.dns-form-actions .button { margin-top: 0; }

/* ---- orders page ---- */
.orders-empty { width: min(100%, 560px); text-align: center; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 0; }
.order-card {
	width: min(100%, 560px);
	background: var(--canvas-raised); border: 1px solid var(--line);
	border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px;
	display: flex; flex-direction: column; gap: 18px;
}
.order-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.order-id { font-family: var(--font-display); font-weight: 700; }
.order-date { font-size: .85rem; color: var(--ink-mute); }
.order-status-cancelled { font-size: .85rem; font-weight: 600; color: #e5484d; }
.order-steps { display: flex; list-style: none; margin: 0; padding: 4px 0; }
.order-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; font-size: .76rem; color: var(--ink-mute); text-align: center; }
.order-step::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); }
.order-step:first-child::before { display: none; }
.order-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line-strong); position: relative; z-index: 1; }
.order-step.is-done { color: var(--ink-soft); }
.order-step.is-active { color: var(--ink); font-weight: 700; }
.order-step.is-done .order-dot, .order-step.is-active .order-dot { background: var(--blue); }
.order-step.is-done::before, .order-step.is-active::before { background: var(--blue); }
.order-step.is-active .order-dot { box-shadow: 0 0 0 4px rgba(0,127,255,.18); }
.order-items { list-style: none; margin: 0; padding: 0; }
.order-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-total { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.order-pay-link { padding: 8px 16px; font-size: .9rem; }

/* ---- pay page ---- */
.pay-page { padding: 120px 0 60px; }
.pay-page .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pay-title { font-family: var(--font-display); font-size: 1.8rem; width: min(100%, 520px); }
.pay-card {
	width: min(100%, 520px);
	background: var(--canvas-raised); border: 1px solid var(--line);
	border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 24px;
	display: flex; flex-direction: column; gap: 14px;
}
.pay-lede { color: var(--ink-soft); line-height: 1.5; }
.pay-lede b { color: var(--ink); }
.pay-label { font-size: .78rem; font-weight: 600; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .03em; margin-bottom: -8px; }
.pay-amount-row, .pay-address-row { display: flex; align-items: center; gap: 10px; }
.pay-amount { font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.pay-address { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: .92rem; color: var(--ink); padding: 11px 14px; background: var(--canvas); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.pay-copy { flex-shrink: 0; font-family: var(--font-body); font-size: .82rem; font-weight: 600; color: var(--blue); padding: 7px 14px; border: 1px solid rgba(0,127,255,.3); border-radius: var(--radius-pill); background: rgba(0,127,255,.06); cursor: pointer; transition: background .2s, color .2s; }
.pay-copy:hover { background: var(--blue); color: #fff; }
.pay-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--subtle); border-radius: var(--radius); color: var(--ink-soft); font-size: .92rem; }
.pay-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--blue); animation: paySpin .8s linear infinite; flex-shrink: 0; }
@keyframes paySpin { to { transform: rotate(360deg); } }
.pay-progress { font-family: var(--font-mono); font-size: .9rem; color: var(--ink); }
.pay-progress[hidden] { display: none; }
.pay-note { font-size: .8rem; color: var(--ink-mute); line-height: 1.5; }
.pay-back { font-size: .9rem; }
.pay-back a { color: var(--blue); font-weight: 600; }
.pay-done { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pay-done h2 { font-family: var(--font-display); font-size: 1.4rem; }

/* ---- receipt (settled order) ---- */
.receipt-head { display: flex; align-items: center; gap: 14px; }
.receipt-head h2 { font-family: var(--font-display); font-size: 1.4rem; }
.order-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: var(--radius-pill); vertical-align: middle; }
.order-badge.is-paid       { color: var(--blue); background: rgba(0,127,255,.12); }
.order-badge.is-processing { color: #c98a00; background: rgba(255,183,0,.14); }
.order-badge.is-confirmed  { color: #0e8f9e; background: rgba(14,143,158,.14); }
.order-badge.is-fulfilled  { color: #1a9d5a; background: rgba(26,157,90,.14); }
.receipt-section { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.receipt-h { font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }
.receipt-items { list-style: none; margin: 0; padding: 0; }
.receipt-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.receipt-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.receipt-note { font-size: .82rem; color: var(--ink-mute); }
.receipt-tx { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); }
.receipt-tx + .receipt-tx { margin-top: 8px; }
.receipt-tx-top { display: flex; align-items: center; gap: 8px; }
.receipt-txid { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); }
.receipt-tx-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.receipt-tx-amt { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.receipt-tx-meta span:last-child { font-size: .82rem; color: var(--ink-mute); }

/* ============ MODALS ============ */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 7vh 16px 24px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 10, 16, .55); backdrop-filter: blur(3px); }
.modal-panel {
	position: relative; z-index: 1; width: min(100%, 460px);
	background: var(--canvas-raised); border: 1px solid var(--line);
	border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px;
	animation: modal-in .18s var(--ease, ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-x {
	position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
	display: flex; align-items: center; justify-content: center;
	border: 0; background: transparent; color: var(--ink-mute); font-size: .95rem; cursor: pointer; border-radius: var(--radius-pill);
}
.modal-x:hover { background: var(--canvas); color: var(--ink); }
.modal-body h2 { font-family: var(--font-display); font-size: 1.4rem; }
.modal-muted { color: var(--ink-soft); line-height: 1.5; }
.modal-muted a { color: var(--blue); }

/* auth tabs + form */
.modal-auth { display: flex; flex-direction: column; }
.modal-tabs { display: flex; gap: 4px; padding: 4px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-pill); margin-bottom: 18px; }
.modal-tabs button { flex: 1; padding: 9px; border: 0; background: transparent; color: var(--ink-mute); font: inherit; font-weight: 600; border-radius: var(--radius-pill); cursor: pointer; }
.modal-tabs button.active { background: var(--canvas-raised); color: var(--ink); box-shadow: var(--shadow-sm); }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--ink-soft); }
.modal-form input { padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--canvas); color: var(--ink); font: inherit; }
.modal-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 127, 255, .14); }
.modal-form .button { width: 100%; margin-top: 4px; }
.modal-form .auth-error { margin-bottom: 2px; }
.auth-forgot { text-align: center; margin: 16px 0 2px; font-size: .9rem; }
.auth-forgot a { color: var(--ink-mute); text-decoration: none; transition: color .2s; }
.auth-forgot a:hover { color: var(--blue); text-decoration: underline; }
.auth-legal { margin: 12px 0 0; font-size: .8rem; line-height: 1.45; color: var(--ink-mute); text-align: center; }
.auth-legal a { color: var(--ink-soft); text-decoration: underline; }
.auth-legal a:hover { color: var(--blue); }
.modal-sent { text-align: center; align-items: center; }
.modal-sent-badge { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; margin: 4px auto 20px; color: #0A0E18; background-color: var(--peach); background-image: var(--grad-dot); box-shadow: 0 8px 24px rgba(255, 89, 128, .28); }
.modal-sent-badge svg { width: 27px; height: 27px; display: block; }
.modal-sent h2 { margin-bottom: 10px; }
.modal-sent p { max-width: 40ch; margin: 0 auto; }

/* checkout */
.modal-checkout { display: flex; flex-direction: column; gap: 16px; }
.modal-checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-list { display: flex; flex-direction: column; }
.modal-list .co-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.modal-list .co-row .co-name { flex: 1; min-width: 0; }
.co-remove { flex-shrink: 0; border: 0; background: transparent; color: var(--ink-mute); font-size: .85rem; line-height: 1; cursor: pointer; padding: 5px 6px; border-radius: var(--radius-pill); }
.co-remove:hover { color: var(--ink); background: var(--canvas); }
.modal-checkout .button { width: 100%; }

/* pay / receipt inside a modal reuse the .pay-* and .receipt-* styles */
.modal-pay { display: flex; flex-direction: column; gap: 14px; }
.modal-pay .pay-address { word-break: break-all; }
.modal-pay .receipt-head h2 { font-size: 1.3rem; }

/* ---- multi-owner payment groups (non-custodial: one payment per TLD owner) ---- */
.pay-group { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.pay-group.is-done { border-color: rgba(26,157,90,.4); background: rgba(26,157,90,.05); }
.pay-group.is-cancelled { opacity: .65; }
.pay-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pay-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pay-names li { font-weight: 600; font-size: .9rem; }
.pay-names .ext { color: var(--ink-soft); }
.pay-group-sub { flex-shrink: 0; font-weight: 600; color: var(--ink-mute); font-size: .88rem; }
.pay-group-status { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-soft); }
.pay-group.is-done .pay-group-status { color: #1a9d5a; font-weight: 600; }
.pay-check { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #1a9d5a; color: #fff; font-size: .72rem; }
.receipt-group { padding: 8px 0; border-bottom: 1px solid var(--line); }
.receipt-group:last-of-type { border-bottom: 0; }
.receipt-group-head { margin-bottom: 4px; }
.order-badge.is-cancelled { color: #e5484d; background: rgba(229,72,77,.12); }
.order-badge.is-placed { color: var(--ink-mute); background: var(--subtle); }

/* ---- try chips ---- */
.try {
	margin-top: 26px;
	font-size: .92rem;
	color: var(--ink-mute);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.chip {
	font-family: var(--font-mono);
	font-size: .88rem;
	font-weight: 500;
	color: var(--ink-soft);
	padding: 5px 12px;
	background: var(--canvas-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: all .2s var(--ease);
}
.chip:hover {
	color: var(--ink);
	border-color: var(--ink);
	transform: translateY(-1px);
}

/* ============================================================
   STEPS (how it works)
   ============================================================ */

.steps {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2.5vw, 28px);
	counter-reset: step;
}
.step {
	position: relative;
	padding: 32px 30px 36px;
	background: var(--canvas-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-no {
	font-family: var(--font-mono);
	font-size: .92rem;
	font-weight: 600;
	color: var(--blue);
	letter-spacing: .05em;
}
.step h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.7rem;
	letter-spacing: -.02em;
	margin: 14px 0 12px;
}
.step p { color: var(--ink-soft); font-size: 1.02rem; }

/* ============================================================
   FEATURES
   ============================================================ */

.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 1fr;
	gap: clamp(16px, 2vw, 22px);
}
.feature {
	padding: 30px 28px;
	background: var(--canvas-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
	display: flex;
	flex-direction: column;
}
.feature:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--line-strong);
}
.feature-lg {
	grid-column: span 1;
	grid-row: span 2;
	background:
		linear-gradient(180deg, rgba(0,127,255,.05), transparent 40%),
		var(--canvas-raised);
	justify-content: flex-start;
}
.feature h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.32rem;
	letter-spacing: -.02em;
	margin-bottom: 10px;
	line-height: 1.15;
}
.feature-lg h3 { font-size: 1.9rem; margin-top: auto; }
.feature p { color: var(--ink-soft); font-size: 1rem; }
.feature-lg p { font-size: 1.08rem; margin-top: 6px; }
.feature-tag {
	margin-top: 18px;
	font-size: .82rem;
	color: var(--ink-mute);
	letter-spacing: .02em;
}

/* feature icons (mask technique) */
.ico {
	display: inline-block;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}
.feature .ico {
	width: 30px; height: 30px;
	margin-bottom: 18px;
	color: var(--blue);
}
.feature-lg .ico { width: 38px; height: 38px; color: var(--pink); }

.ico-key   { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='M10.7 12.3 21 2m-4 0 3 3-3 3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='M10.7 12.3 21 2m-4 0 3 3-3 3'/%3E%3C/svg%3E"); }
.ico-globe { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.8 3 2.8 16 0 19M12 2.5c-2.8 3-2.8 16 0 19'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.8 3 2.8 16 0 19M12 2.5c-2.8 3-2.8 16 0 19'/%3E%3C/svg%3E"); }
.ico-stack { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 21.5 7 12 11.5 2.5 7 12 2.5z'/%3E%3Cpath d='M2.5 12 12 16.5 21.5 12M2.5 17 12 21.5 21.5 17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 21.5 7 12 11.5 2.5 7 12 2.5z'/%3E%3Cpath d='M2.5 12 12 16.5 21.5 12M2.5 17 12 21.5 21.5 17'/%3E%3C/svg%3E"); }
.ico-spark { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2.5c.8 5 3.7 7.9 8.7 8.7-5 .8-7.9 3.7-8.7 8.7-.8-5-3.7-7.9-8.7-8.7 5-.8 7.9-3.7 8.7-8.7z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2.5c.8 5 3.7 7.9 8.7 8.7-5 .8-7.9 3.7-8.7 8.7-.8-5-3.7-7.9-8.7-8.7 5-.8 7.9-3.7 8.7-8.7z'/%3E%3C/svg%3E"); }
.ico-coin  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cellipse cx='9' cy='6.5' rx='6.5' ry='3'/%3E%3Cpath d='M2.5 6.5v6c0 1.66 2.91 3 6.5 3'/%3E%3Cellipse cx='15' cy='14.5' rx='6.5' ry='3'/%3E%3Cpath d='M8.5 14.5v6c0 1.66 2.91 3 6.5 3s6.5-1.34 6.5-3v-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cellipse cx='9' cy='6.5' rx='6.5' ry='3'/%3E%3Cpath d='M2.5 6.5v6c0 1.66 2.91 3 6.5 3'/%3E%3Cellipse cx='15' cy='14.5' rx='6.5' ry='3'/%3E%3Cpath d='M8.5 14.5v6c0 1.66 2.91 3 6.5 3s6.5-1.34 6.5-3v-6'/%3E%3C/svg%3E"); }
.ico-theme { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a9 9 0 0 1 0 18z'/%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a9 9 0 0 1 0 18z'/%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E"); }
.ico-user  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.8'/%3E%3Cpath d='M5.5 20c0-3.6 2.9-6.5 6.5-6.5s6.5 2.9 6.5 6.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.8'/%3E%3Cpath d='M5.5 20c0-3.6 2.9-6.5 6.5-6.5s6.5 2.9 6.5 6.5'/%3E%3C/svg%3E"); }
.ico-search { width: 20px; height: 20px; color: var(--ink-mute);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='m21 21-5.4-5.4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='m21 21-5.4-5.4'/%3E%3C/svg%3E"); }
.ico-arrow { width: 16px; height: 16px;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E"); }
.button .ico-arrow { transition: transform .25s var(--ease); }
.button:hover .ico-arrow { transform: translateX(3px); }

/* ============================================================
   TLD GRID
   ============================================================ */

.tlds {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(12px, 1.6vw, 18px);
}
.tld {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 26px 24px;
	background: var(--canvas-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: border-color .2s var(--ease);
}
.tld:hover { border-color: var(--line-strong); }
.tld-ext {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.55rem;
	letter-spacing: -.02em;
	position: relative;
	z-index: 1;
}
.tld-meta { font-size: .82rem; color: var(--ink-mute); position: relative; z-index: 1; }
.tld-badge {
	position: absolute;
	top: 16px; right: 16px;
	z-index: 2;
	font-family: var(--font-mono);
	font-size: .66rem;
	font-weight: 600;
	color: var(--pink);
	padding: 3px 8px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255,89,128,.35);
	background: rgba(255,89,128,.08);
	letter-spacing: .01em;
}
.tld-more {
	background: transparent;
	border-style: dashed;
	justify-content: center;
	align-items: flex-start;
}
.tld-more .tld-ext { color: var(--ink-soft); }

/* ============================================================
   CLOSING CTA
   ============================================================ */

.cta {
	position: relative;
	padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px);
	border-radius: clamp(24px, 3vw, 40px);
	background:
		radial-gradient(80% 120% at 0% 0%, rgba(0,127,255,.16), transparent 55%),
		radial-gradient(90% 130% at 100% 100%, rgba(255,89,128,.18), transparent 55%),
		var(--cta-base);
	color: #fff;
	text-align: center;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.08);
	box-shadow: var(--shadow-lg);
}
.cta::before {
	content: "";
	position: absolute; inset: 0;
	opacity: .06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta-title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.6rem, 7vw, 5rem);
	line-height: .96;
	letter-spacing: -.04em;
	color: #fff;
}
.cta-title .dot-period { width: .14em; height: .14em; }
.cta-sub {
	margin: 20px auto 0;
	max-width: 42ch;
	color: rgba(255,255,255,.78);
	font-size: 1.1rem;
}
.search--cta {
	margin: 38px auto 0;
	background: rgba(255,255,255,.08);
	border-color: rgba(255,255,255,.18);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.search--cta .search-field input { color: #fff; }
.search--cta .search-field input::placeholder { color: rgba(255,255,255,.5); }
.search--cta .search-caret { color: rgba(255,255,255,.5); }
.search--cta .ico-search { color: rgba(255,255,255,.55); }
.search--cta:focus-within {
	border-color: rgba(255,255,255,.4);
	box-shadow: 0 0 0 4px rgba(255,255,255,.1);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
	border-top: 1px solid var(--line);
	margin-top: clamp(40px, 6vw, 80px);
}
.footer-bar {
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	padding: clamp(32px, 5vw, 52px) clamp(24px, 6vw, 56px);
}
.footer-brand-mini { display: flex; flex-direction: column; gap: 10px; }
.footer-brand-mini .title { margin-bottom: 2px; }
.footer-copy { color: var(--ink-soft); font-size: .9rem; max-width: 34ch; line-height: 1.5; }
.footer-copy-muted { color: var(--ink-mute); font-size: .84rem; }
.footer-legal-links { gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.footer-legal-links a { color: var(--ink-mute); font-size: .84rem; transition: color .2s; }
.footer-legal-links a:hover { color: var(--ink); }
.socials { gap: 10px; }
.social {
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink-soft);
	transition: all .2s var(--ease);
}
.social:hover { color: var(--canvas); background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
	transition-delay: calc(var(--d, 0) * 90ms);
	will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* hero plays on load */
.section[data-name="hero"] .reveal { transition-delay: calc(var(--d, 0) * 110ms + 120ms); }

/* ---- auth pages ---- */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 120px 20px 60px; }
.auth-card { width: min(100%, 380px); display: flex; flex-direction: column; gap: 14px;
	background: var(--canvas-raised); border: 1px solid var(--line);
	border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.auth-card input { padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
	background: var(--canvas); color: var(--ink); font-size: 1rem; }
.auth-card input:focus { outline: none; border-color: var(--blue); }
.auth-card .button { width: 100%; margin-top: 4px; }
.auth-error { color: #e5484d; font-size: .9rem; }
.auth-alt { font-size: .9rem; color: var(--ink-soft); }
/* ---- account menu (circular user button + dropdown) ---- */
.account { position: relative; flex-shrink: 0; }
.account-toggle {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.account-toggle:hover { background: var(--hover); border-color: var(--ink); transform: translateY(-1px); }
.account.open .account-toggle { background: var(--hover); border-color: var(--ink); }
.account-toggle .ico { width: 19px; height: 19px; color: var(--ink); }

.account-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 220px;
	padding: 6px;
	background: var(--canvas-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
	z-index: 200;
}
.account.open .account-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.account-menu-email {
	padding: 8px 12px 10px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--line);
	font-size: .85rem;
	color: var(--ink-soft);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.account-menu form { margin: 0; }
.account-menu-item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 9px 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	font-family: var(--font-body);
	font-size: .95rem;
	font-weight: 500;
	color: var(--ink);
	cursor: pointer;
	transition: background .15s;
}
.account-menu-item:hover { background: var(--hover); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 920px) {
	.features { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
	.feature-lg { grid-column: span 2; grid-row: auto; }
	.tlds { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
	.header { padding-right: 8px; }

	.steps { grid-template-columns: 1fr; }
	.search { flex-direction: column; border-radius: var(--radius-lg); }
	.search-field { padding: 10px 16px; }
	/* keep corners concentric: inner radius = outer radius - container padding */
	.search-go { width: 100%; padding: 15px; border-radius: calc(var(--radius-lg) - 8px); }
	/* search controls collapse to one full-width stack (consistent edges, not ragged pills) */
	.results-controls { flex-direction: column; align-items: stretch; gap: 10px; }
	.rc-col { width: 100%; }
	.rc-left, .rc-right { align-items: stretch; }
	.rc-col .seg { width: 100%; justify-content: space-between; }
	.sort-control { width: 100%; }
	.sort-selects { flex: 1; }
	.sort-selects #sort-field { flex: 1; }
}

@media (max-width: 480px) {
	/* compact header: logo mark only, tighter buttons - everything stays inline */
	.header .name { display: none; }
	.header .buttons .button { padding-inline: 14px; font-size: .9rem; }
}

@media (max-width: 460px) {
	.results-head { font-size: .8rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.reveal { opacity: 1; transform: none; }
	.topnote { transition: opacity .2s; }
}

/* ============ LAUNCH NOTICE (pops out from under the fixed header; dismissible via namebase.js) ============ */
.topnote {
	position: fixed;
	top: calc(var(--padding) * 1.6 + var(--headerHeight) + 10px);
	left: max(50%, 160px);
	transform: translateX(-50%) translateY(-14px);
	z-index: 99;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 28px);
	padding: 9px 8px 9px 16px;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-pill);
	background: var(--canvas-glass);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow-md, 0 12px 34px rgba(10, 15, 30, .16));
	color: var(--ink-soft);
	font-size: .9rem;
	line-height: 1.3;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.topnote.is-in { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.topnote-dot {
	flex-shrink: 0;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--blue);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent);
}
.topnote-text { min-width: 0; }
.topnote-link { font-weight: 600; color: var(--ink); white-space: nowrap; }
.topnote-link:hover { color: var(--blue); }
.topnote-x {
	flex-shrink: 0;
	width: 26px; height: 26px;
	display: grid; place-items: center;
	border: 0; border-radius: 50%;
	background: transparent;
	color: var(--ink-soft);
	font-size: 1.2rem; line-height: 1;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.topnote-x:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
@media (max-width: 950px) {
	/* Below 950px, drop the desktop pill for a card that matches the hero search: same width
	   (min(600px, viewport - the .wrap hero padding)), still centered, text fills so close sits at edge. */
	.topnote {
		width: min(600px, calc(100% - 2 * clamp(20px, 5vw, 40px)));
		max-width: none;
		display: flex;
		align-items: flex-start;
		gap: 9px;
		border-radius: 14px;
		padding: 12px 12px 12px 14px;
		font-size: .82rem;
	}
	.topnote-text { flex: 1; }
	.topnote-dot { margin-top: 5px; }
	.topnote-x { margin-top: -2px; }
}

/* ============ BLOG ============ */
.blog-page .wrap { max-width: 760px; }
.blog-back { margin-bottom: 18px; }
.blog-back a { color: var(--ink-soft); font-size: .92rem; }
.blog-back a:hover { color: var(--ink); }
.blog-date { color: var(--ink-soft); font-size: .88rem; margin-bottom: 8px; }
.blog-post-title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; margin-bottom: 26px; }
.blog-body { font-size: 1.02rem; line-height: 1.72; color: var(--ink-soft); }
.blog-body h2 { color: var(--ink); font-size: 1.25rem; margin: 32px 0 12px; }
.blog-body p { margin-bottom: 16px; }
.blog-body ul { margin: 0 0 16px; padding-left: 22px; }
.blog-body li { margin-bottom: 8px; }
.blog-body a { color: var(--blue); font-weight: 500; }
.blog-body a:hover { text-decoration: underline; }
.blog-body strong { color: var(--ink); font-weight: 600; }
.blog-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.blog-card {
	display: flex; flex-direction: column; gap: 6px;
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg, 18px);
	transition: border-color .2s, transform .2s;
}
.blog-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.blog-card-date { color: var(--ink-soft); font-size: .82rem; }
.blog-card-title { color: var(--ink); font-size: 1.15rem; font-weight: 600; }
.blog-card-excerpt { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
