/* ============================================
   GLOBAL AWAKENING - GAIA-INSPIRED THEME
   Dark, mystical, spiritual transformation
   ============================================ */

:root {
    /* Cosmic Color Palette - Inspired by Gaia */
    --color-cosmic-dark: #0a0e27;
    --color-deep-space: #141b2d;
    --color-midnight: #1a1f35;
    --color-nebula: #2d1b69;
    --color-aurora: #4a2c7e;
    --color-stardust: #6b46c1;
    --color-celestial: #8b5cf6;
    --color-cosmic-light: #a78bfa;

    /* Accent Colors */
    --color-golden: #fbbf24;
    --color-moonlight: #e0e7ff;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;

    /* Text Colors */
    --color-text: #f3f4f6;
    --color-text-secondary: #d1d5db;
    --color-text-muted: #9ca3af;
    --color-text-primary: #f3f4f6;

    /* UI colors */
    --color-border: rgba(139, 92, 246, 0.06);
    --color-bg-primary: var(--color-cosmic-dark);
    --color-bg-secondary: var(--color-deep-space);
    --color-bg-card: var(--color-midnight);

    /* Gradients */
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-nebula: linear-gradient(135deg, #4a2c7e 0%, #8b5cf6 100%);
    --gradient-aurora: linear-gradient(135deg, #6b46c1 0%, #a78bfa 100%);
    --gradient-golden: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

:root {
    /* Side accent (blob) controls */
    --side-accent-width: 140px;
    /* horizontal size of the blob */
    --side-accent-height-vh: 52vh;
    /* height expressed as viewport percentage */
    --side-accent-opacity: 0.08;
    /* overall opacity */
    --side-accent-blur: 18px;
    /* gaussian blur amount */
    --side-accent-offset: 76px;
    /* distance from centered container edge */
    --side-accent-scale: 0.95;
    /* base scale for the blobs */
    --side-accent-drift-x: 8px;
    /* horizontal drift range for animation */
    --side-accent-left-gradient: radial-gradient(circle at 30% 30%, rgba(106, 90, 205, 0.95), rgba(139, 92, 246, 0.7) 40%, rgba(167, 139, 250, 0.25) 70%);
    --side-accent-right-gradient: radial-gradient(circle at 70% 70%, rgba(75, 85, 199, 0.95), rgba(124, 58, 237, 0.75) 40%, rgba(167, 139, 250, 0.25) 70%);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg-primary);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.main-header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
}

.logo:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.main-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
    /* Ensure consistent box model and stable layout during hover/active states */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 var(--spacing-md);
    border-radius: var(--radius-md);
    line-height: 1;
    box-sizing: border-box;
}

.main-nav a:hover {
    color: var(--color-celestial);
    background: rgba(139, 92, 246, 0.1);
}

/* Active / highlighted nav item — keep same height to avoid layout shift */
.main-nav a.active,
.main-nav a[aria-current="page"] {
    background: rgba(106, 90, 205, 0.14);
    color: var(--color-moonlight);
}

.btn-register {
    background: var(--gradient-cosmic) !important;
    color: white !important;
    padding: var(--spacing-sm) var(--spacing-lg) !important;
    border-radius: var(--radius-lg) !important;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* Hero buttons */
.btn-hero-primary {
    background: var(--gradient-cosmic);
    color: white;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    margin-right: 12px;
}

.btn-hero-secondary {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.18);
    color: var(--color-text-primary);
    padding: 10px 18px;
    border-radius: 12px;
}

/* Featured marquee (horizontal auto-scroll) */
.featured-marquee {
    padding: 22px 0 14px 0;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.02), rgba(20, 27, 45, 0));
    border-top: 1px solid rgba(139, 92, 246, 0.04);
    border-bottom: 1px solid rgba(139, 92, 246, 0.04);
}

.featured-marquee .marquee-track {
    display: flex;
    gap: 18px;
    align-items: center;
    will-change: transform;
    transform: translateX(0);
}

