/* ============================================================
   cadyl — Luxury Editorial Theme
   Color Palette: Ivory / Deep Burgundy / Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ===== Design Tokens ===== */
:root {
    --bg:           #FAF7F2;
    --bg-alt:       #F3EDE3;
    --surface:      #FFFFFF;
    --burgundy:     #6B1A2A;
    --burgundy-dk:  #4A1020;
    --burgundy-lt:  #8C2439;
    --gold:         #C9923A;
    --gold-lt:      #E5B96A;
    --gold-dk:      #A07020;
    --text:         #1A1015;
    --text-muted:   #6B6168;
    --border:       #E2D9CE;
    --shadow-sm:    0 2px 12px rgba(107,26,42,0.08);
    --shadow-md:    0 8px 32px rgba(107,26,42,0.12);
    --shadow-lg:    0 20px 60px rgba(107,26,42,0.18);
    --radius:       14px;
    --radius-lg:    24px;
    --radius-xl:    40px;

    /* Futuristic variable aliases — resolved as luxury-theme values on lux-body pages */
    --futuristic-primary:       var(--burgundy);
    --futuristic-border:        var(--border);
    --futuristic-surface:       #FFFFFF;
    --futuristic-bg:            var(--bg);
    --futuristic-text:          var(--text);
    --futuristic-text-muted:    var(--text-muted);
}

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

body.lux-body,
body.futuristic-body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body.lux-body {
    background-color: var(--bg);
    color: var(--text);
}

/* Quiz/dark pages: override body bg and CSS vars for dark theme */
body.futuristic-body {
    background-color: #0a0a1a;
    color: #e0e0e0;
    --futuristic-primary:       #C9923A;
    --futuristic-border:        rgba(255,255,255,0.15);
    --futuristic-surface:       #1a1a2e;
    --futuristic-bg:            #0a0a1a;
    --futuristic-text:          #e0e0e0;
    --futuristic-text-muted:    rgba(255,255,255,0.55);
}

h1, h2, h3, .serif { font-family: 'Playfair Display', Georgia, serif; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--burgundy-lt); border-radius: 3px; }

/* ===== Navigation ===== */
.lux-nav {
    background: rgba(250,247,242,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(107,26,42,0.06);
    padding: 0.6rem 0;
}

.lux-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--burgundy) !important;
    letter-spacing: -0.5px;
    text-decoration: none;
}
.lux-brand span { color: var(--gold); }

.lux-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}
.lux-nav .nav-link:hover,
.lux-nav .nav-link.active {
    color: var(--burgundy) !important;
    background: rgba(107,26,42,0.06);
}

.lux-nav .dropdown-menu {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
}
.lux-nav .dropdown-item {
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}
.lux-nav .dropdown-item:hover {
    background: rgba(107,26,42,0.06);
    color: var(--burgundy);
}
.lux-nav .dropdown-item.active {
    background: var(--burgundy);
    color: #fff;
}

/* ===== Buttons ===== */
.btn-lux {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-lt));
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.8rem;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 16px rgba(107,26,42,0.3);
    text-decoration: none;
    display: inline-block;
}
.btn-lux:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(107,26,42,0.4);
    background: linear-gradient(135deg, var(--burgundy-lt), var(--burgundy));
    color: #fff !important;
}

.btn-lux-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-lt));
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(201,146,58,0.35);
    text-decoration: none;
    display: inline-block;
}
.btn-lux-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,146,58,0.5);
    color: #fff !important;
}

.btn-lux-outline {
    background: transparent;
    color: var(--burgundy) !important;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--burgundy);
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-lux-outline:hover {
    background: var(--burgundy);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.lux-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(150deg, #FAF7F2 0%, #F3EDE3 40%, #E8DDD0 100%);
    overflow: hidden;
}

.lux-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(107,26,42,0.08) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.lux-hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201,146,58,0.1) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.lux-hero-content { position: relative; z-index: 2; }

.lux-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(107,26,42,0.08);
    color: var(--burgundy);
    border: 1px solid rgba(107,26,42,0.2);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.lux-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--gold);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 4px var(--gold); opacity: 1; }
    50% { box-shadow: 0 0 12px var(--gold); opacity: 0.7; }
}

