/* ============================================================
   websitevalue.me — Custom CSS (Tailwind @apply component classes)
   ============================================================ */

html, body {
    background: #f5f7fb;
    color: #1f2937;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Trust top bar */
.trust-topbar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
}
.trust-topbar-stats {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.trust-topbar-stats strong {
    color: #fff;
    font-weight: 700;
}
.trust-topbar-nav {
    display: flex;
    gap: 1rem;
}
.trust-topbar-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s;
}
.trust-topbar-nav a:hover {
    color: #fff;
}
@media (max-width: 640px) {
    .trust-topbar-nav { display: none; }
    .trust-topbar-inner {
        height: auto !important;
        min-height: 2rem;
        align-items: flex-start;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }
    .trust-topbar-stats {
        font-size: 0.72rem;
        line-height: 1.25;
    }
    .trust-topbar-stats span {
        display: inline-block;
        white-space: normal;
    }
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #2563eb;
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s;
    text-decoration: none;
}
.btn-primary:hover { background-color: #1d4ed8; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d1d5db;
    transition: background-color 0.15s;
    text-decoration: none;
}
.btn-secondary:hover { background-color: #e5e7eb; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #2563eb;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #2563eb;
    transition: background-color 0.15s, color 0.15s;
    text-decoration: none;
}
.btn-outline:hover { background-color: #2563eb; color: #fff; }
.btn-outline.disabled,
button.btn-outline:disabled {
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08);
    padding: 1.5rem;
}

.hero-shell {
    background: linear-gradient(135deg, #eef4ff 0%, #e6efff 42%, #f4edff 100%);
    color: #ffffff;
    border-radius: 1.25rem;
    padding: 0;
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.12);
    overflow: hidden;
    position: relative;
    border: 1px solid #dbeafe;
}
.hero-shell::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96,165,250,0.16) 0%, rgba(255,255,255,0) 72%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    padding: 2.5rem 2.25rem 2rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(191,219,254,0.95);
    color: #1d4ed8;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}
.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.6rem;
    letter-spacing: -0.025em;
    line-height: 1.15;
}
.hero-subtitle {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 640px;
}
.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148,163,184,0.18);
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0.9rem;
    min-width: 134px;
    background: rgba(255,255,255,0.64);
    border: 1px solid rgba(219,234,254,0.95);
    border-radius: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.hero-stat-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -0.01em;
}
.hero-stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hero-stat-divider {
    display: none;
}
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(219,234,254,0.95);
    color: #334155;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.hero-pill:hover {
    background: rgba(255,255,255,0.95);
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.hero-form-row {
    display: flex;
    gap: 0.75rem;
    max-width: 48rem;
}

.hero-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.95rem 1rem;
    border-radius: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: #ffffff;
    color: #111827;
    font-size: 1rem;
    outline: none;
}

.hero-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.15rem;
    border-radius: 0.9rem;
    border: none;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.hero-button:hover {
    background: #eff6ff;
}

.hero-button:disabled {
    opacity: 0.55;
}

.hero-error {
margin-top: 0.5rem;
color: #dc2626;
font-size: 0.875rem;
}

.stats-hero {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 1rem;
box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
padding: 1.5rem;
}

/* Stat hero 2-col grid */
.stat-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
}

.value-panel {
    background: #0f172a;
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.value-panel .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    font-weight: 700;
    opacity: 0.75;
    margin: 0 0 0.3rem;
}

.value-panel .amount {
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 800;
    margin: 0;
}

.value-panel .subtext {
    margin: 0.45rem 0 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.boost-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 0.75rem;
    padding: 0.4rem 0.9rem;
    background: #f59e0b;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}
.boost-btn:hover {
    background: #d97706;
}

.stat-thumb-wrap {
    width: 100%;
    min-height: 220px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    position: relative;
}

.summary-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    border-radius: 0.8rem;
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
}

