/* === DomainBase.AI · Kami Design System === */

:root {
    /* Canvas · 暖米纸底 */
    --canvas: #f5f4ed;
    --ivory: #faf9f5;
    --warm-sand: #e8e6dc;

    /* Brand · 油墨蓝 */
    --ink-blue: #1b365d;
    --ink-light: #2d5a8a;
    --deep-dark: #141413;

    /* Warm Neutrals · 暖调灰 */
    --near-black: #141413;
    --dark-warm: #3d3d3a;
    --charcoal: #4d4c48;
    --olive: #5e5d59;
    --stone: #87867f;
    --warm-silver: #b0aea5;

    /* Status Colors · 状态色 */
    --status-active: #4caf50;
    --status-pending: #ff9800;
    --status-sold: #b53333;

    /* Spacing · 4pt base */
    --space-xs: 3px;
    --space-sm: 5px;
    --space-md: 8px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 40px;
    --space-3xl: 80px;

    /* Typography */
    --font-serif: 'Noto Serif SC', 'Georgia', serif;
    --font-sans: 'Manrope', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--canvas);
    color: var(--near-black);
    line-height: 1.55;
    min-height: 100vh;
    padding: var(--space-lg);
}

/* === Layout === */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* === Header / Eyebrow === */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    gap: var(--space-lg);
}

.eyebrow {
    font-size: 11px;
    font-weight: 500;
    color: var(--stone);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* === Top Actions (nav links + lang switch + brand logo) === */
.top-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-lg);
}

/* === Brand logo (top-right) === */
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--ivory);
    border: 1px solid var(--warm-sand);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.brand-logo:hover {
    border-color: var(--ink-blue);
    transform: translateY(-1px);
}

.brand-logo img {
    /* Clean square logo with even padding around the "B" — fill the box at 1:1. */
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nav-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-blue);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--ink-light);
    text-decoration: underline;
}

/* Left-side brand cluster: logo + eyebrow text */
.top-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 0;
}

/* === Language Switch === */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    user-select: none;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--warm-silver);
    cursor: pointer;
    padding: 4px 6px;
    font: inherit;
    line-height: 1;
    transition: color 0.15s ease;
}

.lang-btn:hover {
    color: var(--charcoal);
}

.lang-btn.active {
    color: var(--ink-blue);
    font-weight: 600;
}

.lang-btn+.lang-btn {
    border-left: 1px solid var(--warm-sand);
    margin-left: 2px;
}

/* === Title Section === */
.title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--warm-sand);
    margin-bottom: 20px;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 500;
    color: var(--near-black);
    line-height: 1.1;
}

.main-title em {
    font-style: normal;
    color: var(--ink-blue);
}

.subtitle {
    font-size: 14px;
    color: var(--olive);
    margin-top: var(--space-md);
    max-width: 420px;
    line-height: 1.5;
}

.meta-info {
    text-align: right;
    font-size: 12px;
    color: var(--stone);
}

.meta-info .row {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-bottom: var(--space-xs);
}

.meta-info .label {
    color: var(--warm-silver);
}

.meta-info .value {
    font-family: 'JetBrains Mono', monospace;
    color: var(--charcoal);
}

.meta-tagline {
    margin-top: var(--space-lg);
    font-size: 11px;
    color: var(--stone);
    letter-spacing: 0.05em;
}

/* === Section Header === */
.section-header {
    margin-bottom: var(--space-xl);
}

.section-number {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-blue);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--near-black);
    line-height: 1.2;
}

.section-text {
    font-size: 13px;
    color: var(--olive);
    margin-top: var(--space-md);
    max-width: 520px;
}

.section-text a {
    color: var(--ink-blue);
    text-decoration: none;
}

.section-text a:hover {
    text-decoration: underline;
}

/* === Active Users Section (home page, sits below the two domain columns) === */
.active-users-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-2xl);
}

.active-users-header .section-heading {
    flex: 1;
    min-width: 280px;
}

.section-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-blue);
    text-decoration: none;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.section-link:hover {
    color: var(--ink-light);
    border-bottom-color: var(--ink-light);
}

