/* ============================================================
   /v3/css/lookup.css — Wallet Lookup page
   Reuses .v3-primary-card + .v3-mydomains-shell/grid/card from
   mydomains.css so styles stay 1:1 with /mydomains.  This file
   only carries page-specific hero + name-row + count-aside +
   pager styling.
   ============================================================ */

/* ---------- MAIN LAYOUT ---------- */
.v3-main-lookup { padding-bottom: 80px; }

/* ---------- HERO (form section) ---------- */
.v3-lookup-hero { padding: 40px 0 24px; }
.v3-lookup-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Hero eyebrow — small caps chip above title (matches agent-section-eyebrow
   pattern).  Sets the section context in one glance.                    */
.v3-lookup-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--track-caption, 0.08em);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 auto 14px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}
.v3-lookup-hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent, #5dc8f0);
    box-shadow: 0 0 8px rgba(37, 170, 225, 0.6);
    flex-shrink: 0;
}
.v3-lookup-hero-eyebrow-wrap {
    display: block;
    text-align: center;
}

/* Hero title — LANDING typography tokens, but restrained (--display scale,
   not --mega) so the page feels considered rather than shouty.          */
.v3-lookup-hero-title {
    font-family: var(--display-font, "Satoshi", system-ui, sans-serif);
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.08;
    letter-spacing: var(--track-mega, -0.035em);
    color: var(--ink, #ffffff);
    margin: 0 0 12px;
    text-align: center;
}
.v3-lookup-hero-sub {
    font-family: var(--sans, "Satoshi", system-ui, sans-serif);
    font-size: clamp(13.5px, 1.2vw, 15px);
    line-height: 1.55;
    color: var(--ink-soft, #d4dae5);
    margin: 0 auto 24px;
    text-align: center;
    max-width: 620px;
}
.v3-lookup-hero-sub em {
    color: var(--accent, #5dc8f0);
    font-style: normal;
    font-weight: 500;
}
.v3-lookup-shell {
    max-width: 720px;
    margin: 0 auto;
}

/* Stats bar — same visual language as .agent-hero-stats */
.v3-lookup-hero-stats {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.60);
}
.v3-lookup-hero-stat strong {
    color: var(--accent, #5dc8f0);
    font-weight: 700;
    font-size: 13px;
    margin-right: 5px;
}
.v3-lookup-hero-stat-sep {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

/* "How it works" 3-step strip — quiet, muted, only shown before result */
.v3-lookup-hero-how {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    max-width: 780px;
    margin: 32px auto 0;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}
.v3-lookup-hero-how.is-hidden { display: none; }
.v3-lookup-how-step {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.v3-lookup-how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(37, 170, 225, 0.14);
    border: 1px solid rgba(37, 170, 225, 0.32);
    color: var(--accent, #5dc8f0);
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.v3-lookup-how-text { min-width: 0; }
.v3-lookup-how-title {
    font-family: var(--display-font, "Satoshi", system-ui, sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink, #ffffff);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}
.v3-lookup-how-sub {
    font-family: var(--sans, "Satoshi", system-ui, sans-serif);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.50);
    line-height: 1.4;
}
.v3-lookup-how-sub code {
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--accent, #5dc8f0);
}
.v3-lookup-how-sep {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.10) 50%,
        transparent 100%);
}
@media (max-width: 720px) {
    .v3-lookup-hero-how {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    .v3-lookup-how-sep { display: none; }
}

/* Input text + placeholder — use landing sans (Satoshi), muted color */
.v3-lookup-input {
    font-family: var(--sans, "Satoshi", system-ui, sans-serif) !important;
    color: rgba(255, 255, 255, 0.90) !important;
}
.v3-lookup-input::placeholder {
    color: var(--muted, rgba(168, 179, 197, 0.55)) !important;
    opacity: 0.55 !important;
    font-family: var(--sans, "Satoshi", system-ui, sans-serif) !important;
    font-weight: 400;
}
.v3-lookup-input::-webkit-input-placeholder {
    color: var(--muted, rgba(168, 179, 197, 0.55)) !important;
    opacity: 0.55 !important;
}

/* Status pill — hidden when empty or [hidden] */
.v3-lookup-status {
    max-width: 720px;
    margin: 14px auto 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    text-align: center;
}
.v3-lookup-status[hidden] { display: none !important; }
.v3-lookup-status:empty   { display: none !important; }
.v3-lookup-status.is-error {
    color: #ff6f7a;
    background: rgba(255, 111, 122, 0.08);
    border-color: rgba(255, 111, 122, 0.22);
}
.v3-lookup-status.is-loading { color: var(--accent, #5dc8f0); }

/* ---------- RESULT WRAP ---------- */
.v3-lookup-app {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px 40px;
}
.v3-lookup-primary-hero { margin: 4px 0 18px; }

/* ---------- PRIMARY HERO CARD ----------
   Inherits .v3-primary-card 3-col grid (96px avatar | 1fr text |
   auto aside).  We only override the aside (right col) contents
   — the count block replaces the referral chip.                 */

/* Wallet icon inside empty avatar (no primary) */
.v3-lookup-hero-card .v3-primary-avatar-empty i {
    color: rgba(255, 255, 255, 0.32);
    font-size: 40px;
}
.v3-lookup-hero-card .v3-primary-avatar-empty .v3-primary-avatar-initials i {
    font-size: 40px;
}

/* Name row — primary domain + verified badge */
.v3-lookup-hero-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
/* Primary domain name — Satoshi display (matches landing typography).
   Kept bold weight for legibility.  Only .tld suffix stays mono to
   preserve the .xrp / .xrpfi / .xrpl visual tag treatment used on
   landing (.sg-name > .tld pattern in homepage.css).                */
.v3-lookup-hero-name {
    font-family: var(--display-font, "Satoshi", system-ui, sans-serif);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink, #ffffff);
    text-decoration: none;
    letter-spacing: var(--track-display, -0.025em);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 160ms ease;
}
.v3-lookup-hero-name:hover { color: var(--accent, #5dc8f0); }
.v3-lookup-hero-name-none {
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--sans, "Satoshi", system-ui, sans-serif);
    font-size: 20px;
    font-style: italic;
}
.v3-lookup-hero-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(95, 227, 168, 0.14);
    border: 1px solid rgba(95, 227, 168, 0.32);
    color: var(--green, #5fe3a8);
    font-family: var(--display-font, "Satoshi", system-ui, sans-serif);
    font-size: var(--caption, 10.5px);
    font-weight: 700;
    letter-spacing: var(--track-caption, 0.08em);
    text-transform: uppercase;
}
.v3-lookup-hero-verified i { font-size: 10px; }

/* Address pill — inherits .v3-primary-pill */
.v3-lookup-hero-addr {
    padding: 6px 12px;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.90);
    margin-top: 2px;
}
.v3-lookup-hero-addr > i {
    color: var(--accent, #5dc8f0);
    font-size: 11px;
}
.v3-lookup-hero-addr-text {
    letter-spacing: 0.02em;
    color: #ffffff;
}
.v3-lookup-hero-addr .v3-copy { margin-left: 2px; }
.v3-lookup-hero-addr-explorer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 160ms ease, background 160ms ease;
}
.v3-lookup-hero-addr-explorer:hover {
    color: var(--accent, #5dc8f0);
    background: rgba(255, 255, 255, 0.05);
}
.v3-lookup-hero-addr-explorer i { font-size: 11px; }

/* Right column — count block (replaces .v3-primary-aside referral) */
.v3-lookup-hero-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    gap: 4px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 72px;
}
.v3-lookup-hero-count {
    font-family: var(--display-font, "Satoshi", system-ui, sans-serif);
    font-size: var(--display, clamp(28px, 3vw, 40px));
    font-weight: 700;
    line-height: 1;
    color: var(--accent, #5dc8f0);
    letter-spacing: var(--track-mega, -0.035em);
}
.v3-lookup-hero-count-label {
    font-family: var(--display-font, "Satoshi", system-ui, sans-serif);
    font-size: var(--caption, 10.5px);
    font-weight: 700;
    letter-spacing: var(--track-caption, 0.08em);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

/* ---------- LOOKUP CARD — inherits .v3-mydomain-card, no menu ---------- */
.v3-lookup-card { text-decoration: none; color: inherit; }
.v3-lookup-card:hover { color: inherit; }

/* ---------- PAGER ---------- */
.v3-lookup-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 0;
}
.v3-lookup-pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.v3-lookup-pager-btn:hover:not(:disabled) {
    background: rgba(37, 170, 225, 0.10);
    border-color: rgba(37, 170, 225, 0.32);
    color: var(--accent, #5dc8f0);
}
.v3-lookup-pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.v3-lookup-pager-info {
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.60);
    letter-spacing: 0.04em;
}

/* ---------- EMPTY STATE ---------- */
.v3-lookup-empty-wrap { padding: 60px 20px; }
.v3-lookup-empty-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 42px 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-align: center;
}
.v3-lookup-empty-icon {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
}
.v3-lookup-empty-title {
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
}
.v3-lookup-empty-desc {
    font-size: 13px;
    color: var(--muted, #a8b3c5);
    line-height: 1.5;
    margin: 0 0 20px;
}
.v3-lookup-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent, #25aae1), var(--accent-soft, #5dc8f0));
    color: #050608;
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}
.v3-lookup-empty-cta:hover { opacity: 0.92; }

/* ---------- LOADING STATE ---------- */
.v3-lookup-loading-wrap { padding: 20px; }
.v3-lookup-loading-summary,
.v3-lookup-loading-card {
    border-radius: 14px;
    background:
        linear-gradient(90deg,
            rgba(255,255,255,0.04) 0%,
            rgba(255,255,255,0.08) 50%,
            rgba(255,255,255,0.04) 100%);
    background-size: 200% 100%;
    animation: v3-lookup-shimmer 1.4s linear infinite;
}
.v3-lookup-loading-summary { height: 132px; margin: 0 auto 18px; max-width: 1120px; }
.v3-lookup-loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    max-width: 1120px;
    margin: 0 auto;
}
.v3-lookup-loading-card { height: 200px; }
@keyframes v3-lookup-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- MOBILE ---------- */
@media (max-width: 720px) {
    .v3-lookup-hero-title { font-size: 24px; }
    .v3-lookup-hero-sub { font-size: 13px; }
    .v3-lookup-app { padding: 0 12px 32px; }
    .v3-lookup-hero-aside {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 10px;
        margin-top: 10px;
        align-items: flex-start;
        text-align: left;
        flex-direction: row;
        gap: 10px;
        align-items: baseline;
        min-height: 0;
    }
    .v3-lookup-hero-count { font-size: 28px; }
    .v3-lookup-hero-name { font-size: 20px; }
}
