/* ===== DESIGN SYSTEM ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --heart: #ec4899;

    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface: #ffffff;
    --surface-hover: #fafafa;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.2s ease;
    --container: 1200px;

    /* Style colors */
    --style-professional: #3b82f6;
    --style-modern: #6366f1;
    --style-creative: #f59e0b;
    --style-fun: #ef4444;
}

/* ===== 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;
    -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 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--text); color: #fff; }
.section-dark p { color: #cbd5e1; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.section-header p { color: var(--text-secondary); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }
.section-title-sm { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.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: 2px solid var(--border); color: var(--text); }
.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: var(--radius-xs); 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.25rem 0.75rem; border-radius: 100px;
    font-size: 0.8125rem; font-weight: 600;
}
.badge-primary { background: var(--primary); color: #fff; }
.badge-outline { border: 1px solid var(--border); color: var(--text-secondary); }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    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.25rem; font-weight: 800;
}
.logo-icon { font-size: 1.5rem; }
.logo-text { background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-link {
    padding: 0.5rem 1rem; border-radius: var(--radius-sm);
    font-weight: 500; font-size: 0.9375rem;
    color: var(--text-secondary);
    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 ===== */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 60%, #6366f1 100%);
    padding: 6rem 0 5rem; color: #fff;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.hero-title { font-size: 3.25rem; font-weight: 900; line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero-accent { color: var(--accent); display: inline-block; min-width: 280px; }
.hero-sub { font-size: 1.1875rem; color: #c7d2fe; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-sub strong { color: #fff; }
.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 rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: #fff; font-size: 1.0625rem;
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}
.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.search-box input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.15); }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: rgba(255,255,255,0.5); 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.08; background: #fff; }
.shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 300px; height: 300px; bottom: -80px; left: -60px; animation: float 10s ease-in-out infinite reverse; }
.shape-3 { width: 200px; height: 200px; top: 50%; left: 60%; 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: linear-gradient(135deg, #1e1b4b, #4338ca);
    color: #fff; padding: 3.5rem 0;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.page-hero p { color: #c7d2fe; 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-size: 1.75rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.875rem; 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: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    transition: all var(--transition);
    display: flex; flex-direction: column;
}
.category-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.cat-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.cat-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.375rem; }
.cat-desc { font-size: 0.875rem; color: var(--text-secondary); flex: 1; margin-bottom: 0.75rem; }
.cat-count { font-size: 0.8125rem; 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: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-top: 1rem;
}
.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: background 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: linear-gradient(135deg, #1e1b4b, #4338ca);
    color: #fff; padding: 2rem 0 2.5rem;
}
.cat-hero-inner { display: flex; align-items: center; gap: 1.5rem; }
.cat-hero-icon { font-size: 3.5rem; }
.cat-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.cat-hero-desc { color: #c7d2fe; 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.875rem; color: #a5b4fc; }
.breadcrumb a { color: #c7d2fe; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 0.375rem; }
.breadcrumb-light { color: #a5b4fc; }

/* ===== 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: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.popular-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.popular-name { font-weight: 600; font-size: 1rem; }
.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.8125rem; font-weight: 600; color: var(--text-muted); margin-right: 0.25rem; }
.filter-btn {
    padding: 0.375rem 0.875rem; border-radius: 100px;
    font-size: 0.8125rem; font-weight: 500;
    border: 1px solid var(--border); color: var(--text-secondary);
    transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; 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: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.875rem; transition: border var(--transition);
}
.search-filter input:focus { outline: none; border-color: var(--primary); }

.letter-filters { display: flex; gap: 2px; flex-wrap: wrap; }
.letter-btn {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-xs); 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: var(--radius-sm);
    font-size: 0.8125rem; font-weight: 600;
    color: var(--primary); border: 1px 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: 0.875rem;
    background: #fef3c7; border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
}
.fav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.875rem; }
.fav-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fav-chip {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.25rem 0.75rem; background: #fff;
    border-radius: 100px; font-size: 0.8125rem; font-weight: 500;
    border: 1px solid #fcd34d;
}
.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: 1rem 0 4rem; }
.names-count { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: 500; }
.names-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
}
.name-card {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}
.name-card > div:first-child { min-width: 0; flex: 1; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.name-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.name-card.copied { border-color: var(--success); background: #f0fdf4; }
.nc-name { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.nc-style {
    font-size: 0.6875rem; font-weight: 600; padding: 0.125rem 0.5rem;
    border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em;
}
.nc-style-professional { background: #dbeafe; color: var(--style-professional); }
.nc-style-modern { background: #e0e7ff; color: var(--style-modern); }
.nc-style-creative { background: #fef3c7; color: var(--style-creative); }
.nc-style-fun { background: #fee2e2; color: var(--style-fun); }
.nc-actions { display: flex; gap: 0.125rem; opacity: 0; transition: opacity var(--transition); }
.name-card:hover .nc-actions { opacity: 1; }
.nc-fav, .nc-copy, .nc-listen { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.nc-fav svg, .nc-copy svg, .nc-listen svg { width: 14px; height: 14px; }
.nc-fav:hover { color: var(--heart); }
.nc-fav:hover svg path { fill: var(--heart); }
.nc-copy:hover { color: var(--success); }
.nc-listen:hover { color: var(--primary); }
.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: var(--radius-sm);
    background: rgba(255,255,255,0.15); color: #fff;
    font-weight: 600; font-size: 0.875rem;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all var(--transition); cursor: pointer;
}
.btn-random-open:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }

.cat-hero-picks { flex-shrink: 0; }
.hero-picks-label {
    display: block; font-size: 0.6875rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: #a5b4fc; margin-bottom: 0.5rem;
}
.hero-picks-list { display: flex; flex-wrap: wrap; gap: 0.375rem; max-width: 280px; }
.hero-pill {
    display: inline-block; padding: 0.375rem 0.875rem;
    background: rgba(255,255,255,0.12); color: #fff;
    border-radius: 100px; font-size: 0.8125rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer; transition: all var(--transition);
}
.hero-pill:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }

.cat-hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cat-shape { position: absolute; border-radius: 50%; opacity: 0.06; background: #fff; }
.cat-shape-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.cat-shape-2 { width: 200px; height: 200px; bottom: -80px; left: 10%; }
.cat-hero { position: relative; overflow: hidden; }

/* ===== RANDOM NAME MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    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: 20px;
    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.9) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 32px; height: 32px; 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.6875rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 0.375rem;
}
.spinner-name {
    font-size: 1.75rem; font-weight: 800;
    color: var(--primary); cursor: pointer;
    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.6875rem; color: var(--text-muted);
    margin-top: 0.375rem;
}
.spinner-widget.active .spinner-name { color: var(--accent); }
.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(99,102,241,0.35)); }
    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: var(--radius-sm);
    font-weight: 700; 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: var(--radius-sm);
    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: 2px solid var(--border); border-radius: var(--radius);
    font-size: 1rem; font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
}
.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.125rem 0.625rem; border-radius: 100px;
    font-size: 0.8125rem; font-weight: 700;
}

/* ===== FAMOUS EXAMPLES ===== */
.section-subtitle { color: var(--text-secondary); margin-top: -0.75rem; margin-bottom: 2rem; }
.famous-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.famous-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 1.25rem;
    transition: all var(--transition);
    border-left: 3px solid var(--accent);
}
.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-size: 1.125rem; font-weight: 700; color: var(--text); }
.famous-origin { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }
.famous-why { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ===== CONTENT SECTIONS ===== */
.content-section { max-width: 800px; margin: 0 auto; }
.content-section h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.25rem; }
.content-section h3 { 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.75; }
.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.1875rem; 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: 1rem;
}
.tip-card {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.25rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.tip-num {
    flex-shrink: 0; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff;
    border-radius: 50%; font-size: 0.8125rem; font-weight: 700;
}
.tip-card p { font-size: 0.9375rem; color: var(--text-secondary); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: 0.625rem; overflow: hidden;
    background: var(--surface);
}
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; font-weight: 600; font-size: 0.9375rem;
    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 1rem; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.blog-grid-full .blog-card { border: 1px solid var(--border); }
.blog-card {
    background: var(--surface); border-radius: var(--radius);
    overflow: hidden; transition: all var(--transition);
    border: 1px solid transparent;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--primary-light); }
