/* 
   NickFinder Clone - Premium UI Overhaul 
   Aesthetic: Modern Dev/SaaS mixed with clean Gaming UI (Linear/Vercel inspired)
*/

:root {
    /* Rich Deep Blue Theme */
    --bg-base: #020617;      /* Slate 950 */
    --bg-surface: #0f172a;   /* Slate 900 */
    --bg-surface-hover: #1e293b; /* Slate 800 */
    
    --border-subtle: #1e293b;
    --border-strong: #334155; /* Slate 700 */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8; /* Slate 400 */
    --text-muted: #64748b;     /* Slate 500 */
    
    --accent-primary: #3b82f6; /* Blue 500 */
    --accent-glow: rgba(59, 130, 246, 0.2);
    --body-gradient: linear-gradient(135deg, #020617 0%, #1e1b4b 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    --container-max: 1100px;
    --z-overlay: 100;
    --z-sidebar: 110;
}

/* Light Theme overrides for highly refined contrast mode */
body.light-theme {
    --bg-base: #f8fafc; /* Crisp Slate 50 */
    --bg-surface: #ffffff; /* Pure White */
    --bg-surface-hover: #f1f5f9; /* Slate 100 */
    
    --border-subtle: #e2e8f0; /* Slate 200 */
    --border-strong: #cbd5e1; /* Slate 300 */
    
    --text-primary: #1e1b4b; /* Deep Indigo instead of Black/Slate 900 */
    --text-secondary: #334155; /* Slate 700 */
    --text-muted: #94a3b8; /* Slate 400 */
    
    --accent-primary: #4f46e5; /* Indigo 600 */
    --accent-glow: rgba(79, 70, 229, 0.12); /* Indigo glow */
    --body-gradient: radial-gradient(circle at 50% 0%, #f0f4f8 0%, #e2e8f0 100%);
}

/* Base Reset & Typography */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--body-gradient);
    background-color: var(--bg-base); /* Fallback */
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.3;
    z-index: -2;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

.bg-glow {
    position: fixed;
    top: 0; left: 0; right: 0; height: 600px;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header - Extremely clean, solid border */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.85); /* Slate 900 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}
body.light-theme .header {
    background: rgba(255, 255, 255, 0.85);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.left-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.menu-toggle {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.menu-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
    border-color: var(--border-subtle);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.logo-icon { 
    color: var(--text-primary); 
    width: 20px; height: 20px;
}
.logo-accent {
    color: var(--text-secondary);
    font-weight: 400;
}

.nav { display: none; gap: 2rem; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.nav-link:hover { color: var(--text-primary); }

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
}
.theme-toggle:hover { 
    background: var(--bg-surface);
    color: var(--text-primary); 
}

/* Sidebar - Structured, list-like */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: var(--z-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}
.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 320px;
    background: var(--bg-base);
    border-right: 1px solid var(--border-subtle);
    z-index: var(--z-sidebar);
    transform: translateX(-100%);
    transition: transform var(--transition-smooth) cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.close-sidebar {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
}
.close-sidebar:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.sidebar-filter {
    padding: 1rem 1.5rem 0.5rem;
}
.filter-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}
.filter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}
.sidebar-content::-webkit-scrollbar { width: 4px; }
.sidebar-content::-webkit-scrollbar-thumb { background: var(--border-subtle); }

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
/* Redesigned Sidebar Items: sleek hover list instead of bulky cards */
.category-item {
    background: transparent;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-fast);
    display: block;
    word-break: break-word;
    border: 1px solid transparent;
}
.category-item:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    transform: translateX(4px);
}

/* Hero - Focus on typography and input */
.main { padding-top: 4rem; min-height: 100vh; }
.hero { padding: 1.5rem 0 1rem; text-align: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-shadow: 0 4px 24px var(--accent-glow);
}

