/* ===== NAV PROGRESS BAR ===== */
#navProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary, #6c5ce7);
    z-index: 9999;
    width: 0;
    opacity: 0;
    transition: none;
}
#navProgress.active {
    opacity: 1;
    width: 70%;
    transition: width 0.6s cubic-bezier(0.1, 0.7, 0.3, 1);
}
main {
    transition: opacity 0.15s ease;
}
main.navigating {
    opacity: 0.6;
    pointer-events: none;
}
#navProgress.done {
    width: 100%;
    transition: width 0.15s ease-out;
}
#navProgress.hide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== SELF-HOSTED FONTS ===== */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/names/static/fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/names/static/fonts/dm-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url('/names/static/fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url('/names/static/fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== DESIGN SYSTEM — Editorial Warm ===== */
:root {
    --cream: #FDF6EC;
    --ink: #1A1612;
    --warm: #C4713B;
    --warm-dark: #A85D2A;
    --warm-light: #E8A76C;
    --sage: #7A8B6F;
    --sage-light: #D4DBC8;
    --blush: #D4918B;
    --pale: #F5EDE3;
    --card: #FFFFFF;
    --muted: #8A8078;

    --primary: #C4713B;
    --primary-dark: #A85D2A;
    --primary-light: #E8A76C;
    --accent: #7A8B6F;
    --accent-dark: #5C6B55;
    --success: #5C8A5E;
    --danger: #C45B5B;
    --heart: #D4918B;

    --bg: #FDF6EC;
    --bg-alt: #F5EDE3;
    --surface: #FFFFFF;
    --surface-hover: #FDF6EC;

    --text: #1A1612;
    --text-secondary: #5C534A;
    --text-muted: #8A8078;
    --border: rgba(26,22,18,0.08);
    --border-light: rgba(26,22,18,0.04);

    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 2px 16px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 30px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.06);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.08);

    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --transition: 0.3s ease;
    --container: 1200px;

    /* Pastel palette for badges & styles */
    --sky: #D5E3EC;
    --sky-text: #3A5F72;
    --lavender: #E8D5EC;
    --lavender-text: #6B3A72;
    --peach: #F5DDD5;
    --peach-text: #8B5A4A;

    --style-professional: #3A5F72;
    --style-modern: #6B3A72;
    --style-creative: #5C6B55;
    --style-fun: #8B5A4A;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input { font: inherit; }
ul, ol { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark p { color: rgba(255,255,255,0.6); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-title-sm { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9375rem;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; border-radius: var(--radius); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; border-radius: var(--radius-xs); }
.btn-icon {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all var(--transition);
}
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon:hover { background: var(--bg-alt); }

/* ===== BADGES ===== */
.badge {
    display: inline-flex; align-items: center;
    padding: 0.3rem 0.85rem; border-radius: 100px;
    font-size: 0.78rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-primary { background: var(--sage-light); color: #4A5C40; }
.badge-outline { background: var(--sky); color: var(--sky-text); }
.badge-outline:last-child { background: var(--lavender); color: var(--lavender-text); }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.3rem; font-weight: 700;
}
.logo-icon { font-size: 1.25rem; }
.logo-text { font-family: var(--font-serif); font-weight: 800; }
.logo-perfect { color: var(--text); }
.logo-name { color: var(--primary); }
.nav-links { display: flex; gap: 0.25rem; }
.nav-link {
    padding: 0.5rem 1rem; border-radius: var(--radius-xs);
    font-weight: 500; font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--bg-alt); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ===== HERO (Home) ===== */
.hero {
    position: relative; overflow: hidden;
    background: var(--bg);
    padding: 5rem 0 4rem;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.hero-title { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; letter-spacing: -0.03em; color: var(--text); }
.hero-accent { color: var(--primary); display: inline-block; min-width: 280px; transition: opacity 0.3s, transform 0.3s; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.8; }
.hero-sub strong { color: var(--text); }
.hero-search { max-width: 560px; margin: 0 auto; }
.search-box { position: relative; }
.search-box input {
    width: 100%; padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--pale);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text); font-size: 1.0625rem;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-muted); pointer-events: none; }
.search-results {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl); max-height: 320px; overflow-y: auto;
    display: none; z-index: 10; margin-top: 0.5rem;
}
.search-results.active { display: block; }
.search-result-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; color: var(--text);
    transition: background var(--transition);
}
.search-result-item:hover { background: var(--bg-alt); }
.search-result-item .sr-icon { font-size: 1.25rem; }
.search-result-item .sr-text { font-weight: 500; }
.search-result-item .sr-count { margin-left: auto; color: var(--text-muted); font-size: 0.8125rem; }