.blog-card-body { padding: 1.5rem; }
.blog-card h2, .blog-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.blog-date { font-size: 0.8125rem; color: var(--text-muted); }
.blog-read-time { font-size: 0.8125rem; 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.125rem 0.625rem;
    background: var(--bg-alt); border-radius: 100px;
    font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
}
.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: #a5b4fc; font-size: 0.9375rem; flex-wrap: wrap; }
.blog-content { max-width: 760px; margin: 0 auto; font-size: 1.0625rem; line-height: 1.8; }
.blog-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.blog-content h3 { 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.5rem; margin-bottom: 1.5rem;
}
.popular-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: 100px;
    font-weight: 500; font-size: 0.9375rem;
    transition: all var(--transition);
}
.popular-pill:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.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: var(--radius-sm); 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);
    border: 1px solid var(--border);
}
.step-num {
    width: 48px; height: 48px; margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff;
    border-radius: 50%; font-size: 1.25rem; font-weight: 800;
}
.step-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.625rem; }
.step-card p { font-size: 0.9375rem; color: var(--text-secondary); }

/* ===== EXPERTISE ===== */
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.expertise-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; color: #fff; }
.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: #cbd5e1; font-size: 0.9375rem;
}
.expertise-list li::before { content: "✓"; color: var(--success); 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.08); border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}
.exp-num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 0.25rem; }
.exp-stat span:last-child { font-size: 0.875rem; color: #94a3b8; }

/* ===== FOOTER ===== */
.footer { background: #0f172a; color: #94a3b8; padding: 4rem 0 2rem; }
.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-text { -webkit-text-fill-color: #fff; }
.footer-desc { font-size: 0.875rem; line-height: 1.7; max-width: 320px; }
.footer-links-col h4 { color: #fff; font-size: 0.875rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links-col a { display: block; font-size: 0.875rem; padding: 0.25rem 0; transition: color var(--transition); }
.footer-links-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; text-align: center; font-size: 0.8125rem; }

/* ===== 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: var(--radius-sm);
    font-size: 0.875rem; font-weight: 500;
    z-index: 1000; pointer-events: none;
    opacity: 0; transition: all 0.3s ease;
}
.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 { 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;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero { padding: 4rem 0 3.5rem; }
    .hero-title { font-size: 2.25rem; }
    .hero-sub { font-size: 1rem; }

    .nav-toggle { display: flex; }
    .nav-links {
        display: none; position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--surface); 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; }
    .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)); }
    .nc-actions { opacity: 1; }

    .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; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.75rem; }
    .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; }
}