.gradient-text {
    /* Subtle gradient, not overly saturated */
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-theme .gradient-text {
    background: linear-gradient(135deg, #1e3a8a 0%, #6d28d9 100%); /* Rich Dark Blue to Deep Purple instead of black */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 580px;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
}

/* Premium Search Input */
.search-box {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-base);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
body.light-theme .search-input-wrapper {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.search-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 4px 20px rgba(0,0,0,0.2);
}
.search-icon {
    margin-left: 1rem;
    color: var(--text-muted);
    width: 22px; height: 22px;
}
.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    padding: 0.75rem 1rem;
    outline: none;
    font-family: var(--font-body);
}
.search-input::placeholder { color: var(--text-muted); }

/* Quick SEO Tabs */
.quick-nav-wrapper {
    margin: 0.5rem auto 0.5rem auto;
    padding-bottom: 0;
}
.slider-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}
.slider-arrow {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
.slider-arrow:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}
.quick-nav-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.quick-nav-tabs::-webkit-scrollbar {
    display: none;
}
.tab-pill {
    white-space: nowrap;
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.tab-pill:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
.tab-pill:hover {
    background: #ffffff;
    color: var(--bg-base);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

body.light-theme .tab-pill {
    border-color: #1e3a8a;
    color: #1e3a8a;
}
body.light-theme .tab-pill:hover {
    background: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

/* Results */
.results-section, .categories-section { padding: 0.5rem 0 2rem; }
.results-header { text-align: left; margin-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 1rem; }

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.section-subtitle { color: var(--text-secondary); font-size: 0.95rem; }

.top-results {
    background: transparent;
    border-top: none;
    border-bottom: none;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Minimalist Results Cards - Updated Header/Body/Footer Layout */
.result-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}
.result-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}
.result-card:active { transform: translateY(0); }

.card-header {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
}

.card-badge {
    background: var(--bg-surface-hover);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-subtle);
}

.card-body {
    padding: 1rem 0.75rem;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.result-text {
    font-size: 1.4rem;
    font-weight: 400;
    z-index: 1;
    word-break: break-all;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text-primary);
    line-height: 1.2;
}

/* Card Actions (Footer) - Redesign */
.rounded-btn {
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.rounded-btn svg {
    width: 16px; height: 16px;
    transition: fill var(--transition-fast), stroke var(--transition-fast);
}

.icon-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}
.icon-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.text-btn {
    height: 36px;
    padding: 0 0.85rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.text-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.primary-btn {
    height: 36px;
    padding: 0 0.85rem;
    background: #6366f1; /* Indigo 500 */
    border: none;
    color: #ffffff;
}
.primary-btn:hover {
    background: #4f46e5; /* Indigo 600 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.love-icon:hover { color: #ef4444; }
.love-icon.active { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.05); }
.love-icon.active svg { fill: #ef4444; }

.copy-icon:hover { color: var(--accent-primary); }
.copy-icon.copied-success {
    color: #10b981 !important;
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05) !important;
}
.copy-icon.copied-success svg { stroke: #10b981 !important; }

.share-icon:hover { color: var(--accent-primary); }

/* Mobile adjustments */
@media (max-width: 768px) {
    .action-btn { opacity: 1; transform: scale(1); }
    .search-box {
        position: sticky;
        top: 5rem;
        z-index: 40;
    }
    .slider-arrow {
        display: none;
    }
    .quick-nav-tabs {
        padding: 0.5rem 1rem;
        margin: 0 -1.5rem; /* allow scroll bleed */
    }
}

.category-block { 
    margin-bottom: 3rem; 
    scroll-margin-top: 6rem;
}

.footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* SEO Article Styling */
.seo-article {
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}
.seo-article h1, .seo-article h2, .seo-article h3, .seo-article h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}
.seo-article h1 { font-size: 2.2rem; }
.seo-article h2 { font-size: 1.8rem; border-bottom: 2px solid var(--border-subtle); padding-bottom: 0.5rem; }
.seo-article h3 { font-size: 1.4rem; margin-top: 2rem; }
.seo-article p { margin-bottom: 1.5rem; }
.seo-article ul, .seo-article ol { margin: 0 0 1.5rem 1.5rem; }
.seo-article li { margin-bottom: 0.5rem; }
.seo-article a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-primary);
    transition: all var(--transition-fast);
}
.seo-article a:hover { border-bottom-style: solid; color: var(--text-primary); }
.seo-article strong { color: var(--text-primary); }

.table-responsive {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}
.seo-article table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: var(--bg-surface);
}
.seo-article th, .seo-article td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}
.seo-article th {
    background: var(--bg-surface-hover);
    font-weight: 600;
    color: var(--text-primary);
}
.seo-article tr:last-child td { border-bottom: none; }

/* Rating System */
.rating-section {
    padding: 3rem 1.5rem;
    text-align: center;
}
.rating-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.rating-box h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.star-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    transition: all var(--transition-fast);
}
.star-btn svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.star-btn:hover svg { transform: scale(1.1); }

/* Deco Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}
.modal-overlay.active .modal-wrapper {
    transform: translateY(0);
}
.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
}
.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    display: flex;
}
.close-modal:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}
.deco-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.deco-select {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    width: 200px;
}
.deco-select:focus {
    border-color: var(--accent-primary);
}
.deco-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.deco-item {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.deco-item:hover {
    border-color: var(--border-strong);
}
.deco-text {
    flex: 1;
    font-size: 1.05rem;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-all;
    font-family: system-ui, -apple-system, sans-serif;
    padding: 0 0.5rem;
    text-align: left;
}
.deco-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Minimalist Deco Copy Button */
.deco-copy-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface-hover);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.deco-copy-btn:hover {
    background: var(--border-subtle);
    color: var(--text-primary);
}
.deco-copy-btn svg {
    width: 16px;
    height: 16px;
    transition: stroke var(--transition-fast);
}
.deco-copy-btn.copied-success {
    background: var(--bg-surface) !important;
}
.deco-copy-btn.copied-success svg {
    stroke: #10b981 !important;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
}

/* Scroll Lock Utility */
body.modal-open {
    overflow: hidden;
    height: 100vh;
}
.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    transition: background 0.2s;
}
.btn-primary:hover {
    background: #2563eb;
}
body.light-theme .btn-primary:hover {
    background: #4338ca;
}
#rating-msg { color: var(--text-secondary); font-size: 0.95rem; }

/* Mobile Hero Optimization */
@media (max-width: 768px) {
    .main { padding-top: 4rem; }
    .hero {
        padding: 1.5rem 0 1rem;
    }
    .hero-badge { margin-bottom: 1rem; padding: 0.2rem 0.6rem; font-size: 0.75rem; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.5rem); margin-bottom: 0.25rem; }
    .hero-description { font-size: 0.9rem; margin-bottom: 1.5rem; }
}

/* Move to Top Button */
.move-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--accent-glow);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
}
.move-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.move-to-top:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
}
