/* ===================================================================
   SOLAR ENERGY POWER EDUCATION CENTER
   Futuristic Glassmorphism Dark Theme
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ────────────────────────────────────── */
:root {
    /* Background */
    --bg-deep:        #060d0a;
    --bg-body:        #0a1410;
    --bg-surface:     rgba(255, 255, 255, 0.04);
    --bg-surface-2:   rgba(255, 255, 255, 0.07);
    --bg-surface-3:   rgba(255, 255, 255, 0.10);

    /* Glass */
    --glass-bg:       rgba(255, 255, 255, 0.05);
    --glass-bg-strong:rgba(255, 255, 255, 0.08);
    --glass-border:   rgba(255, 255, 255, 0.10);
    --glass-border-hover: rgba(255, 255, 255, 0.22);
    --glass-blur:     20px;
    --glass-shadow:   0 8px 32px rgba(0, 0, 0, 0.36);

    /* Accent */
    --accent-gold:    #FFD036;
    --accent-gold-dim:rgba(255, 208, 54, 0.15);
    --accent-emerald: #34D399;
    --accent-emerald-dim: rgba(52, 211, 153, 0.12);
    --accent-cyan:    #22D3EE;
    --accent-orange:  #FB923C;

    /* Primary (deep green) */
    --primary:        #166534;
    --primary-light:  #22C55E;

    /* Text */
    --text-white:     #F0FDF4;
    --text-primary:   rgba(240, 253, 244, 0.92);
    --text-secondary: rgba(240, 253, 244, 0.60);
    --text-muted:     rgba(240, 253, 244, 0.40);

    /* Typography */
    --font-heading:   'Outfit', sans-serif;
    --font-body:      'Inter', sans-serif;

    /* Radius */
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.5s;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(52, 211, 153, 0.3) transparent;
}

html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--bg-deep); }
html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-emerald), var(--accent-gold));
    border-radius: 99px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-primary);
    background: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise + gradient overlay on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(52, 211, 153, 0.08), transparent 50%),
        radial-gradient(ellipse at 80% 10%, rgba(255, 208, 54, 0.06), transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(34, 211, 238, 0.04), transparent 50%);
}

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

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

a { color: var(--accent-emerald); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-gold); }

.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--text-white) !important; }
.text-white-50 { color: var(--text-secondary) !important; }
.text-success { color: var(--accent-emerald) !important; }
.text-warning { color: var(--accent-gold) !important; }
.text-primary { color: var(--accent-cyan) !important; }
.text-danger { color: #F87171 !important; }
.text-dark { color: var(--text-white) !important; }

.fw-bold { font-weight: 700 !important; }

.leading-relaxed { line-height: 1.8; }

/* ── Floating Orbs (ambient particles) ────────────────── */
.main-content-wrapper {
    position: relative;
}

.main-content-wrapper::before,
.main-content-wrapper::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.5;
}

.main-content-wrapper::before {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.12), transparent 70%);
    top: 20%; left: -100px;
    animation: floatOrb 18s ease-in-out infinite alternate;
}

.main-content-wrapper::after {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(255, 208, 54, 0.10), transparent 70%);
    bottom: 10%; right: -80px;
    animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(40px, -60px); }
    100% { transform: translate(-30px, 40px); }
}

/* ── Navbar ───────────────────────────────────────────── */
.navbar-custom {
    background: rgba(6, 13, 10, 0.70);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 14px 0;
    transition: all 0.4s var(--ease-out);
    z-index: 1000;
}

.navbar-custom.scrolled {
    background: rgba(6, 13, 10, 0.92);
    padding: 10px 0;
}

.navbar-custom .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-custom .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.35s var(--ease-out);
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--text-white);
    background: var(--bg-surface-2);
    border-color: var(--glass-border);
}

.navbar-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-emerald);
    border-radius: 99px;
}

/* Navbar animated gradient line */
.navbar-glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-emerald), var(--accent-gold), var(--accent-cyan), transparent);
    background-size: 200% 100%;
    animation: glowLine 4s linear infinite;
}

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

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }

.btn-accent-custom {
    background: linear-gradient(135deg, var(--accent-gold), #F59E0B);
    color: #0a1410;
    border: none;
    padding: 12px 28px;
    box-shadow: 0 0 20px rgba(255, 208, 54, 0.20), 0 4px 15px rgba(0,0,0,0.2);
}

.btn-accent-custom:hover {
    box-shadow: 0 0 35px rgba(255, 208, 54, 0.35), 0 8px 25px rgba(0,0,0,0.3);
    color: #0a1410;
    transform: translateY(-3px);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.15);
}

.btn-primary-custom:hover {
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.30);
    color: #ffffff;
}

.btn-outline-light {
    color: var(--text-secondary);
    border-color: var(--glass-border-hover);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: var(--bg-surface-3);
    color: var(--text-white);
    border-color: var(--accent-emerald);
}

.btn-outline-success {
    color: var(--accent-emerald);
    border-color: rgba(52, 211, 153, 0.30);
    background: rgba(52, 211, 153, 0.06);
}

.btn-outline-success:hover {
    background: var(--accent-emerald) !important;
    color: #0a1410 !important;
    border-color: var(--accent-emerald) !important;
}

