:root {
    /* Color Palette - Dark Mode (Default) */
    --bg-color: #05070a;
    --surface-color: rgba(18, 24, 33, 0.7);
    --surface-solid: #121821;
    --primary-color: #00ffa3;
    --primary-glow: rgba(0, 255, 163, 0.3);
    --secondary-color: #4cc9f0;
    --text-main: #f0f4f8;
    --text-muted: #8a99a8;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Instrument Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing & Misc */
    --container-width: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="light"] {
    --bg-color: #f0f4f0;
    --surface-color: rgba(255, 255, 255, 0.85);
    --surface-solid: #ffffff;
    --primary-color: #00a36c;
    --primary-glow: rgba(0, 163, 108, 0.2);
    --secondary-color: #0ea5e9;
    --text-main: #0f1f14;
    --text-muted: #4b6358;
    --border-color: rgba(0, 0, 0, 0.12);
}

/* ── Light Mode Overrides ─────────────────────────────────────────────── */

/* Navbar */
[data-theme="light"] .navbar {
    background: rgba(237, 244, 237, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

/* Hero heading — dark text gradient so it's readable on light bg */
[data-theme="light"] .page-header h1 {
    background: linear-gradient(135deg, #0f1f14 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(0, 163, 108, 0.15));
}

/* Background blobs — subtler in light mode */
[data-theme="light"] .blob {
    opacity: 0.12;
}

[data-theme="light"] .blob-1 {
    background: #00c87a;
}

[data-theme="light"] .blob-2 {
    background: #38bdf8;
}

/* Rotation Bar */
[data-theme="light"] .rotation-bar {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* NPC Cards */
[data-theme="light"] .npc-container {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .npc-container:hover {
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 1px rgba(0, 163, 108, 0.3),
        0 0 20px rgba(0, 163, 108, 0.12),
        0 12px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .npc-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: rgba(0, 0, 0, 0.07);
}

/* Stock Items */
[data-theme="light"] .stock-item {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stock-item:hover {
    background: rgba(0, 163, 108, 0.06);
}

/* FAQ Items */
[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .faq-item:hover {
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 1px rgba(0, 163, 108, 0.25),
        0 0 14px rgba(0, 163, 108, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Info Section */
[data-theme="light"] .info-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 244, 0.9) 100%);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .info-section:hover {
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 1px rgba(0, 163, 108, 0.25),
        0 0 20px rgba(0, 163, 108, 0.1),
        0 12px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .info-section::before {
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.4;
}

/* Footer */
[data-theme="light"] .footer {
    background: rgba(220, 235, 225, 0.5);
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .social-links a {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .social-links a:hover {
    background: rgba(0, 163, 108, 0.1);
    border-color: var(--primary-color);
}

/* Mobile Drawer */
[data-theme="light"] .mobile-drawer {
    background: #f5fbf7;
}

/* Page header paragraph */
[data-theme="light"] .page-header p {
    color: #4b6358;
}

/* Dot pulse */
[data-theme="light"] .dot {
    background: var(--primary-color);
    box-shadow: 0 0 6px rgba(0, 163, 108, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button {
    background: none;
    border: none;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
}

.mono {
    font-family: var(--font-mono);
}

/* Decorative Background */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.background-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob-float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Navbar */
.navbar {
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(11, 15, 20, 0.7);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    transition: var(--transition-smooth);
    cursor: pointer;
    flex-shrink: 1;
    min-width: 0;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.logo-link:hover .logo {
    opacity: 0.85;
    transform: scale(0.98);
}

.logo i {
    color: var(--primary-color);
    font-size: 2.25rem;
    filter: drop-shadow(0 0 12px var(--primary-glow));
    flex-shrink: 0;
}

.logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo span span {
    color: var(--primary-color);
}

.logo-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    background: var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

/* Removed sync-status styles */

#theme-toggle,
.mobile-menu-btn {
    background: var(--surface-solid);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

#theme-toggle:hover,
.mobile-menu-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
}

/* Page Content Layout */
.page-content {
    padding: 3rem 0;
    overflow: hidden;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.page-header {
    margin: 6rem 0 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: revealUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    background: linear-gradient(135deg, #fff 40%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(0, 255, 163, 0.2));
    letter-spacing: -3px;
    font-weight: 800;
}

.page-header p {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    text-wrap: balance;
}

/* Rotation Bar */
.rotation-bar {
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.rotation-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 163, 0.3), transparent);
}

.live-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.timer-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 255, 163, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    color: var(--primary-color);
    background: rgba(0, 255, 163, 0.03);
}

/* Stock Layout */
.stock-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.npc-container {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

.npc-container:hover {
    border-color: rgba(0, 255, 163, 0.55);
    box-shadow:
        0 0 0 1px rgba(0, 255, 163, 0.25),
        0 0 20px rgba(0, 255, 163, 0.18),
        0 0 45px rgba(0, 255, 163, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.4);
}

.npc-header {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.npc-name {
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.npc-type {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stock-item {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.25s ease;
    position: relative;
    overflow: hidden;
}


.stock-item:last-child {
    border-bottom: none;
}

.stock-item:hover {
    background: rgba(0, 255, 163, 0.04);
    padding-left: 1.75rem;
}

.item-icon {
    width: 60px;
    height: 60px;
    background: var(--surface-solid);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.item-info {
    flex: 1;
}

.item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.rarity-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
}

.rarity-common {
    background: rgba(0, 255, 163, 0.1);
    color: #00ffa3;
    border: 1px solid rgba(0, 255, 163, 0.2);
}

.rarity-rare {
    background: rgba(76, 201, 240, 0.1);
    color: #4cc9f0;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.rarity-legendary {
    background: rgba(255, 183, 0, 0.1);
    color: #ffb700;
    border: 1px solid rgba(255, 183, 0, 0.2);
}

[data-theme="light"] .rarity-common {
    background: rgba(0, 163, 108, 0.1);
    color: #008f5d;
    border: 1px solid rgba(0, 163, 108, 0.2);
}

[data-theme="light"] .rarity-rare {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .rarity-legendary {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.item-qty {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Weather Module */
.weather-module {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 4rem;
    overflow: hidden;
}

.weather-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.weather-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-title i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.weather-title h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.status-badge {
    background: rgba(0, 255, 163, 0.1);
    color: var(--primary-color);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 1rem;
}

.weather-body {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.effects-list {
    list-style: none;
    margin-bottom: 2rem;
}

.effects-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.effects-list li::before {
    content: '✦';
    color: var(--secondary-color);
}

.mutation-section .label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.mutation-tag {
    background: var(--surface-solid);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-history {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.01);
}

.weather-history .label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-row:last-child {
    border-bottom: none;
}

.history-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

/* Info Section */
.info-section {
    margin: 4rem 0 5rem;
    padding: 3.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

.info-section:hover {
    border-color: rgba(0, 255, 163, 0.5);
    box-shadow:
        0 0 0 1px rgba(0, 255, 163, 0.2),
        0 0 22px rgba(0, 255, 163, 0.15),
        0 0 50px rgba(0, 255, 163, 0.06),
        0 20px 40px rgba(0, 0, 0, 0.4);
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.info-section h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-main) 60%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.info-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.info-section p:last-child {
    margin-bottom: 0;
}

.info-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

.faq-item:hover {
    border-color: rgba(0, 255, 163, 0.5);
    box-shadow:
        0 0 0 1px rgba(0, 255, 163, 0.18),
        0 0 16px rgba(0, 255, 163, 0.14),
        0 0 35px rgba(0, 255, 163, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.35);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-answer {
    max-height: 0;
    padding: 0 2rem;
    color: var(--text-muted);
    transition: all 0.4s ease;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 255, 163, 0.08);
    transform: translateY(-2px);
}

.footer-links h4 {
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--surface-solid);
    z-index: 2000;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 500;
    font-family: var(--font-heading);
}

/* Buttons */
.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Responsive Queries */
@media (max-width: 1024px) {

    .nav-links.desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .stock-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .page-header h1 {
        font-size: 2.8rem;
        letter-spacing: -2px;
    }

    .rotation-bar {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Footer mobile centering */
    .footer {
        padding: 4rem 0 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }

    .footer-brand {
        grid-column: unset;
        padding-bottom: 2.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand p {
        max-width: 400px;
        margin: 1rem auto 1.5rem;
        font-size: 1rem;
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
    }

    .social-links a {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        border-radius: 12px;
    }

    .footer-links {
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .footer-links:last-child {
        border-bottom: none;
    }

    .footer-links h4 {
        font-size: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 1.05rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        font-size: 0.82rem;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .navbar {
        height: 75px;
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 1rem;
        gap: 0.4rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .logo-tag {
        display: none;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
        letter-spacing: -1.5px;
    }

    .page-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}

/* Animations */
.reveal-up {
    animation: revealUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}