/*
 * EXCELERATEINSIGHTS.CO.KE - Ultra-Modern Luxury Gold & Black Design System
 * Sleek Obsidian, Metallic Gold Accents, Glassmorphism & High-Performance Responsive UI
 */

:root {
    --bg-main: #08080a;
    --bg-card: #111116;
    --bg-elevated: #181820;
    --bg-glass: rgba(17, 17, 22, 0.82);
    --gold-primary: #d4af37;
    --gold-bright: #ffd700;
    --gold-light: #f9df88;
    --gold-dark: #a67c1e;
    --gold-bronze: #8a6515;
    --gold-gradient: linear-gradient(135deg, #fae29c 0%, #d4af37 50%, #996f14 100%);
    --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.03) 100%);
    --gold-glow: 0 0 30px rgba(212, 175, 55, 0.22);
    --gold-glow-strong: 0 0 45px rgba(255, 215, 0, 0.35);
    --border-gold: rgba(212, 175, 55, 0.22);
    --border-gold-light: rgba(212, 175, 55, 0.45);
    --text-pure: #ffffff;
    --text-primary: #f0f0f5;
    --text-secondary: #b5b5c5;
    --text-muted: #7e7e90;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

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

/* Luxury Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-pure);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gold-glow {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

a {
    color: var(--gold-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-bright);
}

/* Glassmorphism Containers */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

.card-luxury {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-luxury:hover {
    border-color: var(--border-gold-light);
    box-shadow: var(--gold-glow);
    transform: translateY(-4px);
}

/* Luxury Buttons */
.btn-gold {
    background: var(--gold-gradient);
    color: #0d0d10 !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fff2be 0%, #ffd700 50%, #b8860b 100%);
    box-shadow: 0 6px 26px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
    color: #000000 !important;
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-light) !important;
    font-weight: 600;
    padding: 11px 26px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gold-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold-bright);
    color: var(--gold-bright) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--bg-elevated);
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-dark:hover {
    background: #23232e;
    border-color: var(--border-gold);
    color: #ffffff !important;
}

/* Badges */
.badge-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

/* Navigation Bar */
.navbar-luxury {
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    width: 100%;
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.brand-logo-img {
    height: 42px;
    width: 42px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    background: #08080c;
    padding: 2px;
    flex-shrink: 0;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.15;
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.65rem;
    color: var(--gold-light);
    letter-spacing: 0.12em;
    display: block;
    margin-top: 1px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-item {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--gold-bright);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-gradient);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Mobile Compact Sign In button */
.mobile-signin-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--gold-primary);
    color: var(--gold-bright) !important;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: var(--transition);
}

.mobile-signin-btn:hover {
    background: var(--gold-gradient);
    color: #000 !important;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    background: #14141c;
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-toggle:hover {
    border-color: var(--gold-bright);
    color: #fff;
    background: #1e1e2c;
}

/* Luxury Slide-Out Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #0a0a0f;
    border-left: 1px solid var(--border-gold);
    z-index: 100000;
    box-shadow: -10px 0 45px rgba(0,0,0,0.92);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 22px 18px;
    box-sizing: border-box;
}

.mobile-nav-drawer.open {
    transform: translateX(0) !important;
    visibility: visible !important;
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    color: var(--gold-light);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: var(--transition);
}

.mobile-drawer-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.drawer-auth-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.drawer-user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.drawer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.drawer-link:hover, .drawer-link.active {
    background: var(--gold-gradient-soft);
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
}

/* Hero Carousel */
.hero-carousel-section {
    position: relative;
    height: 720px;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-out;
    transform: scale(1.05);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.carousel-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.85) contrast(1.05);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    /* Rich directional cinematic gradient: darkens behind text on the left while keeping the photo crisp & vibrant */
    background: linear-gradient(90deg, rgba(6, 6, 9, 0.76) 0%, rgba(6, 6, 9, 0.52) 48%, rgba(6, 6, 9, 0.15) 80%, transparent 100%),
                linear-gradient(180deg, rgba(6, 6, 9, 0.45) 0%, transparent 35%, rgba(6, 6, 9, 0.6) 100%);
    pointer-events: none;
}