.btn-login {
    background: linear-gradient(135deg, var(--accent-gold), #F59E0B);
    color: #0a1410;
    font-weight: 700;
    border: none;
    padding: 8px 22px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 16px rgba(255, 208, 54, 0.18);
}

.btn-login:hover {
    box-shadow: 0 0 28px rgba(255, 208, 54, 0.35);
    color: #0a1410;
}

.btn-lg {
    font-size: 1rem;
    padding: 14px 32px;
}

.btn-sm {
    font-size: 0.84rem;
    padding: 7px 16px;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-emerald), #059669) !important;
    border: none !important;
    color: #fff !important;
}

.btn-outline-light.dropdown-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

/* ── Glass Cards ──────────────────────────────────────── */
.glass-card,
.card-custom,
.card.border-0,
.card.bg-white {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    box-shadow: var(--glass-shadow);
    transition: all 0.45s var(--ease-out);
    overflow: hidden;
    color: var(--text-primary);
}

.card-custom:hover,
.card.border-0:hover,
.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-hover) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(52, 211, 153, 0.08);
}

.card-custom .card-body {
    padding: 28px;
    color: var(--text-primary);
}

.card-custom .card-title {
    color: var(--text-white) !important;
}

.card-custom .card-text {
    color: var(--text-secondary) !important;
}

/* Card image placeholder areas */
.card-custom .position-relative.bg-success,
.card-custom .position-relative.bg-primary {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(34, 211, 238, 0.10)) !important;
    border-bottom: 1px solid var(--glass-border);
}

.card-custom .position-relative .badge.bg-dark {
    background: rgba(0,0,0,0.5) !important;
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
}

.card-custom .position-relative .badge.bg-success {
    background: rgba(52, 211, 153, 0.25) !important;
    color: var(--accent-emerald) !important;
    border: 1px solid rgba(52, 211, 153, 0.30);
}

/* ── Hero Section ─────────────────────────────────────── */
.hero-section {
    min-height: calc(100vh - 60px);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(6, 13, 10, 0.82) 0%, rgba(10, 20, 16, 0.70) 50%, rgba(52, 211, 153, 0.08) 100%),
        url('https://frontend-cdn.solarreviews.com/hero-placeholder.jpg') center top/cover no-repeat;
    will-change: background-position;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Animated gradient overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.4), transparent 80%);
    pointer-events: none;
    animation: gridShift 30s linear infinite;
}

@keyframes gridShift {
    0%   { transform: translateY(0); }
    100% { transform: translateY(80px); }
}

/* Bottom fade */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--bg-body));
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-white);
    max-width: 720px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 600px;
}

/* Hero floating elements */
.hero-float-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-float-orb--1 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.12), transparent 70%);
    top: 10%; right: 5%;
    animation: floatOrb 16s ease-in-out infinite alternate;
}

.hero-float-orb--2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255, 208, 54, 0.10), transparent 70%);
    bottom: 20%; left: 10%;
    animation: floatOrb 20s ease-in-out infinite alternate-reverse;
}

/* ── Solar Simulator Card ─────────────────────────────── */
.solar-sim-card {
    width: min(100%, 470px);
    background: rgba(6, 13, 10, 0.75) !important;
    border: none !important;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255,255,255,0.08) !important;
    border-radius: var(--radius-lg) !important;
    position: relative;
    z-index: 1;
}

/* Electric static border wrapper */
.solar-sim-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: conic-gradient(
        from var(--electric-angle, 0deg) at 50% 50%,
        var(--accent-emerald),
        transparent 8%,
        transparent 20%,
        var(--accent-gold) 25%,
        transparent 30%,
        transparent 45%,
        var(--accent-cyan) 50%,
        transparent 55%,
        transparent 70%,
        var(--accent-emerald) 75%,
        transparent 80%,
        transparent 92%,
        var(--accent-gold)
    );
    z-index: -1;
    animation: electricRotate 3s linear infinite;
    opacity: 0.8;
}

/* Inner mask to make the border thin */
.solar-sim-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: calc(var(--radius-lg) - 1px);
    background: rgba(6, 13, 10, 0.92);
    z-index: -1;
}

@keyframes electricRotate {
    0%   { --electric-angle: 0deg; }
    100% { --electric-angle: 360deg; }
}

@property --electric-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Electric glow pulse overlay */
.solar-sim-card-glow {
    position: absolute;
    inset: -6px;
    border-radius: calc(var(--radius-lg) + 6px);
    background: conic-gradient(
        from var(--electric-angle, 0deg),
        rgba(52, 211, 153, 0.15),
        transparent 15%,
        rgba(255, 208, 54, 0.10) 30%,
        transparent 45%,
        rgba(34, 211, 238, 0.12) 60%,
        transparent 75%,
        rgba(52, 211, 153, 0.15)
    );
    z-index: -2;
    animation: electricRotate 3s linear infinite;
    filter: blur(8px);
    pointer-events: none;
}

.glass-panel,
.hero-section .card.bg-dark {
    background: rgba(6, 13, 10, 0.55) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.10) !important;
    border-radius: var(--radius-lg) !important;
}

.solar-sim-header h5 {
    font-size: 1.15rem;
    color: var(--text-white);
}