.active-users-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.active-users-grid .grid-loading,
.active-users-grid .grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--warm-silver);
    padding: var(--space-2xl) var(--space-lg);
    font-size: 13px;
    background: var(--ivory);
    border: 1px solid var(--warm-sand);
    border-radius: 12px;
}

.user-card {
    background: var(--ivory);
    border: 1px solid var(--warm-sand);
    border-radius: 12px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 200px;
    min-width: 0;
    overflow: hidden;
}

.user-card:hover {
    border-color: var(--ink-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(20, 20, 19, 0.06);
}

.user-card .uc-head {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: 0;
}

.user-card .uc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--canvas);
    border: 1px solid var(--warm-sand);
    color: var(--ink-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 500;
    flex-shrink: 0;
    overflow: hidden;
    text-transform: uppercase;
}

.user-card .uc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-card .uc-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.user-card .uc-display {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--near-black);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-card .uc-handle {
    font-size: 11px;
    color: var(--stone);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-card .uc-stats {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-top: 0.5px dashed var(--warm-sand);
    border-bottom: 0.5px dashed var(--warm-sand);
}

.user-card .uc-count {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink-blue);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.user-card .uc-count-label {
    font-size: 10px;
    color: var(--stone);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.user-card .uc-total {
    margin-left: auto;
    font-size: 11px;
    color: var(--stone);
    font-variant-numeric: tabular-nums;
}

.user-card .uc-recent {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.user-card .uc-recent-row {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--charcoal);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.user-card .uc-recent-row .price {
    color: var(--ink-blue);
    font-weight: 500;
    margin-left: 4px;
}

.user-card .uc-recent-row .price.unpriced {
    color: var(--stone);
    font-style: italic;
    font-weight: 400;
}

.user-card .uc-recent-empty {
    font-size: 11px;
    color: var(--warm-silver);
    font-style: italic;
}

/* === Ad slots (third row) === */
.ad-card {
    background: var(--ivory);
    border: 1px dashed var(--warm-silver);
    border-radius: 12px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-sm);
    min-height: 200px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
    min-width: 0;
    overflow: hidden;
}

.ad-card:hover {
    border-color: var(--ink-blue);
    background: var(--canvas);
}

.ad-card .ad-eyebrow {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-blue);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ad-card .ad-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.3;
    max-width: 90%;
}

.ad-card .ad-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 2px;
}

.ad-card .ad-price-num {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink-blue);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ad-card .ad-price-unit {
    font-size: 11px;
    color: var(--stone);
    letter-spacing: 0.05em;
}

.ad-card .ad-foot {
    font-size: 11px;
    color: var(--stone);
    letter-spacing: 0.04em;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 0.5px dashed var(--warm-sand);
    width: 100%;
}

@media (max-width: 1024px) {
    .active-users-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .active-users-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-md);
    }

    .user-card,
    .ad-card {
        min-height: 0;
    }
}

/* === Three Column Grid (Latest / Buy Now / Featured) === */
.columns-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
}

@media (max-width: 1100px) {
    .columns-wrap {
        grid-template-columns: 1fr;
    }
}

.column {
    background: var(--ivory);
    border-radius: 12px;
    padding: var(--space-xl);
    border: 1px solid var(--warm-sand);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--warm-sand);
}

.column-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-blue);
    letter-spacing: 0.05em;
}

.column-hint {
    font-size: 11px;
    color: var(--warm-silver);
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.column-link {
    font-size: 11px;
    color: var(--ink-blue);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-left: 1px solid var(--warm-sand);
    padding-left: var(--space-sm);
    transition: color 0.15s ease;
}

.column-link:hover {
    color: var(--near-black);
    text-decoration: underline;
}

/* === Domain List / Cards === */
.domain-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Inner pages (search results, per-user listings) wrap the list in a panel
   that mirrors the home-page `.column` look — soft ivory background, sand
   border, generous padding — so it doesn't read as a bare list of rows. */
#list-results,
#user-domain-list {
    background: var(--ivory);
    border: 1px solid var(--warm-sand);
    border-radius: 12px;
    padding: var(--space-xl);
}

@media (max-width: 768px) {

    #list-results,
    #user-domain-list {
        padding: var(--space-lg);
    }
}

