/* =======================================================
   domain-page.css  — Learntiv Domain Page
   ======================================================= */

/* ── Page shell ── */
.domain-page {
    padding-top: 66px;
    min-height: 100vh;
    background: var(--navy, #060d1f);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.domain-hero {
    position: relative;
    padding: 5rem 0 4rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
}
.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}
.hero-orb1 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(79,70,229,.18) 0%, transparent 70%);
    top: -180px; left: 50%; transform: translateX(-60%);
}
.hero-orb2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(6,182,212,.12) 0%, transparent 70%);
    bottom: -100px; right: 5%;
}
.domain-hero .container { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-block;
    font-size: .72rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--cyan, #06b6d4);
    background: rgba(6,182,212,.1);
    border: 1px solid rgba(6,182,212,.25);
    border-radius: 100px;
    padding: .3rem .9rem;
    margin-bottom: 1.25rem;
}
.domain-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--grey, #64748b);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}
.hero-search-hint {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted, #94a3b8);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 100px;
    padding: .45rem 1rem;
    animation: bobDown 2s ease-in-out infinite;
}
.hsh-arrow { font-size: 1rem; }
@keyframes bobDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ══════════════════════════════════════
   IFRAME SECTION
══════════════════════════════════════ */
.iframe-section {
    padding: 2.5rem 0 1.5rem;
}
.iframe-shell {
    position: relative;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(79,70,229,.55) 0%,
        rgba(6,182,212,.25) 50%,
        rgba(255,255,255,.06) 100%);
    box-shadow:
        0 0 0 1px rgba(79,70,229,.07),
        0 8px 40px rgba(79,70,229,.12),
        0 40px 80px rgba(6,13,31,.3);
}
.iframe-shell::after {
    content: '';
    position: absolute; inset: 1px;
    border-radius: 23px;
    background: #0a1224;
    pointer-events: none; z-index: 0;
}
.iframe-glow {
    position: absolute;
    width: 600px; height: 260px;
    background: radial-gradient(ellipse, rgba(79,70,229,.14) 0%, transparent 70%);
    top: -90px; left: 50%; transform: translateX(-50%);
    border-radius: 50%; pointer-events: none; z-index: 0;
}
.iframe-scroll-wrap {
    position: relative; z-index: 1;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
}
.iframe-scroll-wrap iframe {
    display: block; border: none;
    width: 100%;
    /* Starts at 480px; JS expands to 2400px after search */
    min-height: 480px;
    height: 480px;
    background: #ffffff;
    border-radius: 22px;
    transition: height .5s ease;
}

