/**
 * EmpowerMindGlobal - Main Stylesheet
 * Modern premium self-improvement brand design
 */

/* ============================================
   CSS Variables - EmpowerMindGlobal Brand Colors
   Logo: Deep teal #1C415F, Mid teal #3C8092, Golden olive #AA9E78
   ============================================ */
:root {
    /* Colors - Logo Palette */
    --color-bg: #1a1d20;
    --color-bg-secondary: #22282d;
    --color-bg-tertiary: #1c415f;
    --color-surface: #3c8092;
    
    --color-text: #ffffff;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;
    
    /* Primary: Deep Teal from logo */
    --color-primary: #1c415f;
    --color-primary-hover: #2c516f;
    --color-secondary: #3c8092;
    /* Accent: Muted Golden/Olive from logo (MIND highlight) */
    --color-accent: #aa9e78;
    --color-accent-hover: #b9ad88;
    
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #aa9e78;
    --color-info: #3b82f6;
    
    /* Gradients - Logo gradient: deep teal to golden olive */
    --gradient-primary: linear-gradient(135deg, #1c415f 0%, #3c8092 50%, #aa9e78 100%);
    --gradient-cta: linear-gradient(135deg, #1c415f 0%, #aa9e78 100%);
    --gradient-dark: linear-gradient(180deg, rgba(26, 29, 32, 0) 0%, rgba(26, 29, 32, 1) 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --container-width: 1200px;
    --container-narrow: 800px;
    --section-padding: 80px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(28, 65, 95, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Animation durations */
    --animate-duration: 0.6s;
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(5px, -8px); }
    50% { transform: translate(-5px, 5px); }
    75% { transform: translate(8px, 5px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.6; }
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--section-padding) 0;
}

.section--dark {
    background-color: var(--color-bg-secondary);
}

/* ============================================
   Skip Link (Accessibility)
   ============================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-cta);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    z-index: 9999;
}

.skip-link:focus {
    top: 10px;
}

/* Impersonation bar (admin viewing as user) */
.impersonation-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--color-warning);
    color: var(--color-bg);
    font-size: 14px;
}
.impersonation-bar__link {
    color: var(--color-bg);
    font-weight: 600;
    text-decoration: underline;
}
.impersonation-bar__link:hover {
    color: var(--color-primary);
}
body.impersonating .header {
    top: 44px;
}
body.impersonating {
    padding-top: 44px;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible;
}

.header__inner {
    display: flex;
    align-items: center;
    overflow: visible;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

/* Light background so dark logo is visible on dark header */
.logo__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    background: #fff;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.logo__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo__name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .logo__name {
        font-size: 1.25rem;
    }
}

.logo__img--footer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.logo--footer .logo__icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    overflow: hidden;
}

.logo--footer .logo__name {
    color: rgba(255, 255, 255, 0.95);
}

.logo__icon {
    font-size: 24px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav__close {
    display: none;
}

/* Nav overlay: hidden by default (mobile-only) */
.nav-overlay {
    display: none !important;
}

/* Desktop: hide mobile overlay, show horizontal nav */
@media (min-width: 769px) {
    .nav__overlay-header,
    .nav__overlay-footer {
        display: none !important;
    }
    .nav__overlay-inner {
        display: flex;
        align-items: center;
        width: 100%;
    }
    .nav__list {
        display: flex;
        flex-direction: row;
        gap: 30px;
        padding: 0;
    }
    .nav__link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        font-size: inherit;
        font-weight: 500;
        color: var(--color-text-secondary);
        border-radius: 0;
    }
    .nav__link:hover {
        background: transparent;
        color: var(--color-text);
    }
    .nav__icon-wrap {
        display: inline-flex;
        width: auto;
        height: auto;
        background: transparent;
    }
    .nav__label {
        font-size: inherit;
    }
}

.nav__icon {
    flex-shrink: 0;
    opacity: 0.85;
}

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

.nav__link:hover .nav__icon {
    opacity: 1;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: visible;
}

/* Language Selector */
.language-selector {
    position: relative;
    z-index: 10;
}

.language-selector__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    cursor: pointer;
    font-size: 14px;
}

.language-selector__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin: 4px 0 0 0;
    padding: 0;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    list-style: none;
    list-style-type: none;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    overflow: hidden;
}