.domain-card {
    padding: var(--space-lg);
    background: var(--canvas);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.domain-card:hover {
    border-color: var(--ink-blue);
}

.domain-card.blocked {
    opacity: 0.5;
}

.domain-card.pinned {
    border-left: 3px solid var(--ink-blue);
}

.domain-card.recommended {
    border-left: 3px solid var(--warm-silver);
}

.pin-badge {
    display: inline-block;
    margin-right: 8px;
    color: var(--ink-blue);
    line-height: 1;
    vertical-align: -1px;
}

.pin-badge i {
    font-size: 1em;
    line-height: 1;
}

.domain-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-sm);
    /* Reserve the larger of (name 16px, price 18px) line-box so a card with
       "Make offer" (13px italic) is just as tall as a card showing a number.
       Keeps three columns row-aligned without touching either font style. */
    min-height: 26px;
}

.domain-name {
    font-family: 'Manrope', var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 26px;
    color: var(--near-black);
    letter-spacing: -0.01em;
    /* Now rendered as <a> linking to the detail page; reset default anchor
       styling and only show the underline on hover so the row still looks
       like a heading by default. */
    text-decoration: none;
}

a.domain-name:hover {
    color: var(--ink-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.domain-price {
    font-size: 18px;
    font-weight: 600;
    /* Fixed line-height (not a multiplier) so unpriced 13px text occupies the
       same 26px box as a priced 18px number — row height stops changing. */
    line-height: 26px;
    color: var(--ink-blue);
    font-variant-numeric: tabular-nums;
}

.domain-price.unpriced {
    font-size: 13px;
    font-weight: 500;
    color: var(--stone);
    font-style: italic;
}

/* "议价 / Make offer" anchor variant — links to the seller's x.com homepage.
   Inherits the italic-gray look from .domain-price.unpriced and only reveals
   itself as a link on hover. */
a.domain-price.unpriced.offer-link {
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a.domain-price.unpriced.offer-link:hover {
    color: var(--ink-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.domain-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--stone);
}

.domain-meta a {
    color: var(--ink-light);
    text-decoration: none;
}

.domain-meta a:hover {
    text-decoration: underline;
}

/* === Domain detail page (/d/{full}) === */
/* Hero block: dark slate panel with the domain name centered in white and a
   prominent commission-to-buy CTA underneath the price. We deliberately
   override .main-title here so the existing serif sizing rules still apply
   while flipping the colour palette to read against the dark background. */
.domain-hero {
    background: #30302E;
    color: #fff;
    text-align: center;
    /* Tall, generous panel — top/bottom padding doubled vs the default
       section spacing so the domain has room to breathe. */
    padding: var(--space-3xl) var(--space-xl);
    border-radius: 12px;
    margin: var(--space-lg) 0 var(--space-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Vertical rhythm between domain / price / CTA. Larger than the default
       so the three elements feel like distinct beats, not a single stack. */
    gap: var(--space-2xl);
}

.domain-hero .main-title {
    color: #fff;
    /* Doubled from the default 42px so the domain dominates the hero. */
    font-size: 84px;
    line-height: 1.05;
}

.domain-hero .main-title em {
    color: #d8d6c9;
}

.domain-hero .hero-price {
    margin: 0;
}

.domain-hero .domain-price {
    color: #fff;
    font-size: 32px;
    line-height: 1.2;
}

.domain-hero .domain-price.unpriced {
    color: #b0aea5;
}

/* Hero price/议价 anchors link to the original tweet. Keep them looking
   like the static price by default and only reveal the link on hover so
   the hero stays visually clean. */
.domain-hero a.hero-price-link {
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.domain-hero a.hero-price-link:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #fff;
    text-underline-offset: 6px;
}

.domain-hero a.domain-price.unpriced.offer-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.commission-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    padding: 10px 22px;
    border-radius: 999px;
    background: #fff;
    color: #30302E;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.commission-btn:hover {
    background: var(--ink-blue);
    color: #fff;
    transform: translateY(-1px);
}

/* Tight stack so the caption sits visually attached to the CTA — overrides
   the hero's wider gap between the price / button / caption. */
.commission-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.commission-note {
    font-size: 11px;
    font-weight: 500;
    color: #b0aea5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Postings count chip sits inline with the "Posting history" title. */
.section-title .postings-count-chip {
    margin-left: var(--space-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--stone);
    letter-spacing: 0.04em;
    vertical-align: middle;
}

/* Inline strip for First seen / Last seen below "Posting history" — both
   metrics share one row, separated by a comfortable gap, so the section
   header stays compact. */
.meta-info.domain-meta-stack {
    text-align: left;
    margin-top: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px var(--space-lg);
}

.meta-info.domain-meta-stack .row {
    justify-content: flex-start;
    gap: var(--space-sm);
    margin-bottom: 0;
    align-items: baseline;
}

/* Posting cards on the detail page are wider — they include a tweet snippet —
   so we give them a comfortable layout and a clear price/user split at the
   top, snippet in the middle, and a meta row with the tweet link below. */
.posting-card {
    padding: var(--space-xl);
    background: var(--ivory);
    border: 1px solid var(--warm-sand);
}

.posting-card .domain-main {
    align-items: center;
}

.posting-user {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-blue);
    text-decoration: none;
}

.posting-user:hover {
    text-decoration: underline;
}

.posting-content {
    margin: var(--space-md) 0;
    color: var(--charcoal);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.tweet-link {
    color: var(--ink-blue) !important;
}

.domain-meta .user-link {
    font-weight: 500;
    color: var(--ink-blue);
}

.domain-meta .user-link:hover {
    color: var(--ink-light);
    text-decoration: underline;
}

.domain-meta .tweet-link {
    color: var(--olive);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    margin-right: var(--space-md);
    transition: color 0.15s ease;
}

.domain-meta .tweet-link:hover {
    color: var(--ink-blue);
    text-decoration: underline;
}

/* === User page === */
.back-link {
    color: var(--stone);
    text-decoration: none;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: var(--ink-blue);
}

.user-title .main-title em {
    font-family: 'Manrope', var(--font-sans);
    font-style: normal;
    font-weight: 500;
    font-size: 0.55em;
    color: var(--stone);
    margin-left: var(--space-md);
    letter-spacing: -0.01em;
}

/* Avatar + title side-by-side. The avatar is sized with em on the parent's
   font-size so it tracks .main-title (42px desktop → smaller on mobile via
   the existing media query). 1.1em ≈ matches the title's line-height box
   so the photo sits flush with cap-height. */
.user-title .user-title-main {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-title .user-avatar {
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    background: var(--canvas);
    border: 1px solid var(--warm-sand);
    color: var(--ink-blue);
    overflow: hidden;
    /* font-size is the title font-size; that's how 1.1em scales with it. */
    font-size: 42px;
    /* When the avatar is missing we render the first-letter initial — these
       rules are only meaningful in that fallback case. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
}

.user-title .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .user-title .user-avatar {
        font-size: 32px;
    }
}

.user-title .main-title em a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.user-title .main-title em a:hover {
    color: var(--ink-blue);
    text-decoration: underline;
}

.meta-info .value a {
    color: var(--ink-blue);
    text-decoration: none;
}

.meta-info .value a:hover {
    text-decoration: underline;
}

.domain-time {
    font-size: 11px;
    color: var(--warm-silver);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin-left: auto;
}

.domain-status {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--warm-sand);
}

.status-pending {
    color: var(--status-pending);
}

.status-sold {
    color: var(--status-sold);
}

/* === Vanity / Aliases page === */
.vanity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.vanity-tier {
    background: var(--ivory);
    border: 1px solid var(--warm-sand);
    border-radius: 12px;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    transition: border-color 0.2s, transform 0.15s;
}

.vanity-tier:hover {
    border-color: var(--ink-blue);
    transform: translateY(-1px);
}

.vanity-tier.tier-1 {
    border-left: 3px solid var(--ink-blue);
}

.vanity-tier.tier-2 {
    border-left: 3px solid var(--ink-light);
}

.vanity-tier.tier-3 {
    border-left: 3px solid var(--warm-silver);
}

.tier-head {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.tier-label {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--near-black);
}

.tier-meta {
    font-size: 11px;
    color: var(--stone);
    letter-spacing: 0.04em;
}

.tier-example {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--olive);
    background: var(--canvas);
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    border: 0.5px solid var(--warm-sand);
}

.tier-example em {
    font-style: normal;
    color: var(--ink-blue);
    font-weight: 600;
}

.tier-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: var(--space-sm);
}

.tier-price .price-num {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
    color: var(--ink-blue);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tier-price .price-unit {
    font-size: 12px;
    color: var(--stone);
    font-weight: 500;
    letter-spacing: 0.06em;
}

.tier-tag {
    font-size: 11px;
    color: var(--stone);
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 0.5px dashed var(--warm-sand);
}

.claim-steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.claim-steps li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--ivory);
    border-radius: 8px;
    border: 1px solid var(--warm-sand);
}

.claim-steps .step-num {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink-blue);
    line-height: 1;
    min-width: 28px;
    font-variant-numeric: tabular-nums;
}

.claim-steps .step-text {
    font-size: 13px;
    color: var(--charcoal);
    line-height: 1.55;
}

.claim-steps .step-text a {
    color: var(--ink-blue);
    text-decoration: none;
    font-weight: 500;
}

.claim-steps .step-text a:hover {
    text-decoration: underline;
}

.claim-steps code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: var(--canvas);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--ink-blue);
}