.featured-marquee .marquee-item {
    min-width: 280px;
    max-width: 320px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(139, 92, 246, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.featured-marquee .marquee-thumb img {
    width: 100px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.featured-marquee .marquee-title {
    font-weight: 700;
    color: var(--color-moonlight);
    font-size: 1rem;
}

.featured-marquee .marquee-placeholder {
    width: 100px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(106, 90, 205, 0.85));
    border-radius: 10px;
    color: white;
    font-size: 1.6rem;
}

.user-menu {
    position: relative;
}

.user-dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--color-midnight);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    list-style: none;
    padding: 8px;
    margin: 0;
    z-index: 1000;
}

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

.dropdown-menu li {
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    list-style: none;
}

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

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.15s ease;
    border-radius: 8px;
}

.dropdown-menu a:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--color-celestial);
    transform: translateX(4px);
}

/* Logout item pinned visually separate at bottom */
.dropdown-menu li.dropdown-logout {
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    align-self: stretch;
}

.dropdown-menu li.dropdown-logout a {
    color: var(--color-danger, #ff6b6b);
    font-weight: 600;
    background: transparent;
}

.dropdown-menu li.dropdown-logout a:hover {
    background: rgba(255, 107, 107, 0.06);
    color: #ff6b6b;
    transform: none;
}

/* Make the active/selected item slightly filled to match left nav */
.dropdown-menu li a.active,
.dropdown-menu li a[aria-current='true'] {
    background: rgba(139, 92, 246, 0.09);
    color: var(--color-celestial);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.content-wrapper {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

/* Decorative side accents (organic blobs): subtle, blurred, non-interactive
   Uses CSS variables so appearance can be tuned easily from :root. */
@media (min-width:1300px) {

    body::before,
    body::after {
        content: '';
        position: fixed;
        top: 50%;
        width: var(--side-accent-width);
        height: calc(var(--side-accent-height-vh));
        border-radius: 40% 60% 50% 60%/60% 40% 60% 40%;
        pointer-events: none;
        opacity: var(--side-accent-opacity);
        z-index: 0;
        /* behind main content/header */
        filter: blur(var(--side-accent-blur)) saturate(1.05);
        transition: transform 0.9s ease, opacity 0.6s ease;
        transform-origin: center;
        will-change: transform, opacity;
    }

    /* Position these blobs just outside the centered container (1200px max-width) */
    body::before {
        left: calc((100% - 1200px)/2 - var(--side-accent-offset));
        transform: translateY(-50%) rotate(-12deg) scale(var(--side-accent-scale));
        background: var(--side-accent-left-gradient);
    }

    body::after {
        right: calc((100% - 1200px)/2 - var(--side-accent-offset));
        transform: translateY(-50%) rotate(12deg) scale(var(--side-accent-scale));
        background: var(--side-accent-right-gradient);
    }

    /* Gentle drifting animation to add subtle life without distraction */
    @keyframes blob-drift-left {
        0% {
            transform: translateY(-50%) rotate(-12deg) translateX(0);
        }

        50% {
            transform: translateY(-50%) rotate(-12deg) translateX(calc(-1 * var(--side-accent-drift-x)));
        }

        100% {
            transform: translateY(-50%) rotate(-12deg) translateX(0);
        }
    }

    @keyframes blob-drift-right {
        0% {
            transform: translateY(-50%) rotate(12deg) translateX(0);
        }

        50% {
            transform: translateY(-50%) rotate(12deg) translateX(var(--side-accent-drift-x));
        }

        100% {
            transform: translateY(-50%) rotate(12deg) translateX(0);
        }
    }

    /* Settings layout (vertical nav + content) */
    .settings-layout {
        display: flex;
        gap: 28px;
        align-items: flex-start;
    }

    .settings-nav {
        width: 220px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
        border: 1px solid rgba(139, 92, 246, 0.06);
        padding: 12px;
        border-radius: 12px;
    }

    .settings-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .settings-nav li {
        margin: 6px 0;
    }

    .settings-nav a {
        display: block;
        padding: 10px 12px;
        color: var(--color-text-primary);
        text-decoration: none;
        border-radius: 8px;
    }

    .settings-nav li.active a,
    .settings-nav a:hover {
        background: rgba(139, 92, 246, 0.08);
        color: var(--color-celestial);
        padding-left: 14px;
    }

    .settings-content {
        flex: 1;
    }

    /* Inline spinner for quicker visual feedback */
    .inline-spinner {
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-left: 8px;
        vertical-align: middle;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.12);
        border-top-color: var(--color-celestial);
        transform: rotate(0);
        animation: spinner-rotate 1s linear infinite;
        visibility: hidden;
        opacity: 0;
        transition: opacity .18s ease;
    }

    .submit-with-spinner[disabled] .inline-spinner,
    .submit-with-spinner[aria-busy="true"] .inline-spinner {
        visibility: visible;
        opacity: 1;
    }

    .submit-with-spinner[disabled] {
        opacity: 0.8;
        pointer-events: none;
    }

    @keyframes spinner-rotate {
        to {
            transform: rotate(360deg);
        }
    }

    /* Make auth-card adapt to settings layout */
    .auth-card.settings-layout {
        padding: 18px;
        display: block;
    }

    .auth-card h2 {
        margin-top: 0;
    }

    /* Smaller form rows for settings */
    .settings-content .form-row {
        margin-bottom: 12px;
    }

    .form-actions {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-top: 14px;
    }

    /* Hide the left settings-nav on settings pages (we will show the links in the header dropdown) */
    .settings-page .settings-nav {
        display: none !important;
    }

    /* Make inputs in settings content full-width and readable on dark background */
    .settings-content .form-row label {
        display: block;
        margin-bottom: 8px;
        color: var(--color-text-primary);
        font-weight: 600;
    }

    .settings-content .form-input,
    .settings-content input[type="text"],
    .settings-content input[type="email"],
    .settings-content input[type="password"] {
        width: 100%;
        padding: 0.7rem 0.9rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(255, 255, 255, 0.02);
        color: var(--color-text-primary);
    }

    .settings-content .form-error {
        color: var(--color-danger);
        margin-top: 6px;
    }

    body::before {
        animation: blob-drift-left 14s ease-in-out infinite;
    }

    body::after {
        animation: blob-drift-right 16s ease-in-out infinite;
    }

    /* Respect users who prefer reduced motion */
    @media (prefers-reduced-motion: reduce) {

        body::before,
        body::after {
            animation: none !important;
        }
    }
}

/* Small screens: hide to avoid any overlap and keep content clear */
@media (max-width:1299px) {

    body::before,
    body::after {
        display: none !important;
    }
}

/* Global full-screen spinner overlay used during form submits */
.global-spinner-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 6, 23, 0.6);
    z-index: 20000;
    color: var(--color-text);
}

