/* ========================================
   Audibukz — Global Stylesheet
   Light Theme Default | Orange & Purple Accents
   Wave Banner Design
   ======================================== */

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

/* ── CSS Custom Properties ── */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-elevated: #1a1a2e;
    --bg-glass: rgba(18, 18, 26, 0.85);
    --accent-primary: #f97316;
    --accent-primary-hover: #ea580c;
    --accent-secondary: #8b5cf6;
    --accent-secondary-hover: #7c3aed;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --border: #1e293b;
    --border-light: #2d3748;
    --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.6);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Light Theme ── */
[data-theme="light"] {
    --bg-primary: #faf7f2;
    --bg-secondary: #ffffff;
    --bg-elevated: #f0ebe3;
    --bg-glass: rgba(255, 255, 255, 0.82);
    --accent-primary: #e8590c;
    --accent-primary-hover: #c2410c;
    --accent-secondary: #7c3aed;
    --accent-secondary-hover: #6d28d9;
    --text-primary: #1a1523;
    --text-secondary: #57534e;
    --text-muted: #94918d;
    --success: #16a34a;
    --warning: #ca8a04;
    --danger: #dc2626;
    --border: #e7e0d5;
    --border-light: #d6cfc4;
    --shadow-glow: 0 0 24px rgba(232, 89, 12, 0.12);
    --shadow-card: 0 4px 20px rgba(120, 80, 40, 0.08);
    --shadow-elevated: 0 8px 32px rgba(120, 80, 40, 0.12);
}