.solar-sim-progress {
    height: 10px;
    border-radius: 99px;
    overflow: hidden;
    background: var(--bg-surface-2) !important;
    border: 1px solid var(--glass-border);
}

.solar-sim-progress .progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-emerald)) !important;
}

.solar-sim-value {
    color: var(--accent-gold);
    font-size: 0.95rem;
    font-weight: 700;
}

.solar-metric-card {
    min-height: 125px;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease-out);
}

.solar-metric-card:hover {
    border-color: var(--glass-border-hover);
    background: var(--bg-surface-2);
}

.solar-metric-card small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.solar-metric-value {
    font-size: clamp(1.3rem, 1.5vw, 1.7rem);
    font-weight: 800;
    line-height: 1.1;
}

.progress {
    background: var(--bg-surface-2) !important;
    border: 1px solid var(--glass-border);
    border-radius: 99px;
}

/* ── Solar Icon Box ───────────────────────────────────── */
.solar-icon-box {
    width: 60px;
    height: 60px;
    background: var(--accent-gold-dim);
    border: 1px solid rgba(255, 208, 54, 0.20);
    color: var(--accent-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 0 20px rgba(255, 208, 54, 0.08);
}

.card:hover .solar-icon-box,
.solar-icon-box:hover {
    background: var(--accent-gold);
    color: #0a1410;
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 30px rgba(255, 208, 54, 0.25);
}

/* ── Badges ───────────────────────────────────────────── */
.badge.bg-warning {
    background: rgba(255, 208, 54, 0.18) !important;
    color: var(--accent-gold) !important;
    border: 1px solid rgba(255, 208, 54, 0.30);
    font-weight: 600;
}

.badge.bg-success {
    background: rgba(52, 211, 153, 0.15) !important;
    color: var(--accent-emerald) !important;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.badge.bg-dark {
    background: rgba(0, 0, 0, 0.40) !important;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.badge.bg-secondary {
    background: var(--bg-surface-3) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--glass-border);
}

.badge.bg-primary {
    background: rgba(34, 211, 238, 0.15) !important;
    color: var(--accent-cyan) !important;
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.badge-difficulty {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.badge-pemula {
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.badge-menengah {
    background: rgba(255, 208, 54, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 208, 54, 0.25);
}

.badge-mahir {
    background: rgba(251, 146, 60, 0.12);
    color: var(--accent-orange);
    border: 1px solid rgba(251, 146, 60, 0.25);
}

/* ── Section Styles ───────────────────────────────────── */

/* Kelebihan cards (feature strip) */
.kelebihan-strip .card {
    background: rgba(6, 13, 10, 0.82) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.4s var(--ease-out);
    border-top: none !important;
}

.kelebihan-strip .card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-gold));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.kelebihan-strip .card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover) !important;
    box-shadow: 0 24px 56px rgba(0,0,0,0.38), 0 0 22px rgba(52, 211, 153, 0.08);
}

.kelebihan-strip h6 {
    color: var(--text-white) !important;
}

.kelebihan-strip .small {
    color: var(--text-muted) !important;
}

/* ── Intro / Welcome Section ──────────────────────────── */
.intro-band {
    position: relative;
    z-index: 1;
}

.intro-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

.intro-glass-panel {
    background: var(--glass-bg-strong) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.intro-glass-panel h4,
.intro-glass-panel h5 {
    color: var(--text-white) !important;
}

.intro-glass-panel .list-group-item {
    background: transparent !important;
    border-color: var(--glass-border) !important;
    color: var(--text-secondary);
}

/* ── Course Section Band ──────────────────────────────── */
.course-band {
    position: relative;
    background: var(--bg-surface) !important;
    z-index: 1;
}

.course-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

/* ── Testimonial Band ─────────────────────────────────── */
.testimonial-band {
    position: relative;
    background: var(--bg-surface) !important;
    z-index: 1;
}

.testimonial-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

.testimonial-band .card {
    background: var(--glass-bg-strong) !important;
    border: 1px solid var(--glass-border) !important;
}

.testimonial-band .bi-quote {
    color: var(--accent-emerald) !important;
    opacity: 0.3 !important;
}

.testimonial-band .card p {
    color: var(--text-secondary) !important;
}

.testimonial-card {
    min-height: 250px;
    background: rgba(6, 13, 10, 0.78) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

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

.testimonial-card > i {
    flex: 0 0 auto;
}

.testimonial-text {
    flex: 1 1 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary) !important;
}

.testimonial-card .testimonial-meta {
    margin-top: auto;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    flex: 0 0 auto;
}

.dashboard-summary-card,
.dashboard-metric-card {
    min-height: 360px;
}

.dashboard-summary-card {
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    height: auto;
    padding-bottom: 1.35rem !important;
}

.dashboard-summary-card::after {
    content: '';
    position: absolute;
    inset: auto auto -30% -18%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 70%);
    pointer-events: none;
}

.dashboard-summary-card::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52,211,153,0.45), rgba(255,208,54,0.28), transparent);
    opacity: 0.9;
    pointer-events: none;
}

.dashboard-summary-card .position-relative {
    margin-top: auto;
}