.vanity-cta {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.cta-btn {
    display: inline-block;
    background: var(--ink-blue);
    color: var(--ivory);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.15s ease, transform 0.1s ease;
    box-shadow: 0 0 0 1px var(--ink-blue);
}

.cta-btn:hover {
    background: var(--ink-light);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .vanity-grid {
        grid-template-columns: 1fr;
    }
}

/* === View more (column footer link) === */
.view-more {
    display: block;
    text-align: center;
    margin-top: var(--space-md);
    padding: var(--space-md);
    color: var(--ink-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-top: 0.5px dashed var(--warm-sand);
    transition: color 0.15s ease;
}

.view-more:hover {
    color: var(--ink-light);
}

/* === Filter bar === */
.filter-bar {
    background: var(--ivory);
    border: 1px solid var(--warm-sand);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: flex-end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.filter-field.grow {
    flex: 1;
    min-width: 200px;
}

.filter-field label {
    font-size: 11px;
    font-weight: 500;
    color: var(--stone);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.filter-field input,
.filter-field select {
    background: var(--canvas);
    border: 1px solid var(--warm-sand);
    border-radius: 6px;
    padding: 8px 10px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--near-black);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: var(--ink-blue);
    box-shadow: 0 0 0 2px rgba(27, 54, 93, 0.12);
}

.filter-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    margin-left: auto;
}

.btn-primary,
.btn-ghost {
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: var(--ink-blue);
    color: var(--ivory);
    box-shadow: 0 0 0 1px var(--ink-blue);
}

.btn-primary:hover {
    background: var(--ink-light);
}

.btn-ghost {
    background: transparent;
    color: var(--charcoal);
    box-shadow: 0 0 0 1px var(--warm-sand);
}

.btn-ghost:hover {
    color: var(--ink-blue);
    box-shadow: 0 0 0 1px var(--ink-blue);
}

/* === Pager === */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0 var(--space-2xl);
    flex-wrap: wrap;
}

.pg-btn {
    background: var(--ivory);
    color: var(--charcoal);
    border: 1px solid var(--warm-sand);
    border-radius: 6px;
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.pg-btn:not(:disabled):hover {
    border-color: var(--ink-blue);
    color: var(--ink-blue);
}

.pg-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pg-info {
    font-size: 13px;
    color: var(--charcoal);
    font-variant-numeric: tabular-nums;
}

.pg-info strong {
    color: var(--ink-blue);
    font-weight: 600;
}

.pg-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: var(--space-md);
}

.pg-jump input {
    width: 64px;
    background: var(--canvas);
    border: 1px solid var(--warm-sand);
    border-radius: 6px;
    padding: 6px 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--near-black);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pg-jump input:focus {
    outline: none;
    border-color: var(--ink-blue);
    box-shadow: 0 0 0 2px rgba(27, 54, 93, 0.12);
}

.list-title .main-title em,
.store-title .main-title em {
    font-style: normal;
    color: var(--ink-blue);
}

/* /store page reuses .active-users-grid (5-column card grid). The first
   two rows on every page are ad slots, then up to 50 user cards follow. */
.store-grid {
    margin-top: var(--space-xl);
}

/* Filter toggle (collapsible search options) */
.filter-toggle {
    display: none;
}

.filter-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions {
        margin-left: 0;
    }

    .filter-field {
        min-width: 0;
    }

    .pg-jump {
        margin-left: 0;
    }

    .filter-bar {
        padding: var(--space-md);
    }

    .filter-bar.collapsed {
        gap: 0;
    }

    .filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-sm);
        background: transparent;
        border: none;
        padding: 4px 2px;
        font-family: var(--font-sans);
        font-size: 12px;
        font-weight: 600;
        color: var(--near-black);
        cursor: pointer;
        width: 100%;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .filter-toggle .filter-toggle-left {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .filter-toggle .filter-toggle-caret {
        transition: transform 0.2s ease;
        color: var(--stone);
        font-size: 14px;
    }

    .filter-bar:not(.collapsed) .filter-toggle .filter-toggle-caret {
        transform: rotate(180deg);
        color: var(--ink-blue);
    }

    .filter-bar.collapsed .filter-body {
        display: none;
    }
}

