:root {
    --primary-color: var(--gold, #C9A84C);
    --accent-color: var(--gold-light, #E8C97A);
    --bg-color: var(--ink, #0A0906);
    --text-color: var(--white, #FAF8F4);
    --card-bg: var(--charcoal, #1C1A16);
    /* GenZ New Age Colors */
    --deep-forest: var(--ink, #0A0906);
    --banyan-green: var(--gold, #C9A84C);
    --growth-teal: var(--gold-dim, #B8924A);
    --golden-trust: var(--gold, #C9A84C);
    --glow-green: var(--gold-light, #E8C97A);
    --neon-emerald: var(--gold, #C9A84C);
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Cormorant Garamond', 'Bebas Neue', serif;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* ========================================
   GENZ LOGIN SCREEN - RADICAL REDESIGN
   ======================================== */

#login-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--ink, #0A0906) 0%, var(--charcoal, #1C1A16) 50%, var(--ink, #0A0906) 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Animated Gradient Orbs */
.login-bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float-orb {

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

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

/* Banyan Pattern Overlay */
.banyan-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.08) 0%, transparent 50%);
    z-index: 1;
}

/* Login Content Container */
.login-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 450px;
    width: 100%;
}

/* Hero Tagline Section */
.login-hero {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 30px rgba(232, 201, 122, 0.3);
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Purpose Hook Section */
.purpose-hook {
    text-align: center;
    max-width: 480px;
    padding: 20px 15px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.purpose-stat {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 12px 0;
    line-height: 1.5;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.purpose-mission {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--golden-trust);
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Mobile Responsive - Purpose Hook */
@media (max-width: 480px) {
    .purpose-hook {
        padding: 15px 10px;
    }

    .purpose-stat {
        font-size: 1.1rem;
    }

    .purpose-mission {
        font-size: 0.9rem;
    }
}

/* Stagger Animation Classes */
.stagger-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-visible {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Modal Animations */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.modal-animate-in {
    animation: zoomIn 0.3s ease-out forwards;
}

.modal-animate-out {
    animation: fadeOut 0.2s ease-in forwards;
}

/* Page Transitions */
.dashboard-enter {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* --- Micro-Interactions --- */

/* 3D Tilt Container */
.folder-card {
    transition: transform 0.1s ease-out, box-shadow 0.2s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

/* Pulse Animation */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
        transform: scale(1);
    }
}

.btn-primary,
.view-btn-premium,
.start-quiz-btn {
    animation: pulse-glow 2s infinite;
}

/* Progress Bar Animation */
.progress-bar {
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Glassmorphism Login Card */
.login-card-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 35px 30px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.login-card-glass .logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* GenZ Logo Style */
.logo-bynt-genz {
    height: 80px;
    width: 80px;
    object-fit: contain;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-bynt-genz:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 40px rgba(74, 222, 128, 0.3);
}

/* Input Group GenZ */
.input-group-genz {
    margin-bottom: 25px;
}

.input-group-genz label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--glow-green);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 4px rgba(74, 222, 128, 0.15),
        0 0 30px rgba(74, 222, 128, 0.2);
}

.input-wrapper:focus-within i {
    color: var(--glow-green);
}

/* GenZ Primary Button */
.btn-genz {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--glow-green) 0%, var(--neon-emerald) 100%);
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-genz::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-genz:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(74, 222, 128, 0.4);
}

.btn-genz:hover::before {
    left: 100%;
}

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

.btn-genz i {
    transition: transform 0.3s ease;
}

.btn-genz:hover i.btn-icon {
    transform: translateX(5px);
}

.btn-loader {
    margin-left: 8px;
}

/* Loader GenZ */
.loader-genz {
    display: none;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--glow-green);
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 0.8s linear infinite;
}

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

/* Error Text */
.error-text {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
    display: none;
}

/* Trust Section */
.trust-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.trust-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.trust-badges .badge i {
    color: var(--golden-trust);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

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

    .login-card-glass {
        padding: 30px 25px;
    }

    .logo-bynt-genz {
        height: 70px;
        width: 70px;
    }

    .trust-badges {
        gap: 8px;
    }

    .trust-badges .badge {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}

/* ========================================
   LEGACY STYLES (Keep for Dashboard)
   ======================================== */



.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--gold-light);
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- DASHBOARD --- */
#dashboard {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    background: #f8faf9;
}

/* Compact Dashboard Header */
.dashboard-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8f5e9;
    padding: 4px;
}

.header-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-text {
    font-size: 0.9rem;
    color: #555;
}

.welcome-text strong {
    color: var(--primary-color);
}

#logout-btn {
    background: linear-gradient(135deg, #ffebeb, #fff5f5);
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#logout-btn:hover {
    background: #ffcdd2;
    transform: translateY(-1px);
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-right {
        display: none; /* hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 15px 24px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
        border-top: 1px solid #eee;
        z-index: 100;
    }

    .header-right.show-menu {
        display: flex;
    }

    .header-right .welcome-text {
        margin-bottom: 15px;
    }

    #logout-btn {
        width: 100%;
        text-align: left;
    }
}

/* Slim Welcome Bar */
/* Enhanced Welcome Bar */
.welcome-bar {
    position: relative;
    padding: 25px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--charcoal));
    overflow: hidden;
    color: white;
}

.welcome-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
    pointer-events: none;
}

.welcome-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.quote-content {
    text-align: center;
    flex: 1;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote-text i {
    opacity: 0.6;
    margin-right: 8px;
    font-size: 1rem;
    vertical-align: top;
}

.quote-author {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.quote-refresh-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.quote-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(180deg);
    color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Animation for quote change */
@keyframes fadeInQuote {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.fade-in-quote {
    animation: fadeInQuote 0.6s ease-out forwards;
}

/* Legacy header styles - keep for compatibility */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content h2 {
    color: var(--primary-color);
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

/* HERO SECTION - Legacy (hidden) */
.hero-section {
    display: none;
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 150px;
    position: relative;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-quote {
    font-size: 1.4rem;
    font-style: italic;
    max-width: 700px;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 1rem;
    opacity: 0.9;
}

/* CONTENT CONTAINER */
.content-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.video-list {
    background: white;
    max-height: 40vh;
    /* Don't let playlist push media off screen */
    overflow-y: auto;
    border-top: 1px solid #eee;
}

.folder-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.folder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.folder-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.folder-title {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.folder-desc {
    color: #777;
    font-size: 0.9rem;
}

/* --- GAMIFICATION PROGRESS BAR --- */
.progress-container {
    background: #e0e0e0;
    border-radius: 8px;
    height: 10px;
    /* Slimmer bar */
    width: 100%;
    margin-top: 15px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent-color), #2d5a36);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease-in-out;
}

.progress-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    text-align: right;
    font-weight: 500;
}


/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    /* No more backdrop for Hub immersion */
}

.modal-content {
    background-color: #f8fcf9;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    overflow-y: auto;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
}

body.modal-open {
    overflow: hidden;
}

/* Full-screen mobile Hub */
@media (max-width: 768px) {
    .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
}

.hub-header {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f8f4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-3px);
}

@keyframes clickBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.resource-card:active,
.folder-card:active {
    animation: clickBounce 0.2s ease;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.8rem;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.close-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.video-player-container {
    width: 100%;
    background: black;
    display: flex;
    flex-direction: column;
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.audio-player-container {
    width: 100%;
    background: white;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* --- Animated Speaker UI --- */
.audio-visualizer {
    position: relative;
    width: 120px;
    height: 120px;
    background: #f1f8f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    transition: all 0.5s ease;
}

.audio-visualizer i {
    font-size: 3.5rem;
    position: relative;
    z-index: 2;
}

/* Pulsing effect when class 'playing' is active */
.audio-visualizer.playing {
    background: var(--primary-color);
    color: white;
    animation: speakerPulse 1.5s infinite ease-in-out;
}

.audio-visualizer.playing::before,
.audio-visualizer.playing::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.5;
    z-index: 1;
    animation: speakerRipple 1.5s infinite ease-out;
}

.audio-visualizer.playing::after {
    animation-delay: 0.75s;
}

@keyframes speakerPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(27, 60, 37, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px 10px rgba(27, 60, 37, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(27, 60, 37, 0);
    }
}

@keyframes speakerRipple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Native Audio Player Styling */
.native-audio-element {
    width: 100%;
    max-width: 400px;
    height: 45px;
    border-radius: 50px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.video-list {
    padding: 20px;
    background: #fdfdfd;
}

.video-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
}

.video-item:hover {
    background-color: #f0f0f0;
}

.video-item.active {
    background-color: #e8f5e9;
    font-weight: 600;
    color: var(--primary-color);
}

.video-item:last-child {
    border-bottom: none;
}

@media (max-width: 600px) {
    .header-content h2 {
        font-size: 1.2rem;
    }

    .hero-quote {
        font-size: 1.1rem;
    }
}

/* --- Completion Button --- */
#mark-complete-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed !important;
}

.btn-success {
    background-color: var(--primary-color);
    /* Green */
    color: white;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(27, 60, 37, 0.3);
}

.btn-success:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
}

/* --- Quiz Styles --- */
.quiz-question-block {
    /* No margin bottom needed as we show one at a time */
    padding-bottom: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.quiz-question-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.quiz-option {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
    transition: all 0.2s;
    font-weight: 500;
    color: #555;
    display: flex;
    /* Flex to align radio and text */
    align-items: center;
    gap: 10px;
}

.quiz-option:hover {
    background-color: #f1f8f4;
    /* Light green tint */
    border-color: var(--charcoal);
}

.quiz-option input {
    margin: 0;
    /* Handled by gap */
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

/* Selected state styling */
.quiz-option:has(input:checked) {
    background-color: #e8f5e9;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.quiz-progress-indicator {
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.quiz-feedback {
    font-size: 0.95rem;
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: left;
    display: none;
}

.feedback-correct {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.feedback-wrong {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* --- EXPERT UI: RESOURCE HUB (Associate Corner) --- */
.resource-hub-container {
    padding: 30px 40px;
    background: #ffffff;
    flex: 1;
    /* Allow to fill modal height */
    width: 100%;
    box-sizing: border-box;
}

.hub-title {
    font-size: 2.2rem !important;
    color: var(--primary-color) !important;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: none !important;
}

.hub-title i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.resource-section {
    margin-bottom: 50px;
}

.resource-section-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.resource-section-title i {
    color: var(--primary-color);
    opacity: 0.8;
}

.resource-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 30px !important;
}

.resource-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid #f0f0f0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color) !important;
}

.resource-card-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.resource-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.resource-card:hover .resource-card-image {
    transform: scale(1.08);
}

.resource-card-content {
    padding: 24px !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    z-index: 1;
}

.resource-card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
    min-height: 3em;
}

.resource-card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto;
}

.resource-badge {
    padding: 6px 12px !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-pdf {
    background: #fff1f0 !important;
    color: #cf1322 !important;
    border: 1px solid #ffa39e;
}

.badge-audio {
    background: #f6ffed !important;
    color: #389e0d !important;
    border: 1px solid #b7eb8f;
}

.badge-video {
    background: #e6f7ff !important;
    color: #096dd9 !important;
    border: 1px solid #91d5ff;
}

.view-btn-premium {
    color: var(--primary-color) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f1f8f4;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.resource-card:hover .view-btn-premium {
    background: var(--primary-color) !important;
    color: white !important;
}


/* Responsive Grid */
@media (max-width: 768px) {
    .resource-hub-container {
        padding: 20px;
    }

    .resource-grid {
        grid-template-columns: 1fr !important;
    }

    .hub-title {
        font-size: 1.6rem !important;
    }
}

/* ========================================
   PREMIUM AUDIO PLAYER STYLES (v29)
   ======================================== */

.audio-player-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 100%);
    padding: 40px 20px;
    box-sizing: border-box;
}

.audio-player-artwork {
    max-height: 160px;
    max-width: 90%;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Main Play Button - Large & Clickable */
.audio-play-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--charcoal), var(--ink));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(27, 60, 37, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    position: relative;
}

.audio-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 50px rgba(27, 60, 37, 0.5);
}

.audio-play-btn:active {
    transform: scale(0.95);
}

.audio-play-btn i {
    font-size: 3rem;
    color: white;
    margin-left: 8px;
    /* Visual centering for play icon */
}

.audio-play-btn.playing i {
    margin-left: 0;
}

/* Pulse Animation Ring */
.audio-play-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--gold-light);
    opacity: 0;
    animation: none;
}

.audio-play-btn.playing::before {
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Audio Title & Info */
.audio-info {
    text-align: center;
    margin-bottom: 20px;
}

.audio-title {
    color: var(--charcoal);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.audio-subtitle {
    font-size: 0.95rem;
    color: #666;
}

/* Status Text */
.audio-status {
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
    font-style: italic;
}

.audio-status.playing {
    color: var(--gold-light);
    font-style: normal;
    font-weight: 600;
}

/* Native Audio Element - Hidden but functional */
.native-audio-hidden {
    width: 100%;
    max-width: 350px;
    margin-top: 20px;
    border-radius: 30px;
    outline: none;
}

/* Progress Bar Container */
.audio-progress-container {
    width: 100%;
    max-width: 350px;
    margin-top: 20px;
}

.audio-progress-bar {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.audio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--charcoal), var(--gold-light));
    width: 0%;
    transition: width 0.1s linear;
}

.audio-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    margin-top: 8px;
}

/* Legacy audio-visualizer support */
.audio-visualizer {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--charcoal), var(--ink));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(27, 60, 37, 0.35);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.audio-visualizer i {
    font-size: 2.5rem;
    color: white;
}

.audio-visualizer:hover {
    transform: scale(1.05);
}

.audio-visualizer.playing {
    animation: visualizer-pulse 1s ease-in-out infinite;
}

@keyframes visualizer-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(27, 60, 37, 0.35);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 12px 40px rgba(76, 175, 80, 0.5);
    }
}

/* --- IC 38 Custom Thumbnails (CSS Generated) --- */
.ic38-thumb-container {
    width: 100%;
    height: 100%;
    background-color: #f8f5e9;
    /* Cream/Beige */
    border: 1px solid #c7b299;
    /* Subtle Border */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
    text-align: center;
}

.ic38-thumb-logo {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 45px;
    height: auto;
    object-fit: contain;
    opacity: 1;
}

.ic38-thumb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    z-index: 2;
}

.ic38-thumb-chapter {
    font-size: 2rem;
    font-weight: 800;
    color: var(--charcoal);
    /* Dark Green */
    text-transform: uppercase;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}

.ic38-thumb-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #5d4037;
    /* Brown */
    line-height: 1.2;
    max-width: 90%;
}

.ic38-thumb-watermark {
    position: absolute;
    width: 140px;
    height: 140px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
    background-image: url('/assets/logo_bynt.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%);
}