[data-theme="light"] body {
    background: #faf7f2;
    background-attachment: fixed;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 28px rgba(120, 80, 40, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hero::before {
    background: radial-gradient(circle, rgba(232, 89, 12, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .hero::after {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}

[data-theme="light"] .product-card {
    background: #ffffff;
    border-color: #e7e0d5;
    box-shadow: 0 2px 12px rgba(120, 80, 40, 0.06);
}

[data-theme="light"] .product-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(232, 89, 12, 0.12), 0 2px 12px rgba(120, 80, 40, 0.06);
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(232, 89, 12, 0.1);
    box-shadow: 0 8px 32px rgba(120, 80, 40, 0.08);
}

[data-theme="light"] .footer {
    background: linear-gradient(180deg, #f0ebe3 0%, #e8ddd0 100%);
    border-top-color: #d6cfc4;
}

[data-theme="light"] .audio-player-bar {
    background: rgba(255, 255, 255, 0.85);
    border-top-color: #e7e0d5;
    box-shadow: 0 -2px 20px rgba(120, 80, 40, 0.08);
}

[data-theme="light"] .form-control {
    background-color: #ffffff;
    border-color: #d6cfc4;
    color: #1a1523;
}

[data-theme="light"] .form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.1);
}

[data-theme="light"] .btn-secondary {
    background: #f0ebe3;
    border-color: #d6cfc4;
    color: #1a1523;
}

[data-theme="light"] .btn-secondary:hover {
    background: #e8ddd0;
    border-color: var(--accent-secondary);
}

[data-theme="light"] .chip {
    background: #ffffff;
    border-color: #d6cfc4;
    color: #57534e;
}

[data-theme="light"] .chip:hover,
[data-theme="light"] .chip.active {
    background: linear-gradient(135deg, #e8590c, #f97316);
    border-color: #e8590c;
    color: #fff;
}

[data-theme="light"] .admin-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f0ebe3 100%);
    border-right-color: #e7e0d5;
}

[data-theme="light"] .stat-card {
    background: #ffffff;
    border-color: #e7e0d5;
    box-shadow: 0 2px 12px rgba(120, 80, 40, 0.06);
}

[data-theme="light"] .stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(232, 89, 12, 0.1);
}

[data-theme="light"] .order-card {
    background: #ffffff;
    border-color: #e7e0d5;
    box-shadow: 0 1px 8px rgba(120, 80, 40, 0.05);
}

[data-theme="light"] .modal {
    background: #ffffff;
    border-color: #e7e0d5;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-backdrop {
    background: rgba(26, 21, 35, 0.4);
}

[data-theme="light"] .skeleton {
    background: linear-gradient(90deg, #f0ebe3 25%, #e7e0d5 50%, #f0ebe3 75%);
    background-size: 200% 100%;
}

[data-theme="light"] .tabs {
    background: #ffffff;
    border-color: #e7e0d5;
}

[data-theme="light"] .tab {
    color: #57534e;
}

[data-theme="light"] .tab.active {
    background: linear-gradient(135deg, #e8590c, #f97316);
    color: #fff;
}

[data-theme="light"] .file-upload {
    border-color: #d6cfc4;
    background: #faf7f2;
}

[data-theme="light"] .file-upload:hover {
    border-color: var(--accent-primary);
    background: rgba(232, 89, 12, 0.03);
}

[data-theme="light"] .nav-links {
    background: transparent;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    background: #f0ebe3;
}

[data-theme="light"] .social-links a {
    background: #f0ebe3;
}

[data-theme="light"] .social-links a:hover {
    background: linear-gradient(135deg, #e8590c, #f97316);
    color: #fff;
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #e8590c, #f97316);
    box-shadow: 0 4px 15px rgba(232, 89, 12, 0.25);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 6px 25px rgba(232, 89, 12, 0.35);
}

[data-theme="light"] .toast {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] select.form-control {
    background-color: #faf7f2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2357534e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    color: #1a1523;
    border-color: #e7e0d5;
}

[data-theme="light"] select.form-control option {
    background: #ffffff;
    color: #1a1523;
}

[data-theme="light"] .form-control {
    background-color: #faf7f2;
    color: #1a1523;
    border-color: #e7e0d5;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #faf7f2;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #d6cfc4;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

[data-theme="light"] .hero-badge {
    background: rgba(232, 89, 12, 0.08);
    border-color: rgba(232, 89, 12, 0.15);
}

[data-theme="light"] .player-btn {
    color: #1a1523;
}

[data-theme="light"] .progress-bar {
    background: #e7e0d5;
}

[data-theme="light"] .upi-id-display {
    background: #f0ebe3;
}

[data-theme="light"] .library-card {
    background: #ffffff;
    border-color: #e7e0d5;
}

[data-theme="light"] .library-card:hover {
    border-color: var(--accent-primary);
}

/* ── Theme Toggle Button ── */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35), 0 0 0 3px rgba(249, 115, 22, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 28px rgba(249, 115, 22, 0.45), 0 0 0 5px rgba(249, 115, 22, 0.12);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle .lucide {
    width: 22px;
    height: 22px;
    transition: transform 0.4s ease;
}

.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .theme-icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .theme-icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .theme-icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* When audio player is visible, push toggle up */
.audio-player-bar.active~.theme-toggle,
body.player-active .theme-toggle {
    bottom: 88px;
}

@media (max-width: 768px) {
    .theme-toggle {
        bottom: 18px;
        right: 18px;
        width: 46px;
        height: 46px;
    }

    .audio-player-bar.active~.theme-toggle,
    body.player-active .theme-toggle {
        bottom: 80px;
    }
}

/* Smooth theme switch animation */
body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.4s ease !important;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Force form elements to inherit font — browsers don't do this by default */
input,
select,
textarea,
button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    outline: none;
}

ul,
ol {
    list-style: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ── Lucide icon sizing ── */
.lucide {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 22px;
    height: 22px;
}

.icon-xl {
    width: 28px;
    height: 28px;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.35rem, 3vw, 2.25rem);
}

h3 {
    font-size: clamp(1.05rem, 2vw, 1.5rem);
}

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

.page-content {
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
    padding-top: 90px;
    padding-bottom: 40px;
}

/* ── Gradient Accent Top Bar ── */
.navbar-accent-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), #7c3aed, #0d9488);
    z-index: 1002;
}

/* ── Navbar — Elevated Rounded Bottom ── */
.navbar {
    position: fixed;
    top: 4px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    border-radius: 0 0 22px 22px;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

/* Light mode shadow adjust */
[data-theme="light"] .navbar {
    box-shadow: 0 4px 24px rgba(120, 80, 40, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
}

.navbar-brand .brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.navbar-brand .brand-icon .lucide {
    width: 18px;
    height: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    background: transparent;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

/* CTA buttons — bordered pill like Garbhasamskar style */
.nav-link.cta {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    font-weight: 600;
    border: 2px solid transparent;
}

.nav-link.cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Secondary CTA — outlined pill style */
.nav-link.cta-outline {
    background: transparent;
    color: var(--accent-primary);
    font-weight: 600;
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-full);
    padding: 6px 16px;
}

.nav-link.cta-outline:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    color: var(--text-primary);
    padding: 6px;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn:active {
    background: var(--bg-elevated);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    object-fit: cover;
}

/* ── Mobile Nav Overlay ── */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.mobile-nav-overlay.active {
    display: block;
}

/* ── Hero Section with Wave Banner ── */
.hero {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Wave Design Elements ── */
.wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 0;
}

.wave-decoration svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* Navbar wave decoration */
.navbar-wave {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 0;
}

.navbar-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 22px;
}

/* Hero wave at bottom */
.hero-wave-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Header wave bar — flowing curve behind the hero */
.hero-wave-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-wave-bar svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
}

[data-theme="light"] .hero-wave-bar svg {
    opacity: 0.18;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* ── Page Header Banner (for non-home pages) ── */
.page-header-banner {
    position: relative;
    padding: 40px 0 50px;
    overflow: hidden;
}

.page-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .page-header-banner::before {
    background: linear-gradient(135deg, rgba(232, 89, 12, 0.04) 0%, rgba(124, 58, 237, 0.03) 100%);
}

[data-theme="dark"] .page-header-banner::before,
:root .page-header-banner::before {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(139, 92, 246, 0.04) 100%);
}

.page-header-banner .container {
    position: relative;
    z-index: 1;
}

.page-header-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
}

.page-header-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #A78BFA);
    color: #fff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    border-color: var(--accent-secondary);
    background: var(--bg-glass);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 14px;
}

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

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:active {
    background: #dc2626;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:active {
    background: #16a34a;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Section Headers ── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 .accent {
    color: var(--accent-primary);
}