/* Hero bg shapes */
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; opacity: 0.35; }
.shape-1 { width: 500px; height: 500px; top: -200px; right: -100px; background: var(--pale); animation: float 8s ease-in-out infinite; }
.shape-2 { width: 350px; height: 350px; bottom: -120px; left: -80px; background: var(--sage-light); animation: float 10s ease-in-out infinite reverse; }
.shape-3 { width: 250px; height: 250px; top: 40%; left: 55%; background: var(--pale); animation: float 6s ease-in-out infinite 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* ===== PAGE HERO (non-home) ===== */
.page-hero {
    background: var(--bg-alt);
    color: var(--text); padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.page-hero p { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; }
.page-hero-sm { padding: 2.5rem 0; }
.page-hero-sm h1 { font-size: 2rem; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.stats-grid { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== CATEGORY CARDS ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.category-card {
    background: var(--surface); border: none;
    border-radius: var(--radius); padding: 1.5rem;
    transition: all var(--transition);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow);
}
.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.cat-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.cat-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.375rem; text-transform: capitalize; }
.cat-desc { font-size: 0.875rem; color: var(--text-secondary); flex: 1; margin-bottom: 0.75rem; line-height: 1.6; }
.cat-count { font-size: 0.8rem; color: var(--primary); font-weight: 600; }
.category-card-sm { padding: 1.25rem; }
.category-card-sm .cat-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* All categories list */
.cat-filter-input {
    width: 100%; max-width: 400px; margin: 0 auto; display: block;
    padding: 0.75rem 1rem; border: 2px solid var(--pale);
    border-radius: var(--radius-sm); margin-top: 1rem;
    background: var(--surface);
}
.cat-filter-input:focus { outline: none; border-color: var(--primary); }
.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.5rem; margin-top: 1.5rem;
}
.category-list-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.625rem 0.875rem; border-radius: var(--radius-xs);
    font-size: 0.9375rem; transition: all var(--transition);
}
.category-list-item:hover { background: var(--bg-alt); }
.cat-count-sm { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }

/* ===== CATEGORY HERO ===== */
.cat-hero {
    background: var(--bg-alt);
    color: var(--text); padding: 2.5rem 0 3rem;
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.cat-hero-inner { display: flex; align-items: center; gap: 1.5rem; }
.cat-hero-icon { font-size: 3.5rem; }
.cat-hero h1 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.cat-hero-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 0.75rem; }
.cat-hero-stats { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb { margin-bottom: 1.25rem; font-size: 0.82rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.375rem; }
.breadcrumb-light { color: var(--text-muted); }

/* ===== POPULAR PICKS ===== */
.popular-picks { padding: 2rem 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.popular-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.875rem 1rem; background: var(--bg);
    border: none; border-radius: var(--radius-sm);
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.popular-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.popular-name { font-weight: 600; font-size: 1rem; text-transform: capitalize; }
.popular-actions { display: flex; gap: 0.25rem; }

/* ===== TOOLBAR ===== */
.toolbar-section {
    position: sticky; top: 64px; z-index: 50;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.toolbar { display: flex; flex-direction: column; gap: 0.75rem; }
.toolbar-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; }
.filter-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-right: 0.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.filter-btn {
    padding: 0.4rem 0.9rem; border-radius: 100px;
    font-size: 0.8rem; font-weight: 500;
    border: 1.5px solid var(--border); color: var(--text-secondary);
    transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.filter-dropdowns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.filter-select {
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    cursor: pointer;
    transition: all var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8078' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
}
.filter-select:hover { border-color: var(--primary); color: var(--primary); }
.filter-select:focus { outline: none; border-color: var(--primary); }

.search-filter {
    position: relative; flex: 1; min-width: 180px; max-width: 300px;
}
.search-filter svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }
.search-filter input {
    width: 100%; padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.875rem; transition: border var(--transition);
    background: var(--bg);
}
.search-filter input:focus { outline: none; border-color: var(--primary); }

.letter-filters { display: flex; gap: 2px; flex-wrap: wrap; }
.letter-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 0.75rem; font-weight: 600;
    color: var(--text-muted); transition: all var(--transition);
}
.letter-btn:hover { background: var(--bg-alt); color: var(--text); }
.letter-btn.active { background: var(--primary); color: #fff; }

.btn-shuffle {
    padding: 0.5rem 1rem; border-radius: 100px;
    font-size: 0.8rem; font-weight: 600;
    color: var(--primary); border: 1.5px solid var(--primary-light);
    display: flex; align-items: center; gap: 0.375rem;
    transition: all var(--transition);
}
.btn-shuffle svg { width: 16px; height: 16px; }
.btn-shuffle:hover { background: var(--primary); color: #fff; }

/* Favorites bar */
.favorites-bar {
    margin-top: 0.75rem; padding: 1rem;
    background: var(--bg); border: none;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 0 1.5px rgba(196,113,59,0.2);
}
.fav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.875rem; color: var(--primary); }
.fav-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fav-chip {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.3rem 0.8rem; background: var(--surface);
    border-radius: 100px; font-size: 0.8rem; font-weight: 500; text-transform: capitalize;
    box-shadow: var(--shadow);
}
.fav-chip-remove { color: var(--text-muted); font-size: 1rem; line-height: 1; }
.fav-chip-remove:hover { color: var(--danger); }

/* ===== NAMES GRID ===== */
.names-section { padding: 1.5rem 0 4rem; }
.names-count { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: 500; }
.names-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.name-card {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface); border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
    animation: fadeIn 0.4s ease;
}
.name-card > div:first-child { min-width: 0; flex: 1; display: flex; align-items: center; gap: 0.5rem; overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.name-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.name-card.copied { background: #f0f7f0; box-shadow: inset 0 0 0 1.5px var(--success); }
.nc-name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; text-transform: capitalize; }
.nc-style {
    font-size: 0.68rem; font-weight: 500; padding: 0.15rem 0.5rem;
    border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em;
    flex-shrink: 0; white-space: nowrap;
}
.nc-style-professional { background: var(--sky); color: var(--sky-text); }
.nc-style-modern { background: var(--lavender); color: var(--lavender-text); }
.nc-style-creative { background: var(--sage-light); color: #4A5C40; }
.nc-style-fun { background: var(--peach); color: var(--peach-text); }
.nc-actions { display: flex; gap: 0.125rem; }
.nc-fav, .nc-copy, .nc-listen { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all var(--transition); }
.nc-fav svg, .nc-copy svg, .nc-listen svg { width: 14px; height: 14px; }
.nc-fav:hover { color: var(--heart); background: rgba(212,145,139,0.12); }
.nc-fav:hover svg path { fill: var(--heart); }
.nc-copy:hover { color: var(--success); background: rgba(92,138,94,0.1); }
.nc-listen:hover { color: var(--primary); background: rgba(196,113,59,0.1); }
.nc-listen.speaking { color: var(--primary); }
.nc-listen.speaking svg { animation: pulse 0.6s ease infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* Faved state */
.name-card.faved .nc-fav { color: var(--heart); }
.name-card.faved .nc-fav svg path { fill: var(--heart); }

.names-empty { text-align: center; padding: 3rem 0; color: var(--text-secondary); }
.names-empty p { margin-bottom: 1rem; }

/* ===== CATEGORY HERO LAYOUT ===== */
.cat-hero-layout {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.cat-hero-left { flex: 1; }
.cat-hero h1 { display: flex; align-items: center; gap: 0.5rem; }
.cat-hero-actions {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    margin-top: 0.75rem;
}
.btn-random-open {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; border-radius: 100px;
    background: var(--primary); color: #fff;
    font-weight: 600; font-size: 0.875rem;
    border: none;
    transition: all var(--transition); cursor: pointer;
}
.btn-random-open:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.cat-hero-picks { flex-shrink: 0; }
.hero-picks-label {
    display: block; font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); margin-bottom: 0.5rem;
}
.hero-picks-list { display: flex; flex-wrap: wrap; gap: 0.4rem; max-width: 300px; }
.hero-pill {
    display: inline-block; padding: 0.4rem 0.9rem;
    background: var(--surface); color: var(--text);
    border-radius: 100px; font-size: 0.82rem; font-weight: 500; text-transform: capitalize;
    box-shadow: var(--shadow);
    cursor: pointer; transition: all var(--transition);
}
.hero-pill:hover { background: var(--primary); color: #fff; transform: scale(1.03); }

.cat-hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cat-shape { position: absolute; border-radius: 50%; opacity: 0.3; }
.cat-shape-1 { width: 300px; height: 300px; top: -100px; right: -50px; background: var(--pale); }
.cat-shape-2 { width: 200px; height: 200px; bottom: -80px; left: 10%; background: var(--sage-light); }

/* ===== RANDOM NAME MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(26,22,18,0.4); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    padding: 1.5rem;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal-content {
    background: var(--surface); border-radius: 24px;
    padding: 2.5rem; max-width: 420px; width: 100%;
    position: relative; text-align: center;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { transform: scale(0.95) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: var(--text-muted);
    transition: all var(--transition); cursor: pointer;
    background: none; border: none;
}
.modal-close:hover { background: var(--bg-alt); color: var(--text); }

.modal-spinner { display: flex; flex-direction: column; align-items: center; }

.spinner-circle {
    position: relative; width: 200px; height: 200px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.spinner-ring {
    position: absolute; inset: 0; width: 100%; height: 100%;
    transform: rotate(-90deg);
}
.spinner-arc { transition: stroke-dasharray 0.3s ease; }
.spinner-ring.spin .spinner-arc {
    animation: spinArc 0.6s linear infinite;
}
@keyframes spinArc {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -565; }
}
.spinner-inner {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; z-index: 1;
}
.spinner-label {
    font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 0.375rem;
}
.spinner-name {
    font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700;
    color: var(--primary); cursor: pointer; text-transform: capitalize;
    transition: all 0.3s ease;
    max-width: 170px; word-wrap: break-word; line-height: 1.2;
}
.spinner-name:hover { color: var(--primary-dark); }
.spinner-name.landed {
    animation: landBounce 0.5s ease;
    color: var(--primary-dark);
}
@keyframes landBounce {
    0% { transform: scale(0.7); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.spinner-hint {
    font-size: 0.7rem; color: var(--text-muted);
    margin-top: 0.375rem;
}
.spinner-widget.active .spinner-name { color: var(--primary-light); }
.spinner-widget.landed .spinner-circle {
    animation: landPulse 0.6s ease;
}
@keyframes landPulse {
    0% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 0 20px rgba(196,113,59,0.3)); }
    100% { filter: drop-shadow(0 0 0 transparent); }
}

.modal-actions {
    display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
}
.btn-spin-modal {
    padding: 0.75rem 1.5rem; border-radius: 100px;
    font-weight: 600; display: flex; align-items: center; gap: 0.5rem;
}
.btn-spin-modal.spinning { pointer-events: none; opacity: 0.7; }
.btn-spin-modal.spinning svg { animation: spinIcon 0.5s linear infinite; }
@keyframes spinIcon { 100% { transform: rotate(360deg); } }
.btn-listen-result, .btn-copy-result, .btn-fav-result {
    padding: 0.625rem 1rem; border-radius: 100px;
    font-size: 0.875rem; display: flex; align-items: center; gap: 0.375rem;
}

/* ===== LOAD MORE ===== */
.load-more-wrap {
    text-align: center; padding: 2rem 0 0;
}
.btn-load-more {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.875rem 2.5rem;
    background: var(--surface); color: var(--text);
    border: 1.5px solid var(--border); border-radius: 100px;
    font-size: 1rem; font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
}
.btn-load-more:hover {
    border-color: var(--primary); color: var(--primary);
    box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.load-more-badge {
    background: var(--primary); color: #fff;
    padding: 0.15rem 0.65rem; border-radius: 100px;
    font-size: 0.8rem; font-weight: 700;
}

/* ===== FAMOUS EXAMPLES ===== */
.section-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: -0.25rem; margin-bottom: 2rem; }
.famous-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
}
.famous-card {
    background: var(--surface); border: none;
    border-radius: var(--radius); padding: 1.5rem;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    border-left: 3px solid var(--primary);
}
.famous-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.famous-header { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.famous-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--text); text-transform: capitalize; }
.famous-origin { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.famous-why { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ===== CONTENT SECTIONS ===== */
.content-section { max-width: 800px; margin: 0 auto; }
.content-section h2 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.content-section h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
.content-section p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.8; }
.content-section ul, .content-section ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content-section li { margin-bottom: 0.5rem; color: var(--text-secondary); list-style: disc; }
.intro-text { font-size: 1.0625rem; }
.intro-text p:first-child { font-size: 1.15rem; color: var(--text); }

.guide-section { margin-bottom: 2rem; }
.guide-content p { margin-bottom: 0.75rem; }
.guide-content ul { margin-bottom: 0.75rem; padding-left: 1.5rem; }
.guide-content li { list-style: disc; margin-bottom: 0.375rem; color: var(--text-secondary); }

/* ===== TIPS ===== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}
.tip-card {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.5rem; background: var(--surface);
    border: none; border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.tip-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tip-num {
    flex-shrink: 0; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff;
    border-radius: 50%; font-size: 0.85rem; font-weight: 700;
}
.tip-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: none; border-radius: var(--radius-sm);
    margin-bottom: 0.75rem; overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.25rem; font-weight: 600; font-size: 0.95rem;
    text-align: left; transition: background var(--transition);
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p { padding: 0 1.25rem 1.1rem; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.blog-grid-full .blog-card { }
.blog-card {
    background: var(--surface); border-radius: var(--radius);
    overflow: hidden; transition: all var(--transition);
    box-shadow: var(--shadow);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-body { padding: 1.5rem; }
.blog-card h2, .blog-card h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.75rem; line-height: 1.7; }
.blog-date { font-size: 0.8rem; color: var(--text-muted); }
.blog-read-time { font-size: 0.8rem; color: var(--text-muted); }
.blog-meta { display: flex; gap: 1rem; margin-bottom: 0.75rem; }
.blog-read { font-size: 0.875rem; color: var(--primary); font-weight: 600; }
.blog-tag {
    display: inline-block; padding: 0.2rem 0.65rem;
    background: var(--bg-alt); border-radius: 100px;
    font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.blog-tags { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.blog-link { font-size: 0.875rem; color: var(--primary); font-weight: 600; }

/* Blog article */
.blog-article-meta { display: flex; gap: 0.5rem; color: var(--text-muted); font-size: 0.9rem; flex-wrap: wrap; }
.blog-content { max-width: 760px; margin: 0 auto; font-size: 1.0625rem; line-height: 1.9; }
.blog-content h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; letter-spacing: -0.02em; }
.blog-content h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.blog-content p { margin-bottom: 1.25rem; color: var(--text-secondary); }
.blog-content ul, .blog-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; color: var(--text-secondary); list-style: disc; }
.blog-content ol li { list-style: decimal; }
.blog-content strong { color: var(--text); }
.blog-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem; margin: 1.5rem 0;
    background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blog-tags-section { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* ===== POPULAR PAGE ===== */
.popular-names-scroll {
    display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem;
}
.popular-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.1rem; background: var(--surface);
    border: 1.5px solid var(--border); border-radius: 100px;
    font-weight: 500; font-size: 0.9rem;
    transition: all var(--transition);
}
.popular-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-copy-sm { opacity: 0; transition: opacity var(--transition); }
.popular-pill:hover .btn-copy-sm { opacity: 1; }

.popular-cats { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.pop-cat-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; background: var(--bg-alt);
    border-radius: 100px; font-size: 0.875rem; font-weight: 500;
    transition: all var(--transition);
}
.pop-cat-link:hover { background: var(--primary); color: #fff; }
.pop-cat-link:hover .cat-count-sm { color: rgba(255,255,255,0.7); }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.step-card {
    text-align: center; padding: 2rem;
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step-num {
    width: 52px; height: 52px; margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff;
    border-radius: 50%; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
}
.step-card h3 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.625rem; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== EXPERTISE ===== */
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.expertise-text h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; margin-bottom: 1rem; color: #fff; letter-spacing: -0.02em; }
.expertise-text p { margin-bottom: 1rem; }
.expertise-list { margin-top: 1.5rem; }
.expertise-list li {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0; color: rgba(255,255,255,0.7); font-size: 0.9rem;
}
.expertise-list li::before { content: "✓"; color: var(--sage); font-weight: 700; }
.expertise-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.exp-stat {
    text-align: center; padding: 1.5rem;
    background: rgba(255,255,255,0.06); border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
}
.exp-num { display: block; font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--primary-light); margin-bottom: 0.25rem; }
.exp-stat span:last-child { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-alt); color: var(--text-muted); padding: 4rem 0 2rem; border-top: 1px solid var(--border); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem; margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand .logo-perfect { color: var(--text); }
.footer-brand .logo-name { color: var(--primary); }
.footer-desc { font-size: 0.875rem; line-height: 1.8; max-width: 320px; }
.footer-links-col h4 { font-family: var(--font-serif); color: var(--text); font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links-col a { display: block; font-size: 0.85rem; padding: 0.3rem 0; transition: color var(--transition); }
.footer-links-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; }
.footer-legal { display: flex; justify-content: center; gap: 1.5rem; margin-top: 0.5rem; }
.footer-legal a { color: var(--text-muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--primary); }

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--text); color: #fff;
    padding: 0.75rem 1.5rem; border-radius: 100px;
    font-size: 0.875rem; font-weight: 500;
    z-index: 1000; pointer-events: none;
    opacity: 0; transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== ADS ===== */
.ad-slot { margin: 0.75rem auto; }
.ad-placeholder { min-height: 0; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 4rem 0; }
.empty-state h2 { font-family: var(--font-serif); margin-bottom: 0.75rem; }
.empty-state p { color: var(--text-secondary); }

/* ===== RELATED ===== */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* ===== NAME ANALYZER ===== */
.analyzer-section {
    background: var(--bg);
}
.analyzer-section .container {
    padding-top: 0;
    padding-bottom: 0;
}
.analyzer {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: box-shadow 0.4s ease;
    max-width: 600px;
    margin: 0 auto;
}
.analyzer.has-results { box-shadow: var(--shadow-lg); }
.toolbar-analyzer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}
.analyzer-input-wrap {
    flex: 1;
    position: relative;
}
.analyzer-input-wrap svg {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px; height: 18px;
    pointer-events: none;
    transition: color var(--transition);
}
.analyzer-input-wrap:focus-within svg { color: var(--primary); }
.analyzer-name-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.6rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color var(--transition);
}
.analyzer-name-input:focus { border-color: var(--primary); }
.analyzer-name-input::placeholder { color: var(--text-muted); font-weight: 400; }
.btn-analyze {
    flex-shrink: 0;
}
.analyzer-results-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.analyzer-results-panel.open {
    max-height: 2000px;
}
.analyzer-results-inner {
    padding: 0 2rem 2rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.analyzer-results-panel.open .analyzer-results-inner {
    opacity: 1;
    transform: translateY(0);
}
.analyzer-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 1.75rem;
}
.analyzer-res-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.analyzer-res-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: capitalize;
}
.analyzer-res-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}
.analyzer-grade {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.4) rotate(-10deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.analyzer-grade.pop { opacity: 1; transform: scale(1) rotate(0deg); }
.analyzer-grade.ga { background: linear-gradient(135deg, #5C8A5E, #4A7A4C); }
.analyzer-grade.gb { background: linear-gradient(135deg, #C4713B, #A85D2A); }
.analyzer-grade.gc { background: linear-gradient(135deg, #8A8078, #6B635B); }
.analyzer-letters-row {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.analyzer-ltr {
    width: 34px; height: 42px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.analyzer-ltr.in { opacity: 1; transform: translateY(0); }
.analyzer-ltr .ch { }
.analyzer-ltr .tp { font-size: 0.5rem; font-weight: 700; opacity: 0.6; margin-top: 2px; text-transform: uppercase; }
.analyzer-ltr.v { background: rgba(196,113,59,0.1); color: var(--warm-dark); }
.analyzer-ltr.c { background: rgba(58,95,114,0.1); color: var(--sky-text); }
.analyzer-ltr.sp { width: 14px; background: transparent; }
.analyzer-ltr.sym { background: rgba(107,58,114,0.1); color: var(--lavender-text); }
.analyzer-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}
.analyzer-sc-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}
.analyzer-sc-label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.analyzer-sc-num { font-size: 0.82rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.analyzer-sc-track {
    height: 7px;
    background: var(--bg-alt);
    border-radius: 100px;
    overflow: hidden;
}
.analyzer-sc-bar {
    height: 100%;
    border-radius: 100px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.analyzer-sc-bar.s0 { background: linear-gradient(90deg, #C4713B, #E8A76C); }
.analyzer-sc-bar.s1 { background: linear-gradient(90deg, #3A5F72, #5A8FA2); }
.analyzer-sc-bar.s2 { background: linear-gradient(90deg, #8B5A4A, #C47A6A); }
.analyzer-sc-bar.s3 { background: linear-gradient(90deg, #6B3A72, #A26BAA); }
.analyzer-sc-bar.s4 { background: linear-gradient(90deg, #7A8B6F, #A2B896); }
.analyzer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}
.analyzer-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.analyzer-tag.in { opacity: 1; transform: scale(1); }
.analyzer-tag.tg { background: rgba(92,138,94,0.12); color: #4A7A4C; }
.analyzer-tag.tn { background: rgba(138,128,120,0.1); color: var(--text-secondary); }
.analyzer-tag.ta { background: rgba(196,113,59,0.1); color: var(--warm-dark); }
.analyzer-tag .ti { font-size: 0.8rem; }
.analyzer-phonetics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.analyzer-ph {
    background: var(--bg);
    border-radius: var(--radius-xs);
    padding: 0.85rem 0.75rem;
    text-align: center;
}
.analyzer-ph-val { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.analyzer-ph-key { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-top: 0.1rem; }
.analyzer-insight {
    background: linear-gradient(135deg, rgba(196,113,59,0.05), rgba(122,139,111,0.05));
    border-left: 3px solid var(--warm-light);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}
.analyzer-insight-ico { font-size: 1.1rem; flex-shrink: 0; }
.analyzer-insight-txt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; font-style: italic; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }

    .hero { padding: 3rem 0 2.5rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-sub { font-size: 1rem; }

    .nav-toggle { display: flex; }
    .nav-links {
        display: none; position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 0.5rem;
    }
    .nav-links.open { display: flex; }

    .stats-grid { gap: 1.5rem; }
    .stat-num { font-size: 1.375rem; }

    .category-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .category-list { grid-template-columns: 1fr; }

    .cat-hero-layout { flex-direction: column; text-align: center; }
    .cat-hero h1 { justify-content: center; font-size: 1.8rem; }
    .cat-hero-actions { justify-content: center; }
    .cat-hero-picks { width: 100%; }
    .hero-picks-label { text-align: center; }
    .hero-picks-list { justify-content: center; max-width: 100%; }

    .toolbar-section { top: 64px; }
    .toolbar-row { gap: 0.5rem; }
    .search-filter { max-width: 100%; }
    .letter-filters { display: none; }

    .names-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

    .popular-grid { grid-template-columns: 1fr 1fr; }

    .tips-grid { grid-template-columns: 1fr; }

    .expertise-grid { grid-template-columns: 1fr; }
    .expertise-stats { grid-template-columns: 1fr 1fr; }

    .blog-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; }

    .steps-grid { grid-template-columns: 1fr; }

    .page-hero h1 { font-size: 1.75rem; }

    .famous-grid { grid-template-columns: 1fr; }

    .toolbar-analyzer-row { flex-direction: column; width: 100%; }
    .btn-analyze { width: 100%; justify-content: center; }
    .analyzer-scores { grid-template-columns: 1fr; }
    .analyzer-phonetics { grid-template-columns: 1fr; }
    .analyzer-results-inner { padding: 0 1.25rem 1.5rem; }
    .analyzer-res-name { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 2rem; }
    .popular-grid { grid-template-columns: 1fr; }
    .names-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { gap: 1rem; }
    .section { padding: 2.5rem 0; }
}
