/* CSS Variables */
:root {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --secondary: #14b8a6;
    --accent: #8b5cf6;
    --bg-primary: #0b1120;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: rgba(51, 65, 85, 0.5);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bottom-nav-height: 75px;
    
    /* Container widths */
    --container-max: 1200px;
    --container-padding: 24px;
    
    /* Responsive font sizes */
    --hero-title-size: 3.5rem;
    --section-title-size: 2.5rem;
    --hero-subtitle-size: 1.1rem;
    --nav-height: 72px;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: rgba(203, 213, 225, 0.8);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
    padding-bottom: 0;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

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

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(20, 184, 166, 0.05) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 1001;
    width: 0%;
    transition: width 0.1s;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0;
    transition: var(--transition);
    height: var(--nav-height);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Cart Button */
.cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.cart-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mobile-only {
    display: none;
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-toggle:hover {
    border-color: var(--primary);
}

.mobile-menu {
    display: none;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.mobile-menu.active {
    max-height: 600px;
    padding: 1rem var(--container-padding);
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

.mobile-menu a:last-of-type {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--primary);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

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

.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

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

/* =========================================
   HERO SECTION — Centered, Professional
   ========================================= */
.hero {
    padding: calc(var(--nav-height) + 80px) 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    width: 100%;
}

/* ---- Text block ---- */
.hero-content {
    text-align: center;
    max-width: 780px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 24px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.08);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    line-height: 1.8;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 0 2rem;
}

.stat-item strong {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.stat-item span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 2px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.trust-badges > span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.badge-row {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.trust-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.trust-badge i {
    font-size: 0.8rem;
}

/* ---- Dashboard Mockup ---- */
.hero-mockup-wrap {
    position: relative;
    width: 100%;
    max-width: 680px;
}

.hero-mockup {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .hero-mockup {
    background: rgba(255, 255, 255, 0.9);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.7);
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

[data-theme="light"] .mockup-header {
    background: rgba(241, 245, 249, 0.9);
}

.mockup-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: white;
    flex-shrink: 0;
}

.mockup-body {
    display: flex;
    padding: 16px;
    gap: 16px;
}

.mockup-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.sidebar-item.active {
    background: rgba(6, 182, 212, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-item:hover:not(.active) {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.sidebar-item i {
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.mockup-main {
    flex: 1;
    min-width: 0;
}

.currently-reading {
    margin-bottom: 12px;
}

.label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.book-preview {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 10px;
    padding: 10px;
}

.book-cover {
    width: 44px;
    height: 56px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.book-info {
    min-width: 0;
    flex: 1;
}

.book-info strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-bar {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
    width: 100%;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.progress-text {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.rec-card {
    text-align: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}

.rec-card:hover {
    background: rgba(255,255,255,0.05);
}

.rec-card .book-cover {
    width: 100%;
    height: 48px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.rec-card span {
    font-size: 0.62rem;
    color: var(--text-secondary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Floating badges on mockup */
.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.8rem;
    animation: floatBadge 4s ease-in-out infinite;
    white-space: nowrap;
    z-index: 2;
}

.hero-float strong {
    display: block;
    font-size: 0.82rem;
    line-height: 1.2;
}

.hero-float span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.hero-float i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-float--tl {
    top: -18px;
    left: -20px;
    animation-delay: 0s;
}

.hero-float--br {
    bottom: -18px;
    right: -20px;
    animation-delay: 1.5s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Legacy aliases kept for other sections */
.library-mockup {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
}

.floating-elements {
    position: absolute;
    top: -20px;
    right: -30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-card {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: floatBadge 3s ease-in-out infinite;
    white-space: nowrap;
}

.float-card:nth-child(2) { animation-delay: 0.5s; }
.float-card:nth-child(3) { animation-delay: 1s; }

/* Search Bar (kept for other pages) */
.search-bar {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    margin-bottom: 2rem;
    gap: 12px;
    flex-wrap: wrap;
}

.search-bar i {
    color: var(--text-secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    min-width: 150px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 8px 0;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.search-bar .btn {
    padding: 10px 20px;
    flex-shrink: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: var(--section-title-size);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Panel */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15);
}

/* Gradient Backgrounds */
.gradient-1 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.gradient-2 { background: linear-gradient(135deg, #14b8a6, #06b6d4); }
.gradient-3 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.gradient-4 { background: linear-gradient(135deg, #10b981, #14b8a6); }

/* Collections Bento Grid */
.collections {
    padding: 100px 0;
    width: 100%;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.bento-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 250px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: stretch;
}

.bento-item.large {
    grid-column: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
    z-index: 0;
}

.bento-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.bento-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.bento-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.bento-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.75rem;
    align-self: flex-start;
}

/* Features */
.features {
    padding: 100px 0;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.feature-card {
    padding: 2rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    width: 100%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.testimonial-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.stars {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-card > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.author strong {
    display: block;
    font-size: 0.9rem;
}

.author span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Pricing */
.pricing {
    padding: 100px 0;
    width: 100%;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.toggle-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.save-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    font-size: 0.7rem;
    color: #10b981;
    white-space: nowrap;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    transition: var(--transition);
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

.pricing-card {
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.price {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.features-list li i {
    color: #10b981;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* FAQ */
.faq {
    padding: 100px 0;
    width: 100%;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.faq-question span {
    flex: 1;
    min-width: 0;
}

.faq-question i {
    transition: var(--transition);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* CTA */
.cta {
    padding: 60px 0 100px;
    width: 100%;
}

.cta-card {
    text-align: center;
    padding: 3rem;
}

.cta-card h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Contact */
.contact {
    padding: 100px 0;
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    width: 100%;
}

.contact-form h3, .contact-info h3 {
    margin-bottom: 0.5rem;
}

.contact-form > p, .contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.info-item span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    word-break: break-all;
}

.cert-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 500;
    white-space: nowrap;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    width: 100%;
}

.footer-brand .nav-logo {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 1rem 0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

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

.social-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    margin: 0 0.25rem;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none;
    width: 100%;
    max-width: 500px;
}

.bottom-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.5rem;
    padding: 10px 20px;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 30px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

[data-theme="light"] .bottom-nav-container {
    background: rgba(255, 255, 255, 0.95);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    border-radius: 12px;
    min-width: 50px;
    flex: 1;
}

.bottom-nav-item .nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.bottom-nav-item .nav-icon i {
    font-size: 1.1rem;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active .nav-icon {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.bottom-nav-item.active .nav-icon i {
    color: white;
}

/* Reveal Animation */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

/* Desktop Large (1400px+) */
@media (min-width: 1400px) {
    :root {
        --hero-title-size: 4rem;
        --section-title-size: 3rem;
        --container-max: 1300px;
        --container-padding: 32px;
    }
}

/* Extra Large (1800px+) */
@media (min-width: 1800px) {
    :root {
        --container-max: 1500px;
    }
}

/* Desktop Medium (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1201px) {
    :root {
        --hero-title-size: 3.2rem;
        --section-title-size: 2.3rem;
        --container-max: 1100px;
    }
}

/* Tablet Landscape / Small Desktop (1025px - 1200px) */
@media (max-width: 1200px) {
    :root {
        --hero-title-size: 2.8rem;
        --section-title-size: 2.2rem;
        --container-padding: 20px;
        --container-max: 960px;
    }
    
    .hero .container {
        gap: 48px;
    }
    
    .hero-stats {
        padding: 1rem 1.5rem;
    }
    
    .stat-item {
        padding: 0 1.25rem;
    }
    
    .pricing-grid {
        gap: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .testimonials-grid {
        gap: 1rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --hero-title-size: 2.6rem;
        --section-title-size: 2rem;
        --container-padding: 20px;
    }
    
    html {
        scroll-padding-top: 80px;
    }
    
    .nav-links {
        gap: 1.25rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .hero .container {
        gap: 40px;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-mockup-wrap {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .trust-badges {
        align-items: center;
    }
    
    .badge-row {
        justify-content: center;
    }
    
    .search-bar {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-item.large, 
    .bento-item.wide {
        grid-column: span 2;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .floating-elements {
        display: none;
    }
    
    .mockup-sidebar {
        min-width: auto;
    }
    
    .sidebar-text {
        display: none;
    }
    
    .sidebar-item {
        padding: 8px;
        justify-content: center;
    }
}

/* Tablet Small / Mobile Landscape (601px - 768px) */
@media (max-width: 768px) {
    :root {
        --hero-title-size: 2.3rem;
        --section-title-size: 1.8rem;
        --hero-subtitle-size: 1rem;
        --container-padding: 16px;
        --nav-height: 64px;
    }
    
    html {
        scroll-padding-top: 70px;
        font-size: 15px;
    }
    
    /* Navigation */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .cart-btn {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* Hero */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: var(--hero-title-size);
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 0;
        padding: 1rem;
        width: 100%;
    }
    
    .stat-item {
        padding: 0.5rem 1rem;
    }
    
    .stat-item strong {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    
    .hero-mockup-wrap {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-float {
        display: none;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .bento-item.large, 
    .bento-item.wide {
        grid-column: span 1;
    }
    
    .bento-item {
        min-height: 200px;
    }
    
    .bento-content h3 {
        font-size: 1.3rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .testimonial-card:last-child {
        grid-column: span 1;
        max-width: none;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .popular-badge {
        font-size: 0.75rem;
        padding: 4px 16px;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-card h2 {
        font-size: 1.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* FAQ */
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 1.25rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Contact */
    .contact-grid {
        max-width: 500px;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand .nav-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    /* Bottom Navigation */
    .bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: calc(var(--bottom-nav-height) + 20px);
    }
    
    /* Glass Panel */
    .glass-panel {
        padding: 1.5rem;
    }
    
    /* Sections */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .features,
    .collections,
    .testimonials,
    .pricing,
    .faq,
    .contact {
        padding: 60px 0;
    }
    
    .cta {
        padding: 40px 0 80px;
    }
    
    /* Mockup */
    .mockup-sidebar {
        display: none;
    }
    
    .mockup-body {
        flex-direction: column;
    }
    
    .recommended-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Large (481px - 600px) */
@media (max-width: 600px) {
    :root {
        --hero-title-size: 2rem;
        --section-title-size: 1.6rem;
        --container-padding: 16px;
    }
    
    .hero {
        padding: 110px 0 50px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .search-bar {
        flex-direction: column;
        padding: 12px;
    }
    
    .search-bar input {
        width: 100%;
        padding: 8px 0;
        text-align: center;
    }
    
    .search-bar .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
        width: 100%;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item {
        text-align: center;
        padding: 0.5rem 1.25rem;
    }
    
    .stat-item strong {
        font-size: 1.8rem;
    }
    
    .badge-row {
        gap: 0.5rem;
    }
    
    .trust-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .section-title {
        font-size: var(--section-title-size);
    }
    
    .bento-content {
        padding: 1.5rem;
    }
    
    .bento-content h3 {
        font-size: 1.2rem;
    }
    
    .bento-content p {
        font-size: 0.85rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .features-list li {
        font-size: 0.85rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-item strong {
        margin-bottom: 0;
    }
    
    .cert-badges {
        flex-direction: column;
    }
    
    .cert {
        justify-content: center;
    }
    
    .mockup-header {
        padding: 10px 12px;
    }
    
    .mockup-title {
        font-size: 0.75rem;
    }
    
    .book-cover {
        width: 40px;
        height: 54px;
        font-size: 1rem;
    }
    
    .rec-card .book-cover {
        height: 50px;
        font-size: 0.9rem;
    }
    
    .rec-card span {
        font-size: 0.6rem;
    }
}

/* Mobile Small (361px - 480px) */
@media (max-width: 480px) {
    :root {
        --hero-title-size: 1.8rem;
        --section-title-size: 1.5rem;
        --container-padding: 12px;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
        gap: 6px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .nav-logo {
        font-size: 1.15rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .pricing-toggle {
        gap: 0.5rem;
    }
    
    .toggle-label {
        font-size: 0.85rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-header h3 {
        font-size: 1.3rem;
    }
    
    .contact-form, 
    .contact-info {
        padding: 1.25rem;
    }
    
    .bottom-nav-container {
        padding: 8px 12px;
        gap: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .bottom-nav-item {
        padding: 6px 2px;
        min-width: 40px;
    }
    
    .bottom-nav-item .nav-icon {
        width: 30px;
        height: 30px;
    }
    
    .bottom-nav-item .nav-icon i {
        font-size: 0.95rem;
    }
    
    .bottom-nav-item span {
        font-size: 0.6rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .testimonial-card p {
        font-size: 0.85rem;
    }
    
    .stars {
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* Mobile Extra Small (320px - 360px) */
@media (max-width: 360px) {
    :root {
        --hero-title-size: 1.6rem;
        --section-title-size: 1.4rem;
        --container-padding: 10px;
    }
    
    html {
        font-size: 14px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .hero-badge {
        font-size: 0.65rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .bottom-nav-item {
        min-width: 35px;
        padding: 4px 0;
    }
    
    .bottom-nav-item .nav-icon {
        width: 28px;
        height: 28px;
    }
    
    .bottom-nav-item .nav-icon i {
        font-size: 0.85rem;
    }
    
    .bottom-nav-item span {
        font-size: 0.55rem;
    }
    
    .pricing-card {
        padding: 1.25rem;
    }
    
    .amount {
        font-size: 2rem;
    }
    
    .currency {
        font-size: 1.25rem;
    }
    
    .glass-panel {
        padding: 1.25rem;
    }
    
    .cta-card {
        padding: 1.5rem 1rem;
    }
    
    .cta-card h2 {
        font-size: 1.3rem;
    }
}

/* Landscape Mode Fix for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-mockup-wrap {
        display: none;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .navbar {
        height: 56px;
    }
    
    .mobile-menu.active {
        max-height: 400px;
        overflow-y: auto;
    }
}

/* High-DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .bg-gradient {
        background-size: 200% 200%;
    }
}

/* Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #0b1120;
        --bg-secondary: #111827;
        --bg-card: rgba(17, 24, 39, 0.6);
        --text-primary: #f8fafc;
        --text-secondary: #94a3b8;
        --border: rgba(51, 65, 85, 0.5);
    }
}

/* Light Mode Preference */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg-primary: #ffffff;
        --bg-secondary: #f8fafc;
        --bg-card: rgba(255, 255, 255, 0.8);
        --text-primary: #0f172a;
        --text-secondary: #475569;
        --border: rgba(203, 213, 225, 0.8);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .navbar, 
    .bottom-nav, 
    .scroll-progress, 
    .bg-gradient,
    .bg-noise,
    .bg-orb-1,
    .bg-orb-2,
    .mobile-toggle, 
    .mobile-menu, 
    .theme-toggle,
    .cart-btn,
    .floating-elements {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        padding-bottom: 0 !important;
    }
    
    .glass-panel {
        background: none;
        border: 1px solid #ccc;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    .hero {
        padding: 20px 0;
        min-height: auto;
    }
    
    .section-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .btn {
        border: 1px solid #000;
        color: #000;
        background: none;
    }
    
    .gradient-text {
        -webkit-text-fill-color: #000;
        background: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .bento-item:hover,
    .glass-panel:hover,
    .course-card:hover {
        transform: none;
    }
    
    .btn:active,
    .bento-item:active,
    .glass-panel:active,
    .course-card:active {
        transform: scale(0.98);
    }
}

/* iOS Safe Area Support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 20px);
    }
    
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    @media (min-width: 769px) {
        body {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* Responsive Iframes and Embeds */
.responsive-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.responsive-embed iframe,
.responsive-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .responsive-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* Hero CTA — responsive override only */
@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.user-menu-btn:hover {
    border-color: var(--primary);
    background: rgba(6, 182, 212, 0.1);
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--text-primary);
}

.user-dropdown a i {
    width: 18px;
    text-align: center;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.25rem 0;
}

.user-dropdown a:last-child {
    color: #ef4444;
}

.user-dropdown a:last-child:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Mobile User Section */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.mobile-user-info strong {
    display: block;
    font-size: 0.9rem;
}

.mobile-user-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .user-menu-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .user-avatar-sm {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
}

/* ─── Featured Courses Section ──────────────────────────────────────────── */
.fc-card {
    background: var(--bg-secondary);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}

/* Skeleton loader */
.fc-skeleton {
    background: var(--bg-secondary);
    border-radius: 14px;
    border: 1px solid var(--border);
    height: 360px;
    overflow: hidden;
    position: relative;
}

.fc-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: fc-shimmer 1.4s infinite;
}

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

[data-theme="light"] .fc-skeleton::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.06) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: fc-shimmer 1.4s infinite;
}

@media (max-width: 640px) {
    #featuredCoursesGrid {
        grid-template-columns: 1fr !important;
    }
}
