/* ================================================================
   nombresperefectos.mx — Design System
   Tipografía: Outfit (Google Fonts)
   Paleta: Violeta Vibrante y Rosa Suave con acentos dorados
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
    --color-primary: #8B5CF6;
    /* violet */
    --color-primary-dark: #7C3AED;
    /* dark violet */
    --color-secondary: #F472B6;
    /* soft pink */
    --color-accent: #FCD34D;
    /* warm gold */
    --color-bg: #FAFAFA;
    /* clean background */
    --color-bg2: #FFFFFF;
    /* white */
    --color-surface: #FFFFFF;
    /* white cards */
    --color-surface2: #F5F3FF;
    /* light violet wash */
    --color-text: #1E1B4B;
    /* deep violet-navy */
    --color-text-muted: #6B7280;
    /* cool gray */
    --color-border: rgba(139, 92, 246, 0.15);
    /* subtle violet border */
    --color-boy: #3B82F6;
    --color-girl: #EC4899;
    --color-unisex: #10B981;
    --radius: 16px;
    /* slightly rounder for a softer, friendly look */
    --radius-sm: 10px;
    --shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.1), 0 8px 10px -6px rgba(139, 92, 246, 0.1);
    --shadow-glow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Outfit', sans-serif;
    --font-size-base: 18px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    display: block;
}

/* ── Utilities ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hide-mobile {
        display: none;
    }
}

.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .layout-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ── Header / Nav ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-text);
}

.nav-brand span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
    min-height: 48px;
    /* larger tap area */
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
    background: var(--color-surface);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    transition: var(--transition);
}

.nav-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.nav-search input {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--color-text);
    width: 180px;
}

.nav-search input::placeholder {
    color: var(--color-text-muted);
}

.nav-search button {
    border-radius: 999px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: 0.5rem;
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transition: var(--transition);
    }

    .nav-links {
        display: none;
    }

    .nav-search {
        display: none;
    }

    /* Dropdown overlay menu below header */
    .nav-overlay {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        height: calc(100vh - 68px);
        background: var(--color-bg);
        z-index: 99;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        overflow-y: auto;
        border-top: 1px solid var(--color-border);
    }
}


/* ── Hero ── */
@media (max-width: 600px) {
    .hero {
        padding: 3rem 1rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-search {
        width: 100%;
        margin: 0 auto;
    }
}

.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Hero Search */
.hero-search {
    max-width: 580px;
    margin: 0 auto 2.5rem;
    display: flex;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.hero-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2), var(--shadow-glow);
}

.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--color-text);
}

.hero-search input::placeholder {
    color: var(--color-text-muted);
}

.hero-search button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    cursor: pointer;
    padding: 0 1.75rem;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    border-radius: 999px;
    margin: 4px;
    transition: var(--transition);
}

.hero-search button:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.hero-stat span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ── Sections ── */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Cards ── */
.name-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: var(--transition);
}

.name-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.name-card:hover::before {
    opacity: 1;
}

.name-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.name-card-meaning {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.name-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-boy {
    background: rgba(96, 165, 250, 0.15);
    color: var(--color-boy);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-girl {
    background: rgba(163, 185, 119, 0.15);
    color: var(--color-girl);
    border: 1px solid rgba(163, 185, 119, 0.3);
}

.badge-unisex {
    background: rgba(52, 211, 153, 0.15);
    color: var(--color-unisex);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-origin {
    background: rgba(251, 191, 36, 0.15);
    color: #D97706;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge-neutral {
    background: var(--color-surface2);
    color: var(--color-text-muted);
}

/* Increase badge touch area */
.badge {
    padding: 0.35rem 0.75rem;
    min-height: 32px;
}

/* Gender quick-filter tabs */
.gender-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .gender-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gender-tab {
        flex: 0 0 auto;
    }
}

.gender-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    background: var(--color-surface);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.gender-tab:hover,
.gender-tab.active {
    color: white;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: transparent;
}

/* Letter strip */
.letter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.letter-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    transition: var(--transition);
    text-decoration: none;
}

.letter-btn:hover,
.letter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ── Buttons ── */
@media (min-width: 600px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    min-height: 48px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* ── Forms ── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.form-control {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--color-text);
    outline: none;
    transition: var(--transition);
    width: 100%;
    min-height: 48px;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239d84c4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
}

.form-error {
    font-size: 0.78rem;
    color: #f87171;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── Cards / Panels ── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.card-sm {
    padding: 1.25rem;
}

/* ── Tables ── */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
    color: var(--color-text);
    vertical-align: middle;
}

tbody tr:hover td {
    background: rgba(139, 92, 246, 0.04);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.pagination .page-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

display: flex;
align-items: center;
justify-content: center;
min-width: 38px;
height: 38px;
padding: 0 0.5rem;
border-radius: var(--radius-sm);
border: 1px solid var(--color-border);
background: var(--color-surface);
color: var(--color-text-muted);
font-size: 0.875rem;
font-weight: 500;
transition: var(--transition);
}

.pagination .page-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination .disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    padding: 1rem 0 0;
}

.breadcrumbs a {
    color: var(--color-text-muted);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs .sep {
    color: rgba(157, 132, 196, 0.4);
}

.breadcrumbs .current {
    color: var(--color-text);
    font-weight: 500;
}

/* ── Alert/Flash ── */
.alert {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.alert-success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-info {
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* ── Ad Slots ── */
.ad-slot {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(244, 114, 182, 0.06));
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(157, 132, 196, 0.5);
    text-align: center;
    letter-spacing: 0.5px;
}

.ad-slot-banner {
    width: 100%;
    height: 90px;
}

.ad-slot-rectangle {
    width: 100%;
    min-height: 250px;
}

.ad-slot-sidebar {
    width: 100%;
    min-height: 300px;
}

/* ── Name Detail Page ── */
.name-hero {
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
}

.name-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

.name-display {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.name-meaning-hero {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-weight: 500;
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--color-surface);
    border: none;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--color-surface2);
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--color-primary);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1.25rem;
    background: var(--color-surface);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ── Generator ── */
.generator-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
}

.harmony-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--color-surface2);
    overflow: hidden;
    margin-top: 0.35rem;
}

.harmony-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Compatibility ── */
.compat-score-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary) var(--pct), var(--color-surface2) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.compat-score-ring::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-bg);
}

.compat-score-value {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-align: center;
}

/* ── Footer ── */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 3.5rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

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

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

.footer-brand-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ── Admin Layout ── */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar {
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0 0.75rem;
}

.sidebar-nav li {
    margin-bottom: 0.2rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(139, 92, 246, 0.12);
    color: var(--color-primary);
}

.sidebar-nav .nav-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.admin-content {
    padding: 2rem;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Utility ── */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-primary {
    color: var(--color-primary);
}

.text-sm {
    font-size: 0.85rem;
}

.font-bold {
    font-weight: 700;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.w-full {
    width: 100%;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
}

/* Full‑screen navigation overlay removed to avoid duplication */