.global-spinner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 28px;
    border-radius: 12px;
    background: rgba(10, 14, 39, 0.9);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.12);
}

.spinner-rotate {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--color-celestial);
    animation: spinner-anim 900ms linear infinite;
}

@keyframes spinner-anim {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.global-spinner-message {
    font-size: 15px;
    color: var(--color-text);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .spinner-rotate {
        animation: none;
    }
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--color-bg-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    border-color: var(--color-celestial);
    background: rgba(139, 92, 246, 0.1);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
}

button.btn {
    font-family: inherit;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Globally styled inputs */
.form-input,
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus,
.form-control:focus {
    outline: none;
    border-color: var(--color-celestial);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

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

/* Submit button with enhanced interactions */
.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-cosmic);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.4);
    filter: brightness(1.1);
}

.btn-submit:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
}

/* Pulse animation for focus */
@keyframes input-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.form-input:focus {
    animation: input-pulse 2s infinite;
}

/* ============================================
   MEDITATION / YT-LITE STYLES
   Placeholder thumbnail + custom play button + modal
   ============================================ */
.meditation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.meditation-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(139, 92, 246, 0.06);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.meditation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.meditation-card .meta {
    padding: 12px 14px;
}

.yt-lite {
    position: relative;
    background-color: #000;
    background-size: cover;
    background-position: center center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-lite::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.35));
}

.yt-lite-play {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(106, 90, 205, 0.95));
    box-shadow: 0 8px 24px rgba(106, 90, 205, 0.25);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.yt-lite-play:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 30px rgba(106, 90, 205, 0.35);
}