.dashboard-summary-card h4 {
    margin-top: 0.15rem;
}

.dashboard-summary-card p.small.text-white-50 {
    line-height: 1.5;
}

.dashboard-summary-card p {
    position: relative;
    z-index: 1;
}

.dashboard-metric-card {
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding-bottom: 1.25rem !important;
}

.dashboard-metric-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -35% auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.18), transparent 68%);
    pointer-events: none;
}

.dashboard-metric-top {
    position: relative;
    z-index: 1;
}

.dashboard-metric-body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: 18px;
}

.dashboard-metric-line {
    width: 100%;
    height: 1px;
    margin: 18px 0 14px;
    background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(52,211,153,0.35), rgba(255,255,255,0.08));
}

.dashboard-metric-footer {
    position: relative;
    z-index: 1;
    font-size: 1.9rem;
    line-height: 1;
    align-self: flex-start;
}

.dashboard-metric-card h2 {
    line-height: 1;
}

.member-card-cta {
    background:
        linear-gradient(135deg, rgba(6, 13, 10, 0.88), rgba(10, 20, 16, 0.84)),
        radial-gradient(circle at top right, rgba(255, 208, 54, 0.10), transparent 35%);
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.30);
}

.member-card-cta__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent-emerald);
    font-size: 1.5rem;
    flex: 0 0 auto;
}

.member-card-cta__text {
    color: var(--text-secondary);
    max-width: 820px;
    line-height: 1.8;
}

.member-card-cta__panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.member-card-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.member-card-cta__list li {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.member-card-cta__list li:last-child {
    margin-bottom: 0;
}

.testimonial-band .carousel-indicators button {
    background: var(--accent-emerald) !important;
}

/* Carousel controls */
.testimonial-band .carousel {
    position: relative;
    padding: 0 72px;
    overflow: visible;
}

.carousel-control-prev,
.carousel-control-next {
    filter: none !important;
    opacity: 0.6;
    top: 50%;
    transform: translateY(-50%);
    width: 56px !important;
    height: 56px;
    border-radius: 50%;
    background: rgba(6, 13, 10, 0.72);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }

.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: 1; }

.testimonial-band .carousel-control-prev-icon,
.testimonial-band .carousel-control-next-icon {
    width: 1.15rem;
    height: 1.15rem;
}

/* ── Blog Band ────────────────────────────────────────── */
.blog-band {
    position: relative;
    z-index: 1;
}

.blog-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

/* ── CTA Section ──────────────────────────────────────── */
.cta-solar {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(6, 13, 10, 0.90) 0%, rgba(10, 20, 16, 0.78) 50%, rgba(52, 211, 153, 0.08) 100%),
        url('https://solarenergypower.id/wp-content/uploads/2024/12/94951658-87bf-4dfd-8e5e-e9213adf3d13.jpg') center/cover no-repeat;
}

.cta-solar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    pointer-events: none;
}

.cta-solar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--bg-body));
    pointer-events: none;
}

.cta-solar .container { position: relative; z-index: 1; }

.cta-solar-shell {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.30);
}

.cta-solar-preview {
    position: relative;
    min-height: 290px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(6, 13, 10, 0.30), rgba(6, 13, 10, 0.70)),
        url('https://solarenergypower.id/wp-content/uploads/2024/12/9976b146-cabe-47b7-b07d-2671fb62b5ab.jpg') center/cover no-repeat;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
}

.cta-solar-preview__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(52, 211, 153, 0.08), transparent 50%),
        linear-gradient(180deg, transparent 20%, rgba(6, 13, 10, 0.60) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cta-solar-preview__content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 290px;
}

.cta-solar-stat {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cta-solar-stat__value {
    font-size: clamp(1.2rem, 1.8vw, 1.7rem);
    font-weight: 800;
    line-height: 1;
}

.cta-solar-preview__foot {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

/* ── Page Banners (sub-pages) ─────────────────────────── */
.page-banner {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    background:
        linear-gradient(135deg, rgba(6, 13, 10, 0.85) 0%, rgba(10, 20, 16, 0.78) 60%, rgba(52, 211, 153, 0.10) 100%),
        url('https://gb.solar/wp-content/uploads/2024/12/Harnessing-the-Sun_-How-Solar-Energy-is-Revolutionizing-Sustainable-Living.jpg') center/cover no-repeat;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    pointer-events: none;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--bg-body));
    pointer-events: none;
}

.page-banner .container { position: relative; z-index: 1; }

.page-banner h1 {
    color: var(--text-white) !important;
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-banner p {
    color: var(--text-secondary);
}

/* Old banner override */
section.bg-success.text-white {
    background: none !important;
}

/* ── Breadcrumb Banner (detail pages) ─────────────────── */
.breadcrumb-header {
    position: relative;
    overflow: hidden;
    padding: 60px 0 30px;
    background:
        linear-gradient(135deg, rgba(6, 13, 10, 0.85) 0%, rgba(10, 20, 16, 0.78) 60%, rgba(52, 211, 153, 0.10) 100%),
        url('https://gb.solar/wp-content/uploads/2024/12/Harnessing-the-Sun_-How-Solar-Energy-is-Revolutionizing-Sustainable-Living.jpg') center/cover no-repeat;
}

.breadcrumb-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.25;
    pointer-events: none;
}