/* Loader */
.iframe-loader {
    position: absolute; inset: 1px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1rem;
    background: rgba(6,13,31,.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 22px; z-index: 20;
    transition: opacity .4s ease;
}
.iframe-loader.hidden { opacity: 0; pointer-events: none; }
.iframe-loader p {
    font-size: .82rem; color: var(--muted, #94a3b8); margin: 0;
    font-weight: 500; letter-spacing: .03em;
}

/* Triple-ring spinner */
.tri-spinner {
    position: relative;
    width: 52px; height: 52px;
}
.ts-ring {
    position: absolute; border-radius: 50%;
    border: 2.5px solid transparent;
    animation: tspin .9s linear infinite;
}
.ts-r1 {
    inset: 0;
    border-top-color: #6366f1;
    animation-duration: .9s;
}
.ts-r2 {
    inset: 8px;
    border-top-color: #06b6d4;
    animation-duration: 1.2s;
    animation-direction: reverse;
}
.ts-r3 {
    inset: 16px;
    border-top-color: #34d399;
    animation-duration: .7s;
}
@keyframes tspin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════
   TLD PILLS
══════════════════════════════════════ */
.tld-strip {
    padding: 1.5rem 0 2.5rem;
}
.tld-strip-label {
    font-size: .72rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted, #94a3b8);
    margin-bottom: .85rem;
    text-align: center;
}
.tld-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
}
.tld-pill {
    display: flex; flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .75rem 1.25rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
    min-width: 80px;
    text-align: center;
}
.tld-pill:hover {
    border-color: rgba(79,70,229,.45);
    background: rgba(79,70,229,.08);
    transform: translateY(-3px);
}
.tld-pill-hot {
    border-color: rgba(6,182,212,.3);
    background: rgba(6,182,212,.06);
}
.tld-pill-hot:hover {
    border-color: rgba(6,182,212,.6);
    background: rgba(6,182,212,.12);
}
.tp-ext {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem; font-weight: 700;
    color: var(--white, #fff);
    letter-spacing: -.3px;
}
.tp-price {
    font-size: .7rem; font-weight: 500;
    color: var(--cyan, #06b6d4);
}

/* ══════════════════════════════════════
   WHY SECTION
══════════════════════════════════════ */
.why-section {
    padding: 4rem 0;
    background: rgba(255,255,255,.02);
    border-top: 1px solid var(--border, rgba(255,255,255,.08));
    border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
}
.why-section .section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}
.why-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.why-card:hover {
    border-color: rgba(79,70,229,.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(79,70,229,.1);
}
.why-icon {
    font-size: 1.8rem;
    margin-bottom: .75rem;
    display: block;
}
.why-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .95rem; font-weight: 700;
    color: var(--white, #fff);
    margin-bottom: .5rem;
    letter-spacing: -.2px;
}
.why-card p {
    font-size: .83rem;
    color: var(--muted, #94a3b8);
    line-height: 1.7;
    margin: 0;
}
.why-card strong { color: var(--text, #e2e8f0); }

/* Tip card */
.why-card-tip {
    border-color: rgba(6,182,212,.2);
    background: rgba(6,182,212,.05);
    grid-column: span 1;
}
.why-card-tip:hover { border-color: rgba(6,182,212,.4); }
.why-tip-label {
    font-size: .75rem; font-weight: 700;
    color: var(--cyan, #06b6d4);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .6rem;
}
.why-tip-examples {
    display: flex; flex-wrap: wrap;
    gap: .4rem; margin-top: .85rem;
}
.why-tip-examples span {
    font-size: .7rem; font-weight: 700;
    color: var(--cyan, #06b6d4);
    background: rgba(6,182,212,.1);
    border: 1px solid rgba(6,182,212,.2);
    border-radius: 6px;
    padding: .2rem .55rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* ══════════════════════════════════════
   PRICE TABLE
══════════════════════════════════════ */
.price-table-section {
    padding: 4rem 0;
}
.price-table-section .section-head {
    text-align: center;
    margin-bottom: 2rem;
}
.price-table-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(79,70,229,.4) transparent;
}
.price-table-wrap::-webkit-scrollbar { height: 5px; }
.price-table-wrap::-webkit-scrollbar-track { background: transparent; }
.price-table-wrap::-webkit-scrollbar-thumb { background: rgba(79,70,229,.4); border-radius: 10px; }

.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}
.price-table thead th {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border: none;
    white-space: nowrap;
}
.price-table thead th:last-child { text-align: right; }

.price-table tbody tr {
    transition: background .15s;
}
.price-table tbody tr:nth-child(even) td {
    background: rgba(255,255,255,.025);
}
.price-table tbody tr:nth-child(odd) td {
    background: rgba(255,255,255,.015);
}
.price-table tbody tr:hover td {
    background: rgba(79,70,229,.1);
}
.price-table tbody td {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: .855rem;
    color: var(--muted, #94a3b8);
    vertical-align: middle;
    white-space: nowrap;
}
.price-table tbody td:last-child { text-align: right; }

/* Popular row highlight */
.row-popular td {
    background: rgba(79,70,229,.08) !important;
    border-left: 3px solid #6366f1;
}
.row-popular:hover td {
    background: rgba(79,70,229,.14) !important;
}

.tld-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .9rem; font-weight: 700;
    color: var(--white, #fff);
    letter-spacing: -.2px;
}
.price-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .9rem; font-weight: 700;
    color: var(--cyan, #06b6d4);
}
.icon-yes {
    color: #34d399;
    font-weight: 700;
    font-size: 1rem;
}
.btn-order {
    display: inline-block;
    font-size: .75rem; font-weight: 700;
    color: #a5b4fc;
    background: rgba(79,70,229,.15);
    border: 1px solid rgba(79,70,229,.3);
    border-radius: 8px;
    padding: .35rem .85rem;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn-order:hover {
    background: rgba(79,70,229,.3);
    color: #c7d2fe;
    border-color: rgba(99,102,241,.5);
}

/* ══════════════════════════════════════
   DUAL CARDS
══════════════════════════════════════ */
.dual-cards-section {
    padding: 3.5rem 0;
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.02);
}
.dual-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.dual-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    border: 1px solid transparent;
    transition: transform .2s, box-shadow .2s;
}
.dual-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.dual-card-shield {
    background: rgba(99,102,241,.06);
    border-color: rgba(99,102,241,.2);
}
.dual-card-transfer {
    background: rgba(6,182,212,.05);
    border-color: rgba(6,182,212,.18);
}
.dc-icon { font-size: 2rem; flex-shrink: 0; margin-top: .1rem; }
.dc-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem; font-weight: 700;
    color: var(--white, #fff);
    margin-bottom: .5rem; letter-spacing: -.2px;
}
.dc-body p {
    font-size: .84rem;
    color: var(--muted, #94a3b8);
    line-height: 1.7; margin-bottom: .85rem;
}
.dc-link {
    font-size: .82rem; font-weight: 600;
    color: #818cf8; text-decoration: none;
    transition: color .2s;
}
.dc-link:hover { color: #a5b4fc; text-decoration: underline; text-underline-offset: 2px; }
.dc-link-cyan { color: var(--cyan, #06b6d4); }
.dc-link-cyan:hover { color: #67e8f9; }

/* ══════════════════════════════════════
   CTA
══════════════════════════════════════ */
.domain-cta {
    padding: 5rem 0;
    text-align: center;
}
.domain-cta .cta-inner { max-width: 560px; margin: 0 auto; }
.domain-cta h2 {
    font-size: clamp(1.6rem,3vw,2.25rem);
    font-weight: 800; letter-spacing: -1px;
    line-height: 1.2; margin-bottom: .85rem;
}
.domain-cta p {
    color: var(--grey, #64748b);
    font-size: .95rem; line-height: 1.7;
    margin-bottom: 1.75rem;
}
.cta-actions {
    display: flex; gap: .85rem;
    justify-content: center; flex-wrap: wrap;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why-card-tip { grid-column: span 2; }
}
@media (max-width: 640px) {
    .dual-cards { grid-template-columns: minmax(0, 1fr); }
    .why-grid { grid-template-columns: minmax(0, 1fr); }
    .why-card-tip { grid-column: span 1; }
    .domain-hero { padding: 3.5rem 0 2.5rem; }
    .tld-pills { gap: .45rem; }
    .tld-pill { min-width: 70px; padding: .6rem .85rem; }
}
@media (max-width: 480px) {
    .price-table thead th,
    .price-table tbody td { padding: .7rem .85rem; font-size: .78rem; }
    .domain-hero h1 { letter-spacing: -.8px; }
    .dual-card { padding: 1.5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-search-hint { animation: none; }
    .ts-ring { animation: none; }
    .why-card, .tld-pill, .dual-card { transition: none; }
}

/* ══════════════════════════════════════
   SEARCH BREADCRUMB (shown when ?search= param present)
══════════════════════════════════════ */
.search-breadcrumb {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    font-size: .82rem;
    flex-wrap: wrap;
}
.sb-label {
    color: var(--muted, #94a3b8);
    font-weight: 500;
}
.sb-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--cyan, #06b6d4);
    font-size: .9rem;
    background: rgba(6,182,212,.1);
    border: 1px solid rgba(6,182,212,.2);
    border-radius: 8px;
    padding: .2rem .7rem;
}
.sb-clear {
    color: var(--muted, #94a3b8);
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    padding: .2rem .55rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    transition: color .15s, border-color .15s;
}
.sb-clear:hover {
    color: #f87171;
    border-color: rgba(248,113,113,.3);
}

/* ── TLD pill as links (clickable extensions) ── */
a.tld-pill {
    text-decoration: none;
    color: inherit;
}
a.tld-pill:hover {
    border-color: rgba(79,70,229,.45);
    background: rgba(79,70,229,.08);
    transform: translateY(-3px);
}
a.tld-pill-hot:hover {
    border-color: rgba(6,182,212,.6);
    background: rgba(6,182,212,.12);
}

/* ── iframe — no fixed height constraint ── */
.iframe-scroll-wrap iframe {
    min-height: 380px;
    height: 380px; /* JS expands this */
}

/* ══════════════════════════════════════
   PAGE SEARCH BAR
══════════════════════════════════════ */
.domain-search-bar {
    margin: 2rem 0 0;
    padding: 1.75rem 2rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
/* Subtle indigo accent top line */
.domain-search-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #4f46e5);
    border-radius: 20px 20px 0 0;
}

/* Input row */
.dsb-inner {
    display: flex;
    gap: 0;
    align-items: stretch;
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.04);
    transition: border-color .2s, box-shadow .2s;
}
.dsb-inner:focus-within {
    border-color: rgba(99,102,241,.55);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.dsb-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    gap: .6rem;
    padding: 0 1rem;
    background: transparent;
}
.dsb-icon {
    font-size: 1rem;
    flex-shrink: 0;
    opacity: .5;
}
.dsb-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #f1f5f9;
    padding: .9rem 0;
    min-width: 0;
}
.dsb-input::placeholder { color: #64748b; font-weight: 400; }
.dsb-input.dsb-error { animation: dsb-shake .4s ease; }
@keyframes dsb-shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

.dsb-select {
    background: rgba(255,255,255,.06);
    border: none;
    border-left: 1px solid rgba(255,255,255,.08);
    border-right: 1px solid rgba(255,255,255,.08);
    color: #c7d2fe;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    padding: 0 .85rem;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
    -webkit-appearance: auto;
}
.dsb-select:focus { background: rgba(99,102,241,.12); }
.dsb-select option { background: #0d1730; color: #f1f5f9; }

.dsb-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    padding: 0 1.75rem;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: .01em;
    flex-shrink: 0;
    transition: background .2s, box-shadow .2s;
}
.dsb-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.dsb-btn:active { transform: scale(.98); }

/* TLD hint chips */
.dsb-tld-hints {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .85rem;
    flex-wrap: wrap;
}
.dsb-hint-label {
    font-size: .72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-right: .2rem;
    flex-shrink: 0;
}
.dsb-tld-chip {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;
    color: #94a3b8;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .65rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.dsb-tld-chip:hover {
    background: rgba(79,70,229,.15);
    border-color: rgba(99,102,241,.35);
    color: #c7d2fe;
}
.dsb-tld-chip.hot {
    border-color: rgba(6,182,212,.25);
    color: #06b6d4;
    background: rgba(6,182,212,.06);
}
.dsb-tld-chip.hot:hover {
    background: rgba(6,182,212,.15);
    border-color: rgba(6,182,212,.5);
}

/* Responsive */
@media (max-width: 640px) {
    .domain-search-bar { padding: 1.25rem 1rem; }
    .dsb-input { font-size: .9rem; }
    .dsb-btn { padding: 0 1.1rem; font-size: .85rem; }
    .dsb-select { padding: 0 .5rem; font-size: .8rem; }
}
@media (max-width: 420px) {
    .dsb-inner { flex-wrap: wrap; border-radius: 12px; }
    .dsb-input-wrap { padding: .75rem 1rem; }
    .dsb-select { border-left: none; border-top: 1px solid rgba(255,255,255,.08); width: 100%; padding: .6rem .85rem; }
    .dsb-btn { width: 100%; padding: .75rem; border-radius: 0 0 10px 10px; border-top: 1px solid rgba(255,255,255,.08); }
}