/* modal lightbox */
.modal-lite {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    z-index: 3000;
    padding: 24px;
}

.modal-lite.open {
    display: flex;
}

.modal-lite .modal-inner {
    width: min(1100px, 96%);
    background: transparent;
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 3100;
}

@media (max-width: 600px) {
    .yt-lite-play {
        width: 52px;
        height: 52px;
        font-size: 22px
    }
}

/* Hover pop + reveal play button like Gaia */
.meditation-card {
    will-change: transform;
}

.meditation-card .yt-lite {
    transition: transform 280ms var(--transition-fast), box-shadow 280ms var(--transition-fast);
    transform-origin: center center;
}

.meditation-card .yt-lite-play {
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 220ms var(--transition-fast), transform 220ms var(--transition-fast);
    pointer-events: none;
}

.meditation-card:hover .yt-lite {
    transform: scale(1.04);
}

.meditation-card:hover .yt-lite-play {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.meditation-card .meta h3 {
    font-size: 1.05rem;
}

/* ============================================
   SERIES STYLES
   ============================================ */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.series-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(139, 92, 246, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 300ms var(--transition-base), box-shadow 300ms var(--transition-base);
}

.series-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.series-card img.series-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.series-card:hover img.series-cover {
    transform: scale(1.04);
}

.series-card .card-body {
    padding: 12px 14px;
}

.series-card .muted {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.series-item-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.thumb-wrap {
    position: relative;
    width: 220px;
    flex: 0 0 220px;
}

.thumb-wrap img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.thumb-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.2));
    transition: background 200ms ease;
    border-radius: 8px;
}

.thumb-wrap:hover .thumb-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
}

.btn-play-big {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    border: none;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.98), rgba(106, 90, 205, 0.95));
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.2);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn-play-big:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 36px rgba(106, 90, 205, 0.28);
}

.item-meta h4 {
    margin: 0 0 6px 0;
}

.item-meta p {
    margin: 0;
    color: var(--color-text-secondary);
}

/* modal player tweaks */
.modal .modal-body {
    padding: 0;
}

.modal iframe {
    width: 100%;
    height: 60vh;
}

/* small screens */
@media (max-width: 800px) {
    .series-item-card {
        flex-direction: column;
    }

    .thumb-wrap {
        width: 100%;
        flex: 0 0 auto;
    }

    .thumb-wrap img {
        height: 200px;
    }

    .btn-play-big {
        width: 56px;
        height: 56px;
    }
}



.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-celestial);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom Checkbox Styling */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--color-celestial);
    border-color: var(--color-celestial);
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Button enhancements */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.card,
.series-card,
.meditation-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.series-card:hover,
.meditation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


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

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-messages-container {
    position: fixed;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border-left: 4px solid var(--color-success);
    color: #6ee7b7;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    border-left: 4px solid var(--color-danger);
    color: #fca5a5;
}

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