.lux-hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.5rem;
}
.lux-hero h1 em {
    font-style: italic;
    color: var(--burgundy);
}
.lux-hero h1 .gold { color: var(--gold); font-style: normal; }

.lux-hero p.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2rem;
}

/* Floating card element */
.hero-float-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
    animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

.hero-float-card .stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}
.hero-float-card .stat-row:last-child { border-bottom: none; }
.hero-float-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.hero-float-card .stat-icon.bg-burg { background: rgba(107,26,42,0.1); }
.hero-float-card .stat-icon.bg-gold { background: rgba(201,146,58,0.12); }
.hero-float-card .stat-icon.bg-green { background: rgba(34,197,94,0.1); }

.hero-float-card .stat-label { font-size: 0.8rem; color: var(--text-muted); }
.hero-float-card .stat-val { font-weight: 700; color: var(--text); font-size: 1rem; }

/* ===== Stats Strip (dark-page default — burgundy bg) ===== */
body:not(.lux-body) .stats-strip {
    background: var(--burgundy);
    padding: 2.5rem 0;
}
.stats-strip .stat-item { text-align: center; }
body:not(.lux-body) .stats-strip .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    display: block;
}
body:not(.lux-body) .stats-strip .stat-lbl {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
body:not(.lux-body) .stats-strip .stat-gold { color: var(--gold-lt); }
body:not(.lux-body) .stats-strip .divider-v {
    width: 1px;
    background: rgba(255,255,255,0.12);
    align-self: stretch;
}

/* ===== Section Headings ===== */
.section-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.7rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
}

/* ===== Feature Cards ===== */
.lux-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.lux-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.lux-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(107,26,42,0.15);
}
.lux-card:hover::after { transform: scaleX(1); }

.lux-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    background: rgba(107,26,42,0.08);
}
.lux-card-icon.gold { background: rgba(201,146,58,0.1); }
.lux-card-icon.sage { background: rgba(134,179,97,0.1); }

.lux-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.7rem;
}
.lux-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; margin: 0; }

/* ===== Testimonials ===== */
.lux-testimonials { background: var(--bg-alt); }

.lux-quote-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.2rem;
    position: relative;
    height: 100%;
    transition: box-shadow 0.3s ease;
}
.lux-quote-card:hover { box-shadow: var(--shadow-md); }
.lux-quote-card::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--gold-lt);
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    line-height: 1;
    opacity: 0.5;
}
.lux-quote-card blockquote {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 1.5rem 0 1.2rem;
    font-style: italic;
}
.lux-quote-card .stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; }
.lux-quote-card .author-name { font-weight: 700; color: var(--text); font-size: 0.92rem; }
.lux-quote-card .author-meta { font-size: 0.8rem; color: var(--text-muted); }
.lux-quote-card .author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--burgundy), var(--gold));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}