.language-selector__dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-selector:hover .language-selector__dropdown,
.language-selector__trigger[aria-expanded="true"] + .language-selector__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-selector__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--color-text-secondary);
    transition: background var(--transition-fast);
}

.language-selector__option:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
}

.language-selector__option.is-active {
    color: var(--color-accent);
}

/* Currency Selector - same behaviour as language selector */
.currency-selector {
    position: relative;
    z-index: 10;
}

.currency-selector__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.currency-selector__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0 0;
    padding: 0;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    list-style: none;
    list-style-type: none;
    -webkit-padding-start: 0;
    padding-inline-start: 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    overflow: hidden;
}

.currency-selector__dropdown li {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: block;
}

.currency-selector__dropdown li::before,
.currency-selector__dropdown li::marker {
    content: none;
    display: none;
}

.currency-selector:hover .currency-selector__dropdown,
.currency-selector__trigger[aria-expanded="true"] + .currency-selector__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-selector__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.currency-selector__option:focus {
    outline: none;
}

.currency-selector__option:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
}

.currency-selector__option.is-active {
    color: var(--color-accent);
    font-weight: 500;
}

/* Mobile overlay: language + currency */
.nav-overlay__language,
.nav-overlay__currency {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-overlay__language-label,
.nav-overlay__currency-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}
.nav-overlay__language-options,
.nav-overlay__currency-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nav-overlay__language-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nav-overlay__language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.nav-overlay__language-btn.is-active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}
.nav-overlay__currency-btn {
    display: inline-block;
    margin: 0;
    padding: 8px 14px;
    background: var(--color-bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 14px;
}
.nav-overlay__currency-btn:hover,
.nav-overlay__currency-btn.is-active {
    color: var(--color-text);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

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

.user-menu__trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-cta);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-menu__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.user-menu:hover .user-menu__dropdown,
.user-menu__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu__dropdown li a {
    display: block;
    padding: 12px 16px;
    color: var(--color-text-secondary);
}

.user-menu__dropdown li a:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
}

.user-menu__dropdown .divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(170, 158, 120, 0.4);
    color: white;
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

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

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

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

.btn--lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn--full {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(28, 65, 95, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(170, 158, 120, 0.15) 0%, transparent 40%);
}

.hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(170, 158, 120, 0.35);
    border-radius: 50%;
    animation: float-particle 8s ease-in-out infinite;
}

.hero__particle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero__particle:nth-child(2) { top: 70%; left: 85%; animation-delay: 1.5s; }
.hero__particle:nth-child(3) { top: 40%; right: 15%; animation-delay: 3s; }
.hero__particle:nth-child(4) { top: 80%; left: 25%; animation-delay: 2s; }
.hero__particle:nth-child(5) { top: 25%; right: 30%; animation-delay: 4s; }

.hero__content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero__subtitle {
    color: var(--color-text-secondary);
    font-size: 18px;
    margin-bottom: 14px;
}

.hero__title {
    margin-bottom: 20px;
}