/* === Loading / Error === */
.loading,
.error {
    text-align: center;
    color: var(--warm-silver);
    padding: var(--space-2xl) !important;
    font-size: 13px;
}

.error {
    color: var(--status-sold);
}

/* === Site Footer === */
.site-footer {
    margin-top: 0px;
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--warm-sand);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-md);
    font-size: 12px;
    color: var(--stone);
    line-height: 1.6;
}

.site-footer .footer-brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--ink-blue);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.site-footer .footer-text {
    flex: 1;
    min-width: 0;
    color: var(--stone);
}

@media (max-width: 640px) {
    .site-footer {
        flex-direction: column;
        gap: var(--space-xs);
        padding: var(--space-lg) 0;
    }

    .site-footer .footer-text {
        font-size: 11px;
    }
}

/* === Performance Overlay === */
#perf-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--deep-dark);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    z-index: 9999;
    transition: opacity 0.5s ease;
    flex-wrap: wrap;
}

#perf-overlay span {
    white-space: nowrap;
}

#perf-overlay span::before {
    content: '⚡ ';
    color: var(--status-active);
}

#perf-overlay .perf-total {
    color: #ffd97a;
    font-weight: 600;
}

#perf-overlay .perf-total::before {
    content: '◆ ';
    color: #ffd97a;
}