/* ===== CTA Section ===== */
.lux-cta {
    background: linear-gradient(135deg, var(--burgundy-dk) 0%, var(--burgundy) 50%, var(--burgundy-lt) 100%);
    position: relative;
    overflow: hidden;
}
.lux-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,146,58,0.15) 0%, transparent 60%);
    border-radius: 50%;
}
.lux-cta .cta-inner { position: relative; z-index: 1; }
.lux-cta h2 { color: #fff; }
.lux-cta p { color: rgba(255,255,255,0.7); }

/* ===== Forms ===== */
.form-control, .form-select {
    background: #fff !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    padding: 0.75rem 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--burgundy) !important;
    box-shadow: 0 0 0 3px rgba(107,26,42,0.12) !important;
}
.form-control::placeholder { color: var(--text-muted) !important; opacity: 1; }
label { font-weight: 500; font-size: 0.9rem; color: var(--text); margin-bottom: 0.4rem; }

/* ===== Cards — futuristic-card alias ===== */
.futuristic-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    overflow: hidden;
}
.futuristic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ===== Text helpers ===== */
.text-primary-futuristic, .futuristic-accent-text {
    background: linear-gradient(135deg, var(--burgundy), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    display: inline-block;
}
.text-burgundy { color: var(--burgundy) !important; }
.text-gold { color: var(--gold) !important; }

/* ===== Footer ===== */
.footer-section {
    background: var(--burgundy-dk);
    color: rgba(255,255,255,0.65);
    padding-top: 4rem;
    border-top: none;
    font-size: 0.93rem;
}
.footer-section .footer-brand h5 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.4rem; }
.footer-section .footer-heading { color: #fff; font-weight: 600; margin-bottom: 1.2rem; position: relative; font-size: 1rem; }
.footer-section .footer-heading::after { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); margin-top: 0.4rem; }
.footer-section .footer-links a { color: rgba(255,255,255,0.55); transition: color 0.2s, padding-left 0.2s; text-decoration: none; display: inline-block; }
.footer-section .footer-links a:hover { color: var(--gold-lt); padding-left: 4px; }
.footer-section .footer-links li { margin-bottom: 0.6rem; }
.footer-section .footer-text { color: rgba(255,255,255,0.5); line-height: 1.65; }
.footer-section .social-icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; margin-right: 0.4rem;
    transition: all 0.25s ease;
}
.footer-section .social-icon-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-3px); }
.footer-section .contact-item { display: flex; align-items: flex-start; margin-bottom: 0.9rem; color: rgba(255,255,255,0.55); }
.footer-section .contact-item i { color: var(--gold); margin-right: 12px; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); background: var(--burgundy-dk); padding: 1.4rem 0; margin-top: 3.5rem; }