.hero__quote {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__text {
    color: var(--color-text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.hero__text--highlight {
    color: var(--color-text);
    font-weight: 500;
}

/* Hero Slider */
.hero--slider {
    position: relative;
}

.hero-slider {
    position: relative;
    width: 100%;
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.hero-slider__slide.is-active .hero__subtitle {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-slider__slide.is-active .hero__title {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-slider__slide.is-active .hero__text {
    animation: fadeInUp 0.6s ease 0.35s both;
}

.hero-slider__slide.is-active .hero__content .btn {
    animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-slider__image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hero-slider__image {
    max-width: 100%;
    max-height: min(80vh, 600px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.hero-slider__nav {
    position: absolute;
    bottom: 50%;
    left: 0;
    right: 0;
    transform: translateY(50%);
    pointer-events: none;
}

.hero-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 28px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s, border-color 0.2s;
}

.hero-slider__btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-accent);
}

.hero-slider__btn--prev { left: 20px; }
.hero-slider__btn--next { right: 20px; }

.hero-slider__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.hero-slider__dot:hover,
.hero-slider__dot.is-active {
    background: var(--color-accent);
}

.hero-slider__btn {
    transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

.hero-slider__btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-delay-1 { transition-delay: 0.1s; }
.animate-on-scroll-delay-2 { transition-delay: 0.2s; }
.animate-on-scroll-delay-3 { transition-delay: 0.3s; }
.animate-on-scroll-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Laboratory Section
   ============================================ */
.laboratory {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.laboratory__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 20px;
}

.laboratory__text {
    color: var(--color-text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.laboratory__benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    list-style: none;
    margin-bottom: 40px;
}

.laboratory__benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--color-bg-tertiary);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.laboratory__benefits li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.benefit__icon {
    font-size: 24px;
}

.laboratory__cta {
    padding: 30px;
    background: var(--gradient-cta);
    border-radius: var(--radius-lg);
}

.laboratory__intro {
    font-size: 20px;
    margin-bottom: 10px;
}

.laboratory__action {
    font-size: 28px;
    font-weight: 700;
}

/* ============================================
   Section Headers
   ============================================ */
.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 15px;
}

.section__subtitle {
    color: var(--color-text-secondary);
    font-size: 18px;
}

.section__footer {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   E-Book Cards
   ============================================ */
.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.ebooks-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.ebook-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.ebook-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(170, 158, 120, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ebook-card:hover .ebook-card__image img {
    transform: scale(1.05);
}

.ebook-card__image img {
    transition: transform var(--transition-slow);
}

.ebook-card__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    background: var(--color-bg-tertiary);
    overflow: hidden;
}

.ebook-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.ebook-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 60px;
}

.ebook-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: var(--gradient-cta);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.ebook-card__content {
    padding: 25px;
}

.ebook-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.ebook-card__rating--ref {
    flex-wrap: wrap;
    gap: 4px 6px;
}

.ebook-card__rating-num {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
}

.ebook-card__rating-count {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
}

.ebook-card__rating-count:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.star-rating {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.star-rating--orange .star--full,
.star-rating--orange .star--half {
    color: #f59e0b;
}

.star-rating--orange .star--outline {
    color: #f59e0b;
}

.star-rating--orange .star--outline .star-outline {
    stroke: #f59e0b;
}

.star {
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
}

.star--full {
    color: #f59e0b;
}

.star--half {
    background: linear-gradient(90deg, #f59e0b 50%, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.star--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star-outline {
    width: 14px;
    height: 14px;
}

.ebook-card__rating--ref .star-outline {
    width: 14px;
    height: 14px;
}

.ebook-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ebook-card__title a {
    color: inherit;
}

.ebook-card__title a:hover {
    color: var(--color-accent);
}

.ebook-card__description {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.ebook-card__benefits {
    list-style: none;
    margin-bottom: 20px;
}

.ebook-card__benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.ebook-card__benefits li svg {
    color: var(--color-success);
    flex-shrink: 0;
}

.ebook-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ebook-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
}

.ebook-card__format {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ============================================
   Feature Cards
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(170, 158, 120, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    transition: transform var(--transition-base);
    margin-bottom: 20px;
    color: var(--color-accent);
}

.feature-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card__text {
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-slider__track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonials-slider__slide {
    min-width: 100%;
}

.testimonials-slider__dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.testimonials-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.testimonials-slider__dot:hover,
.testimonials-slider__dot.is-active {
    background: var(--color-accent);
}

.testimonials-slider__dot.is-active {
    transform: scale(1.2);
}

.testimonial {
    padding: 30px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial__text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.testimonial__author cite {
    font-style: normal;
    font-weight: 500;
}

/* ============================================
   CTA Section
   ============================================ */
.section--cta {
    background: var(--gradient-cta);
    padding: 100px 0;
}

.cta-box {
    text-align: center;
}

.cta-box__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-box__text {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(28, 65, 95, 0.3) 0%, transparent 50%);
}

.page-header__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header__subtitle {
    color: var(--color-text-secondary);
    font-size: 18px;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 15px;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(170, 158, 120, 0.2);
}

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

.form-input:disabled,
.form-input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.form-help {
    margin-top: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

.form-group--inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-link {
    font-size: 14px;
    color: var(--color-primary);
}

/* ============================================
   Auth Pages
   ============================================ */
.section--auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.auth-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-card__header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card__header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-card__header p {
    color: var(--color-text-secondary);
}

.auth-card__footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-card__footer p {
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* ============================================
   Product Page
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--color-text-muted);
}

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

.breadcrumb a:hover {
    color: var(--color-text);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product__image {
    position: sticky;
    top: 100px;
}

.product__image img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

.product__placeholder {
    aspect-ratio: 3/4;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
}

.product__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.product__description {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.product__benefits {
    margin-bottom: 30px;
}

.product__benefits h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.product__benefits ul {
    list-style: none;
}

.product__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
}

.product__benefits li svg {
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 3px;
}

.product__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product__rating--ref {
    flex-wrap: wrap;
    gap: 6px 8px;
}

.product__rating-num {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text);
}

.product__rating .star {
    font-size: 18px;
}

.product__rating .star-outline {
    width: 18px;
    height: 18px;
    display: block;
}

.product__rating-chevron {
    font-size: 12px;
    color: var(--color-text);
    margin-left: 2px;
}

.product__rating-count {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
}

.product__rating-count:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.product-reviews {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-reviews h3 {
    margin-bottom: 25px;
    font-size: 20px;
}

.review-item {
    padding: 20px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-item__stars {
    margin-bottom: 10px;
}

.review-item__stars .star {
    font-size: 16px;
}

.review-item__text {
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.review-item__meta {
    font-size: 13px;
    color: var(--color-text-muted);
}

.product__details {
    background: var(--color-bg-secondary);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.product__details h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.product__details ul {
    list-style: none;
}

.product__details li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product__details li:last-child {
    border-bottom: none;
}

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

/* Language Selection */
.language-options {
    display: grid;
    gap: 12px;
}

.language-option {
    cursor: pointer;
}

.language-option input {
    position: absolute;
    opacity: 0;
}

.language-option__content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: var(--color-bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.language-option input:checked + .language-option__content {
    border-color: var(--color-accent);
    background: rgba(170, 158, 120, 0.15);
}

.language-option:hover .language-option__content {
    border-color: rgba(255, 255, 255, 0.2);
}

.language-option.is-owned .language-option__content {
    opacity: 0.5;
    cursor: not-allowed;
}

.language-option.is-unavailable .language-option__content {
    opacity: 0.75;
    cursor: default;
}

.language-option__unavailable-msg {
    color: var(--text-muted);
    font-style: italic;
}

.language-option__flag {
    font-size: 24px;
}

.language-option__name {
    flex: 1;
    font-weight: 500;
}

.language-option__price {
    color: var(--color-accent);
    font-weight: 600;
}

.language-option__badge {
    font-size: 11px;
    padding: 4px 8px;
    background: var(--color-success);
    color: white;
    border-radius: var(--radius-full);
}

.product__price-box {
    margin: 30px 0;
    padding: 20px;
    background: var(--gradient-cta);
    border-radius: var(--radius-md);
    text-align: center;
}

.product__price {
    font-size: 36px;
    font-weight: 700;
}

.product__notice {
    margin-top: 20px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--color-warning);
}

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
}

.feature-box__icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-box h4 {
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ============================================
   Checkout
   ============================================ */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.summary-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-card h2 {
    font-size: 18px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.summary-item__image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.summary-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-item__details h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.summary-item__language {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.summary-item__language .value {
    color: var(--color-text);
}

.summary-totals {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--color-text-secondary);
}

.summary-row--total {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--color-text);
}

.total-price {
    font-size: 24px;
    color: var(--color-accent);
}

.security-badge {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    margin-top: 20px;
    color: var(--color-success);
}

.security-badge strong {
    display: block;
    margin-bottom: 5px;
}

.security-badge p {
    font-size: 13px;
    color: var(--color-text-muted);
}

.checkout-form {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group--checkboxes {
    padding: 20px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
}

.form-group--checkboxes .checkbox-label {
    margin-bottom: 15px;
}

.form-group--checkboxes .checkbox-label:last-child {
    margin-bottom: 0;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    cursor: pointer;
    margin: 0;
}

.payment-method input {
    position: absolute;
    opacity: 0;
}

.payment-method__box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--color-bg-tertiary);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, background 0.2s;
}

.payment-method input:checked + .payment-method__box {
    border-color: var(--color-accent);
    background: rgba(170, 158, 120, 0.08);
}

.payment-method:hover .payment-method__box {
    border-color: rgba(255, 255, 255, 0.15);
}

.payment-method__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.payment-method__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-method__info strong {
    font-size: 15px;
}

.payment-method__info small {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Success Page */
.success-card {
    text-align: center;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.success-card__icon {
    color: var(--color-success);
    margin-bottom: 30px;
}

.success-card h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.success-card__message {
    color: var(--color-text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.success-card__order {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
}

.order-info {
    margin-bottom: 20px;
}

.order-info .label {
    color: var(--color-text-muted);
    font-size: 14px;
}

.order-info .value {
    font-size: 20px;
    font-weight: 600;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-product img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.success-card__actions {
    margin-bottom: 30px;
}

.success-card__email {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.success-card__next {
    text-align: left;
    padding: 25px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
}

.success-card__next h3 {
    margin-bottom: 15px;
}

.success-card__next ol {
    padding-left: 20px;
    color: var(--color-text-secondary);
}

.success-card__next li {
    margin-bottom: 10px;
}

/* ============================================
   Dashboard
   ============================================ */
.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.dashboard-header__member {
    color: var(--color-text-muted);
    font-size: 14px;
}

.dashboard-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.dashboard-nav__link:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.dashboard-nav__link.is-active {
    background: var(--gradient-cta);
    color: white;
}

.dashboard-content h2 {
    font-size: 24px;
    margin-bottom: 25px;
}

/* Ebook List */
.ebooks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ebook-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ebook-item__image {
    width: 120px;
    flex-shrink: 0;
}

.ebook-item__image img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.ebook-item__placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.ebook-item__content {
    flex: 1;
}

.ebook-item__title {
    font-size: 20px;
    margin-bottom: 12px;
}

.ebook-item__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.ebook-item__notice {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
}

.ebook-item__actions {
    display: flex;
    align-items: center;
}

/* Dashboard Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.review-card {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-card__cover {
    width: 100px;
    flex-shrink: 0;
}

.review-card__cover img {
    width: 100%;
    border-radius: var(--radius-md);
}

.review-card__placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.review-card__body {
    flex: 1;
}

.review-card__title {
    font-size: 18px;
    margin-bottom: 20px;
}

.star-rating-input {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.star-rating-input .star-input {
    cursor: pointer;
}

.star-rating-input input {
    position: absolute;
    opacity: 0;
}

.star-rating-input .star {
    font-size: 24px;
    transition: color 0.2s;
}

.star-rating-input .star-input:has(input:checked) .star,
.star-rating-input .star-input:hover .star {
    color: #f59e0b;
}

.star-rating-input:has(.star-input:nth-child(1) input:checked) .star-input:nth-child(-n+1) .star,
.star-rating-input:has(.star-input:nth-child(2) input:checked) .star-input:nth-child(-n+2) .star,
.star-rating-input:has(.star-input:nth-child(3) input:checked) .star-input:nth-child(-n+3) .star,
.star-rating-input:has(.star-input:nth-child(4) input:checked) .star-input:nth-child(-n+4) .star,
.star-rating-input:has(.star-input:nth-child(5) input:checked) .star-input:nth-child(-n+5) .star {
    color: #f59e0b;
}

/* Orders Table */
.orders-table {
    overflow-x: auto;
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.orders-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 13px;
    text-transform: uppercase;
}

.orders-table td {
    font-size: 14px;
}

.order-number {
    font-family: monospace;
    color: var(--color-accent);
}

.order-product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-product img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: capitalize;
}

.status-badge--pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
}

.status-badge--processing {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-info);
}

.status-badge--completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

.status-badge--failed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-error);
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.profile-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-card h2 {
    font-size: 20px;
    margin-bottom: 25px;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state__icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.empty-state h2,
.empty-state h3 {
    margin-bottom: 15px;
}

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

/* ============================================
   Error Pages
   ============================================ */
.section--error {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.error-page {
    text-align: center;
}

.error-page__code {
    font-size: 120px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.error-page h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.error-page p {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* ============================================
   Legal Pages
   ============================================ */
.section--legal {
    padding-top: 140px;
}

.section--legal h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.legal-updated {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 22px;
    margin: 40px 0 15px;
}

.legal-content h3 {
    font-size: 18px;
    margin: 25px 0 10px;
}

.legal-content p {
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul {
    margin: 15px 0 15px 30px;
    color: var(--color-text-secondary);
}

.legal-content li {
    margin-bottom: 8px;
}

.highlight-box {
    padding: 20px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.highlight-box--warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.highlight-box--warning p,
.highlight-box--warning ul {
    color: var(--color-error);
}

.legal-content h2.highlight {
    color: var(--color-error);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.page-subtitle {
    color: var(--color-text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-form {
    background: var(--color-bg-secondary);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.contact-info__item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-info__icon {
    font-size: 30px;
}

.contact-info__item h3 {
    margin-bottom: 5px;
}

.contact-info__item p {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.contact-info__note {
    padding: 20px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ============================================
   Notice Box
   ============================================ */
.notice-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
}

.notice-box__icon {
    font-size: 30px;
}

.notice-box h3 {
    color: var(--color-warning);
    margin-bottom: 8px;
}

.notice-box p {
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* ============================================
   Shop Intro
   ============================================ */
.shop-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.shop-intro p {
    color: var(--color-text-secondary);
    font-size: 18px;
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert--success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.alert--error,
.alert--errors {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.alert--warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
}

.alert--info {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--color-info);
    color: var(--color-info);
}

/* ============================================
   Footer - Professional brand presentation
   ============================================ */
.footer {
    background: linear-gradient(180deg, #1e2328 0%, #191c20 100%);
    border-top: 1px solid rgba(170, 158, 120, 0.15);
    padding: 70px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 60px 40px;
    padding-bottom: 50px;
}

.footer__brand .logo {
    display: inline-flex;
}

.footer__brand .logo__name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.footer__tagline {
    color: var(--color-text-secondary);
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}

.footer__links h4,
.footer__newsletter h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    color: var(--color-text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer__newsletter h4 {
    color: var(--color-text);
}

.footer__newsletter p {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 360px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--color-text);
    font-size: 14px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

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

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(170, 158, 120, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.newsletter-form .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 24px;
}

.footer__payments {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__payments-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: 18px;
}

.footer__payment-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.payment-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.payment-logo svg {
    display: block;
    height: 26px;
    width: auto;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.payment-logo:hover svg {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.footer__bottom {
    padding: 24px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer__bottom p {
    color: var(--color-text-muted);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* ============================================
   Responsive - Mobile first approach
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .product__image {
        position: relative;
        top: 0;
    }
    
    .product__title {
        font-size: 28px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-width: 100%;
    }
    
    .container {
        padding: 0 16px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Keep header row: logo + actions; ensure menu toggle is never pushed off */
    .header .header__inner {
        flex-wrap: nowrap;
        min-width: 0;
    }
    .header .header__inner .logo {
        min-width: 0;
        flex-shrink: 1;
    }
    .header .header__actions {
        flex-shrink: 0;
        min-width: 0;
    }
    /* Language and currency live in hamburger on small screens */
    .header .language-selector,
    .header .currency-selector {
        display: none !important;
    }
    .menu-toggle {
        flex-shrink: 0;
        cursor: pointer;
        touch-action: manipulation;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        margin: 0 0 0 4px;
        border: none;
        background: transparent;
        border-radius: 6px;
    }
    
    /* Hide logo and header actions when nav open */
    body.menu-open .header .logo,
    body.menu-open .header .header__actions {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    /* Mobile nav overlay - outside header, always on top */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: #141719;
        overflow-y: auto;
        pointer-events: none;
    }
    
    .nav-overlay.is-open {
        display: block !important;
        pointer-events: auto;
    }
    
    .nav-overlay__inner {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        padding: 24px;
    }
    
    .nav-overlay__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-overlay__brand {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        font-size: 18px;
    }
    
    .nav-overlay__brand-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        overflow: hidden;
        background: #fff;
    }
    
    .nav-overlay__brand-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .nav-overlay__close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 12px;
        color: #fff;
        cursor: pointer;
    }
    
    .nav-overlay__close:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .nav-overlay__list {
        flex: 1;
        list-style: none;
        padding: 32px 0;
        margin: 0;
    }
    
    .nav-overlay__list li {
        margin-bottom: 8px;
    }
    
    .nav-overlay__link {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
        font-size: 18px;
        font-weight: 500;
        color: #fff;
        text-decoration: none;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .nav-overlay__link:hover {
        background: rgba(170, 158, 120, 0.2);
        color: var(--color-accent);
    }
    
    .nav-overlay__link--logout {
        margin-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 20px;
    }
    
    .nav-overlay__link--cta {
        background: var(--gradient-cta);
        color: #fff !important;
    }
    
    .nav-overlay__link--cta:hover {
        opacity: 0.95;
        color: #fff !important;
        background: var(--gradient-cta);
    }
    
    .nav-overlay__icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
    }
    
    .nav-overlay__footer {
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .nav-overlay__footer-link {
        font-size: 14px;
        color: var(--color-text-muted);
        text-decoration: none;
    }
    
    .nav-overlay__footer-link:hover {
        color: var(--color-accent);
    }
    
    .nav-overlay__footer-link--cta {
        background: var(--gradient-cta);
        color: #fff !important;
        padding: 10px 20px;
        border-radius: 10px;
        font-weight: 600;
    }
    
    /* Hide in-page nav on mobile when overlay used */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3000;
        display: none;
        pointer-events: none;
    }
    
    .nav.is-open {
        display: block;
        pointer-events: none;
    }
    
    /* User menu: open upward on mobile, below nav overlay */
    .user-menu__dropdown {
        position: absolute;
        bottom: 100%;
        top: auto;
        right: 0;
        left: auto;
        margin: 0 0 8px 0;
        min-width: 180px;
        z-index: 1100;
    }
    
    body.menu-open .user-menu__dropdown {
        visibility: hidden !important;
    }
    
    /* Language selector: ensure dropdown doesn't overflow */
    .language-selector__dropdown {
        right: 0;
    }
    
    .header__actions {
        gap: 8px;
    }
    
    .language-selector__trigger {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .hero {
        padding: 70px 0 50px;
        min-height: 65vh;
    }
    
    .hero__content {
        padding: 0 16px;
    }
    
    .hero__quote {
        font-size: clamp(28px, 5vw, 48px);
    }
    
    .hero__subtitle,
    .hero__text {
        font-size: 16px;
    }
    
    .hero-slider__btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .hero-slider__btn--prev { left: 10px; }
    .hero-slider__btn--next { right: 10px; }
    
    .hero-slider__dots {
        bottom: 20px;
    }
    
    .hero-slider__image-wrap {
        padding: 20px;
    }
    
    .laboratory__benefits {
        grid-template-columns: 1fr;
    }
    
    .section__header {
        margin-bottom: 40px;
    }
    
    .section__title {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    .testimonials-slider {
        padding: 0 16px;
    }
    
    .cta-box__title {
        font-size: clamp(24px, 5vw, 36px);
    }
    
    .cta-box__text {
        font-size: 16px;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
    }
    
    .ebook-item {
        flex-direction: column;
    }
    
    .ebook-item__image {
        width: 100%;
        max-width: 200px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }
    
    .footer__tagline {
        max-width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: none;
    }
    
    .newsletter-form input {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-sm);
    }
    
    .newsletter-form .btn {
        border-radius: var(--radius-sm);
    }
    
    .orders-table {
        font-size: 13px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 10px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header__inner {
        height: 60px;
    }
    
    .logo__name {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo__icon-wrap {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .hero {
        padding: 60px 0 40px;
        min-height: auto;
    }
    
    .hero__quote {
        font-size: clamp(24px, 6vw, 36px);
    }
    
    .hero__text p {
        font-size: 15px;
    }
    
    .hero-slider__btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .hero-slider__btn--prev { left: 6px; }
    .hero-slider__btn--next { right: 6px; }
    
    .hero-slider__dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .hero-slider__dot {
        width: 8px;
        height: 8px;
    }
    
    .btn--lg {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .ebooks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ebook-card__content {
        padding: 20px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .laboratory__cta {
        padding: 24px 20px;
    }
    
    .laboratory__action {
        font-size: 20px;
    }
    
    .product__title {
        font-size: 24px;
    }
    
    .product__price {
        font-size: 28px;
    }
    
    .footer {
        padding: 50px 0 0;
    }
    
    .footer__payments {
        padding: 24px 0;
    }
    
    .footer__payment-logos {
        gap: 8px;
        justify-content: center;
    }
    
    .payment-logo svg {
        height: 22px;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* Large screens - prevent over-stretching */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    :root {
        --section-padding: 100px;
    }
    
    .container {
        max-width: 1440px;
    }
}

/* Admin panel theme sync - legacy (current) design */
:root {
    --admin-primary: var(--color-primary);
    --admin-accent: var(--color-accent);
}