.breadcrumb-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--bg-body));
    pointer-events: none;
}

.breadcrumb-header .container { position: relative; z-index: 1; }

/* ── Footer ───────────────────────────────────────────── */
.footer-custom {
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding: 80px 0 30px;
    background:
        linear-gradient(180deg, rgba(6, 13, 10, 0.96), rgba(6, 13, 10, 0.90)),
        url('https://solarenergypower.id/wp-content/uploads/2024/12/Panel-Surya-1024x768-1-e1733977298140.jpg') center/cover no-repeat !important;
    color: var(--text-primary);
    border-top: 1px solid var(--glass-border);
}

.footer-custom::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-emerald), var(--accent-gold), transparent);
}

.footer-custom .container {
    position: relative;
    z-index: 1;
}

.footer-custom h5 {
    color: var(--text-white) !important;
    font-family: var(--font-heading);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-custom h5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 2px;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-gold));
    border-radius: 99px;
}

.footer-custom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

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

.footer-custom .text-white-50 {
    color: var(--text-muted) !important;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.35s var(--ease-out);
    color: var(--text-secondary);
}

.footer-social-links a:hover {
    background: var(--accent-gold);
    color: #0a1410 !important;
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(255, 208, 54, 0.25);
    padding-left: 0;
}

.footer-custom hr {
    border-color: var(--glass-border) !important;
    opacity: 1 !important;
}

/* ── Forms ─────────────────────────────────────────────── */
.form-control,
.form-select,
.input-group-text {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

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

.form-control:focus,
.form-select:focus {
    background: var(--bg-surface-2);
    border-color: var(--accent-emerald);
    color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12), 0 0 20px rgba(52, 211, 153, 0.06);
}

.form-label {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.85rem;
}

textarea.form-control { min-height: 130px; }

/* ── Breadcrumbs ──────────────────────────────────────── */
.breadcrumb {
    background: rgba(6, 13, 10, 0.45);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: inline-flex;
}

.breadcrumb-item a {
    color: var(--accent-emerald);
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-gold);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.60);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.35);
}

/* ── Stats Counter ────────────────────────────────────── */
.stats-counter {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(var(--glass-blur));
    border-top: 2px solid var(--accent-gold) !important;
}

.stats-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.stats-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── Blog Detail ──────────────────────────────────────── */
.blog-content {
    line-height: 1.9;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* ── Admin (preserved) ────────────────────────────────── */
.admin-sidebar {
    min-height: 100vh;
    background: rgba(6, 13, 10, 0.95);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #ffffff;
}

.admin-sidebar .sidebar-heading {
    padding: 24px 20px;
    font-weight: 800;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--accent-gold);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.65);
    padding: 14px 20px;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--accent-gold);
}

.admin-header {
    background: rgba(10, 20, 16, 0.90);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 30px;
}

.admin-content-area {
    padding: 30px;
    background: var(--bg-body);
    min-height: calc(100vh - 72px);
}

/* ── Tables ────────────────────────────────────────────── */
.table-custom {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.table-custom th {
    background: var(--bg-surface-2);
    color: var(--text-white);
    font-weight: 700;
    border: none;
    padding: 16px;
}

.table-custom td {
    padding: 16px;
    vertical-align: middle;
    color: var(--text-secondary);
    border-color: var(--glass-border);
}

/* ── Login Card ───────────────────────────────────────── */
.login-card {
    border: none;
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.40);
}

.login-card-header {
    background: linear-gradient(135deg, rgba(6, 13, 10, 0.95), rgba(22, 101, 52, 0.80)) !important;
    backdrop-filter: blur(18px);
    color: #fff;
    padding: 40px;
    text-align: center;
}

.login-card-body {
    padding: 40px;
    background: var(--bg-surface) !important;
}

/* ── Alerts ────────────────────────────────────────────── */
.alert-custom,
.alert {
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.alert-success {
    background: rgba(52, 211, 153, 0.10);
    border-color: rgba(52, 211, 153, 0.25);
    color: var(--accent-emerald);
}

/* ── Dropdown ─────────────────────────────────────────── */
.dropdown-menu {
    background: rgba(6, 13, 10, 0.90) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.40);
    padding: 8px;
}