.section-header h2 .lucide {
    color: var(--accent-primary);
}

/* ── Category Chips ── */
.category-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 28px;
    padding-bottom: 4px;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 8px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.chip:hover,
.chip.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

/* ── Product Card ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.product-card:active {
    transform: scale(0.98);
}

.product-card .card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-elevated);
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge.free {
    background: var(--success);
    color: #fff;
}

.card-badge.type {
    background: var(--accent-secondary);
    color: #fff;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .play-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.5);
    transition: var(--transition);
}

.play-btn-circle:hover {
    transform: scale(1.1);
}

.play-btn-circle .lucide {
    width: 20px;
    height: 20px;
}

.card-info {
    padding: 12px;
}

.card-info .card-title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info .card-author {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.card-info .card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    color: var(--warning);
    margin-bottom: 5px;
}

/* ── Glassmorphism Card ── */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-elevated);
}

/* ── Form Elements ── */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* font-size 16px prevents iOS zoom — no need for -webkit-appearance: none */
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

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

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

select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: var(--bg-primary);
    padding-right: 36px;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.4;
}

select.form-control option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Status Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-pending {
    background: rgba(234, 179, 8, 0.15);
    color: var(--warning);
    animation: pulse-badge 2s infinite;
}

.badge-approved {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* ── Audio Player ── */
.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 999;
    display: none;
    align-items: center;
    padding: 0 16px;
    padding-bottom: var(--safe-bottom);
}

.audio-player-bar.active {
    display: flex;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.player-thumb {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.player-meta .player-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.player-meta .player-author {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.player-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}

.player-btn:hover {
    color: var(--accent-primary);
}

.player-btn.play-pause {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 50%;
    color: #fff;
}

.player-btn.play-pause:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.progress-bar-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: flex-end;
}

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

.volume-slider {
    width: 80px;
    accent-color: var(--accent-primary);
}

/* ── Footer ── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
    margin-bottom: 28px;
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 14px;
    color: var(--accent-primary);
}

.footer-col a {
    display: block;
    padding: 3px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Admin Layout ── */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 220px;
    height: calc(100vh - 60px);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 16px 0;
    z-index: 100;
    overflow-y: auto;
}

.admin-sidebar .sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.admin-sidebar .sidebar-item .lucide {
    width: 18px;
    height: 18px;
}

.admin-sidebar .sidebar-item:hover,
.admin-sidebar .sidebar-item.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-right: 3px solid var(--accent-primary);
}

.admin-main {
    margin-left: 220px;
    padding: 24px;
    min-height: calc(100vh - 60px);
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.stat-card .stat-icon .lucide {
    width: 20px;
    height: 20px;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ── Order Cards ── */
.order-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.order-card:hover {
    border-color: var(--border-light);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* ── Skeleton Loader ── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-card {
    height: 280px;
    border-radius: var(--radius-lg);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 3px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 3px;
    margin-bottom: 24px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
}

.tab {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    transition: var(--transition);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

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

.tab.active {
    background: var(--accent-primary);
    color: #fff;
}

/* ── Toast ── */
.toast-container {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: calc(100vw - 32px);
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-elevated);
}

.toast-success {
    background: var(--success);
    color: #fff;
}

.toast-error {
    background: var(--danger);
    color: #fff;
}

.toast-warning {
    background: var(--warning);
    color: #000;
}

.toast-info {
    background: var(--accent-secondary);
    color: #fff;
}

/* ── Modal ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 48px 16px;
}

.empty-state .empty-icon {
    margin-bottom: 16px;
    opacity: 0.4;
    display: flex;
    justify-content: center;
}

.empty-state .empty-icon .lucide {
    width: 48px;
    height: 48px;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* ── File Upload ── */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--accent-primary);
    background: rgba(249, 115, 22, 0.03);
}

.file-upload.has-file {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.03);
}