.carousel-content-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 10;
}

.carousel-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

.hero-glass-box {
    max-width: 820px;
    /* 100% transparent so slide image shows completely through */
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* ==========================================================================
   DYNAMIC UNIQUE TRANSITION STYLES PER HERO SLIDE
   ========================================================================== */

/* Slide 0: Zoom Up & Elegant Rise */
.carousel-slide.slide-effect-zoom-up .carousel-bg-image {
    transform: scale(1.08);
    transition: transform 7.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide.active.slide-effect-zoom-up .carousel-bg-image {
    transform: scale(1);
}
.carousel-slide.active.slide-effect-zoom-up .hero-glass-box {
    animation: heroFadeSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide 1: Pan Left & Track In from Left */
.carousel-slide.slide-effect-pan-left .carousel-bg-image {
    transform: scale(1.06) translateX(-3.5%);
    transition: transform 7.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide.active.slide-effect-pan-left .carousel-bg-image {
    transform: scale(1.01) translateX(0);
}
.carousel-slide.active.slide-effect-pan-left .hero-glass-box {
    animation: heroSlideFromLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide 2: Zoom Reveal with Depth Expansion */
.carousel-slide.slide-effect-zoom-reveal .carousel-bg-image {
    transform: scale(1.01);
    transition: transform 7.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide.active.slide-effect-zoom-reveal .carousel-bg-image {
    transform: scale(1.08);
}
.carousel-slide.active.slide-effect-zoom-reveal .hero-glass-box {
    animation: heroZoomReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide 3: Pan Right & Track In from Right */
.carousel-slide.slide-effect-pan-right .carousel-bg-image {
    transform: scale(1.06) translateX(3.5%);
    transition: transform 7.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide.active.slide-effect-pan-right .carousel-bg-image {
    transform: scale(1.01) translateX(0);
}
.carousel-slide.active.slide-effect-pan-right .hero-glass-box {
    animation: heroSlideFromRight 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide 4: Depth Rise & Subtle Vertical Float */
.carousel-slide.slide-effect-depth-rise .carousel-bg-image {
    transform: scale(1.06) translateY(2.5%);
    transition: transform 7.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide.active.slide-effect-depth-rise .carousel-bg-image {
    transform: scale(1.01) translateY(0);
}
.carousel-slide.active.slide-effect-depth-rise .hero-glass-box {
    animation: heroDepthRise 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide 5: Diagonal Shimmer & Float */
.carousel-slide.slide-effect-diagonal-drift .carousel-bg-image {
    transform: scale(1.07) translate(-2.5%, 2%);
    transition: transform 7.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide.active.slide-effect-diagonal-drift .carousel-bg-image {
    transform: scale(1.01) translate(0, 0);
}
.carousel-slide.active.slide-effect-diagonal-drift .hero-glass-box {
    animation: heroDiagonalFade 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeSlideUp {
    0% { opacity: 0; transform: translateY(34px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideFromLeft {
    0% { opacity: 0; transform: translateX(-45px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes heroZoomReveal {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes heroSlideFromRight {
    0% { opacity: 0; transform: translateX(45px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes heroDepthRise {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroDiagonalFade {
    0% { opacity: 0; transform: translate(-25px, 25px); }
    100% { opacity: 1; transform: translate(0, 0); }
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    background: rgba(8, 8, 12, 0.65);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.98), 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0,0,0,0.8);
    word-wrap: break-word;
}

.hero-title .gold-text {
    background: linear-gradient(135deg, #fff2be 0%, #ffd700 45%, #e5b318 75%, #caa025 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9));
}

.hero-description {
    font-size: 1.15rem;
    color: #ffffff !important;
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 720px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.98), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.hero-btn-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(18, 18, 24, 0.85);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.slider-arrow:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: var(--gold-glow);
}

.slider-arrow.prev { left: 28px; }
.slider-arrow.next { right: 28px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dot {
    width: 14px;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    width: 38px;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Layout Utilities */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-luxury {
    padding: 90px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 12px;
    display: inline-block;
}

.section-heading {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtext {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Grid Systems */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

/* Course Card */
.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    border-color: var(--gold-light);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), var(--gold-glow);
    transform: translateY(-6px);
}

.course-img-wrap {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-card:hover .course-img {
    transform: scale(1.06);
}

.course-badge-level {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(14, 14, 18, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-gold);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--gold-light);
    font-weight: 600;
}

.course-price-tag {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid var(--gold-primary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--gold-bright);
    font-size: 0.95rem;
}

.course-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    font-size: 0.8rem;
    color: var(--gold-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.35;
}

.course-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-top: auto;
}

.trainer-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trainer-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    object-fit: cover;
}

.trainer-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Live Session Card */
.session-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.session-card:hover {
    border-color: var(--border-gold-light);
    box-shadow: var(--gold-glow);
    transform: translateY(-4px);
}

.session-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-bright);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.session-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.session-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.session-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gold-bright);
}

/* Skills Wallet UI */
.skills-wallet-card {
    background: linear-gradient(145deg, #13131a 0%, #0d0d12 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.skill-bar-wrap {
    margin-bottom: 20px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 600;
}

.skill-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: width 1s ease-in-out;
}

/* Video Frame Player */
.luxury-video-frame {
    background: #000;
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), var(--gold-glow);
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.luxury-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-gold);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-user {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.sidebar-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    margin: 0 auto 12px;
    object-fit: cover;
    box-shadow: var(--gold-glow);
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.93rem;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--gold-gradient-soft);
    border: 1px solid var(--border-gold);
    color: var(--gold-bright);
}

.dashboard-main {
    flex: 1;
    padding: 36px 40px;
    background: var(--bg-main);
    overflow-y: auto;
}

.dashboard-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Stat Cards */
.stat-card-gold {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.stat-val {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-top: 4px;
}

.stat-label {
    font-size: 0.84rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--gold-gradient-soft);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold-light);
}

/* Tables */
.table-luxury {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.92rem;
}

.table-luxury th {
    background: var(--bg-elevated);
    color: var(--gold-light);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-gold);
}

.table-luxury td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.table-luxury tr:hover td {
    background: rgba(212, 175, 55, 0.04);
    color: #fff;
}

/* Certificate View */
.certificate-frame {
    background: #0f0f14;
    border: 12px double var(--gold-primary);
    border-radius: 8px;
    padding: 50px 60px;
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), var(--gold-glow);
}

.cert-corner {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 2px solid var(--gold-bright);
}
.cert-tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.cert-tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.cert-bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.cert-br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.cert-seal {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px dashed var(--gold-bright);
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gold-glow);
    background: radial-gradient(circle, #382d07 0%, #151307 100%);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-light);
}

.form-control-luxury {
    width: 100%;
    padding: 12px 16px;
    background: #14141b;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control-luxury:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
    background: #181822;
}

/* Footer */
.footer-luxury {
    background: #060608;
    border-top: 1px solid var(--border-gold);
    padding: 70px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h5 {
    color: var(--gold-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold-bright);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive adjustments across devices */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-layout { flex-direction: column; }
    .dashboard-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-gold); }
}

@media (max-width: 768px) {
    .desktop-auth-btn, .nav-links, .nav-wallet-badge { display: none !important; }
    .mobile-signin-btn, .mobile-toggle { display: inline-flex !important; }
    .nav-container { padding: 0 16px; }
    .brand-title { font-size: 1.05rem; }
    .brand-sub { font-size: 0.58rem; }
    .brand-logo-img { height: 36px; width: 36px; }

    .hero-carousel-section { height: 600px; }
    .carousel-container { padding: 0 16px; }
    .carousel-overlay {
        background: linear-gradient(180deg, rgba(6, 6, 9, 0.55) 0%, rgba(6, 6, 9, 0.3) 25%, rgba(6, 6, 9, 0.65) 65%, rgba(6, 6, 9, 0.88) 100%) !important;
    }
    .hero-glass-box {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    .hero-subtitle {
        font-size: 0.72rem;
        padding: 5px 12px;
        margin-bottom: 12px;
        background: rgba(8, 8, 12, 0.7) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid var(--border-gold) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.8) !important;
    }
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
        letter-spacing: -0.01em !important;
        color: #ffffff !important;
        text-shadow: 0 3px 18px rgba(0, 0, 0, 0.98), 0 1px 3px rgba(0, 0, 0, 0.98), 0 0 25px rgba(0, 0, 0, 0.9) !important;
    }
    .hero-description {
        font-size: 0.96rem !important;
        line-height: 1.62 !important;
        margin-bottom: 22px !important;
        color: #f8f8fc !important;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.98), 0 1px 3px rgba(0, 0, 0, 0.98), 0 0 16px rgba(0, 0, 0, 0.9) !important;
        font-weight: 450 !important;
    }
    .hero-btn-group {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .hero-btn-group .btn-gold,
    .hero-btn-group .btn-outline-gold {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        font-size: 0.88rem !important;
    }
    .slider-arrow { display: none !important; }
    .slider-dots { bottom: 16px; }

    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .dashboard-layout { flex-direction: column !important; }
    .dashboard-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-gold) !important;
        padding: 20px 16px !important;
    }
    .dashboard-main {
        padding: 20px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .stat-val { font-size: 1.6rem !important; }
    .table-luxury {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .certificate-frame {
        padding: 24px 14px !important;
        margin: 20px auto !important;
        border-width: 6px !important;
    }
    .cert-widget-card {
        padding: 24px 16px !important;
    }
    .cert-widget-card form {
        flex-direction: column !important;
        width: 100% !important;
    }
    .cert-widget-card form input,
    .cert-widget-card form button {
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 12px; }
    .brand-logo-wrap { gap: 8px; }
    .brand-title { font-size: 0.92rem; }
    .brand-sub { font-size: 0.54rem; }
    .brand-logo-img { height: 32px; width: 32px; }
    .mobile-signin-btn { padding: 6px 10px; font-size: 0.75rem; }
    .mobile-toggle { width: 36px; height: 36px; font-size: 1.1rem; }

    .hero-carousel-section { height: 560px; }
    .hero-title { font-size: 1.48rem !important; line-height: 1.24 !important; }
    .hero-description { font-size: 0.88rem !important; line-height: 1.55 !important; }
    .card-luxury { padding: 20px 14px; }
}

/* ==========================================================================
   ULTRA-MODERN SMOOTH LUXURY PRELOADER & LOADER GIF STYLES
   ========================================================================== */
.system-preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #14141c 0%, #07070a 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: autoDismissPreloader 0.45s ease 0.65s forwards;
}

@keyframes autoDismissPreloader {
    0% { opacity: 1; visibility: visible; }
    99% { opacity: 0; visibility: visible; pointer-events: none; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; display: none; }
}

.system-preloader-overlay.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-content {
    text-align: center;
    max-width: 380px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-gif-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-gif-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, transparent 70%);
    animation: preloaderPulse 2.2s ease-in-out infinite;
}

.preloader-gif {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.5));
    position: relative;
    z-index: 2;
}

.preloader-brand {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.preloader-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.preloader-bar-wrap {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.preloader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px var(--gold-bright);
    border-radius: 999px;
    animation: preloaderTrack 1.4s ease-in-out infinite;
}

@keyframes preloaderTrack {
    0% { left: -45%; width: 30%; }
    50% { width: 60%; }
    100% { left: 100%; width: 30%; }
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

.inline-loader-gif {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}