.meta-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stats-domain-header {
    align-items: center;
}
.stats-domain-main {
    min-width: 0;
}
.stats-domain-title-row {
    min-width: 0;
}
.stats-domain-title {
    min-width: 0;
    max-width: 100%;
}
.stats-domain-meta {
    row-gap: 0.35rem;
}
.stats-meta-sep {
    color: #cbd5e1;
}
.stats-domain-actions {
    align-items: center;
}
.stats-action-btn {
    min-height: 2.25rem;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.chip-safe { background: #dcfce7; color: #166534; }
.chip-warn { background: #fef3c7; color: #92400e; }
.chip-danger { background: #fee2e2; color: #991b1b; }
.chip-muted { background: #e5e7eb; color: #4b5563; }
.chip-blue { background: #dbeafe; color: #1d4ed8; }
.chip-purple { background: #ede9fe; color: #6d28d9; }

@media (max-width: 768px) {
    .hero-form-row {
        flex-direction: column;
    }

    .hero-button {
        width: 100%;
    }

    .hero-inner {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-stats-row {
        gap: 0.75rem;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
    }

    .stat-hero-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-domain-header {
        align-items: flex-start;
        gap: 0.65rem;
    }
    .stats-domain-main {
        width: 100%;
    }
    .stats-domain-title {
        font-size: 1.15rem !important;
    }
    .stats-domain-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .stats-domain-actions .stats-action-btn,
    .stats-domain-actions .stats-update-form {
        width: 100%;
    }
    .stats-domain-actions .stats-action-btn {
        justify-content: center;
    }
    .stats-mini-metrics {
        grid-template-columns: 1fr 1fr !important;
    }

    .two-col-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 540px) {
    .stats-domain-title-row {
        flex-wrap: wrap;
    }
    .stats-domain-title {
        font-size: 1.05rem !important;
    }
    .stats-domain-meta {
        gap: 0.4rem;
    }
    .stats-meta-sep {
        display: none;
    }
    .stats-verify-link {
        width: 100%;
    }
    .stats-domain-actions {
        grid-template-columns: 1fr;
    }
    .stats-mini-metrics {
        grid-template-columns: 1fr !important;
    }
    .stat-thumb-wrap {
        min-height: 180px;
    }
}

/* Badges */
.badge-success {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #dcfce7;
    color: #166534;
}

.badge-danger {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #fee2e2;
    color: #991b1b;
}
.badge-warning {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #fef9c3;
    color: #854d0e;
}
.badge-na {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #9ca3af;
}
.badge-neutral {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #e5e7eb;
    color: #374151;
}

/* Stat tables */
.stat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.stat-table tr {
    border-bottom: 1px solid #f3f4f6;
}
.stat-table tr:last-child {
    border-bottom: none;
}
.stat-table td,
.stat-table th {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}
.stat-table .label-col {
    color: #6b7280;
    width: 10rem;
    white-space: nowrap;
}
.stat-table thead th {
    background-color: #f9fafb;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #6b7280;
}

/* Section headings */
.stat-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    margin-top: 0.25rem;
}

/* ── Domain Tab System ──────────────────────────────────────── */
.domain-tab-bar {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}
.domain-tab-bar::-webkit-scrollbar { height: 3px; }
.domain-tab-bar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.dtab {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0.45rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.dtab:hover { border-color: #2563eb; color: #2563eb; }
.dtab-active {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}
.dtab-adult {
    border-color: #fecaca;
    color: #dc2626;
}
.dtab-adult:hover { border-color: #dc2626; background: #fef2f2; }
.dtab-adult.dtab-active {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}

.dtab-panel { animation: dtabFadeIn 0.2s ease; }
@keyframes dtabFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.dtab-cat-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    background: #eff6ff;
    color: #2563eb;
    vertical-align: middle;
}

/* ── Domain Ranking Table ──────────────────────────────────── */
.domain-rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.domain-rank-table thead th {
    padding: 0.55rem 0.75rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.domain-rank-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
}
.domain-rank-table tbody tr:hover { background: #f0f7ff; }
.domain-rank-table tbody td {
    padding: 0.55rem 0.75rem;
    vertical-align: middle;
}
.domain-table-wrap {
    width: 100%;
}
.domain-rank-domain-cell {
    min-width: 0;
}
.domain-rank-domain-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.domain-rank-value-cell {
    white-space: nowrap;
}
.domain-rank-value-text {
    font-variant-numeric: tabular-nums;
}

/* Rank medals */
.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
}
.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; box-shadow: 0 2px 6px rgba(245,158,11,0.3); }
.rank-2 { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); color: #475569; box-shadow: 0 2px 6px rgba(148,163,184,0.3); }
.rank-3 { background: linear-gradient(135deg, #fdba74, #f97316); color: #7c2d12; box-shadow: 0 2px 6px rgba(249,115,22,0.3); }

/* ── Age Consent Modal ─────────────────────────────────────── */
.age-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.age-modal {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: ageModalIn 0.25s ease;
}
@keyframes ageModalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.age-modal-icon {
    margin: 0 auto 1rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.age-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
}
.age-modal-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}
.age-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.age-btn-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.6rem;
    border: none;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}
.age-btn-confirm:hover { background: #b91c1c; }
.age-btn-cancel {
    padding: 0.6rem 1.5rem;
    border-radius: 0.6rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
}
.age-btn-cancel:hover { background: #f8fafc; }
.age-modal-disclaimer {
    margin: 1rem 0 0;
    font-size: 0.7rem;
    color: #94a3b8;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .two-col-grid { grid-template-columns: 1fr !important; }
    .hero-grid-row { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
    .lookup-form-row {
        flex-direction: column;
        gap: 0.55rem;
    }
    .lookup-form-input {
        width: 100%;
        min-width: 0;
        font-size: 1rem !important;
    }
    .lookup-form-submit {
        width: 100%;
        justify-content: center;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 1rem !important;
    }
    .domain-table-wrap {
        margin: 0 !important;
        overflow-x: visible !important;
    }
    .domain-rank-table {
        table-layout: fixed;
        font-size: 0.78rem;
    }
    .domain-rank-table thead th {
        padding: 0.5rem 0.45rem;
        font-size: 0.6rem;
        letter-spacing: 0.04em;
    }
    .domain-rank-table tbody td {
        padding: 0.5rem 0.45rem;
    }
    .domain-rank-value-text {
        font-size: 0.95rem;
    }
}

/* Map */
#map_canvas {
    width: 100%;
    height: 16rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* ── Modern Footer ─────────────────────────────────────────── */
.site-footer-modern {
    background: #0f172a;
    color: #e2e8f0;
    margin-top: 3rem;
    padding: 3rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1e293b;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 0.75rem;
}
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}
.footer-links a:hover { color: #60a5fa; }
.footer-trust-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.35rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    font-size: 0.75rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-bottom-links a:hover { color: #60a5fa; }
.footer-dot { color: #475569; }

/* ── Sidebar Widgets ───────────────────────────────────────── */
.sidebar-widget {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 1.15rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sidebar-widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.sidebar-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.sidebar-mini-table td {
    padding: 0.35rem 0;
    vertical-align: middle;
}
.sidebar-mini-table tr { border-bottom: 1px solid #f1f5f9; }
.sidebar-mini-table tr:last-child { border-bottom: none; }

/* ── Categories Page ───────────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.cat-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 1.15rem;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.cat-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.07);
    border-color: #2563eb;
    transform: translateY(-2px);
}
.cat-card:hover .cat-arrow { fill: #2563eb; }
.cat-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.cat-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cat-icon-0 { background: #eff6ff; color: #2563eb; }
.cat-icon-1 { background: #f0fdf4; color: #16a34a; }
.cat-icon-2 { background: #fef3c7; color: #d97706; }
.cat-icon-3 { background: #ede9fe; color: #7c3aed; }
.cat-icon-4 { background: #fce7f3; color: #db2777; }
.cat-icon-5 { background: #ecfeff; color: #0891b2; }
.cat-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}
.cat-card-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}
.cat-arrow {
    flex-shrink: 0;
    transition: fill 0.15s;
}
.cat-bar-track {
    height: 4px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}
.cat-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.4s ease;
}
.cat-bar-0 { background: #2563eb; }
.cat-bar-1 { background: #16a34a; }
.cat-bar-2 { background: #d97706; }
.cat-bar-3 { background: #7c3aed; }
.cat-bar-4 { background: #db2777; }
.cat-bar-5 { background: #0891b2; }

/* ── Share Bar (Stat Page) ─────────────────────────────────── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
.share-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}
/* Verified badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem 0.15rem 0.35rem;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #2563eb;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}
.verified-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem 0.3rem 0.55rem;
    background: linear-gradient(135deg, #2563eb, #4338ca);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
}
.share-btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.share-btn-x:hover { color: #000; }
.share-btn-fb:hover { color: #1877f2; }
.share-btn-li:hover { color: #0a66c2; }
.share-btn-copy:hover { color: #2563eb; }

/* ── Listing Page ──────────────────────────────────────────── */
.listing-card { padding: 1.25rem 1.5rem; }

.listing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.listing-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}
.listing-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.2rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.listing-count {
    background: #f1f5f9;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.68rem;
    color: #64748b;
}

/* Featured section */
.listing-featured {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    border-radius: 0.65rem;
}
.listing-featured-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.listing-badge-featured {
    display: inline-block;
    padding: 1px 7px;
    background: #fbbf24;
    color: #78350f;
    font-size: 0.58rem;
    font-weight: 800;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

/* Table header */
.listing-thead {
    display: flex;
    align-items: center;
    padding: 0 0.5rem 0.5rem;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}
.listing-thead-rank { width: 2.5rem; text-align: center; flex-shrink: 0; }
.listing-thead-domain { flex: 1; padding-left: 0.25rem; }
.listing-thead-value { text-align: right; min-width: 6rem; }

/* Row cards */
.listing-row {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s, box-shadow 0.12s;
    gap: 0.5rem;
    border-bottom: 1px solid #f8fafc;
}
.listing-row:hover {
    background: #eff6ff;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.06);
}
.listing-row-featured {
    background: transparent;
}
.listing-row-featured:hover {
    background: rgba(251, 191, 36, 0.12);
}

/* Rank */
.listing-rank {
    width: 2.5rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    flex-shrink: 0;
    line-height: 1;
}
.listing-rank-gold,
.listing-rank-silver,
.listing-rank-bronze { font-size: 1.1rem; }
.listing-rank-star {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Favicon */
.listing-favicon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(15,23,42,.10);
}

/* Domain name */
.listing-domain {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.listing-row:hover .listing-domain {
    color: #2563eb;
}
.listing-row-featured .listing-domain {
    color: #92400e;
}
.listing-row-featured:hover .listing-domain {
    color: #78350f;
}

/* Value */
.listing-value {
    min-width: 6rem;
    text-align: right;
    font-size: 0.82rem;
    font-weight: 700;
    color: #059669;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Pagination */
.listing-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}
.listing-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.45rem;
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    cursor: pointer;
}
.listing-page-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #2563eb;
}
.listing-page-active {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
    cursor: default;
}

@media (max-width: 640px) {
    .listing-card { padding: 0.75rem; }
    .listing-rank { width: 1.8rem; font-size: 0.7rem; }
    .listing-rank-gold,
    .listing-rank-silver,
    .listing-rank-bronze { font-size: 0.95rem; }
    .listing-domain { font-size: 0.78rem; }
    .listing-value { min-width: 4.5rem; font-size: 0.75rem; }
    .listing-thead-value { min-width: 4.5rem; }
    .listing-thead-rank { width: 1.8rem; }
    .listing-badge-featured { display: none; }
}

/* ── Stats Detail Page ──────────────────────────────────────── */
@keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}
.skel{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:800px 100%;animation:shimmer 1.5s infinite;}
@keyframes spin{to{transform:rotate(360deg)}}
.thumb-spinner{width:28px;height:28px;border:3px solid #e5e7eb;border-top-color:#2563eb;border-radius:50%;animation:spin .7s linear infinite;}
.stats-hero{background:#fff;border:1px solid #e5e7eb;border-radius:1rem;padding:1.25rem 1.25rem 1rem;box-shadow:0 1px 3px rgba(15,23,42,.06);}
.card{position:relative;background:#fff;border:1px solid #e5e7eb;border-radius:.75rem;box-shadow:0 1px 3px rgba(15,23,42,.04);}
.rank-card{background:#fff;border:1px solid #e5e7eb;border-radius:.75rem;padding:.75rem .85rem;text-align:center;transition:border-color .15s;}
.rank-card:hover{border-color:#93c5fd;}
.share-bar{background:#f9fafb;border:1px solid #e5e7eb;border-radius:.75rem;padding:.7rem .85rem;}
.share-btn{box-shadow:none;}
.claim-cta-card{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:0 0 1rem;padding:1rem 1.15rem;background:#0f172a;border-radius:.75rem;border:1px solid #1e293b;}
.claim-cta-left{display:flex;align-items:flex-start;gap:.85rem;flex:1 1 0;min-width:0;}
.claim-cta-icon{flex:0 0 auto;width:38px;height:38px;border-radius:.5rem;background:#2563eb;display:flex;align-items:center;justify-content:center;color:#fff;}
.claim-cta-title{font-size:.92rem;font-weight:800;color:#f8fafc;margin:0 0 .2rem;line-height:1.3;}
.claim-cta-desc{font-size:.77rem;color:#94a3b8;line-height:1.55;max-width:36rem;margin:0 0 .55rem;}
.claim-cta-perks{display:flex;flex-wrap:wrap;gap:.4rem;}
.claim-perk{display:inline-flex;align-items:center;gap:.3rem;font-size:.68rem;font-weight:700;color:#6ee7b7;background:rgba(16,185,129,.12);padding:.18rem .5rem;border-radius:9999px;}
.claim-cta-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;flex-shrink:0;}
.claim-btn-primary{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem .95rem;background:#fff;color:#0f172a;border-radius:.5rem;font-size:.8rem;font-weight:700;text-decoration:none;transition:background .15s;}
.claim-btn-primary:hover{background:#f1f5f9;}
.claim-btn-secondary{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem .95rem;background:#f59e0b;color:#fff;border-radius:.5rem;font-size:.8rem;font-weight:700;text-decoration:none;transition:background .15s;}
.claim-btn-secondary:hover{background:#d97706;}
.wv-mobile-sticky{display:none;position:fixed;bottom:0;left:0;right:0;z-index:200;background:#fff;border-top:1px solid #e2e8f0;padding:.65rem .9rem;box-shadow:0 -4px 20px rgba(15,23,42,.12);gap:.5rem;align-items:center;}
@media(max-width:640px){
  .wv-mobile-sticky{display:flex;}
  .claim-cta-card{padding:.9rem 1rem;}
  .claim-cta-icon{width:36px;height:36px;}
  .claim-cta-title{font-size:.85rem;}
  .claim-cta-desc{font-size:.72rem;}
}
.life-card{margin:0 0 1rem;padding:1rem 1rem .95rem;border-radius:.75rem;border:1px solid #e5e7eb;background:#fff;}
.life-card.life-healthy{border-color:#bbf7d0;background:#f0fdf4;}
.life-card.life-warning,.life-card.life-aging{border-color:#fde68a;background:#fffbeb;}
.life-card.life-critical,.life-card.life-inactive{border-color:#fecaca;background:#fef2f2;}
.life-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.65rem;}
.life-label{display:inline-flex;align-items:center;gap:.4rem;padding:.28rem .6rem;border-radius:9999px;font-size:.68rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;}
.life-healthy .life-label{background:#dcfce7;color:#166534;}
.life-warning .life-label,.life-aging .life-label{background:#fef3c7;color:#92400e;}
.life-critical .life-label,.life-inactive .life-label{background:#fee2e2;color:#b91c1c;}
.life-score{font-size:1.35rem;font-weight:900;color:#0f172a;letter-spacing:-.02em;}
.life-track{position:relative;height:12px;border-radius:9999px;background:#e2e8f0;overflow:hidden;box-shadow:inset 0 1px 2px rgba(15,23,42,.08);}
.life-fill{height:100%;border-radius:9999px;transition:width .7s ease;background:linear-gradient(90deg,#22c55e,#16a34a);position:relative;overflow:hidden;}
.life-warning .life-fill,.life-aging .life-fill{background:linear-gradient(90deg,#f59e0b,#d97706);}
.life-critical .life-fill,.life-inactive .life-fill{background:linear-gradient(90deg,#ef4444,#dc2626);}
.life-fill:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);transform:translateX(-100%);animation:lifeShimmer 2.4s infinite;}
.life-meta{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-top:.55rem;font-size:.76rem;color:#64748b;line-height:1.6;}
@keyframes lifeShimmer{100%{transform:translateX(100%);}}
.seo-metric-card{text-align:center;padding:1rem .85rem .9rem;border-radius:.75rem;border:1px solid #e5e7eb;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.04);transition:border-color .18s ease;}
.seo-metric-card:hover{border-color:#cbd5e1;}
.seo-metric-card.metric-good{border-color:#bbf7d0;background:#f0fdf4;}
.seo-metric-card.metric-warn{border-color:#fde68a;background:#fffbeb;}
.seo-metric-card.metric-bad{border-color:#fecaca;background:#fef2f2;}
.seo-metric-card.metric-neutral{border-color:#dbeafe;background:#eff6ff;}
.seo-metric-label{font-size:.62rem;font-weight:800;color:#94a3b8;text-transform:uppercase;letter-spacing:.08em;}
.seo-metric-value{font-size:1.55rem;font-weight:900;margin:.28rem 0 .18rem;letter-spacing:-.03em;color:#0f172a;}
.seo-metric-note{font-size:.68rem;color:#64748b;line-height:1.45;}
.seo-metric-empty{color:#cbd5e1;}
.chart-tab-active{background:#eff6ff !important;color:#2563eb !important;border-color:#2563eb !important;}
.badge-success{background:#ecfdf5!important;color:#047857!important;box-shadow:inset 0 0 0 1px rgba(16,185,129,.12);}
.badge-warning{background:#fffbeb!important;color:#b45309!important;box-shadow:inset 0 0 0 1px rgba(245,158,11,.12);}
.badge-danger{background:#fef2f2!important;color:#b91c1c!important;box-shadow:inset 0 0 0 1px rgba(239,68,68,.12);}
.badge-na,.badge-neutral{background:#f8fafc!important;color:#64748b!important;box-shadow:inset 0 0 0 1px rgba(148,163,184,.12);}
.stat-section-title{display:flex;align-items:center;gap:.4rem;font-size:.92rem;font-weight:700;color:#0f172a;letter-spacing:-.01em;}
.stat-table{width:100%;border-collapse:separate;border-spacing:0 .45rem;font-size:.84rem;}
.stat-table thead th{padding:.82rem .8rem!important;background:#f8fafc;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;color:#94a3b8!important;font-size:.68rem!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.04em;}
.stat-table thead th:first-child{border-left:1px solid #e2e8f0;border-radius:.8rem 0 0 .8rem;}
.stat-table thead th:last-child{border-right:1px solid #e2e8f0;border-radius:0 .8rem .8rem 0;}
.stat-table tbody tr{background:#fff;}
.stat-table tbody td{padding:.92rem .8rem!important;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;vertical-align:middle;background:#fff;}
.stat-table tbody td:first-child{border-left:1px solid #e2e8f0;border-radius:.85rem 0 0 .85rem;}
.stat-table tbody td:last-child{border-right:1px solid #e2e8f0;border-radius:0 .85rem .85rem 0;}
.stat-table tbody tr:hover td{border-color:#cbd5e1;background:#fcfdff;}
.label-col{font-weight:700;color:#334155;width:34%;}
@media(max-width:768px){
  .stats-hero{padding:1rem .9rem .85rem;}
  .stat-table{font-size:.78rem;border-spacing:0 .35rem;}
  .stat-table thead th{padding:.68rem .55rem!important;}
  .stat-table tbody td{padding:.78rem .55rem!important;}
  .label-col{width:42%;}
}

/* ── Header / Navigation (moved from inline <style> in core.html.twig) ── */
.brand-logo-wrap{display:flex;align-items:center;flex-shrink:0;text-decoration:none;min-width:220px;}
.brand-logo-badge{display:inline-flex;align-items:center;justify-content:center;padding:0.65rem 0.9rem;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);border:1px solid #e2e8f0;border-radius:0.9rem;box-shadow:0 8px 24px rgba(15,23,42,.06);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;}
.brand-logo-wrap:hover .brand-logo-badge{transform:translateY(-1px);box-shadow:0 12px 28px rgba(15,23,42,.1);border-color:#cbd5e1;}
.header-banner-slot{flex:1;display:flex;justify-content:center;align-items:center;min-height:60px;padding:0 0.5rem;}
.header-banner-slot > *{max-width:100%;}
.desktop-nav{display:flex;align-items:center;gap:1rem;}
.desktop-nav a{font-size:0.875rem;font-weight:500;color:#4b5563;text-decoration:none;transition:color .15s;}
.desktop-nav a:hover{color:#2563eb;}
.desktop-nav a.active{color:#2563eb;font-weight:700;border-bottom:2px solid #2563eb;padding-bottom:1px;}
#mobile-nav a.active{color:#2563eb;font-weight:700;}
.mobile-menu-btn{display:none;align-items:center;justify-content:center;width:40px;height:40px;border:none;background:none;border-radius:8px;cursor:pointer;}
.mobile-menu-btn:hover{background:#f3f4f6;}
#mobile-nav{display:none;border-top:1px solid #f1f5f9;background:#fff;padding:0.25rem 1rem 0.75rem;}
#mobile-nav a{display:block;padding:0.65rem 0;font-size:0.875rem;font-weight:500;color:#374151;text-decoration:none;border-bottom:1px solid #f8fafc;}
#mobile-nav a:last-child{border-bottom:none;}
#mobile-nav a:hover{color:#2563eb;}
@media(max-width:767px){
    .brand-logo-wrap{min-width:auto;}
    .brand-logo-badge{padding:0.5rem 0.65rem;border-radius:0.75rem;}
    .brand-logo-badge img{height:32px!important;}
    .header-banner-slot{display:none!important;}
    .desktop-nav{display:none!important;}
    .mobile-menu-btn{display:flex!important;}
}
/* ── Language Dropdown ── */
.wv-lang-dropdown{position:relative;flex-shrink:0;}
.wv-lang-btn{display:inline-flex;align-items:center;gap:0.4rem;padding:0.38rem 0.7rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:0.55rem;cursor:pointer;font-size:0.8rem;font-weight:600;color:#374151;transition:border-color .15s,box-shadow .15s;white-space:nowrap;user-select:none;}
.wv-lang-btn:hover{border-color:#cbd5e1;box-shadow:0 2px 8px rgba(15,23,42,.07);}
.wv-lang-btn .wv-lang-flag{font-size:1rem;line-height:1;}
.wv-lang-btn .wv-lang-chevron{width:14px;height:14px;transition:transform .2s;flex-shrink:0;}
.wv-lang-dropdown.open .wv-lang-chevron{transform:rotate(180deg);}
.wv-lang-menu{display:none;position:absolute;top:calc(100% + 6px);right:0;min-width:190px;background:#fff;border:1px solid #e2e8f0;border-radius:0.75rem;box-shadow:0 12px 32px rgba(15,23,42,.13);z-index:200;overflow:hidden;padding:0.35rem 0;}
.wv-lang-dropdown.open .wv-lang-menu{display:block;}
.wv-lang-item{display:flex;align-items:center;gap:0.6rem;padding:0.52rem 0.9rem;font-size:0.82rem;font-weight:500;color:#374151;text-decoration:none;transition:background .12s;}
.wv-lang-item:hover{background:#f1f5f9;color:#1e40af;}
.wv-lang-item.active{background:#eff6ff;color:#1d4ed8;font-weight:700;}
.wv-lang-item .wv-lang-flag{font-size:1.1rem;flex-shrink:0;}
.wv-lang-item .wv-lang-code{font-size:0.68rem;font-weight:700;color:#94a3b8;margin-left:auto;letter-spacing:.04em;}
.wv-lang-item.active .wv-lang-code{color:#2563eb;}
/* mobile inline lang section */
.wv-lang-mobile-section{padding:0.6rem 0 0.25rem;border-top:1px solid #f1f5f9;margin-top:0.35rem;}
.wv-lang-mobile-title{font-size:0.65rem;font-weight:800;color:#94a3b8;text-transform:uppercase;letter-spacing:.07em;padding:0 0 0.45rem;}
.wv-lang-mobile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0.35rem;}
.wv-lang-mobile-item{display:flex;align-items:center;gap:0.3rem;padding:0.38rem 0.5rem;border-radius:0.5rem;font-size:0.75rem;font-weight:600;color:#374151;text-decoration:none;background:#f8fafc;border:1px solid #e2e8f0;transition:background .12s;}
.wv-lang-mobile-item:hover{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe;}
.wv-lang-mobile-item.active{background:#2563eb;color:#fff;border-color:#2563eb;}
/* ── Tools Dropdown ── */
.wv-tools-dropdown{position:relative;flex-shrink:0;}
.wv-tools-btn{display:inline-flex;align-items:center;gap:0.3rem;font-size:0.875rem;font-weight:500;color:#4b5563;text-decoration:none;cursor:pointer;background:none;border:none;padding:0;transition:color .15s;}
.wv-tools-btn:hover,.wv-tools-dropdown.open .wv-tools-btn{color:#2563eb;}
.wv-tools-btn.active{color:#2563eb;font-weight:700;border-bottom:2px solid #2563eb;padding-bottom:1px;}
.wv-tools-chevron{width:13px;height:13px;transition:transform .2s;flex-shrink:0;}
.wv-tools-dropdown.open .wv-tools-chevron{transform:rotate(180deg);}
.wv-tools-menu{display:none;position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);min-width:180px;background:#fff;border:1px solid #e2e8f0;border-radius:0.75rem;box-shadow:0 12px 32px rgba(15,23,42,.13);z-index:200;overflow:hidden;padding:0.3rem 0;}
.wv-tools-dropdown.open .wv-tools-menu{display:block;}
.wv-tools-item{display:flex;align-items:center;gap:0.5rem;padding:0.52rem 0.9rem;font-size:0.82rem;font-weight:500;color:#374151;text-decoration:none;transition:background .12s;white-space:nowrap;}
.wv-tools-item:hover{background:#f1f5f9;color:#1e40af;}
.wv-tools-item.active{background:#eff6ff;color:#1d4ed8;font-weight:700;}
/* ── Sidebar input placeholder ── */
.lookup_form input,
.sidebar-widget input{color:#0f172a;background:#fff;caret-color:#0f172a;}
.lookup_form input::placeholder,
.sidebar-widget input::placeholder{color:#64748b;opacity:1;}
.lookup_form input:-webkit-autofill,
.lookup_form input:-webkit-autofill:hover,
.lookup_form input:-webkit-autofill:focus,
.sidebar-widget input:-webkit-autofill,
.sidebar-widget input:-webkit-autofill:hover,
.sidebar-widget input:-webkit-autofill:focus{-webkit-text-fill-color:#0f172a;-webkit-box-shadow:0 0 0 1000px #fff inset;transition:background-color 5000s ease-in-out 0s;}
/* ── Chart cards: prevent overflow into sidebar ── */
.chart-card,.cat-chart-card{min-width:0;overflow:hidden;}
.chart-grid-2,.cat-chart-grid{min-width:0;}