/* Newsletter */
.newsletter-form input {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4) !important; }
.newsletter-form input:focus { border-color: var(--gold) !important; box-shadow: none !important; }
.btn-gradient { background: linear-gradient(90deg, var(--gold), var(--gold-lt)); border: none; color: #fff; font-weight: 600; }
.btn-gradient:hover { background: linear-gradient(90deg, var(--gold-lt), var(--gold)); color: #fff; }

/* ===== WhatsApp ===== */
.whatsapp-container { position: fixed; bottom: 30px; right: 30px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; }
.whatsapp-float-btn { width: 58px; height: 58px; background: #25d366; color: #fff; border-radius: 50%; font-size: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
.whatsapp-float-btn:hover { transform: scale(1.1); }
.whatsapp-menu { position: absolute; bottom: 70px; right: 0; width: 300px; background: #fff; border-radius: 14px; box-shadow: 0 8px 40px rgba(0,0,0,0.15); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.165,0.84,0.44,1); padding-bottom: 6px; }
.whatsapp-container:hover .whatsapp-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.whatsapp-menu-header { background: #25d366; color: #fff; padding: 14px 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.whatsapp-menu-item { display: flex; align-items: center; padding: 14px 16px; margin: 8px; background: #f5f5f5; border-radius: 10px; text-decoration: none; color: #333; transition: background 0.2s; border-left: 3px solid #25d366; }
.whatsapp-menu-item:hover { background: #ececec; color: #333; }
.whatsapp-item-icon { width: 40px; height: 40px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 12px; font-size: 1.1rem; }
.whatsapp-item-content { flex: 1; }
.whatsapp-item-title { font-weight: 700; font-size: 0.9rem; }
.whatsapp-item-subtitle { font-size: 0.78rem; color: #666; }
.whatsapp-item-action { color: #25d366; font-size: 1.1rem; margin-left: 8px; }

/* ===== Animations ===== */
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
.anim-up  { animation: slideUp 0.7s ease both; }
.anim-in  { animation: fadeIn  0.7s ease both; }
.anim-d1  { animation-delay: 0.1s; }
.anim-d2  { animation-delay: 0.2s; }
.anim-d3  { animation-delay: 0.35s; }
.anim-d4  { animation-delay: 0.5s; }

/* ===== Divider ornament ===== */
.ornament { display: flex; align-items: center; gap: 1rem; margin: 0 auto 1.5rem; justify-content: center; }
.ornament span { display: block; height: 1px; width: 60px; background: linear-gradient(to right, transparent, var(--gold)); }
.ornament span:last-child { background: linear-gradient(to left, transparent, var(--gold)); }
.ornament i { color: var(--gold); font-size: 0.7rem; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .lux-hero { min-height: auto; padding: 6rem 0 4rem; }
    .hero-float-card { margin-top: 2.5rem; }
}
@media (max-width: 767px) {
    .stats-strip .divider-v { display: none; }
    .stats-strip .stat-item { padding: 0.5rem 0; }
    .whatsapp-container { bottom: 20px; right: 20px; }
    .whatsapp-float-btn { width: 50px; height: 50px; font-size: 24px; }
}

/* =============================================================
   GLOBAL READABILITY FIXES
   Bootstrap utility classes designed for dark backgrounds
   are overridden here for the light ivory theme.
   Exceptions: .footer-section, .stats-strip, .lux-cta,
   .lux-hero (dark overlayed sections) keep white text.
   ============================================================= */

/* text-white → near-black (lux-body only; futuristic-body keeps white for its dark backgrounds) */
body.lux-body .text-white {
    color: var(--text) !important;
}

/* text-white-50 → readable muted brown-grey */
body.lux-body .text-white-50 {
    color: var(--text-muted) !important;
}

/* text-light → dark text */
body.lux-body .text-light {
    color: var(--text) !important;
}

/* text-muted reinforce */
body.lux-body .text-muted {
    color: var(--text-muted) !important;
}

/* lead paragraphs */
body.lux-body .lead {
    color: var(--text-muted);
}

/* headings that used text-light class */
body.lux-body h1.text-light,
body.lux-body h2.text-light,
body.lux-body h3.text-light,
body.lux-body h4.text-light {
    color: var(--text) !important;
}

/* fst-italic quotes */
body.lux-body .fst-italic {
    color: var(--text-muted);
}

/* Card text colours */
body.lux-body .card {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}
body.lux-body .card-title {
    color: var(--text) !important;
}
body.lux-body .card-text {
    color: var(--text-muted) !important;
}

/* bg-black / bg-dark cards → white surface */
body.lux-body .bg-black {
    background: #fff !important;
    color: var(--text) !important;
}
body.lux-body .bg-dark {
    background: var(--bg-alt) !important;
    color: var(--text) !important;
}
body.lux-body .bg-dark-subtle {
    background: var(--bg-alt) !important;
}

/* Warning stars keep their colour */
body.lux-body .text-warning {
    color: var(--gold) !important;
}

/* Blockquote text */
body.lux-body blockquote p {
    color: var(--text-muted) !important;
}

/* Small / helper text */
body.lux-body small.text-white-50 {
    color: var(--text-muted) !important;
}

/* ---- RE-ALLOW white text inside dark sections ---- */

/* Footer keeps white */
.footer-section .text-white,
.footer-section h1, .footer-section h2,
.footer-section h3, .footer-section h4,
.footer-section h5, .footer-section h6 {
    color: #fff !important;
}
.footer-section .text-white-50,
.footer-section .footer-text,
.footer-section small {
    color: rgba(255,255,255,0.55) !important;
}

/* Stats strip keeps white only on dark-bg pages */
body.futuristic-body .stats-strip .text-white,
body.futuristic-body .stats-strip .stat-num,
body.futuristic-body .stats-strip h1,
body.futuristic-body .stats-strip h2,
body.futuristic-body .stats-strip h3 {
    color: #fff !important;
}

/* CTA section keeps white */
.lux-cta .text-white,
.lux-cta h1,.lux-cta h2,.lux-cta h3 {
    color: #fff !important;
}
.lux-cta .lead, .lux-cta p {
    color: rgba(255,255,255,0.75) !important;
}

/* Dropdown menus keep readable text */
.dropdown-menu .dropdown-item { color: var(--text-muted) !important; }
.dropdown-menu .dropdown-item:hover { color: var(--burgundy) !important; }
.dropdown-menu .dropdown-item.active { color: #fff !important; }

/* Danger outline button in nav */
.btn-outline-danger { color: #dc3545 !important; border-color: #dc3545 !important; }
.btn-outline-danger:hover { color: #fff !important; background: #dc3545 !important; }

/* ---- Futuristic card on light bg ---- */
body.lux-body .futuristic-card .card-title { color: var(--text) !important; }
body.lux-body .futuristic-card .card-text  { color: var(--text-muted) !important; }

/* Alert/info components */
.futuristic-card-title { color: var(--burgundy) !important; }

/* display- utility headings */
body.lux-body .display-3,
body.lux-body .display-4,
body.lux-body .display-5 {
    color: var(--text);
}

/* Override any remaining inline white text inside generic sections */
body.lux-body section:not(.stats-strip):not(.lux-cta):not(.footer-section) h1,
body.lux-body section:not(.stats-strip):not(.lux-cta):not(.footer-section) h2,
body.lux-body section:not(.stats-strip):not(.lux-cta):not(.footer-section) h3 {
    color: var(--text);
}

/* ---- Dashboard / sub-page generic containers ---- */
body.lux-body .container p {
    color: var(--text-muted);
}
body.lux-body .container h1,
body.lux-body .container h2,
body.lux-body .container h3,
body.lux-body .container h4,
body.lux-body .container h5 {
    color: var(--text);
}

/* ===== Missing Button Classes ===== */
.btn-primary-futuristic {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-lt));
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.8rem;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 16px rgba(107,26,42,0.3);
    display: inline-block;
    text-decoration: none;
}
.btn-primary-futuristic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(107,26,42,0.4);
    color: #fff !important;
}
/* On dark (futuristic-body) pages the button uses gold */
body.futuristic-body .btn-primary-futuristic {
    background: linear-gradient(135deg, #C9923A, #E5B96A);
    color: #0a0a1a !important;
    box-shadow: 0 4px 16px rgba(201,146,58,0.35);
}
body.futuristic-body .btn-primary-futuristic:hover {
    box-shadow: 0 8px 28px rgba(201,146,58,0.5);
    color: #0a0a1a !important;
}

/* btn-primary-futuristic-glow — same as btn-primary-futuristic with glow effect */
.btn-primary-futuristic-glow {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-lt));
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.8rem;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 20px rgba(107,26,42,0.4);
    display: inline-block;
    text-decoration: none;
}
.btn-primary-futuristic-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(107,26,42,0.55);
    color: #fff !important;
}

/* btn-outline-light → invisible on light pages; remap to outline-burgundy */
body.lux-body .btn-outline-light {
    color: var(--burgundy) !important;
    border-color: var(--burgundy) !important;
    background: transparent !important;
}
body.lux-body .btn-outline-light:hover {
    background: var(--burgundy) !important;
    color: #fff !important;
}

/* ===== History / timeline list items ===== */
body.lux-body .history-item {
    background-color: var(--bg-alt) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px;
}

/* ===================================================
   DARK MODE  (data-theme="dark")
   Applied when user toggles the theme switch.
   Overrides lux-body light variables and key elements.
   =================================================== */

/* ─── Theme toggle button ─────────────────────────── */
.btn-theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50px;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}
.btn-theme-toggle:hover {
    background: var(--surface);
    color: var(--gold);
    border-color: var(--gold);
}

/* ─── CSS variables override ─────────────────────── */
[data-theme="dark"] body.lux-body {
    --bg:           #0e0b14;
    --bg-alt:       #140f1c;
    --surface:      #1c1728;
    --text:         #f0ecf2;
    --text-muted:   #9d919d;
    --border:       rgba(255,255,255,0.09);
    --shadow-sm:    0 2px 12px rgba(0,0,0,0.35);
    --shadow-md:    0 8px 32px rgba(0,0,0,0.45);
    --shadow-lg:    0 20px 60px rgba(0,0,0,0.55);
    background-color: #0e0b14;
    color: #f0ecf2;
}

/* ─── Navigation ───────────────────────────────────── */
[data-theme="dark"] .lux-nav {
    background: rgba(14,11,20,0.94);
    border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .lux-nav .nav-link { color: rgba(240,236,242,0.65) !important; }
[data-theme="dark"] .lux-nav .nav-link:hover,
[data-theme="dark"] .lux-nav .nav-link.active { color: #E5B96A !important; }
[data-theme="dark"] .navbar-toggler { color: var(--gold-lt) !important; }

/* ─── Dropdowns ─────────────────────────────────── */
[data-theme="dark"] .dropdown-menu {
    background: #1c1728 !important;
    border-color: rgba(255,255,255,0.09) !important;
}
[data-theme="dark"] .dropdown-menu .dropdown-item { color: rgba(240,236,242,0.65) !important; }
[data-theme="dark"] .dropdown-menu .dropdown-item:hover {
    color: #E5B96A !important;
    background: rgba(255,255,255,0.05) !important;
}
[data-theme="dark"] .dropdown-divider { border-color: rgba(255,255,255,0.09) !important; }

/* ─── Toggle button (dark mode variant) ─────────── */
[data-theme="dark"] .btn-theme-toggle {
    border-color: rgba(255,255,255,0.15);
    color: rgba(240,236,242,0.65);
}
[data-theme="dark"] .btn-theme-toggle:hover {
    color: #E5B96A;
    border-color: #E5B96A;
}

/* ─── Hero section ──────────────────────────────── */
[data-theme="dark"] .lux-hero { background: #0e0b14; }
[data-theme="dark"] .hero-float-card {
    background: rgba(28,23,40,0.88);
    border-color: rgba(255,255,255,0.1);
    color: #f0ecf2;
}
[data-theme="dark"] .hero-float-card .text-muted,
[data-theme="dark"] .hero-float-card small { color: rgba(240,236,242,0.5) !important; }

/* ─── Trust bar ─────────────────────────────────── */
[data-theme="dark"] .trust-bar {
    background: #140f1c;
    border-color: rgba(255,255,255,0.08);
}

/* ─── Stats strip ───────────────────────────────── */
[data-theme="dark"] .stats-strip { background: #140f1c; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .stat-num { color: var(--gold-lt) !important; }
[data-theme="dark"] .stat-num.stat-gold { color: var(--gold) !important; }
[data-theme="dark"] .stat-lbl { color: rgba(240,236,242,0.5) !important; }
[data-theme="dark"] .divider-v { background: rgba(255,255,255,0.08) !important; }

/* ─── Section backgrounds ───────────────────────── */
[data-theme="dark"] .how-section     { background: #0e0b14; }
[data-theme="dark"] .skills-section  { background: #140f1c; }
[data-theme="dark"] .results-section { background: #0e0b14; }
[data-theme="dark"] .marquee-section { background: #140f1c; }
[data-theme="dark"] .faq-section     { background: #0e0b14; }

/* ─── Cards ─────────────────────────────────────── */
[data-theme="dark"] .step-card,
[data-theme="dark"] .mirror-card,
[data-theme="dark"] .quote-chip,
[data-theme="dark"] .lux-card {
    background: #1c1728 !important;
    border-color: rgba(255,255,255,0.09) !important;
}
[data-theme="dark"] .mirror-card-header { border-bottom-color: rgba(255,255,255,0.09) !important; }
[data-theme="dark"] .skill-pill {
    background: #231d33;
    border-color: rgba(255,255,255,0.09);
    color: rgba(240,236,242,0.65);
}

/* ─── Compare cards (before/after) ─────────────── */
[data-theme="dark"] .compare-card.before {
    background: linear-gradient(135deg, #1c1728, #231d33);
    border-color: rgba(255,255,255,0.09);
}

/* ─── Marquee fade edges ────────────────────────── */
[data-theme="dark"] .marquee-section::before { background: linear-gradient(90deg,#140f1c,transparent); }
[data-theme="dark"] .marquee-section::after  { background: linear-gradient(-90deg,#140f1c,transparent); }

/* ─── FAQ accordion ──────────────────────────────── */
[data-theme="dark"] .faq-item { border-color: rgba(255,255,255,0.09); }
[data-theme="dark"] .faq-q {
    background: #1c1728;
    color: #f0ecf2;
}
[data-theme="dark"] .faq-q:hover { background: #231d33; }
[data-theme="dark"] .faq-a { color: rgba(240,236,242,0.6); }

/* ─── General text hierarchy ─────────────────────── */
[data-theme="dark"] body.lux-body h1,
[data-theme="dark"] body.lux-body h2,
[data-theme="dark"] body.lux-body h3,
[data-theme="dark"] body.lux-body h4,
[data-theme="dark"] body.lux-body h5 { color: #f0ecf2; }
[data-theme="dark"] body.lux-body p  { color: #9d919d; }
[data-theme="dark"] body.lux-body .lead { color: rgba(240,236,242,0.75); }

/* ─── Generic containers (dashboard, sub-pages) ─── */
[data-theme="dark"] body.lux-body .container p,
[data-theme="dark"] body.lux-body .container small { color: rgba(240,236,242,0.55); }
[data-theme="dark"] body.lux-body .container h1,
[data-theme="dark"] body.lux-body .container h2,
[data-theme="dark"] body.lux-body .container h3,
[data-theme="dark"] body.lux-body .container h4,
[data-theme="dark"] body.lux-body .container h5 { color: #f0ecf2; }

/* ─── Forms ─────────────────────────────────────── */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #1c1728 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #f0ecf2 !important;
}
[data-theme="dark"] .form-control::placeholder { color: rgba(240,236,242,0.3) !important; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: #231d33 !important;
    border-color: rgba(201,146,58,0.4) !important;
    box-shadow: 0 0 0 3px rgba(201,146,58,0.12) !important;
    color: #f0ecf2 !important;
}

/* ─── Buttons ───────────────────────────────────── */
[data-theme="dark"] body.lux-body .btn-outline-light {
    color: rgba(240,236,242,0.8) !important;
    border-color: rgba(255,255,255,0.25) !important;
    background: transparent !important;
}
[data-theme="dark"] body.lux-body .btn-outline-light:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}

/* ─── Scrollbar ─────────────────────────────────── */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #140f1c; }

/* ─── Section overrides (section:not(...)) ───────── */
[data-theme="dark"] body.lux-body section:not(.stats-strip):not(.lux-cta):not(.footer-section) h1,
[data-theme="dark"] body.lux-body section:not(.stats-strip):not(.lux-cta):not(.footer-section) h2,
[data-theme="dark"] body.lux-body section:not(.stats-strip):not(.lux-cta):not(.footer-section) h3 {
    color: #f0ecf2;
}

/* ─── Futuristic card on dark lux ────────────────── */
[data-theme="dark"] body.lux-body .futuristic-card {
    background: #1c1728 !important;
    border-color: rgba(255,255,255,0.09) !important;
}
[data-theme="dark"] body.lux-body .futuristic-card .card-title { color: #f0ecf2 !important; }
[data-theme="dark"] body.lux-body .futuristic-card .card-text  { color: rgba(240,236,242,0.6) !important; }

/* ─── History items ─────────────────────────────── */
[data-theme="dark"] body.lux-body .history-item {
    background-color: #1c1728 !important;
    border-color: rgba(255,255,255,0.09) !important;
}

/* ════════════════════════════════════════════════════════════
   ADMIN PANEL — Force dark on ALL components regardless of theme
   Applies to every page that uses admin-header.php (body.admin-body)
   ════════════════════════════════════════════════════════════ */

/* Base */
body.admin-body {
    background: #100810 !important;
    color: #F3F0EE !important;
}

/* Cards */
body.admin-body .card,
body.admin-body .futuristic-card {
    background: #1a1228 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #F3F0EE !important;
}
body.admin-body .card-body  { background: transparent !important; }
body.admin-body .card-header,
body.admin-body .card-footer {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.admin-body .card-title,
body.admin-body .card-text  { color: #F3F0EE !important; }

/* Tables */
body.admin-body .table {
    color: #F3F0EE !important;
    border-color: rgba(255,255,255,0.08) !important;
}
body.admin-body .table thead th {
    background: rgba(107,26,42,0.3) !important;
    color: rgba(255,255,255,0.75) !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.admin-body .table tbody tr { background: transparent !important; }
body.admin-body .table tbody tr:hover { background: rgba(255,255,255,0.04) !important; }
body.admin-body .table td,
body.admin-body .table th  { border-color: rgba(255,255,255,0.07) !important; }
body.admin-body .table-dark,
body.admin-body .table-dark thead th { background: #1a1228 !important; }

/* Form controls */
body.admin-body .form-control,
body.admin-body .form-select,
body.admin-body .input-group-text {
    background: #1e1830 !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #F3F0EE !important;
}
body.admin-body .form-control::placeholder { color: rgba(255,255,255,0.3) !important; }
body.admin-body .form-control:focus,
body.admin-body .form-select:focus {
    border-color: rgba(201,146,58,0.5) !important;
    box-shadow: 0 0 0 .2rem rgba(201,146,58,0.15) !important;
    background: #1e1830 !important;
}
body.admin-body .form-label { color: rgba(255,255,255,0.65) !important; }
body.admin-body .form-text,
body.admin-body small.text-muted { color: rgba(255,255,255,0.4) !important; }
body.admin-body .form-check-label { color: rgba(255,255,255,0.7) !important; }

/* Modals */
body.admin-body .modal-content {
    background: #14101e !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: #F3F0EE !important;
}
body.admin-body .modal-header,
body.admin-body .modal-footer { border-color: rgba(255,255,255,0.1) !important; }
body.admin-body .modal-title  { color: #fff !important; }
body.admin-body .btn-close     { filter: invert(1) grayscale(1) !important; }

/* Alerts */
body.admin-body .alert-success {
    background: rgba(34,197,94,0.12) !important;
    border-color: rgba(34,197,94,0.3) !important;
    color: #22c55e !important;
}
body.admin-body .alert-danger {
    background: rgba(239,68,68,0.12) !important;
    border-color: rgba(239,68,68,0.3) !important;
    color: #ef4444 !important;
}
body.admin-body .alert-warning {
    background: rgba(245,158,11,0.12) !important;
    border-color: rgba(245,158,11,0.3) !important;
    color: #f59e0b !important;
}
body.admin-body .alert-info {
    background: rgba(59,130,246,0.12) !important;
    border-color: rgba(59,130,246,0.3) !important;
    color: #60a5fa !important;
}

/* Dropdowns */
body.admin-body .dropdown-menu {
    background: #1e1830 !important;
    border-color: rgba(255,255,255,0.12) !important;
}
body.admin-body .dropdown-item { color: rgba(255,255,255,0.75) !important; }
body.admin-body .dropdown-item:hover,
body.admin-body .dropdown-item:focus {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}
body.admin-body .dropdown-divider { border-color: rgba(255,255,255,0.1) !important; }

/* List groups */
body.admin-body .list-group-item {
    background: #1a1228 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #F3F0EE !important;
}

/* Pagination */
body.admin-body .page-link {
    background: #1e1830 !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.7) !important;
}
body.admin-body .page-item.active .page-link {
    background: #6B1A2A !important;
    border-color: #C9923A !important;
    color: #fff !important;
}

/* Nav tabs */
body.admin-body .nav-tabs { border-color: rgba(255,255,255,0.1) !important; }
body.admin-body .nav-tabs .nav-link {
    color: rgba(255,255,255,0.55) !important;
    border-color: transparent !important;
}
body.admin-body .nav-tabs .nav-link.active {
    background: #1e1830 !important;
    border-color: rgba(255,255,255,0.1) rgba(255,255,255,0.1) transparent !important;
    color: #fff !important;
}

/* Misc text helpers */
body.admin-body .text-dark  { color: rgba(255,255,255,0.9) !important; }
body.admin-body .text-muted { color: rgba(255,255,255,0.4) !important; }
body.admin-body h1, body.admin-body h2, body.admin-body h3,
body.admin-body h4, body.admin-body h5, body.admin-body h6 { color: #fff; }
body.admin-body p { color: rgba(255,255,255,0.7); }

/* Borders */
body.admin-body .border,
body.admin-body .border-secondary { border-color: rgba(255,255,255,0.12) !important; }
body.admin-body .border-top    { border-top-color:    rgba(255,255,255,0.1) !important; }
body.admin-body .border-bottom { border-bottom-color: rgba(255,255,255,0.1) !important; }

/* Scrollbar in admin */
body.admin-body ::-webkit-scrollbar       { width: 6px; height: 6px; }
body.admin-body ::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
body.admin-body ::-webkit-scrollbar-thumb { background: rgba(201,146,58,0.35); border-radius: 3px; }
body.admin-body ::-webkit-scrollbar-thumb:hover { background: rgba(201,146,58,0.6); }