.dropdown-menu .dropdown-item,
.dropdown-menu-item {
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu-item:hover {
    background: var(--bg-surface-2) !important;
    color: var(--text-white) !important;
}

.dropdown-divider {
    border-color: var(--glass-border);
}

/* ── Section bg-light override ────────────────────────── */
.bg-light,
section.bg-light {
    background: var(--bg-surface) !important;
}

/* ── Borders ──────────────────────────────────────────── */
.border { border-color: var(--glass-border) !important; }
.border-top { border-top-color: var(--glass-border) !important; }
.border-bottom { border-bottom-color: var(--glass-border) !important; }
.border-start { border-left-color: var(--glass-border) !important; }
.border-success { border-color: rgba(52, 211, 153, 0.30) !important; }
.border-warning { border-color: rgba(255, 208, 54, 0.30) !important; }
.border-primary { border-color: rgba(34, 211, 238, 0.30) !important; }

.border-start.border-4.border-success { border-left-color: var(--accent-emerald) !important; }
.border-start.border-4.border-warning { border-left-color: var(--accent-gold) !important; }
.border-start.border-4.border-primary { border-left-color: var(--accent-cyan) !important; }

/* ── Misc bg-light panels (about, course detail) ──────── */
.p-3.bg-light,
.p-4.bg-light,
.bg-light.rounded-3,
.bg-light.rounded-4 {
    background: var(--glass-bg-strong) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-md) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ── Banner overrides for sub-pages ───────────────────── */
.bg-success.text-white.py-5,
section.bg-success.text-white.py-5 {
    background:
        linear-gradient(135deg, rgba(6, 13, 10, 0.88), rgba(10, 20, 16, 0.75), rgba(52, 211, 153, 0.08)),
        url('https://solarenergypower.id/wp-content/uploads/2024/10/e3-bg-1.webp') center/cover no-repeat !important;
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px !important;
}

.bg-success.text-white.py-5::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.25;
    pointer-events: none;
}

.bg-success.text-white.py-5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--bg-body));
    pointer-events: none;
}

.bg-success.text-white.py-5 .container {
    position: relative; z-index: 1;
}

/* ── Course detail hero ───────────────────────────────── */
.bg-success.text-white.p-5 {
    background:
        linear-gradient(135deg, rgba(6, 13, 10, 0.88), rgba(52, 211, 153, 0.12)),
        url('https://solarenergypower.id/wp-content/uploads/2024/10/e3-bg-1.webp') center/cover no-repeat !important;
    border: 1px solid var(--glass-border) !important;
}

/* ── Blog detail banner ───────────────────────────────── */
.bg-success.text-white.p-5.rounded-4.mb-5.text-center {
    background:
        linear-gradient(135deg, rgba(6, 13, 10, 0.85), rgba(52, 211, 153, 0.10)),
        url('https://solarenergypower.id/wp-content/uploads/2024/12/3a1d5618-c061-47ee-8d5c-f9e07c4f2cf7.jpg') center/cover no-repeat !important;
    border: 1px solid var(--glass-border) !important;
}

/* ── Sidebar sticky card (course detail) ──────────────── */
.card.border-0.shadow-sm.p-4.rounded-4.position-sticky {
    background: var(--glass-bg-strong) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ── AOS Animation Overrides ──────────────────────────── */
[data-aos] {
    will-change: transform, opacity;
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 208, 54, 0.20); }
    50%      { box-shadow: 0 0 40px rgba(255, 208, 54, 0.40); }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.animate-fade-in-right {
    opacity: 0;
    animation: fadeInRight 0.9s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* ── Scroll Reveal (JS fallback) ──────────────────────── */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    will-change: transform, opacity;
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── List group dark override ─────────────────────────── */
.list-group-item {
    background: transparent;
    border-color: var(--glass-border);
    color: var(--text-secondary);
}

/* ── Misc spacing and utility ─────────────────────────── */
.tracking-wider { letter-spacing: 2px; }

.link-success {
    color: var(--accent-emerald) !important;
    transition: color 0.3s ease;
}

.link-success:hover { color: var(--accent-gold) !important; }

.max-width-md { max-width: 700px; }

.bg-white { background: var(--glass-bg-strong) !important; }

/* Team member circle */
.bg-success.mx-auto.rounded-circle {
    background: linear-gradient(135deg, var(--accent-emerald), #059669) !important;
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.20) !important;
}

/* ── Member Card Modal ───────────────────────────────── */
.member-card-modal {
    background: rgba(6, 13, 10, 0.94);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.member-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 24px;
    width: min(100%, 630px);
    height: 360px;
    aspect-ratio: 1.75 / 1;
    background:
        linear-gradient(135deg, rgba(6, 13, 10, 0.82), rgba(6, 13, 10, 0.68)),
        url('/images/cta_bg.png') center/cover no-repeat;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.member-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(52, 211, 153, 0.20), transparent 34%),
        radial-gradient(circle at 82% 22%, rgba(255, 208, 54, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(6, 13, 10, 0.12), rgba(6, 13, 10, 0.38));
    pointer-events: none;
}

.member-card__logo {
    min-width: 102px;
    min-height: 84px;
    padding: 10px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 0 22px rgba(52,211,153,0.18);
}

.member-card__logo img {
    width: auto;
    height: 54px;
    max-width: 170px;
    object-fit: contain;
}

.member-card__name {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.1;
}

.member-card__serial {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240, 253, 244, 0.78);
    font-weight: 700;
}

.member-card__phone {
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.member-card__tag {
    max-width: 280px;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.member-card__footer {
    margin-top: 8px;
}

.member-card-validate-modal .modal-content {
    background: rgba(6, 13, 10, 0.94);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.member-validation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.22);
    font-weight: 700;
}

.member-card--print {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .member-card-modal,
    .member-card-modal * {
        visibility: visible !important;
    }

    .member-card-modal {
        position: fixed;
        inset: 0;
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
    }

    .member-card-modal .modal-header,
    .member-card-modal .modal-footer {
        display: none !important;
    }

    .member-card {
        width: 100%;
        max-width: 520px;
        min-height: 420px;
        margin: 0 auto;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .modal-backdrop {
        display: none !important;
    }
}

/* ── AI Chat Widget ───────────────────────────────────── */
.ai-chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
}

.ai-chat-bubble {
    width: auto;
    min-width: 154px;
    height: 60px;
    padding: 0 16px 0 14px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.92), rgba(34, 211, 238, 0.82));
    color: #05110c;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ai-chat-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.42);
    filter: brightness(1.03);
}

