/* ------------- reset ------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #222;
    background: #f5f7fa;
}
img { max-width: 100%; height: auto; }
a { color: #0d6efd; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0 0 0.6em; line-height: 1.2; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: #6b7280; }
.small { font-size: 0.875rem; }
ul { padding-left: 1.2rem; }

/* ------------- header ------------- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #0d6efd;
}
.brand:hover { text-decoration: none; }
.brand { display:inline-flex; align-items:center; gap:.5rem; }
.brand img { max-height:38px; width:auto; border-radius:10px; object-fit:contain; }
.brand span { overflow:hidden; text-overflow:ellipsis; }
.main-nav { display: flex; gap: 1rem; flex: 1; }
.main-nav a {
    color: #374151;
    font-weight: 500;
    padding: 0.4rem 0.25rem;
}
.main-nav a.active { color: #0d6efd; border-bottom: 2px solid #0d6efd; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.cart-link {
    background: #f1f5f9;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 500;
    color: #374151;
}
.cart-link:hover { background: #e2e8f0; text-decoration: none; }
.cart-count {
    background: #0d6efd;
    color: #fff;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 1.1rem;
    cursor: pointer;
}

/* ------------- buttons ------------- */
.btn {
    display: inline-block;
    background: #0d6efd;
    color: #fff;
    border: 1px solid #0d6efd;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.25;
    transition: background 0.15s, color 0.15s, border 0.15s;
}
.btn:hover { background: #0856c0; border-color: #0856c0; color: #fff; text-decoration: none; }
.btn-primary { background: #0d6efd; border-color: #0d6efd; }
.btn-ghost { background: transparent; color: #0d6efd; border-color: transparent; }
.btn-ghost:hover { background: #eff6ff; color: #0d6efd; }
.btn-outline { background: transparent; color: #0d6efd; }
.btn-outline:hover { background: #0d6efd; color: #fff; }
.btn-danger { background: #dc2626; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-link { background: transparent; color: #0d6efd; border: none; padding: 0.45rem 0.5rem; }
.btn-link:hover { background: transparent; text-decoration: underline; color: #0856c0; }
.btn-link.btn-danger { color: #dc2626; }
.btn-lg { font-size: 1.05rem; padding: 0.75rem 1.4rem; }
.btn-sm { font-size: 0.85rem; padding: 0.3rem 0.7rem; }
.btn-block { display: block; width: 100%; }

/* ------------- hero ------------- */
.hero {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    padding: 4rem 0 5rem;
    text-align: center;
}
.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0 0 0.5rem;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 0.6rem; }
.hero-subtitle { font-size: 1.15rem; opacity: 0.9; margin: 0 0 2rem; }

.search-form {
    display: flex;
    background: #fff;
    border-radius: 10px;
    padding: 0.4rem;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.search-form input {
    flex: 1;
    border: none;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    outline: none;
    color: #111;
    background: transparent;
}
.search-form .btn { border-radius: 7px; }

.featured-tlds {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.tld-pill {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.95rem;
}
.tld-pill strong { font-weight: 600; margin-right: 0.35rem; }
.tld-pill em { font-style: normal; opacity: 0.85; }

/* ------------- page hero ------------- */
.page-hero {
    background: #fff;
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}
.page-hero h1 { margin-bottom: 0.4rem; }
.page-hero .search-form {
    margin-top: 1.4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ------------- features ------------- */
.features { padding: 3rem 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.feature {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.feature-icon { font-size: 2rem; margin-bottom: 0.5rem; }

/* ------------- plans ------------- */
.plans-section {
    background: #fff;
    padding: 3.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: #6b7280; margin-bottom: 2.5rem; }
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.plan-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.15s, box-shadow 0.15s;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,0.08); }
.plan-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6610f2;
    margin-bottom: 0.5rem;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
}
.plan-price .amount { font-size: 1.8rem; font-weight: 700; color: #0d6efd; }
.plan-price .period { color: #6b7280; }
.plan-yearly { margin: 0 0 1rem; color: #6b7280; font-size: 0.9rem; }
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
    flex: 1;
}
.plan-features li {
    padding: 0.3rem 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.95rem;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: '✓ '; color: #16a34a; font-weight: 700; }
.cycle-toggle { display: flex; gap: 1rem; margin: 0.5rem 0 1rem; font-size: 0.9rem; }

/* ------------- cta ------------- */
.cta-section { padding: 3rem 1rem; }
.cta-card {
    background: linear-gradient(135deg, #16a34a, #0891b2);
    color: #fff;
    border-radius: 14px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-card h2 { margin: 0 0 0.3rem; }
.cta-card .btn { background: #fff; color: #16a34a; border-color: #fff; }
.cta-card .btn:hover { background: #f3f4f6; color: #0d6efd; }

/* ------------- tables ------------- */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive .table { min-width: 720px; }
.table th, .table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}
.table thead th { background: #f9fafb; font-weight: 600; font-size: 0.9rem; color: #374151; }
.table tbody tr:hover { background: #f9fafb; }
.table tfoot th { background: #f9fafb; }
.table-striped tbody tr:nth-child(odd) { background: #fafbfc; }

/* ------------- badges ------------- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}
.badge-success, .badge-paid { background: #dcfce7; color: #166534; }
.badge-danger, .badge-failed, .badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-muted { background: #e5e7eb; color: #374151; }
.badge-pending { background: #dbeafe; color: #1e40af; }

/* ------------- results list ------------- */
.results-list { margin-top: 1.5rem; }
.result-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.result-row.result-available { border-left: 4px solid #16a34a; }
.result-row.result-taken { border-left: 4px solid #dc2626; opacity: 0.85; }
.result-row.result-invalid, .result-row.result-unsupported { border-left: 4px solid #f59e0b; }
.result-name strong { font-size: 1.1rem; margin-right: 0.6rem; }
.result-price strong { font-size: 1.2rem; color: #0d6efd; }

/* ------------- forms / auth ------------- */
.auth-page { padding: 3rem 1rem; }
.auth-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.auth-card h1 { margin-bottom: 0.4rem; }
.auth-card label, .form-card label {
    display: block;
    margin: 0.9rem 0 0;
}
.auth-card label > span, .form-card label > span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #374151;
}
.auth-card input, .form-card input, .form-card textarea, .form-card select {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 1rem;
    background: #fff;
}
.auth-card input:focus, .form-card input:focus, .form-card textarea:focus, .form-card select:focus {
    outline: 2px solid #93c5fd;
    border-color: #0d6efd;
}
.auth-card .btn { margin-top: 1.2rem; }
.auth-alt { text-align: center; color: #6b7280; margin-top: 1rem; }
.form-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-top: 1.5rem;
}
.row-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.8rem;
}
.row-form input { flex: 1; min-width: 8em; padding: 0.45rem 0.6rem; border: 1px solid #d1d5db; border-radius: 6px; }
.inline-form { display: inline-block; margin: 0; }
.inline-checkbox { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ------------- flash ------------- */
.flash-stack { padding: 1rem 1rem 0; }
.flash {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}
.flash-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.flash-error { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.flash-info { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.flash-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }

/* ------------- account / admin ------------- */
.account-page, .admin-page { padding: 2rem 0; }
.account-nav {
    display: flex;
    gap: 0.4rem;
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
    background: #fff;
    padding: 0.4rem;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.account-nav a {
    padding: 0.5rem 0.9rem;
    border-radius: 7px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
}
.account-nav a:hover { background: #f3f4f6; text-decoration: none; }
.account-nav a.active { background: #0d6efd; color: #fff; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 0 0 1.5rem;
}
.stat-card {
    background: #fff;
    padding: 1.1rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stat-label { display: block; color: #6b7280; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { display: block; font-size: 1.6rem; font-weight: 700; margin-top: 0.2rem; }
.stat-value.small { font-size: 1rem; }

/* ------------- cart / checkout ------------- */
.cart-table tfoot th { font-size: 1.05rem; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; gap: 1rem; flex-wrap: wrap; }
.checkout-page { padding: 2rem 0; }
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}
.checkout-summary, .checkout-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.summary-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e5e7eb;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    border-top: 2px solid #111;
    padding-top: 0.6rem;
}
.payment-option {
    display: block;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 0.4rem 0;
    cursor: pointer;
}
.payment-option input { margin-right: 0.5rem; }
.info-box {
    background: #fef9c3;
    border: 1px solid #fde047;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ------------- contact / payment grids ------------- */
.contact-grid, .payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.payment-card {
    background: #fff;
    padding: 1.1rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ------------- filter pills ------------- */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0;
}
.filter-pills a {
    background: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.filter-pills a:hover { text-decoration: none; background: #f9fafb; }
.filter-pills a.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }

/* ------------- static pages ------------- */
.static-page { padding: 2rem 0; max-width: 800px; }
.static-page details { margin-bottom: 0.6rem; background: #fff; padding: 0.8rem 1rem; border-radius: 8px; }
.static-page details[open] { box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* ------------- error ------------- */
.error-page { padding: 4rem 0; text-align: center; }
.error-page h1 { font-size: 5rem; color: #0d6efd; margin: 0; }

/* ------------- footer ------------- */
.site-footer {
    background: #111827;
    color: #cbd5e1;
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 2rem;
}
.site-footer h4 { color: #fff; margin: 0 0 0.5rem; }
.site-footer h5 { color: #fff; margin: 0 0 0.6rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 0.25rem 0; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1f2937; padding-top: 1rem; margin-top: 2rem; text-align: center; font-size: 0.9rem; color: #6b7280; }

/* ------------- responsive ------------- */
@media (max-width: 880px) {
    .nav-toggle { display: inline-block; }
    .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 0.6rem 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    .main-nav a { padding: 0.7rem 0; border-bottom: 1px solid #f3f4f6; }
    body.nav-open .main-nav { display: flex; }
    .nav-wrap { position: relative; }
    .nav-actions { margin-left: auto; }
    .checkout-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .result-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .search-form { flex-direction: column; gap: 0.5rem; padding: 0.6rem; }
    .search-form .btn { border-radius: 7px; }
}

/* ============================================================ */
/* === Modern refresh (v2) — appended overrides + new styles == */
/* ============================================================ */

:root {
    --brand: #6d28d9;
    --brand-2: #a855f7;
    --brand-dark: #4c1d95;
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --text: #0f172a;
    --text-soft: #475569;
    --muted: #94a3b8;
    --border: #e2e8f0;
    --card: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
    --shadow: 0 4px 6px -1px rgba(15,23,42,0.07), 0 2px 4px -1px rgba(15,23,42,0.04);
    --shadow-lg: 0 10px 30px -5px rgba(15,23,42,0.10), 0 4px 12px -2px rgba(15,23,42,0.06);
    --radius: 14px;
    --radius-sm: 10px;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.65rem; }
a { color: var(--brand); transition: color 0.15s; }
a:hover { color: var(--brand-dark); }
.brand { color: var(--brand); font-size: 1.4rem; }
.main-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }

.btn { transition: transform 0.1s, box-shadow 0.15s, background 0.15s; border-radius: 10px; }
.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    border: none;
    box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 4px 14px -4px rgba(109,40,217,0.45);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { color: var(--text-soft); }
.btn-ghost:hover { background: var(--bg-soft); }

.site-header { background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); box-shadow: none; }

.announcement-bar { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 0.55rem 0; font-size: 0.93rem; text-align: center; }
.promo-banner {
    padding: 1rem 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(168,85,247,0.18), transparent 28rem),
        radial-gradient(circle at 85% 70%, rgba(14,165,233,0.16), transparent 24rem),
        linear-gradient(135deg, #0f172a 0%, #312e81 48%, #6d28d9 100%);
    color: #fff;
    overflow: hidden;
}
.promo-banner-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 128px;
}
.promo-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.65;
    pointer-events: none;
}
.promo-orb-one {
    width: 110px;
    height: 110px;
    right: 18%;
    top: -58px;
    background: rgba(255,255,255,0.12);
}
.promo-orb-two {
    width: 70px;
    height: 70px;
    right: 4%;
    bottom: -30px;
    background: rgba(34,211,238,0.2);
}
.promo-content, .promo-actions { position: relative; z-index: 1; }
.promo-chip {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.35rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 0.82rem;
    font-weight: 700;
}
.promo-kicker {
    margin: 0 0 0.25rem;
    color: #c4b5fd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.promo-banner h2 {
    color: #fff;
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 2rem);
}
.promo-banner p:last-child {
    max-width: 760px;
    margin: 0.35rem 0 0;
    color: #e0e7ff;
}
.promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}
.btn-light {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-light:hover {
    background: #fff;
    color: var(--brand-dark);
}

.hero {
    background: linear-gradient(135deg, #0f0a2c 0%, #2a1a5c 50%, #6d28d9 100%);
    color: #fff;
    padding: 5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(168,85,247,0.35) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(76,29,149,0.35) 0%, transparent 50%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: center;
}
.hero-copy { min-width: 0; }
.hero .eyebrow { color: #c4b5fd; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin: 0.5rem 0 1rem; }
.hero-subtitle { color: #ddd6fe; font-size: 1.15rem; max-width: 640px; }
.hero .search-form { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.15); padding: 0.55rem; border-radius: 16px; backdrop-filter: blur(8px); box-shadow: 0 20px 60px -20px rgba(0,0,0,0.4); }
.hero .search-form input { background: #fff; border-radius: 10px; padding: 0.95rem 1.1rem; font-size: 1rem; }
.hero .search-form .btn { border-radius: 10px; }
.featured-tlds { margin-top: 1.5rem; }
.tld-pill { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); color: #fff; padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.9rem; }
.tld-pill strong { color: #fff; }
.tld-pill em { color: #c4b5fd; font-style: normal; margin-left: 0.4rem; }
.hero-panel {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: 0 30px 70px -40px rgba(0,0,0,0.75);
    backdrop-filter: blur(14px);
}
.hero-panel h2 { color: #fff; margin: 0.35rem 0 1rem; font-size: 1.35rem; }
.panel-chip {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: rgba(255,255,255,0.14);
    color: #ddd6fe;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.deal-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.deal-row strong { color: #fff; font-size: 1.05rem; }
.deal-row span { color: #fef3c7; font-weight: 800; }
.deal-row small { color: #ddd6fe; margin-left: 0.15rem; font-weight: 600; }
.hero-panel .btn { margin-top: 1rem; }
.trust-strip {
    background: var(--card);
    border-bottom: 1px solid var(--border);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.trust-grid div {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}
.trust-grid span { color: var(--text-soft); font-size: 0.88rem; }

.features { padding: 4rem 1rem; }
.features-grid { gap: 1.25rem; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.feature h3 { font-size: 1.1rem; }

.section-title { font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 2.5rem; }
.plans-grid { gap: 1.5rem; }
.plan-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-2); }
.plan-card .plan-price .amount { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 2.4rem; }
.workflow-section { padding: 4rem 0; background: linear-gradient(180deg, var(--bg), #fff); }
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.workflow-grid article {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.workflow-grid span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-weight: 800;
}
.home-cta { padding: 4rem 0; }
.home-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #4c1d95);
    box-shadow: var(--shadow-lg);
}
.home-cta-card h2, .home-cta-card p { color: inherit; margin-top: 0; }
.home-cta-card .eyebrow { color: #c4b5fd; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.home-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }

.results-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.result-row { background: var(--card); border-radius: var(--radius-sm); padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); border-left: 4px solid transparent; }
.result-available, .result-row.result-available { border-left-color: #16a34a; }
.result-taken, .result-row.result-taken { border-left-color: #dc2626; opacity: 0.85; }
.result-unknown, .result-row.result-unknown { border-left-color: #f59e0b; }
.result-invalid, .result-row.result-invalid { border-left-color: #9ca3af; }
.result-name strong { font-size: 1.05rem; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-muted { background: var(--bg-soft); color: var(--text-soft); }
.badge-open { background: #dbeafe; color: #1e40af; }
.badge-waiting { background: #fef3c7; color: #92400e; }
.badge-answered { background: #dcfce7; color: #166534; }
.badge-closed { background: #e5e7eb; color: #374151; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-paid { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #f3f4f6; color: #4b5563; }
.badge-failed { background: #fee2e2; color: #991b1b; }

/* Checkout grid */
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: start;
}
.checkout-main { display: flex; flex-direction: column; gap: 1.5rem; }
.checkout-summary {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
}
.summary-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.summary-list li { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px solid var(--border); gap: 0.5rem; }
.summary-list li:last-child { border-bottom: none; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; padding: 0.75rem 0; border-top: 2px solid var(--text); margin-bottom: 1rem; }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.domain-config { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem 1.25rem; margin-bottom: 1rem; }
.domain-config legend { font-weight: 600; padding: 0 0.5rem; }
.ns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ns-grid label span { font-size: 0.85rem; color: var(--text-soft); display: block; margin-bottom: 0.25rem; }
.ns-grid label small { color: var(--muted); font-weight: 400; }
.ns-grid input { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 8px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.92rem; }
.ns-grid input:focus { outline: 2px solid var(--brand-2); outline-offset: -1px; border-color: var(--brand); }
.req { color: #dc2626; font-style: normal; font-weight: 700; }

.pay-methods { display: flex; flex-direction: column; gap: 0.6rem; }
.pay-method {
    display: flex; align-items: center; gap: 0.8rem;
    background: var(--bg-soft); border: 1.5px solid transparent;
    border-radius: var(--radius-sm); padding: 0.85rem 1.1rem;
    cursor: pointer; transition: all 0.15s;
}
.pay-method:hover { background: #fff; border-color: var(--border); }
.pay-method:has(input:checked) { background: #faf5ff; border-color: var(--brand); }
.pay-method input { accent-color: var(--brand); width: 18px; height: 18px; }
.pay-method-body { display: flex; flex-direction: column; gap: 0.1rem; }
.pay-method-label { font-weight: 600; }
.pay-method-details { color: var(--text-soft); }

.pay-instructions { background: linear-gradient(135deg, #faf5ff, #ede9fe); border: 1px solid #ddd6fe; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.pay-instructions h2 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--brand-dark); }
.pay-amount, .pay-detail { display: flex; justify-content: space-between; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px dashed #c4b5fd; gap: 1rem; }
.pay-amount span, .pay-detail span { color: var(--text-soft); }
.pay-amount strong { font-size: 1.6rem; color: var(--brand-dark); }
.pay-help { color: var(--text-soft); margin: 0.8rem 0 0; font-size: 0.95rem; }

.ns-list { margin-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.ns-list small { color: var(--text-soft); font-size: 0.82rem; }
.ns-list small strong { color: var(--text); }

.order-meta { color: var(--text-soft); margin-bottom: 1.5rem; }
.order-meta code, .pay-detail code { background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.06); padding: 0.15rem 0.45rem; border-radius: 4px; font-size: 0.95em; }

/* Settings page */
.form-stack { display: flex; flex-direction: column; gap: 1.5rem; max-width: 760px; }
.form-stack label { display: block; margin-bottom: 0.9rem; }
.form-stack label > span { font-weight: 500; display: block; margin-bottom: 0.25rem; color: var(--text-soft); font-size: 0.9rem; }
.form-stack input[type="text"], .form-stack input[type="email"], .form-stack select, .form-stack textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus {
    outline: 2px solid var(--brand-2); outline-offset: -1px; border-color: var(--brand);
}
.settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.toggle { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0; }
.toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.toggle span { color: var(--text); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.grid-2 .span-2 { grid-column: span 2; }

.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.alert-warning { background: #fef3c7; color: #78350f; border: 1px solid #fcd34d; }
.account-verify-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.account-verify-alert form { margin: 0; }

.cta-card { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.cta-card a.btn-primary { background: #fff; color: var(--brand); border: none; }
.cta-card a.btn-primary:hover { background: #faf5ff; }

.account-nav a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 760px) {
    .hero-grid { grid-template-columns: 1fr; }
    .trust-grid, .workflow-grid { grid-template-columns: 1fr; }
    .home-cta-card { display: block; }
    .home-cta-actions { justify-content: flex-start; margin-top: 1rem; }
    .promo-banner-inner { grid-template-columns: 1fr; }
    .promo-actions { justify-content: flex-start; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .ns-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-2 .span-2 { grid-column: span 1; }
    .page-heading-row, .ticket-hero { display: block; }
    .ticket-admin-grid { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-quick-stats { grid-template-columns: 1fr; }
    .profile-hero { align-items: flex-start; }
    .profile-actions { justify-content: flex-start; flex-wrap: wrap; }
    .table { display: block; overflow-x: auto; white-space: nowrap; }
    .account-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; }
    .account-nav a { flex: 0 0 auto; }
    .card-list { grid-template-columns: 1fr; }
    .result-row, .dh-result-row { align-items: flex-start; }
    .auth-code-review-form { grid-template-columns: 1fr; min-width: 0; }
}

/* v3 additions: OAuth buttons, domain cards, DNS table */
.oauth-divider { display: flex; align-items: center; gap: 0.75rem; color: var(--text-soft); font-size: 0.85rem; margin: 1.25rem 0 0.75rem; }
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.oauth-buttons { display: flex; flex-direction: column; gap: 0.55rem; }
.oauth-btn { text-align: center; }
.oauth-google { border-color: #ea4335; color: #ea4335; }
.oauth-google:hover { background: rgba(234,67,53,0.08); }
.oauth-facebook { border-color: #1877f2; color: #1877f2; }
.oauth-facebook:hover { background: rgba(24,119,242,0.08); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: span 1; } }

.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.domain-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.domain-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.domain-card header h2 { font-size: 1.15rem; margin: 0; word-break: break-all; }
.domain-card dl.meta { display: grid; gap: 0.4rem; margin: 0; font-size: 0.9rem; }
.domain-card dl.meta dt { color: var(--text-soft); font-weight: 500; }
.domain-card dl.meta dd { margin: 0 0 0.35rem; color: var(--text); }
.domain-card footer { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.domain-card-note {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
}
.inline-form { display: inline-flex; margin: 0; }
.auth-code-card { margin-top: 1rem; }
.auth-code-mini-card,
.auth-code-row,
.auth-code-request-row {
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08));
    box-shadow: var(--shadow-sm);
}
.auth-code-mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
}
.auth-code-mini-card small,
.auth-customer-cell a { display: block; color: var(--text-soft); }
.auth-code-feature-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1rem;
    align-items: center;
}
.auth-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}
.auth-code-row code { display: block; margin-top: 0.35rem; font-size: 1rem; }
.auth-code-request-list { display: grid; gap: 0.85rem; padding: 1rem; }
.auth-code-request-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.75fr) minmax(260px, 1.4fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}
.auth-domain-cell h3 { margin: 0.35rem 0 0.25rem; }
.auth-code-review-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) auto auto;
    gap: 0.5rem;
    align-items: center;
    min-width: 520px;
}
.domain-date-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.domain-date-strip > div {
    padding: 1rem;
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(16,185,129,.08));
}
.domain-date-strip span { display: block; color: var(--text-soft); font-size: .86rem; }
.domain-date-strip strong { display: block; margin-top: .25rem; font-size: 1.05rem; }
.domain-date-form {
    display: grid;
    grid-template-columns: minmax(110px, .6fr) minmax(170px, 1fr) minmax(170px, 1fr) auto;
    gap: .5rem;
    align-items: center;
    min-width: 560px;
}
.user-domain-admin-card .table td { vertical-align: top; }
.block { display: block; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.page-heading-row, .ticket-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.empty-state {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
.ticket-list {
    display: grid;
    gap: 0.85rem;
}
.ticket-card {
    display: grid;
    gap: 0.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}
.ticket-card:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.ticket-thread {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0;
}
.ticket-message {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}
.ticket-message.is-admin {
    border-color: rgba(109,40,217,0.28);
    background: linear-gradient(135deg, rgba(109,40,217,0.08), rgba(168,85,247,0.04));
}
.ticket-message header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.ticket-message p { margin: 0; white-space: normal; }
.ticket-compose { margin-top: 1rem; }
.ticket-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
}
.profile-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.35rem;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    box-shadow: var(--shadow);
}
.profile-hero h1, .profile-hero p { margin: 0; color: inherit; }
.profile-hero .eyebrow { color: #ddd6fe; }
.profile-avatar {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    font-weight: 800;
    font-size: 2rem;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.profile-quick-stats div {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}
.profile-quick-stats strong {
    display: block;
    font-size: 1.6rem;
    color: var(--brand);
}
.profile-quick-stats span { color: var(--text-soft); font-size: 0.9rem; }
.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1rem;
}
.profile-side-card { align-self: start; }
.profile-save-box {
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--text-soft);
    font-size: 0.9rem;
}
.profile-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}
.profile-shortcuts {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}
.profile-shortcuts a {
    padding: 0.65rem 0.8rem;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.profile-shortcuts a:hover { background: #ede9fe; color: var(--brand-dark); }

/* =============================================================
 * Modern dynamic UI additions (v4)
 *   - Toasts, modal, loader, live search, sparkline, sidebar
 *   - Animated counters, reveal-on-scroll, badges, skeletons
 * Loaded only when JS is enabled — server-rendered pages keep
 * working without these styles.
 * ============================================================= */

/* ---- Global loader bar ---- */
#dh-loader {
    position: fixed; left: 0; top: 0; height: 3px; width: 100%;
    background: linear-gradient(90deg, transparent 0%, var(--brand-2, #a855f7) 50%, transparent 100%);
    background-size: 50% 100%;
    background-repeat: no-repeat;
    background-position: -50% 0;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
#dh-loader.on {
    opacity: 1;
    animation: dh-loader-slide 1.1s linear infinite;
}
@keyframes dh-loader-slide {
    0%   { background-position: -50% 0; }
    100% { background-position: 150% 0; }
}

/* ---- Toasts ---- */
#dh-toast-stack {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 10000;
    display: flex; flex-direction: column; gap: 0.5rem;
    max-width: calc(100vw - 2rem);
}
.dh-toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    background: #111827;
    color: #fff;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.35);
    min-width: 240px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.22s, opacity 0.22s;
    font-size: 0.95rem;
}
.dh-toast.in { transform: translateY(0); opacity: 1; }
.dh-toast.out { transform: translateY(20px); opacity: 0; }
.dh-toast-icon {
    width: 24px; height: 24px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; background: rgba(255,255,255,0.12);
}
.dh-toast-success { background: #052e1b; color: #d1fae5; }
.dh-toast-success .dh-toast-icon { background: #16a34a; color: #fff; }
.dh-toast-error { background: #3f0911; color: #fee2e2; }
.dh-toast-error .dh-toast-icon { background: #dc2626; color: #fff; }
.dh-toast-warning { background: #3a2a05; color: #fef3c7; }
.dh-toast-warning .dh-toast-icon { background: #f59e0b; color: #1f1500; }
.dh-toast-info .dh-toast-icon { background: #6d28d9; color: #fff; }
.dh-toast-close {
    background: transparent; border: none; color: inherit; cursor: pointer;
    font-size: 1.1rem; line-height: 1; opacity: 0.7;
}
.dh-toast-close:hover { opacity: 1; }

/* ---- Modal ---- */
body.dh-modal-open { overflow: hidden; }
.dh-modal-backdrop {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.dh-modal-backdrop.in { opacity: 1; }
.dh-modal-backdrop.out { opacity: 0; }
.dh-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%; max-width: 480px;
    box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.5);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s;
}
.dh-modal-backdrop.in .dh-modal { transform: scale(1); }
.dh-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.dh-modal-head h3 { margin: 0; font-size: 1.05rem; }
.dh-modal-x {
    background: transparent; border: none; font-size: 1.4rem; cursor: pointer;
    color: var(--text-soft, #475569);
}
.dh-modal-body { padding: 1.25rem; }
.dh-modal-foot {
    display: flex; gap: 0.5rem; justify-content: flex-end;
    padding: 0.85rem 1.25rem; border-top: 1px solid var(--border, #e2e8f0);
    background: var(--bg-soft, #f1f5f9);
}

/* ---- Reveal-on-scroll ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---- Cart count pulse ---- */
.cart-count.is-pulse { animation: dh-cart-pulse 0.45s ease-out; }
@keyframes dh-cart-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    100% { transform: scale(1); }
}

/* ---- Hero live-search dropdown ---- */
.dh-live-search {
    max-width: 640px;
    margin: 0.8rem auto 0;
    background: #fff;
    color: var(--text, #0f172a);
    border-radius: 14px;
    box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.2);
}
.dh-live-search-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.55rem 1rem;
    background: var(--bg-soft, #f1f5f9);
    font-size: 0.78rem;
    color: var(--text-soft, #475569);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.dh-live-search-title { font-weight: 600; }
.dh-live-search-body { max-height: 360px; overflow-y: auto; }
.dh-live-search.is-loading .dh-live-search-body { opacity: 0.65; }
.dh-result-list { list-style: none; padding: 0; margin: 0; }
.dh-result-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    transition: background 0.15s;
}
.dh-result-row:last-child { border-bottom: none; }
.dh-result-row:hover { background: var(--bg-soft, #f1f5f9); }
.dh-result-row strong { font-size: 0.98rem; }
.dh-result-status { display: block; font-size: 0.78rem; color: var(--text-soft, #475569); }
.dh-result-row.is-available .dh-result-status { color: #16a34a; font-weight: 600; }
.dh-result-row.is-taken { opacity: 0.7; }
.dh-result-row.is-taken .dh-result-status { color: #dc2626; }
.dh-result-row.is-unknown .dh-result-status { color: #f59e0b; }
.dh-result-price { font-weight: 600; color: var(--text, #0f172a); }
.dh-result-price small { color: var(--text-soft, #475569); font-weight: 400; }
.dh-search-empty, .dh-search-error { padding: 1rem; margin: 0; color: var(--text-soft, #475569); }
.dh-search-error { color: #dc2626; }
.dh-pill {
    display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 600;
}
.dh-pill-muted { background: var(--bg-soft, #f1f5f9); color: var(--text-soft, #475569); }

/* ---- Skeleton loaders ---- */
.dh-skeleton-list { padding: 0.5rem 1rem; }
.dh-skeleton-row {
    display: grid; grid-template-columns: 1fr auto auto; gap: 1rem;
    align-items: center; padding: 0.6rem 0;
}
.dh-skeleton-row > div {
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: dh-skeleton 1.1s linear infinite;
    border-radius: 6px;
    height: 14px;
}
.dh-skeleton-row > div:first-child { width: 70%; }
.dh-skeleton-row > div:nth-child(2) { width: 60px; }
.dh-skeleton-row > div:nth-child(3) { width: 80px; height: 28px; border-radius: 8px; }
@keyframes dh-skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Hero stats strip ---- */
.dh-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: 720px;
}
.dh-hero-stat {
    text-align: center;
    color: #fff;
}
.dh-hero-stat .num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.dh-hero-stat .lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ddd6fe;
}

/* ---- Button loading state ---- */
.btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.7);
    border-top-color: transparent;
    border-radius: 50%;
    animation: dh-spin 0.65s linear infinite;
}
.btn-outline.is-loading::after, .btn-link.is-loading::after { border-color: rgba(109,40,217,0.65); border-top-color: transparent; }
@keyframes dh-spin { to { transform: rotate(360deg); } }

.btn-success {
    background: linear-gradient(135deg, #16a34a, #0891b2);
    border: none; color: #fff;
}
.btn-success:hover { background: linear-gradient(135deg, #15803d, #0e7490); color: #fff; }

.stats-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.stat-setting-card {
    background: rgba(109,40,217,0.04);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 1rem;
}

/* ---- Admin sidebar layout ---- */
body.is-admin .site-main { padding: 0; }
body.is-admin { background: #0f172a; }
.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 60px);
    background: var(--bg, #f8fafc);
}
body.admin-sidebar-collapsed .admin-shell { grid-template-columns: 68px 1fr; }
.admin-sidebar {
    background: #0f172a;
    color: #cbd5e1;
    padding: 1.25rem 0.75rem;
    position: sticky; top: 0; align-self: start;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar .brand-mini {
    display: flex; align-items: center; gap: 0.6rem;
    color: #fff; font-weight: 700; font-size: 1.1rem;
    padding: 0.25rem 0.6rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 0.75rem;
}
.admin-sidebar .brand-mini .dot {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--brand, #6d28d9), var(--brand-2, #a855f7));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 0.85rem;
}
.admin-sidebar nav { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-sidebar a {
    color: #cbd5e1;
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.93rem; font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.admin-sidebar a .ico {
    width: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.admin-sidebar a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-sidebar a.active {
    background: linear-gradient(135deg, rgba(109,40,217,0.35), rgba(168,85,247,0.25));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(168,85,247,0.4);
}
.admin-sidebar .group-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: #64748b; padding: 0.8rem 0.7rem 0.3rem;
}
body.admin-sidebar-collapsed .admin-sidebar a .label,
body.admin-sidebar-collapsed .admin-sidebar .brand-mini .label,
body.admin-sidebar-collapsed .admin-sidebar .group-label { display: none; }
body.admin-sidebar-collapsed .admin-sidebar a { justify-content: center; padding: 0.55rem 0.4rem; }
body.admin-sidebar-collapsed .admin-sidebar .brand-mini { justify-content: center; }

.admin-main { padding: 1.5rem 1.75rem 3rem; min-width: 0; }
.admin-mobile-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}
.admin-top-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.admin-home-btn { box-shadow: 0 10px 25px rgba(37,99,235,0.22); }
.float-help-button {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 18px 45px rgba(37,99,235,0.35);
    cursor: pointer;
    z-index: 50;
}
.float-dialog {
    position: fixed;
    right: 1.25rem;
    bottom: 5.4rem;
    width: min(330px, calc(100vw - 2rem));
    padding: 1.2rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 22px 60px rgba(15,23,42,0.22);
    transform: translateY(10px) scale(.97);
    opacity: 0;
    pointer-events: none;
    transition: .18s ease;
    z-index: 50;
}
.float-dialog.open { transform: none; opacity: 1; pointer-events: auto; }
.float-dialog h3 { margin: 0 0 .4rem; }
.float-dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.float-dialog-close {
    position: absolute;
    top: 0.8rem;
    right: 0.85rem;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: var(--bg-soft, #f1f5f9);
    color: var(--text-soft, #475569);
    cursor: pointer;
}
.admin-topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin-bottom: 1.25rem;
}
.admin-topbar h1 { margin: 0; font-size: 1.5rem; }
.admin-topbar .crumbs { color: var(--text-soft, #475569); font-size: 0.85rem; }
.admin-topbar .crumbs a { color: inherit; }
.admin-topbar .actions { display: flex; gap: 0.5rem; align-items: center; }
.admin-topbar .live-pulse {
    font-size: 0.8rem; color: var(--text-soft, #475569);
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.admin-topbar .live-pulse::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74, 0.6);
    animation: dh-pulse 1.6s infinite;
}
@keyframes dh-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(22,163,74, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(22,163,74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74, 0); }
}
.live-pulse.is-pulse { animation: dh-flash 0.6s; }
@keyframes dh-flash { 0% { background: rgba(168,85,247,0.15); } 100% { background: transparent; } }

/* ---- Admin stat cards ---- */
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.admin-stat-card {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    display: flex; flex-direction: column; gap: 0.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(15,23,42,0.1); }
.admin-stat-card .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-soft, #475569);
    letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 0.45rem;
}
.admin-stat-card .label .ico {
    width: 28px; height: 28px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand, #6d28d9), var(--brand-2, #a855f7));
    color: #fff; font-size: 0.85rem;
}
.admin-stat-card .num {
    font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em;
    color: var(--text, #0f172a);
}
.admin-stat-card .delta { font-size: 0.8rem; color: var(--text-soft, #475569); }
.admin-stat-card .delta.is-up { color: #16a34a; }
.admin-stat-card .delta.is-down { color: #dc2626; }

/* ---- Sparkline ---- */
.admin-chart-card {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.admin-chart-card header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.8rem; }
.admin-chart-card header h3 { margin: 0; font-size: 1.05rem; }
.admin-chart-card svg { width: 100%; height: 80px; color: var(--brand, #6d28d9); }

/* ---- Admin table card ---- */
.admin-card {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.admin-card .card-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.85rem 1rem; gap: 1rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    background: var(--bg-soft, #f8fafc);
}
.admin-card .card-head h2 { margin: 0; font-size: 1rem; }
.admin-card .card-head .filter-input {
    border: 1px solid var(--border, #e2e8f0);
    background: #fff;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 220px;
}
.admin-card .table { box-shadow: none; border-radius: 0; }
.admin-card .table thead th { background: #fff; }
.admin-card .empty-state {
    padding: 1.5rem; text-align: center; color: var(--text-soft, #475569);
}
.admin-insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}
.payment-proof-card { margin: 1rem 0; }
.auth-card-premium .security-icon {
    width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
    color: #fff; font-weight: 900; background: linear-gradient(135deg, #6d28d9, #06b6d4);
    box-shadow: 0 18px 38px rgba(109,40,217,.28); margin-bottom: 1rem;
}
.two-factor-box, .payment-proof-mini {
    margin-top: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 16px;
    background: linear-gradient(135deg, rgba(109,40,217,.08), rgba(20,184,166,.08));
}
.payment-proof-mini span { display:block; color: var(--text-soft); font-size:.9rem; margin-top:.25rem; }
.checkout-hero {
    margin: 1rem 0 1.25rem; padding: 1.25rem; border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(109,40,217,.18), transparent 36%),
                linear-gradient(135deg, #fff, #f8fafc);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.checkout-hero h1 { margin: .15rem 0 .4rem; font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -0.05em; }
.checkout-steps { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.75rem; }
.checkout-steps span {
    padding:.45rem .7rem; border-radius:999px; background:#eef2ff; color:#4338ca; font-weight:800; font-size:.85rem;
}
.checkout-steps span.active { background: linear-gradient(135deg,#6d28d9,#2563eb); color:#fff; }
.checkout-coupon-form {
    margin:.85rem 0; display:grid; grid-template-columns:1fr auto auto; gap:.45rem; align-items:center;
}
.checkout-coupon-form small { grid-column:1 / -1; }
.hero-badges { display:flex; flex-wrap:wrap; gap:.55rem; margin:.85rem 0; }
.hero-badges span, .hero-sale-ribbon {
    display:inline-flex; padding:.45rem .7rem; border-radius:999px; font-weight:800; font-size:.84rem;
    background:rgba(255,255,255,.84); color:#4338ca; border:1px solid rgba(109,40,217,.16);
}
.domain-promo-strip {
    display:flex; flex-wrap:wrap; gap:.65rem; margin:.85rem 0 .4rem;
}
.domain-promo-strip span {
    display:inline-flex; align-items:center; gap:.35rem; padding:.5rem .8rem; border-radius:999px;
    color:#fff; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.16);
    font-weight:800; box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.domain-promo-strip strong { font-weight:900; }
.whatsapp-float-button svg { width: 26px; height: 26px; flex: 0 0 auto; }
.coupon-card-premium {
    background: radial-gradient(circle at top left, rgba(34,197,94,.18), transparent 38%),
                linear-gradient(135deg, #fff, #f0fdf4);
}
@media (max-width: 720px) {
    .hero { padding-top: 1.4rem; }
    .hero-grid { gap: 1rem; }
    .hero-copy h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); line-height: .95; letter-spacing: -.06em; }
    .search-form { padding: .4rem; border-radius: 20px; box-shadow: 0 20px 50px rgba(15,23,42,.14); }
    .search-form input { min-height: 54px; font-size: 1rem; }
    .search-form .btn { min-height: 54px; border-radius: 16px; }
    .hero-panel { border-radius: 24px; transform: none; }
    .featured-tlds { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; }
    .tld-pill { min-width: 118px; justify-content: space-between; }
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .trust-grid div { border-radius: 18px; padding: .95rem; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; border-radius: 22px; }
    .checkout-coupon-form { grid-template-columns: 1fr; }
    .whatsapp-float-button { width:56px; height:56px; border-radius:999px; padding:0; justify-content:center; }
    .whatsapp-float-button strong { display:none; }
}
@media (max-width: 900px) {
    .admin-insights-grid { grid-template-columns: 1fr; }
}

/* Row flash + remove animations */
.row-flash { animation: dh-row-flash 1.2s ease-out; }
@keyframes dh-row-flash {
    0%   { background: rgba(168,85,247,0.25); }
    100% { background: transparent; }
}
.row-removing { opacity: 0; transition: opacity 0.25s; }

/* Inline TLD edit form (used by AJAX-rendered rows) */
.dh-tld-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 0.5fr auto auto auto;
    gap: 0.5rem;
    align-items: center;
}
@media (max-width: 880px) {
    .dh-tld-form { grid-template-columns: 1fr 1fr; }
    .dh-tld-form > button { grid-column: span 1; }
    .dh-tld-form .inline-checkbox { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
    .dh-tld-form { grid-template-columns: 1fr; }
    .dh-tld-form > button,
    .dh-tld-form .inline-checkbox { grid-column: 1; }
}
.dh-tld-form input[type="text"], .dh-tld-form input[type="number"] {
    border: 1px solid var(--border, #e2e8f0);
    background: #fff;
    padding: 0.4rem 0.55rem;
    border-radius: 7px;
    font-size: 0.9rem;
    width: 100%;
}

/* ---- Dark theme (admin only) ---- */
body.admin-theme-dark {
    background: #0b1224;
    color: #e2e8f0;
}
body.admin-theme-dark .admin-main { background: #0b1224; color: #e2e8f0; }
body.admin-theme-dark .admin-stat-card,
body.admin-theme-dark .admin-chart-card,
body.admin-theme-dark .admin-card {
    background: #111c33;
    border-color: #1f2a44;
    color: #e2e8f0;
}
body.admin-theme-dark .admin-card .card-head { background: #0b1224; border-color: #1f2a44; }
body.admin-theme-dark .table { background: transparent; color: #e2e8f0; }
body.admin-theme-dark .table thead th { background: #0b1224; color: #cbd5e1; }
body.admin-theme-dark .table tbody tr:hover { background: #14213d; }
body.admin-theme-dark .table th, body.admin-theme-dark .table td { border-color: #1f2a44; }
body.admin-theme-dark .admin-stat-card .num { color: #fff; }
body.admin-theme-dark .admin-stat-card .label { color: #94a3b8; }
body.admin-theme-dark .admin-card .card-head .filter-input { background: #0b1224; color: #e2e8f0; border-color: #1f2a44; }
body.admin-theme-dark .dh-tld-form input { background: #0b1224; color: #e2e8f0; border-color: #1f2a44; }
body.admin-theme-dark .admin-mobile-topbar { background: #101a31; border-color: #1f2a44; color: #e2e8f0; }

/* ---- Mobile: collapse admin sidebar by default ---- */
@media (max-width: 880px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-mobile-topbar { display: flex; }
    .admin-sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 280px);
        transform: translateX(-100%); transition: transform 0.25s;
        z-index: 60;
        overflow-y: auto;
        box-shadow: 8px 0 30px -4px rgba(15,23,42,0.35);
    }
    body.admin-sidebar-collapsed .admin-shell { grid-template-columns: 1fr; }
    body.admin-sidebar-collapsed .admin-sidebar { transform: translateX(0); }
    /* On mobile, when sidebar is "collapsed" (i.e. open as drawer),
       always show labels so it's usable as a real menu. */
    body.admin-sidebar-collapsed .admin-sidebar a .label,
    body.admin-sidebar-collapsed .admin-sidebar .brand-mini .label,
    body.admin-sidebar-collapsed .admin-sidebar .group-label { display: inline; }
    body.admin-sidebar-collapsed .admin-sidebar a { justify-content: flex-start; padding: 0.7rem 0.85rem; }
    body.admin-sidebar-collapsed .admin-sidebar .brand-mini { justify-content: flex-start; }
    .admin-main { padding: 1rem; }
    .auth-code-feature-card,
    .auth-code-request-row { grid-template-columns: 1fr; }
    .auth-code-review-form { min-width: 0; }
    .domain-date-strip { grid-template-columns: 1fr; }
    .domain-date-form { grid-template-columns: 1fr; min-width: 0; }
    .admin-topbar { flex-direction: column; align-items: stretch; }
    .admin-topbar .actions { flex-wrap: wrap; }
}

/* ============================================================ */
/* === v5 — Mobile-first responsive overhaul & new features === */
/* ============================================================ */

/* ---- Accessibility helpers ---- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--brand);
    color: #fff;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    z-index: 200;
    font-weight: 600;
    box-shadow: 0 4px 14px -4px rgba(15,23,42,0.35);
    transition: top 0.2s;
}
.skip-link:focus { top: 0.75rem; text-decoration: none; outline: 2px solid #fff; }

/* Visible focus rings everywhere */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Respect users' reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---- iOS form-zoom prevention: 16px+ inputs ---- */
input, select, textarea, button { font: inherit; }
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="url"], input[type="number"],
input[type="search"], input[type="date"], input[type="datetime-local"],
input[type="time"], textarea, select {
    font-size: 16px;
}

/* ---- Minimum touch targets (WCAG 2.5.5) ---- */
.btn, .nav-toggle, .cart-link, .scroll-top-btn,
.dh-toast-close, .dh-modal-x, .float-help-button,
.bottom-nav a, .nav-backdrop, .password-toggle,
.cookie-consent .btn {
    min-height: 44px;
}
.btn-sm { min-height: 36px; }

/* ---- Container fluid on narrow screens ---- */
@media (max-width: 600px) {
    .container { padding-left: 0.85rem; padding-right: 0.85rem; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.3rem; }
}

/* ---- Mobile nav backdrop + scroll lock ---- */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    backdrop-filter: blur(2px);
}
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* ---- Professional mobile navigation upgrade ---- */
.nav-tagline { display: none; }
@media (max-width: 880px) {
    .site-header {
        background:
            linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,250,252,0.9)),
            radial-gradient(circle at top left, rgba(168,85,247,0.18), transparent 14rem);
    }
    .nav-wrap { padding-left: 0.85rem; padding-right: 0.85rem; }
    .brand {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        min-width: 0;
        max-width: calc(100vw - 150px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand:not(.has-logo)::before {
        content: "";
        width: 34px;
        height: 34px;
        border-radius: 13px;
        background: linear-gradient(135deg, var(--brand), var(--brand-2));
        box-shadow: 0 12px 26px rgba(109,40,217,0.24);
        flex: 0 0 auto;
    }
    .main-nav {
        width: min(90vw, 360px);
        padding: 5.25rem 1rem 1.5rem;
        background:
            radial-gradient(circle at 100% 0%, rgba(168,85,247,0.14), transparent 14rem),
            #fff;
        border-left: 1px solid rgba(226,232,240,0.85);
    }
    .main-nav::before {
        content: "Menu";
        position: absolute;
        top: 1.2rem;
        left: 1rem;
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--text);
    }
    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding: 0.8rem 0.85rem;
        border: 1px solid transparent;
        border-radius: 14px;
        background: rgba(248,250,252,0.78);
        margin-bottom: 0.45rem;
        font-weight: 700;
    }
    .main-nav a::after {
        content: "›";
        opacity: 0.45;
        font-size: 1.25rem;
    }
    .main-nav a.active {
        color: var(--brand);
        background: rgba(109,40,217,0.1);
        border-color: rgba(109,40,217,0.16);
    }
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,0.52);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 45;
    }
    body.nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    .nav-actions .cart-link {
        min-height: 44px;
        border-radius: 14px;
        background: #fff;
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
    }
    .mobile-nav-extras {
        background: rgba(248,250,252,0.86);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 1rem;
    }
}

/* ---- Improved mobile nav drawer ---- */
.nav-toggle {
    display: none;
    min-width: 44px;
    background: var(--bg-soft, #f1f5f9);
    border: 1px solid var(--border, #e2e8f0);
    color: var(--text, #0f172a);
    border-radius: 10px;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.nav-toggle:hover { background: var(--bg, #f8fafc); }
.nav-toggle[aria-expanded="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 880px) {
    .site-header { box-shadow: 0 2px 8px rgba(15,23,42,0.04); }
    .nav-toggle { display: inline-flex; order: 3; }
    .nav-wrap {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    .brand { flex: 1; font-size: 1.15rem; }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: auto;
        left: auto;
        width: min(86vw, 320px);
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        background: #fff;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4.5rem 1rem 1.5rem;
        box-shadow: -8px 0 30px -4px rgba(15,23,42,0.18);
        transform: translateX(100%);
        transition: transform 0.25s;
        z-index: 50;
        overflow-y: auto;
    }
    body.nav-open .main-nav {
        display: flex;
        transform: translateX(0);
    }
    .main-nav a {
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid var(--border, #e2e8f0);
        font-size: 1.02rem;
    }
    .main-nav a.active { background: rgba(109,40,217,0.06); border-radius: 6px; border-bottom-color: transparent; }
    .nav-actions {
        order: 2;
        gap: 0.35rem;
        flex-wrap: wrap;
    }
    .nav-actions .btn { padding: 0.45rem 0.7rem; font-size: 0.92rem; }
    .nav-actions .btn-ghost { padding: 0.45rem 0.5rem; }
    .nav-actions .inline-form { display: none; }  /* logout moves into mobile nav */
}

/* In-drawer extras shown only on mobile */
.mobile-nav-extras { display: none; }
@media (max-width: 880px) {
    .mobile-nav-extras {
        display: block;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border, #e2e8f0);
    }
    .mobile-nav-extras h4 {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--text-soft, #475569);
        letter-spacing: 0.08em;
        margin: 0 0 0.5rem;
    }
    .mobile-nav-extras a, .mobile-nav-extras .btn-link {
        display: block;
        padding: 0.55rem 0.4rem;
        color: var(--text, #0f172a);
        border-bottom: 1px solid var(--border, #e2e8f0);
        font-size: 0.95rem;
        text-align: left;
        width: 100%;
        background: none;
        border-left: none;
        border-right: none;
        border-top: none;
    }
    .mobile-nav-extras a:last-child, .mobile-nav-extras form:last-child .btn-link { border-bottom: none; }
}

/* Close button inside mobile drawer */
.mobile-nav-close {
    display: none;
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: var(--bg-soft, #f1f5f9);
    border: 1px solid var(--border, #e2e8f0);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text, #0f172a);
}
@media (max-width: 880px) {
    .mobile-nav-close { display: inline-flex; }
}

/* ---- Promo banner: tighter mobile layout ---- */
@media (max-width: 600px) {
    .promo-banner { padding: 0.85rem 0; }
    .promo-banner-inner { gap: 0.75rem; min-height: 0; }
    .promo-banner h2 { font-size: 1.15rem; }
    .promo-actions { gap: 0.4rem; }
    .promo-actions .btn { flex: 1; min-width: 0; text-align: center; }
    .promo-orb-one, .promo-orb-two { display: none; }
}

/* ---- Hero: stronger small-screen layout ---- */
@media (max-width: 600px) {
    .hero { padding: 2.5rem 0 2.25rem; }
    .hero h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); line-height: .95; letter-spacing: -.06em; }
    .hero-subtitle { font-size: 1.02rem; }
    .hero .search-form { padding: 0.35rem; border-radius: 12px; }
    .hero .search-form input { padding: 0.75rem 0.85rem; }
    .featured-tlds { gap: 0.4rem; margin-top: 1rem; }
    .tld-pill { font-size: 0.82rem; padding: 0.35rem 0.7rem; }
    .dh-hero-stats { grid-template-columns: 1fr 1fr !important; gap: 0.5rem !important; }
    .dh-hero-stat { padding: 0.7rem !important; }
    .dh-hero-stat .num { font-size: 1.3rem !important; }
}

/* ---- Plans grid: ensure single column at small widths ---- */
@media (max-width: 600px) {
    .plans-grid { grid-template-columns: 1fr; gap: 1rem; }
    .plan-card { padding: 1.15rem; }
    .plan-price .amount { font-size: 1.5rem; }
    .features-grid { grid-template-columns: 1fr !important; gap: 0.85rem !important; }
    .feature { padding: 1.1rem !important; }
}

/* ---- Tables: smart mobile transformation ---- */
@media (max-width: 600px) {
    .table { border-radius: 8px; }
    .table th, .table td { padding: 0.6rem 0.7rem; font-size: 0.9rem; }
    .table-responsive .table { min-width: 600px; }
}

/* Card-style tables on mobile (opt-in via .table-card) */
@media (max-width: 600px) {
    .table-card {
        display: block;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        white-space: normal;
        min-width: 0;
    }
    .table-card thead { display: none; }
    .table-card tbody, .table-card tr { display: block; }
    .table-card tr {
        background: #fff;
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 12px;
        padding: 0.85rem 1rem;
        margin-bottom: 0.7rem;
        box-shadow: var(--shadow-sm);
    }
    .table-card td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        padding: 0.4rem 0;
        border-bottom: 1px dashed var(--border, #e2e8f0);
        text-align: right;
    }
    .table-card td:last-child { border-bottom: none; }
    .table-card td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-soft, #475569);
        font-size: 0.82rem;
        text-align: left;
        flex: 0 0 40%;
    }
}

/* ---- Forms: stack and breathe ---- */
@media (max-width: 600px) {
    .auth-card { padding: 1.4rem 1.1rem; border-radius: 14px; margin: 0 0.25rem; }
    .form-card { padding: 1.1rem; }
    .form-card label, .auth-card label { margin-top: 0.7rem; }
    .auth-card .btn, .form-card .btn { padding: 0.75rem 1rem; }
}

/* Search form stacks on small screens (already exists at 480px — widen breakpoint) */
@media (max-width: 600px) {
    .search-form { flex-direction: column; gap: 0.45rem; padding: 0.5rem; }
    .search-form .btn { width: 100%; }
    .page-hero { padding: 1.75rem 0 1.5rem; }
}

/* ---- Cart / checkout: mobile-friendly ---- */
@media (max-width: 600px) {
    .checkout-grid { gap: 1rem; }
    .checkout-summary {
        position: static;
        margin-top: 1rem;
    }
    .cart-line { flex-direction: column; align-items: flex-start; }
}

/* ---- Result rows ---- */
@media (max-width: 600px) {
    .result-row, .dh-result-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0.85rem 1rem;
    }
    .result-row .btn, .dh-result-row .btn { width: 100%; text-align: center; }
    .result-price strong { font-size: 1.05rem; }
}

/* ---- Footer: tighter mobile ---- */
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .site-footer { padding: 2rem 0 5.5rem; }  /* room for bottom nav */
    .site-footer h5 { margin-bottom: 0.4rem; }
    .site-footer ul { padding-left: 0; list-style: none; }
    .footer-bottom { margin-top: 1.25rem; }
}

/* ---- Mobile bottom nav (customer area only) ---- */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--border, #e2e8f0);
    backdrop-filter: blur(10px);
    z-index: 40;
    padding: 0.3rem 0.4rem env(safe-area-inset-bottom);
    box-shadow: 0 -4px 16px rgba(15,23,42,0.06);
}
.bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.1rem;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.4rem 0.25rem;
    text-decoration: none;
    color: var(--text-soft, #475569);
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 10px;
    position: relative;
}
.bottom-nav a:hover { background: var(--bg-soft, #f1f5f9); text-decoration: none; }
.bottom-nav a.active { color: var(--brand); }
.bottom-nav .bn-ico {
    font-size: 1.25rem;
    line-height: 1;
}
.bottom-nav .bn-badge {
    position: absolute;
    top: 0.25rem;
    right: calc(50% - 1.15rem);
    background: var(--brand);
    color: #fff;
    font-size: 0.62rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    font-weight: 700;
    min-width: 1rem;
    text-align: center;
}
@media (max-width: 720px) {
    body:not(.is-admin) .bottom-nav { display: block; }
    body:not(.is-admin) .site-main { padding-bottom: 4.5rem; }
}

/* ---- Scroll-to-top floating button ---- */
.scroll-top-btn {
    position: fixed;
    bottom: 5.5rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px -6px rgba(109,40,217,0.5);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 45;
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}
.scroll-top-btn:hover {
    background: var(--brand-dark);
}
body.is-admin .scroll-top-btn { bottom: 1.25rem; right: 5rem; }
@media (min-width: 721px) {
    .scroll-top-btn { bottom: 1.25rem; }
}

/* ---- Cookie consent banner ---- */
.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 5.5rem;
    background: #0f172a;
    color: #fff;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 20px 50px -12px rgba(15,23,42,0.45);
    z-index: 60;
    display: none;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border: 1px solid rgba(255,255,255,0.08);
}
.cookie-consent.visible { display: flex; }
.cookie-consent p {
    margin: 0;
    font-size: 0.92rem;
    flex: 1;
    min-width: 240px;
    color: #e2e8f0;
}
.cookie-consent a {
    color: #c4b5fd;
    text-decoration: underline;
}
.cookie-consent .btn {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 0.55rem 1rem;
}
.cookie-consent .btn:hover { background: var(--brand-dark); }
.cookie-consent .btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.cookie-consent .btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; }
@media (min-width: 721px) {
    .cookie-consent {
        bottom: 1.25rem;
        right: 1.25rem;
        left: auto;
        max-width: 460px;
    }
}

/* ---- Password show/hide toggle ---- */
.password-wrap {
    position: relative;
}
.password-wrap input[type="password"],
.password-wrap input[type="text"] {
    padding-right: 3rem;
}
.password-toggle {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-soft, #475569);
    padding: 0.4rem 0.6rem;
    font-size: 0.92rem;
    border-radius: 6px;
    min-height: 38px;
}
.password-toggle:hover { color: var(--brand); background: var(--bg-soft, #f1f5f9); }

/* ---- Admin sidebar mobile backdrop + drawer polish ---- */
.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 55;
    backdrop-filter: blur(2px);
}
@media (max-width: 880px) {
    body.admin-sidebar-collapsed .admin-sidebar-backdrop { display: block; }
    .admin-mobile-topbar { gap: 0.5rem; flex-wrap: wrap; }
    .admin-mobile-topbar strong { flex: 1; min-width: 0; font-size: 0.95rem; }
    .admin-top-actions { gap: 0.4rem; }
    .admin-top-actions .btn { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
}
@media (max-width: 600px) {
    .admin-main { padding: 0.85rem !important; }
    .admin-card .card-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .admin-card .card-head .filter-input { min-width: 0; width: 100%; }
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
    .admin-stat-card { padding: 0.85rem; }
    .admin-stat-card .num { font-size: 1.4rem; }
    .float-help-button { width: 50px; height: 50px; bottom: 5.25rem; right: 1rem; }
    body.is-admin .float-help-button { bottom: 1.25rem; }
}

/* ---- Long word wrap for code/email cells ---- */
.table code, .table a[href^="mailto:"], .domain-card code, .auth-code-row code {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ---- Improve flash message stacking on mobile ---- */
@media (max-width: 600px) {
    .flash-stack { padding-left: 0.85rem; padding-right: 0.85rem; }
    .flash { font-size: 0.9rem; padding: 0.75rem 0.9rem; }
}

/* ---- Sticky checkout summary mobile collapse ---- */
@media (max-width: 760px) {
    .checkout-summary[data-collapsible] .summary-toggle { display: inline-flex; }
    .checkout-summary[data-collapsible].collapsed .summary-body { display: none; }
}
.summary-toggle { display: none; }

/* ---- Coupon, notice, and floating conversion tools ---- */
.coupon-card,
.cart-total-card,
.checkout-coupon {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}
.coupon-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
}
.coupon-card h2 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.coupon-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.coupon-form input {
    flex: 1 1 150px;
    min-height: 44px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.coupon-success {
    grid-column: 1 / -1;
    margin: 0;
    color: #15803d;
    font-weight: 700;
}
.cart-total-card {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.cart-total-card span { color: var(--text-soft); }
.cart-total-card strong { color: var(--text); margin-left: 0.25rem; }
.cart-total-final {
    padding-left: 1rem;
    border-left: 1px solid var(--border);
    font-size: 1.08rem;
}
.checkout-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.75rem 0;
    background: linear-gradient(135deg, rgba(109,40,217,0.07), rgba(14,165,233,0.06));
}
.notice-section { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.notice-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid rgba(109,40,217,0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0% 0%, rgba(168,85,247,0.16), transparent 18rem),
        linear-gradient(135deg, #fff, #f8fafc);
    box-shadow: var(--shadow);
}
.notice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
}
.notice-card h2 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.notice-card p { margin: 0; color: var(--text-soft); }
.offer-float-button,
.whatsapp-float-button {
    position: fixed;
    right: 1rem;
    z-index: 46;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(15,23,42,0.22);
}
.offer-float-button {
    bottom: 9rem;
    min-height: 46px;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: #fff;
    font-weight: 900;
}
.whatsapp-float-button {
    bottom: 5.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-weight: 800;
}
.whatsapp-float-button:hover,
.offer-float-button:hover { color: #fff; text-decoration: none; transform: translateY(-1px); }
.site-offer-dialog {
    right: 1rem;
    bottom: 12.5rem;
    border: 1px solid rgba(249,115,22,0.2);
}
.offer-kicker {
    display: inline-flex;
    margin-bottom: 0.45rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(249,115,22,0.1);
    color: #c2410c;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}
.offer-coupon {
    width: 100%;
    border: 1px dashed rgba(109,40,217,0.45);
    border-radius: 14px;
    padding: 0.75rem;
    background: rgba(109,40,217,0.07);
    color: var(--brand);
    text-align: left;
    cursor: pointer;
}
.offer-coupon strong { float: right; letter-spacing: 0.06em; }
@media (max-width: 720px) {
    .coupon-card { grid-template-columns: 1fr; }
    .coupon-form .btn { flex: 1; }
    .cart-total-card { justify-content: stretch; flex-direction: column; gap: 0.45rem; }
    .cart-total-final { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 0.5rem; }
    .notice-card { grid-template-columns: 1fr; text-align: left; }
    .notice-card .btn { width: 100%; text-align: center; }
    .offer-float-button { bottom: 9.6rem; right: 0.85rem; }
    .whatsapp-float-button {
        right: 0.85rem;
        bottom: 5.9rem;
        padding: 0.65rem;
        border-radius: 18px;
    }
    .whatsapp-float-button strong { display: none; }
    .site-offer-dialog {
        right: 0.75rem;
        bottom: 13rem;
        width: min(340px, calc(100vw - 1.5rem));
    }
}

/* ---- Hide / show helpers ---- */
.hide-on-mobile { }
.show-on-mobile { display: none; }
@media (max-width: 600px) {
    .hide-on-mobile { display: none !important; }
    .show-on-mobile { display: inline-flex !important; }
}

/* ---- Profile hero stacks on mobile ---- */
@media (max-width: 600px) {
    .profile-hero { flex-direction: column; text-align: center; padding: 1.1rem; }
    .profile-hero h1 { font-size: 1.4rem; }
    .profile-quick-stats { grid-template-columns: 1fr 1fr; }
}

/* ---- Auth code review form: scroll instead of overflow ---- */
@media (max-width: 600px) {
    .auth-code-review-form { display: grid; grid-template-columns: 1fr; min-width: 0; gap: 0.5rem; }
}

/* ---- Improve loader visibility on mobile ---- */
@media (max-width: 600px) {
    #dh-loader { width: 28px; height: 28px; right: 0.85rem; top: 0.85rem; }
}

/* ---- Dark mode follow for body when html[data-theme="dark"] ---- */
@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] {
        --bg: #0b1224;
        --bg-soft: #101a31;
        --text: #e2e8f0;
        --text-soft: #94a3b8;
        --border: #1f2a44;
        --card: #101a31;
        --shadow: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    }
}

/* ---- Print friendly ---- */
@media print {
    .site-header, .promo-banner, .site-footer, .bottom-nav, .scroll-top-btn,
    .nav-backdrop, .admin-sidebar, .admin-mobile-topbar, .cookie-consent,
    .float-help-button, .float-dialog, .offer-float-button, .whatsapp-float-button { display: none !important; }
    .site-main, .admin-main { padding: 0 !important; }
    body { background: #fff; color: #000; }
    .container { max-width: 100%; padding: 0; }
    a { color: #000; text-decoration: underline; }
    .table { box-shadow: none; border: 1px solid #ccc; }
}