.alert-info {
    background: rgba(139, 92, 246, 0.2);
    border-left: 4px solid var(--color-celestial);
    color: var(--color-cosmic-light);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.badge-info {
    background: rgba(139, 92, 246, 0.2);
    color: var(--color-cosmic-light);
}

.badge-secondary {
    background: rgba(156, 163, 175, 0.2);
    color: var(--color-text-muted);
}

.badge-live {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.badge-upcoming {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.badge-past {
    background: rgba(156, 163, 175, 0.2);
    color: var(--color-text-muted);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-header {
    margin-bottom: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.dashboard-container {
    padding: var(--spacing-xl) 0;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--color-deep-space);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    margin-top: auto;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-top {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.footer-brand h3 {
    font-size: 1.8rem;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h4 {
    color: var(--color-celestial);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-column a:hover {
    color: var(--color-celestial);
}

.copyright-text {
    text-align: center;
    color: var(--color-text-muted);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    font-size: 0.9rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal-content {
    background: var(--color-bg-card);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-glow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--color-celestial);
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--color-bg-secondary);
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--color-celestial);
}

td {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }

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

    .flash-messages-container {
        right: var(--spacing-md);
        left: var(--spacing-md);
        max-width: none;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.p-1 {
    padding: var(--spacing-sm);
}

.p-2 {
    padding: var(--spacing-md);
}

.p-3 {
    padding: var(--spacing-lg);
}

.p-4 {
    padding: var(--spacing-xl);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: var(--spacing-sm);
}

.gap-2 {
    gap: var(--spacing-md);
}

.gap-3 {
    gap: var(--spacing-lg);
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HOME: Cinematic Hero & Landing Page Styles
   Moved from `templates/content/home.html` for centralization
   ============================================ */

.hero-awakening {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f35 50%, #2d1b69 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.hero-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 60px 70px, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 10px, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    /* twinkle + slow drift for cinematic movement */
    animation: twinkle 10s ease-in-out infinite, drift 80s linear infinite;
    will-change: transform, background-position, opacity;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes drift {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 300px 120px;
    }

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

/* layered nebula for depth using pseudo-elements */
.hero-stars::before,
.hero-stars::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-stars::before {
    background: radial-gradient(ellipse at 20% 30%, rgba(106, 90, 205, 0.08), transparent 20%), radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.06), transparent 20%);
    mix-blend-mode: screen;
    opacity: 0.9;
    animation: nebula-drift 140s linear infinite;
}

.hero-stars::after {
    background: radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.02), transparent 20%), radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.015), transparent 20%);
    opacity: 0.7;
    filter: blur(8px) saturate(1.1);
    animation: nebula-drift 220s linear infinite reverse;
}

@keyframes nebula-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-60px, 20px, 0) scale(1.02);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    text-align: center;
    padding: 80px 20px;
}

.hero-title {
    margin: 0 0 26px;
    line-height: 1.06;
}

.hero-line-1,
.hero-line-2 {
    display: block;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'Playfair Display', serif;
}

.hero-line-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-line-2 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 760px;
    margin: 0 auto 34px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 14px 36px;
    background: var(--gradient-cosmic);
    color: white;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.28);
}

.btn-hero-primary:focus,
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.36);
}

.btn-hero-secondary {
    padding: 12px 34px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.22);
}

.hero-edge-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0) 0%, rgba(10, 14, 39, 0.9) 100%);
    pointer-events: none;
}

/* Hero media (video) */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    opacity: 0.95;
    filter: saturate(0.95) contrast(1.03);
}

.hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* If user prefers reduced motion, don't show video autoplay */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none !important;
    }

    .hero-poster {
        display: block;
    }
}

/* On small devices avoid video to save data — show poster instead */
@media (max-width: 600px) {
    .hero-video {
        display: none;
    }

    .hero-poster {
        display: block;
    }
}

/* Why Section */
.why-section {
    padding: 80px 20px;
    background: var(--color-deep-space);
    text-align: center;
}

.section-heading {
    font-size: 2.25rem;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subheading {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 840px;
    margin: 0 auto 18px;
    line-height: 1.7;
}

.intuition-text {
    font-size: 1.25rem;
    color: var(--color-golden);
    font-style: italic;
    margin-top: 28px;
}

/* Features Grid (home) */
.features-awakening {
    padding: 60px 20px;
    background: var(--color-bg-primary);
}

.features-grid-awakening {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.feature-item-awakening {
    text-align: center;
    padding: 22px;
    background: var(--color-bg-card);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.12);
}

.feature-icon-awakening {
    font-size: 3rem;
    margin-bottom: 12px;
}

.feature-item-awakening h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-celestial);
}

/* Testimonials */
.testimonials-section {
    padding: 60px 20px;
    background: var(--color-bg-primary);
}

.testimonials-wrap {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.testimonial-card {
    background: var(--color-bg-card);
    padding: 20px;
    border-radius: 12px;
    flex: 1 1 360px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.testimonial-card blockquote {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin: 0;
}

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

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.12);
    box-shadow: var(--shadow-sm);
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    color: var(--color-celestial);
    font-weight: 700;
}

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

.testimonial-rating {
    color: var(--color-golden);
    font-size: 0.9rem;
}

.testimonial-stats {
    display: flex;
    gap: 18px;
    align-items: center;
}