.ai-chat-bubble i {
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.ai-chat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #111827;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.ai-chat-launch-text {
    display: inline-flex;
    white-space: nowrap;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(5, 17, 12, 0.92);
    margin-right: 2px;
}

.ai-chat-header-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.20);
    color: #9ef0d1;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.ai-chat-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: calc(100% - 92px);
    flex: 1 1 auto;
}

.ai-chat-brand__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.ai-chat-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: min(380px, calc(100vw - 32px));
    height: 520px;
    display: none;
    flex-direction: column;
    background: rgba(6, 13, 10, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: 0 28px 64px rgba(0,0,0,0.42);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    overflow: hidden;
}

.ai-chat-widget.open .ai-chat-panel {
    display: flex;
}

.ai-chat-widget.ai-chat-widget--fullscreen .ai-chat-panel {
    position: fixed;
    inset: 16px;
    width: auto;
    height: auto;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    bottom: 16px;
    right: 16px;
    border-radius: 24px;
}

.ai-chat-header {
    position: relative;
    overflow: hidden;
    padding: 16px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.ai-chat-header::before {
    content: '';
    position: absolute;
    inset: -28% -18%;
    background:
        radial-gradient(circle at 18% 28%, rgba(34, 211, 238, 0.22), transparent 18%),
        radial-gradient(circle at 82% 22%, rgba(52, 211, 153, 0.20), transparent 16%),
        radial-gradient(circle at 62% 72%, rgba(255, 255, 255, 0.14), transparent 12%),
        linear-gradient(115deg,
            transparent 0%,
            rgba(34, 211, 238, 0.14) 28%,
            rgba(255,255,255,0.05) 40%,
            rgba(52, 211, 153, 0.12) 58%,
            transparent 100%);
    opacity: 0.75;
    filter: blur(1px) contrast(1.15);
    transform-origin: center;
    animation: aiStaticMove 7s ease-in-out infinite;
    pointer-events: none;
}

.ai-chat-wave {
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -18px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(52, 211, 153, 0.20), rgba(52, 211, 153, 0.06) 42%, transparent 70%);
    filter: blur(2px);
    opacity: 0.65;
    animation: aiWaveMove 5s ease-in-out infinite;
    pointer-events: none;
}

.ai-chat-wave--one {
    transform: translateX(-8%) scaleX(1.05);
    animation-delay: 0s;
}

.ai-chat-wave--two {
    transform: translateX(10%) scaleX(1.2);
    opacity: 0.45;
    animation-delay: 1.2s;
}

.ai-chat-wave--three {
    transform: translateX(-2%) scaleX(0.95);
    opacity: 0.25;
    animation-delay: 2.4s;
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(52, 211, 153, 0.14);
    color: var(--accent-emerald);
    flex: 0 0 auto;
}

.ai-chat-avatar--logo {
    background: rgba(255,255,255,0.05);
    overflow: hidden;
}

.ai-chat-avatar--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ai-chat-title {
    white-space: normal;
    max-width: 100%;
    font-size: 0.84rem;
    line-height: 1.06;
    letter-spacing: -0.01em;
}

.ai-chat-fullscreen {
    text-decoration: none;
}

.ai-chat-fullscreen:hover,
.ai-chat-close:hover {
    color: #ffffff !important;
}

@keyframes aiWaveMove {
    0%, 100% {
        transform: translateX(-2%) scaleX(1);
    }
    50% {
        transform: translateX(2%) scaleX(1.08);
    }
}

@keyframes aiStaticMove {
    0% {
        transform: translateX(-1%) skewX(-6deg) scale(1.02);
        background-position: 0% 50%;
        opacity: 0.72;
    }
    22% {
        opacity: 0.86;
    }
    50% {
        transform: translateX(1.2%) skewX(4deg) scale(1.05);
        background-position: 100% 50%;
        opacity: 0.92;
    }
    100% {
        transform: translateX(-1%) skewX(-6deg) scale(1.02);
        background-position: 0% 50%;
        opacity: 0.72;
    }
}

.ai-chat-brandline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
}

.ai-chat-brandline img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    flex: 0 0 auto;
}

.ai-chat-messages {
    flex: 1 1 auto;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-chat-message {
    display: flex;
}

.ai-chat-message--user {
    justify-content: flex-end;
}

.ai-chat-message--bot {
    justify-content: flex-start;
}

.ai-chat-bubble-text {
    position: relative;
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.93rem;
    line-height: 1.55;
}

.ai-chat-response-text {
    position: relative;
    z-index: 1;
}

.ai-chat-response-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.18);
    color: #7ff8ff;
    border: 1px solid rgba(34, 211, 238, 0.3);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
}

.ai-chat-message--bot .ai-chat-bubble-text {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.08);
}