/* === Responsive === */
@media (max-width: 768px) {
    body {
        padding: var(--space-md);
    }

    .top-actions {
        gap: var(--space-md);
    }

    .brand-logo {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .title-section {
        flex-direction: column;
        padding: var(--space-xl) 0;
    }

    .meta-info {
        text-align: left;
        margin-top: var(--space-xl);
    }

    .meta-info .row {
        justify-content: flex-start;
    }

    /* User page: compact meta-info into a single inline strip on mobile
       to free up vertical space for the actual domain list below. */
    .user-title .meta-info {
        margin-top: var(--space-md);
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px var(--space-md);
        font-size: 11px;
    }

    .user-title .meta-info .row {
        margin-bottom: 0;
        gap: 6px;
        align-items: baseline;
    }

    .user-title .meta-info .label {
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 10px;
    }

    .main-title {
        font-size: 32px;
    }

    .domain-hero {
        padding: var(--space-2xl) var(--space-lg);
        gap: var(--space-xl);
    }

    .domain-hero .main-title {
        font-size: 56px;
    }

    .domain-hero .domain-price {
        font-size: 24px;
    }

    .columns-wrap {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .column {
        padding: var(--space-lg);
    }

    .domain-card {
        padding: var(--space-md);
    }

    .domain-name {
        font-size: 14px;
    }

    .domain-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: var(--space-sm);
    }

    .main-title {
        font-size: 28px;
    }

    .domain-hero .main-title {
        font-size: 44px;
        /* Long domains can't fit a single line at 44px on a 320px screen,
           so allow a graceful break at the suffix boundary instead. */
        word-break: break-word;
    }

    .domain-hero .domain-price {
        font-size: 20px;
    }

    .subtitle,
    .section-text {
        font-size: 12px;
    }

    .domain-meta {
        gap: var(--space-sm);
    }

    .domain-time {
        font-size: 10px;
    }
}