.file-upload .upload-icon {
    margin-bottom: 8px;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
}

.file-upload .upload-icon .lucide {
    width: 28px;
    height: 28px;
}

.file-upload .upload-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-upload .upload-preview {
    max-width: 180px;
    max-height: 180px;
    margin: 12px auto 0;
    border-radius: var(--radius-md);
}

/* ── Checkout ── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.qr-section {
    text-align: center;
}

.qr-image {
    max-width: 260px;
    margin: 0 auto 14px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
}

.upi-id-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
}

.copy-btn {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease both;
}

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

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

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mt-4 {
    margin-top: 16px;
}

.hidden {
    display: none;
}

.w-full {
    width: 100%;
}

/* ════════════════════════════════════════
   RESPONSIVE — Mobile-First Approach
   ════════════════════════════════════════ */

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 200px;
    }

    .admin-main {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .page-content {
        padding-top: 68px;
        padding-bottom: 24px;
    }

    /* Navbar mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-secondary);
        padding: 20px 16px;
        gap: 6px;
        z-index: 998;
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: var(--radius-md);
    }

    .nav-link.cta {
        text-align: center;
        margin-top: 8px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 40px 0 60px;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-wave-bottom svg {
        height: 35px;
    }

    .hero-wave-bar svg {
        opacity: 0.08;
    }

    [data-theme="light"] .hero-wave-bar svg {
        opacity: 0.14;
    }

    .page-header-banner {
        padding: 30px 0 40px;
    }

    .page-header-wave svg {
        height: 25px;
    }

    /* Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card:hover {
        transform: none;
    }

    .card-info {
        padding: 10px;
    }

    .card-info .card-title {
        font-size: 0.82rem;
    }

    .card-info .card-author {
        font-size: 0.72rem;
        margin-bottom: 4px;
    }

    .card-info .card-price {
        font-size: 0.88rem;
    }

    /* Checkout */
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    /* Glass card */
    .glass-card {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    /* Admin */
    .admin-sidebar {
        display: none;
    }

    .admin-sidebar.mobile-open {
        display: block;
        width: 100%;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 998;
    }

    .admin-main {
        margin-left: 0;
        padding: 16px;
    }

    /* Player */
    .player-volume {
        display: none;
    }

    .player-info {
        min-width: 100px;
    }

    .player-meta .player-title {
        max-width: 90px;
        font-size: 0.8rem;
    }

    .player-meta .player-author {
        font-size: 0.68rem;
    }

    .player-thumb {
        width: 40px;
        height: 40px;
    }

    .audio-player-bar {
        height: 64px;
        padding: 0 10px;
    }

    .player-btn.play-pause {
        width: 36px;
        height: 36px;
    }

    .player-buttons {
        gap: 10px;
    }

    .progress-bar-container {
        display: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Section */
    .section-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    /* Stat cards */
    .stat-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card .stat-value {
        font-size: 1.3rem;
    }

    /* Tabs */
    .tabs {
        width: 100%;
    }

    .tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    /* Order cards */
    .order-card {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .skeleton-card {
        height: 220px;
    }

    .stat-cards {
        grid-template-columns: 1fr 1fr;
    }

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

    .modal {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    .form-control {
        padding: 11px 12px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.4rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-bottom);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    gap: 4px;
    width: 25%;
    height: 100%;
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--accent-primary);
}

.mobile-nav-item .lucide {
    width: 20px;
    height: 20px;
}

.theme-toggle-mobile {
    position: relative;
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

.theme-toggle-mobile .lucide {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-mobile .theme-icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle-mobile .theme-icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle-mobile .theme-icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle-mobile .theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* ── Mobile Pages Slide-Up Panel ── */
#mobilePagesPanel {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    visibility: hidden;
}

#mobilePagesPanel.open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-pages-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
}

#mobilePagesPanel.open .mobile-pages-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.mobile-pages-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 75vh;
    background: var(--bg-primary);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-bottom: 70px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
}

#mobilePagesPanel.open .mobile-pages-sheet {
    transform: translateY(0);
}

.mobile-pages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 2;
}

.mobile-pages-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 0 8px;
}

.mobile-pages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-page-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-page-card:hover,
.mobile-page-card:active {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .theme-toggle {
        display: none !important;
    }

    .page-content {
        padding-bottom: 80px !important;
    }

    .audio-player-bar {
        bottom: 60px !important;
    }
    
    .audio-player-bar.active {
        transform: translateY(0);
    }

    .nav-pages-dropdown {
        display: none !important;
    }
}

@media (min-width: 769px) {
    #mobilePagesPanel {
        display: none !important;
    }
}