.ai-chat-message--user .ai-chat-bubble-text {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.92), rgba(34, 211, 238, 0.82));
    color: #06130e;
    font-weight: 600;
}

.ai-chat-form {
    padding: 14px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.ai-chat-input {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    color: var(--text-white) !important;
}

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

.ai-chat-send {
    flex: 0 0 auto;
    width: 48px;
    padding: 0 !important;
    display: grid;
    place-items: center;
}

.ai-chat-footer-note {
    display: block;
    padding: 0 14px 14px;
    color: var(--text-muted);
}

.ai-chat-widget.ai-chat-has-interacted .ai-chat-footer-note {
    display: none;
}

@media (max-width: 575.98px) {
    .ai-chat-widget {
        right: 12px;
        bottom: 12px;
    }

    .ai-chat-panel {
        width: calc(100vw - 24px);
        height: 76vh;
        bottom: 72px;
    }
}

/* About page value icon boxes */
.solar-icon-box.bg-success {
    background: rgba(52, 211, 153, 0.15) !important;
    color: var(--accent-emerald) !important;
    border-color: rgba(52, 211, 153, 0.25);
}

.solar-icon-box.bg-primary {
    background: rgba(34, 211, 238, 0.12) !important;
    color: var(--accent-cyan) !important;
    border-color: rgba(34, 211, 238, 0.20);
}

.solar-icon-box.bg-warning {
    background: var(--accent-gold-dim) !important;
    color: var(--accent-gold) !important;
    border-color: rgba(255, 208, 54, 0.25);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        margin-top: 14px;
        padding: 16px;
        background: rgba(6, 13, 10, 0.92);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-md);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .hero-section {
        min-height: auto;
        padding: 80px 0 100px;
    }

    .hero-title { font-size: 2.2rem; }

    .cta-solar-shell { padding: 1.25rem; }
    .cta-solar-preview { min-height: 240px; }
    .cta-solar-preview__content { min-height: 240px; }
}

@media (max-width: 575.98px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .hero-title { font-size: 1.85rem; }
    .hero-subtitle { font-size: 0.95rem; }

    .card-custom .card-body { padding: 20px; }

    .animate-fade-in-right { animation-name: fadeInUp; }

    .solar-sim-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
    }

    .solar-metric-card { min-height: 110px; padding: 0.85rem; }

    .dashboard-summary-card,
    .dashboard-metric-card {
        height: auto;
        min-height: 300px;
    }

    .cta-solar-shell { padding: 1rem; }
    .cta-solar-preview { min-height: 220px; }
    .cta-solar-preview__content { min-height: 220px; padding: 1rem; }

    .page-banner,
    .bg-success.text-white.py-5 {
        padding: 60px 0 40px !important;
    }

    .footer-custom { padding: 50px 0 24px; }

    .testimonial-band .carousel {
        padding: 0 12px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 44px !important;
        height: 44px;
    }
}

/* ── Print ────────────────────────────────────────────── */
@media print {
    body { background: #fff; color: #000; }
    .navbar-custom, .footer-custom { display: none; }
}

/* ── Login Page Background ───────────────────────────── */
.login-page-wrapper {
    min-height: calc(100vh - 70px);
    background:
        linear-gradient(135deg, rgba(6, 13, 10, 0.88) 0%, rgba(10, 20, 16, 0.80) 60%, rgba(52, 211, 153, 0.08) 100%),
        url('https://frontend-cdn.solarreviews.com/hero-placeholder.jpg') center top/cover no-repeat;
    display: flex;
    align-items: center;
    margin-bottom: -80px;
    padding-bottom: 80px;
    will-change: background-position;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ── Login Card ───────────────────────────────────────── */
.login-card {
    background: rgba(6, 13, 10, 0.70) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-xl) !important;
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
}

.login-card-header {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.85), rgba(16, 50, 30, 0.90)) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    backdrop-filter: none !important;
    padding: 28px 32px;
}

.login-card-header h4 {
    color: var(--text-white) !important;
    font-family: var(--font-heading);
}

.login-card-body {
    padding: 32px;
    background: transparent;
}

/* Fix input fields inside login card */
.login-card .form-control,
.login-card .form-select {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--text-white) !important;
}

.login-card .form-control::placeholder {
    color: var(--text-muted) !important;
}

.login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: var(--accent-emerald) !important;
    color: var(--text-white) !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15) !important;
}

/* Fix input-group addon icons */
.login-card .input-group-text {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--text-muted) !important;
}

/* Fix toggle password button */
.login-card .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--text-muted) !important;
}

.login-card .btn-outline-secondary:hover {
    background: rgba(52, 211, 153, 0.15) !important;
    color: var(--accent-emerald) !important;
    border-color: var(--accent-emerald) !important;
}

/* Fix labels */
.login-card .form-label {
    color: var(--text-secondary) !important;
}

/* Fix border top divider */
.login-card .border-top {
    border-color: var(--glass-border) !important;
}

/* Fix link color */
.login-card a.text-success {
    color: var(--accent-emerald) !important;
}

.login-card a.text-success:hover {
    color: var(--accent-gold) !important;
}

/* Demo credentials text */
.text-muted code {
    color: var(--accent-gold) !important;
    background: rgba(255, 208, 54, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}