.testimonial-stats .stat {
    color: var(--color-text);
}

.trust-badges {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.trust-badges .badge {
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 700;
}

/* Courses grid small tweaks */
.courses-awakening {
    padding: 60px 20px;
    background: var(--color-deep-space);
}

.courses-grid-awakening {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

@media (max-width: 768px) {

    .hero-line-1,
    .hero-line-2 {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .features-grid-awakening {
        gap: 18px;
    }

    .testimonial-card {
        flex: 1 1 100%;
    }
}

/* small utility for in-template fallback note */
.home-styles-anchored {
    display: none;
}

/* End home styles */

/* Carousel controls and layout */
.carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.marquee-viewport {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 18px;
    align-items: center;
    transition: transform 720ms cubic-bezier(.22, .9, .32, 1);
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover,
.carousel-btn:focus {
    background: rgba(139, 92, 246, 0.95);
    outline: none;
    transform: translateY(-2px);
}

.carousel-prev {
    margin-left: 6px;
}

.carousel-next {
    margin-right: 6px;
}

.carousel-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.carousel-indicators button.active {
    background: var(--color-golden);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.25);
}

/* Make sure marquee items don't shrink */
.marquee-item {
    flex: 0 0 auto;
    width: 480px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 420ms cubic-bezier(.2, .9, .3, 1), box-shadow 420ms, filter 420ms, opacity 420ms;
    filter: blur(0.6px) saturate(0.9);
    opacity: 0.95;
}

.marquee-item.active {
    transform: scale(1.08);
    box-shadow: 0 24px 90px rgba(10, 8, 30, 0.75);
    filter: none;
    opacity: 1;
}

/* viewport padding shows peek of adjacent cards for cinematic look */
.marquee-viewport {
    padding: 0 160px;
}

/* Pointer UX for dragging */
.marquee-viewport {
    touch-action: pan-y;
    cursor: grab;
}

.marquee-viewport:active {
    cursor: grabbing;
}

/* Subtle motion hint on hover/focus */
.marquee-item:focus,
.marquee-item:hover {
    transform: translateY(-4px) scale(1.02);
}

@media (max-width: 1024px) {
    .marquee-item {
        width: 420px;
    }

    .marquee-viewport {
        padding: 0 96px;
    }
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .marquee-item {
        width: 340px;
    }

    .marquee-viewport {
        padding: 0 36px;
    }
}

/* Hide prev/next controls and indicators for continuous mode */
.carousel-btn,
.carousel-indicators {
    display: none !important;
}

/* Authentication UI Enhancements */
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.label-row .form-label {
    margin-bottom: 0;
}

.forgot-pass-link {
    font-size: 0.85rem;
    color: var(--color-celestial);
    text-decoration: none;
    transition: color var(--transition-base);
}

.forgot-pass-link:hover {
    color: var(--color-cosmic-light);
    text-decoration: underline;
}

.auth-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.auth-footer p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.register-link {
    display: inline-block;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all var(--transition-base);
}

.register-link:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--color-celestial);
    transform: translateY(-2px);
}

/* Login Page Refinements (Gaia Style) */
.login-options {
    text-align: center;
    margin-top: calc(var(--spacing-md) * -0.5);
    margin-bottom: var(--spacing-lg);
}

.forgot-pass-simple {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-base);
}

.forgot-pass-simple:hover {
    color: var(--color-celestial);
    text-decoration: underline;
}

.auth-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--spacing-4);
    padding-top: var(--spacing-lg);
}
/* =========================================
   GLOBAL STARRY BACKGROUND
   ========================================= */
.global-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    pointer-events: none;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.stars-1 {
    width: 1px;
    height: 1px;
    animation: anime-stars-1 100s linear infinite;
}

.stars-2 {
    width: 2px;
    height: 2px;
    animation: anime-stars-2 150s linear infinite;
}

.stars-3 {
    width: 3px;
    height: 3px;
    animation: anime-stars-3 200s linear infinite;
}

@keyframes anime-stars-1 {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

@keyframes anime-stars-2 {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

@keyframes anime-stars-3 {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}
