/* ==========================================================================
   Vogue / Bloomberg Executive Elite Dark Theme (Front Panel Production Final)
   ========================================================================== */

:root {
    --bs-navy: #071325;
    --bs-navy-light: #0F2240;
    --bs-cream: #050d1a;
    --bs-text-main: #e2e8f0;
    --bs-text-muted: #94a3b8;
    --bs-white: #0F2240;
    --bs-body-bg: #050d1a;
    --bs-body-color: #e2e8f0;
    --bs-light: #0F2240;
    --bs-gold: #D4AF37;
}

/* Master Canvas & Viewport Reset */
html, body, .master-page-wrapper, #cucheaaMasterWrapper, #app, .site-main, .main-content, .page-wrapper, .main-wrapper, .content-wrapper {
    background-color: #050d1a !important;
    background: #050d1a !important;
    color: #e2e8f0 !important;
    margin: 0;
}

/* Eradicate Light Page Wrappers & Ambient Outer Sections */
.homepage-luxury-wrapper,
.bg-light,
.bg-cream,
.py-5[style*="background"],
.py-4[style*="background"],
.py-3[style*="background"],
div[style*="background-color: #f4f6f9"],
div[style*="background: #f4f6f9"],
div[style*="background-color: rgb(244, 246, 249)"],
div[style*="background-color: #f8f9fa"],
div[style*="background: #f8f9fa"] {
    background: #050d1a !important;
    background-color: #050d1a !important;
    color: #e2e8f0 !important;
}

/* Master Header, Topbar, Ticker & Navbar Cohesion */
.topbar {
    background-color: #071325 !important;
    color: #cbd5e1 !important;
}

.site-header {
    background: #0b1c3c !important;
    background-color: #0b1c3c !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    color: #ffffff !important;
}

.ticker-wrap {
    background: #071325 !important;
    background-color: #071325 !important;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
}

.elite-navbar {
    background: #0b1c3c !important;
    background-color: #0b1c3c !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.elite-navbar .navbar-brand,
.elite-navbar .nav-link {
    color: #e2e8f0 !important;
}

.elite-navbar .nav-link:hover,
.elite-navbar .nav-link:focus,
.elite-navbar .nav-link.active,
.elite-navbar .dropdown:hover > .nav-link {
    color: #D4AF37 !important;
    background: rgba(212, 175, 55, 0.12) !important;
}

/* Eradicate White Background Containers, Master Box Panels & Glass Cards */
.bg-white,
.section-box,
.card,
.ultra-premium-card,
.modal-content,
.dropdown-menu,
.accordion-item,
.list-group-item,
.offcanvas,
.popover,
.toast,
.table-responsive,
.container > .bg-white,
.container-fluid > .bg-white {
    background: #0F2240 !important;
    background-color: #0F2240 !important;
    color: #e2e8f0 !important;
    border-color: rgba(212, 175, 55, 0.22) !important;
}

/* Eradicate ALL Hardcoded Inline White/Light Background Styles Across All 50+ Blade Views */
[style*="background: #fff"],
[style*="background-color: #fff"],
[style*="background: white"],
[style*="background-color: white"],
[style*="background: #ffffff"],
[style*="background-color: #ffffff"],
[style*="background: rgb(255, 255, 255)"],
[style*="background-color: rgb(255, 255, 255)"],
[style*="background: rgba(255, 255, 255"],
[style*="background: rgba(255,255,255"],
[style*="background-color: rgba(255, 255, 255"],
[style*="background-color: rgba(255,255,255"],
[style*="background: linear-gradient(145deg, #ffffff"],
[style*="background: linear-gradient(135deg, #ffffff"],
[style*="background: linear-gradient(180deg, #ffffff"],
[style*="background: linear-gradient(to right, #ffffff"],
[style*="background: linear-gradient(145deg, white"],
[style*="background: linear-gradient(180deg, rgba(11,28,60"],
[style*="background: rgba(11,28,60,0.025)"],
[style*="background: rgba(11,28,60,0.04)"] {
    background: #0F2240 !important;
    background-color: #0F2240 !important;
    color: #e2e8f0 !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
}

/* Explicitly Preserve System Alerts & Status Badges */
.alert-success {
    background: linear-gradient(135deg, #0f5132, #198754) !important;
    color: #ffffff !important;
}
.alert-danger {
    background: linear-gradient(135deg, #842029, #dc3545) !important;
    color: #ffffff !important;
}
.alert-warning {
    background: linear-gradient(135deg, #664d03, #ffc107) !important;
    color: #ffffff !important;
}
.alert-info {
    background: linear-gradient(135deg, #055160, #0dcaf0) !important;
    color: #ffffff !important;
}

/* Elite Frame Icon Badges */
.elite-frame[style*="background"] {
    background: #071325 !important;
    border-color: #D4AF37 !important;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar-brand,
[style*="color: var(--bs-navy)"],
[style*="color: #0b1c3c"],
[style*="color: #0a192f"],
.text-navy,
.text-dark {
    color: #ffffff !important;
}

/* Gold Accents Pop */
.text-gold,
[style*="color: var(--bs-gold)"],
[style*="color: #ffd700"],
[style*="color: #d4af37"] {
    color: #D4AF37 !important;
}

/* Subtitles and Body Paragraphs */
p, .small, small, li, td, th {
    color: #cbd5e1 !important;
}

.text-muted {
    color: #94a3b8 !important;
}

/* Borders & Dividers */
hr, .border, .border-top, .border-bottom, .border-start, .border-end, .border-light {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Tables & Global Table Row Hover Normalization (#8 on hover on table row) */
.table,
table {
    color: #e2e8f0 !important;
    background-color: #0F2240 !important;
    border-color: rgba(212, 175, 55, 0.22) !important;
    --bs-table-bg: #0F2240 !important;
    --bs-table-striped-bg: #142d54 !important;
    --bs-table-hover-bg: #1a3868 !important;
    --bs-table-border-color: rgba(212, 175, 55, 0.18) !important;
}

.table > :not(caption) > * > *,
table > :not(caption) > * > * {
    background-color: transparent !important;
    color: inherit !important;
    border-bottom-color: rgba(212, 175, 55, 0.18) !important;
}

.table thead th,
table thead th {
    background: #071325 !important;
    background-color: #071325 !important;
    color: #D4AF37 !important;
    border-bottom: 2px solid #D4AF37 !important;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 1px;
}

.table tbody tr,
table tbody tr {
    transition: all 0.25s ease !important;
}

.table tbody tr:hover,
.table-hover tbody tr:hover,
table tbody tr:hover {
    background-color: #1a3868 !important;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(26, 56, 104, 0.95)) !important;
    box-shadow: inset 4px 0 0 #D4AF37 !important;
}

.table tbody tr:hover > td,
.table tbody tr:hover > th,
table tbody tr:hover > td,
table tbody tr:hover > th {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Form Inputs */
.form-control, .form-select {
    background-color: #050d1a !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
    color: #ffffff !important;
}
.form-control:focus, .form-select:focus {
    background-color: #08172c !important;
    border-color: #D4AF37 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
}

/* Filter Navigation Pills (Gallery / Reunion) */
.gallery-filters .nav-link,
.nav-pills .nav-link {
    color: #cbd5e1 !important;
    background: transparent !important;
}
.gallery-filters .nav-link:hover,
.nav-pills .nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}
.gallery-filters .nav-link.active,
.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #D4AF37, #b8860b) !important;
    color: #050d1a !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

/* Footer Overrides */
.site-footer, footer {
    background-color: #040a14 !important;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
}

/* ==========================================================================
   UNIVERSAL EXACT 1PX HAIRLINE SPACING ENFORCER (ZERO CHUNKY GAPS)
   ========================================================================== */
#cucheaaMasterWrapper > .container,
#cucheaaMasterWrapper > .main-content > .homepage-luxury-wrapper,
#cucheaaMasterWrapper > .main-content > .homepage-luxury-wrapper > .container,
.ticker-wrap,
.site-header,
.elite-navbar,
.footer-box,
.copyright-area,
.subpage-master-card {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
}

#cucheaaMasterWrapper > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.ticker-wrap {
    margin: 1px auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ==========================================================================
   SUBPAGE MASTER CARD PANEL & INNER CARD CONTRAST COHESION
   ========================================================================== */
.subpage-master-card {
    background: #0F2240 !important;
    background-color: #0F2240 !important;
    border-color: rgba(212, 175, 55, 0.22) !important;
    color: #e2e8f0 !important;
}

.subpage-master-card .elite-card,
.subpage-master-card .card {
    background: #0b1c3c !important;
    background-color: #0b1c3c !important;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
    color: #e2e8f0 !important;
}

.subpage-master-card .card-title a,
.subpage-master-card h5 a,
.subpage-master-card .category-link {
    color: #ffffff !important;
}

.subpage-master-card .card-title a:hover,
.subpage-master-card h5 a:hover,
.subpage-master-card .category-link:hover {
    color: #D4AF37 !important;
}

.subpage-master-card .category-link .badge {
    background: #071325 !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.custom-pagination .page-link {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   EXECUTIVE ELITE SOCIAL ICONS COHESION (DARK MODE)
   ========================================================================== */
.sf-btn, .social-icon, .social-float a, .footer-box .sf-btn, .site-header .sf-btn {
    background: #0b1c3c !important;
    background-color: #0b1c3c !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.sf-btn i, .social-icon i, .social-float a i {
    color: #D4AF37 !important;
}

.sf-btn:hover, .social-icon:hover, .social-float a:hover {
    background: #D4AF37 !important;
    background-color: #D4AF37 !important;
    color: #071325 !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}

.sf-btn:hover i, .social-icon:hover i, .social-float a:hover i {
    color: #071325 !important;
}

/* Standalone Social Icons in Topbar / Footer / Cards */
.topbar a i, .footer a i:not(.sf-btn i) {
    color: #D4AF37 !important;
    transition: color 0.3s ease;
}

.topbar a:hover i, .footer a:hover i:not(.sf-btn i) {
    color: #ffffff !important;
}

/* ==========================================================================
   BULLETPROOF INPUT BOXES, TEXTAREAS & INPUT GROUPS (DARK MODE)
   ========================================================================== */
input, textarea, select, .form-control, .form-select,
input[style*="background"], textarea[style*="background"], select[style*="background"],
.form-control[style*="background"], .form-select[style*="background"],
.modern-input {
    background: #050d1a !important;
    background-color: #050d1a !important;
    color: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

input::placeholder, textarea::placeholder, .form-control::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

input:focus, textarea:focus, select:focus, .form-control:focus, .form-select:focus,
.modern-input:focus {
    background: #08172c !important;
    background-color: #08172c !important;
    color: #ffffff !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
    outline: none !important;
}

.input-group-text {
    background: #0b1c3c !important;
    background-color: #0b1c3c !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

.input-group {
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 50px !important;
    overflow: hidden !important;
    background: #050d1a !important;
}

.input-group .form-control, .input-group .input-group-text {
    border: none !important;
}

/* ==========================================================================
   EXECUTIVE ELITE ALL BUTTONS WITH TEXT NORMALIZATION (DARK MODE)
   ========================================================================== */
/* Standard Primary / Navy Buttons & Form Submits */
.btn-primary, .btn-navy, .btn-elite, .btn-elite-primary, .btn-dark,
button[type="submit"]:not([style*="var(--bs-gold)"]):not([style*="#5f259f"]):not([style*="#00baf2"]),
.btn[style*="background: var(--bs-navy)"],
.btn[style*="background-color: var(--bs-navy)"],
.btn[style*="background: #0b1c3c"] {
    background: linear-gradient(135deg, #0b1c3c 0%, #142d54 100%) !important;
    background-color: #0b1c3c !important;
    color: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

.btn-primary:hover, .btn-navy:hover, .btn-elite:hover, .btn-elite-primary:hover, .btn-dark:hover,
button[type="submit"]:not([style*="var(--bs-gold)"]):hover,
.btn[style*="background: var(--bs-navy)"]:hover {
    background: linear-gradient(135deg, #142d54 0%, #1e427a 100%) !important;
    background-color: #142d54 !important;
    color: #D4AF37 !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35) !important;
    transform: translateY(-2px);
}

/* Gold CTA Buttons (e.g. Donate CTA, Fellowship CTA) */
.btn-gold, .btn-warning,
.btn[style*="background: var(--bs-gold)"],
.btn[style*="background-color: var(--bs-gold)"],
button[style*="background: var(--bs-gold)"] {
    background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 100%) !important;
    background-color: #D4AF37 !important;
    color: #071325 !important;
    font-weight: 700 !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
    text-shadow: none !important;
}

.btn-gold:hover, .btn-warning:hover,
.btn[style*="background: var(--bs-gold)"]:hover,
button[style*="background: var(--bs-gold)"]:hover {
    background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%) !important;
    background-color: #F3E5AB !important;
    color: #000000 !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6) !important;
    transform: translateY(-2px);
}

/* Outline Buttons & Tier Selection Cards (.btn-outline-navy, .btn-outline-primary) */
.btn-outline-navy, .btn-outline-primary, .btn-outline-dark, .btn-outline-secondary,
.btn[style*="border-color: var(--bs-navy)"],
.btn-check + .btn-outline-navy {
    background: transparent !important;
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
}

.btn-outline-navy:hover, .btn-outline-primary:hover, .btn-outline-dark:hover, .btn-outline-secondary:hover,
.btn[style*="border-color: var(--bs-navy)"]:hover,
.btn-check:checked + .btn-outline-navy {
    background: rgba(212, 175, 55, 0.15) !important;
    background-color: rgba(212, 175, 55, 0.15) !important;
    color: #D4AF37 !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
}

/* Light / White Secondary Buttons (e.g. reload captcha, cancel) */
.btn-light, .btn-white, .btn[style*="background: #fff"], .btn[style*="background: white"] {
    background: #0F2240 !important;
    background-color: #0F2240 !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

.btn-light:hover, .btn-white:hover {
    background: #142d54 !important;
    color: #ffffff !important;
}

/* Payment Gateway Specific Buttons Preserve Brand Colors */
button[value*="pay_phonepe"] { background: #5f259f !important; color: #ffffff !important; }
button[value*="pay_upi"] { background: #00baf2 !important; color: #ffffff !important; }

/* ==========================================================================
   EXECUTIVE HERO-SUBSECTION COHESION: LEADERSHIP DESK & DONATE CTA (DARK MODE)
   ========================================================================== */
/* 1. Twin Executive Quote Cards (President & Secretary Desk) */
.executive-quote-card,
.executive-quote-card[style*="background"] {
    background: linear-gradient(135deg, #071325 0%, #0c1f42 100%) !important;
    background-color: #071325 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
}

.executive-quote-card h5 {
    color: #D4AF37 !important;
    font-weight: 700 !important;
}

.executive-quote-card p {
    color: #e2e8f0 !important;
    opacity: 0.95 !important;
}

.executive-quote-card h6 {
    color: #ffffff !important;
}

.executive-quote-card small {
    color: #94a3b8 !important;
}

.executive-quote-card .fa-quote-right {
    color: rgba(212, 175, 55, 0.07) !important;
}

.executive-quote-card .avatar-ring {
    background: #D4AF37 !important;
    color: #071325 !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4) !important;
}

/* 2. Fellowship & Donate CTA Showcase Container & Benefactor Showcase */
div[style*="radial-gradient(circle at 10% 20%"] {
    background: radial-gradient(circle at 10% 20%, #0a1b3a 0%, #040c1a 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

div[style*="radial-gradient(circle at 10% 20%"] h3 {
    color: #ffffff !important;
}

div[style*="radial-gradient(circle at 10% 20%"] > .card-body > .row > div:first-child p {
    color: #e2e8f0 !important;
    font-size: 1rem !important;
}

/* Frosted Recent Benefactors Card Inside Donate CTA */
div[style*="radial-gradient(circle at 10% 20%"] .card[style*="backdrop-filter"] {
    background: rgba(5, 13, 26, 0.65) !important;
    background-color: rgba(5, 13, 26, 0.65) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

div[style*="radial-gradient(circle at 10% 20%"] .sponsor-item,
div[style*="radial-gradient(circle at 10% 20%"] li[style*="background"] {
    background: rgba(11, 28, 60, 0.5) !important;
    background-color: rgba(11, 28, 60, 0.5) !important;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
}

div[style*="radial-gradient(circle at 10% 20%"] .sponsor-item:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: #D4AF37 !important;
}

div[style*="radial-gradient(circle at 10% 20%"] .sponsor-item h6 {
    color: #ffffff !important;
}

div[style*="radial-gradient(circle at 10% 20%"] .sponsor-item small {
    color: #D4AF37 !important;
}

/* ==========================================================================
   PORTAL CARDS BELOW HERO & GLOBAL LINK TEXT PERFECTION (DARK MODE)
   ========================================================================== */
/* 1. Hero Portal Cards (.premium-feature-card including Secretary & Donate Now) */
.premium-feature-card,
.premium-feature-card.border-gold-glow,
.premium-feature-card.bg-gold,
div[class*="premium-feature-card"] {
    background: #071325 !important;
    background-color: #071325 !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}

.premium-feature-card:hover {
    background: #0b1c3c !important;
    background-color: #0b1c3c !important;
    border-color: #D4AF37 !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3) !important;
}

.premium-feature-card .feature-title,
.premium-feature-card .feature-title.text-navy,
.premium-feature-card span[class*="feature-title"] {
    color: #ffffff !important;
}

.premium-feature-card:hover .feature-title {
    color: #D4AF37 !important;
}

.premium-feature-card .feature-subtitle,
.premium-feature-card .feature-subtitle.text-navy,
.premium-feature-card .feature-subtitle.text-gold,
.premium-feature-card span[class*="feature-subtitle"] {
    color: #D4AF37 !important;
    opacity: 0.9 !important;
}

.premium-feature-card .feature-icon-box {
    background: #0b1c3c !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.premium-feature-card .feature-icon-box i {
    color: #D4AF37 !important;
}

/* 2. Global Link Text Cohesion (#5 link text) */
a:not(.btn):not(.sf-btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.page-link):not(.social-icon):not(.badge) {
    color: #D4AF37 !important;
    text-decoration: none;
    transition: color 0.25s ease-in-out;
}

a:not(.btn):not(.sf-btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.page-link):not(.social-icon):not(.badge):hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Ensure links inside headings keep heading contrast or gold accent */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit !important;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: #D4AF37 !important;
}

/* 3. Badges & Pill Category Tags Normalization */
.badge,
a.badge {
    text-decoration: none !important;
}

.badge[style*="background-color: var(--bs-gold)"],
.badge[style*="background: var(--bs-gold)"],
.badge.bg-gold {
    background: #D4AF37 !important;
    background-color: #D4AF37 !important;
    color: #071325 !important;
}

a.badge:hover {
    opacity: 0.88;
    text-decoration: none !important;
    color: #071325 !important;
}

.badge.bg-light,
.badge.bg-white,
.badge[style*="background: rgba(255,255,255"] {
    background: #0f2240 !important;
    background-color: #0f2240 !important;
    color: #ffffff !important;
    border: 1px solid rgba(212,175,55,0.3) !important;
}

/* ==========================================================================
   ALL COURSES PAGE OVERRIDES (/all-courses) & GLOBAL NAVY HEADINGS
   ========================================================================== */
html body .master-page-wrapper .elite-history-card,
div.card.elite-history-card {
    background: #071325 !important;
    background-color: #071325 !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
}

.elite-history-card h3 {
    color: #ffffff !important;
}

html body .elite-tree .tree-node:not(.root-node) {
    background: #0b1c3c !important;
    background-color: #0b1c3c !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-bottom: 3px solid #D4AF37 !important;
}

html body .elite-tree a.tree-node:hover {
    background: linear-gradient(135deg, #D4AF37, #b8962e) !important;
    color: #071325 !important;
    border-color: #ffffff !important;
}

html body .elite-tree .root-node {
    background: linear-gradient(135deg, #D4AF37, #b8962e) !important;
    color: #071325 !important;
    border-color: #ffffff !important;
    font-weight: 700 !important;
}

/* Global Rescue: Convert Hardcoded Inline var(--bs-navy) Headings/Text to Pure White in Dark Mode */
[style*="color: var(--bs-navy)"] {
    color: #ffffff !important;
}

/* ==========================================================================
   PHD SCHOLARS PAGE OVERRIDES (/phd-scholar)
   ========================================================================== */
html body .master-page-wrapper .elite-scholar-card,
div.card.elite-scholar-card {
    background: #071325 !important;
    background-color: #071325 !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
}

html body .master-page-wrapper .elite-scholar-card:hover {
    background: #0a1830 !important;
    border-color: #D4AF37 !important;
}

.elite-scholar-card h5.elite-scholar-name {
    color: #ffffff !important;
}

html body .master-page-wrapper .elite-info-box,
div.elite-info-box {
    background: rgba(15, 34, 64, 0.75) !important;
    background-color: rgba(15, 34, 64, 0.75) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
}

.elite-info-box p,
.elite-info-box .text-dark {
    color: #e2e8f0 !important;
}

.elite-info-box span[style*="color: var(--bs-navy)"] {
    color: #D4AF37 !important;
}

/* ==========================================================================
   FELLOWSHIP FUNDS PAGES OVERRIDES (*-fellowship) (#9 all *-fellowship)
   ========================================================================== */
/* Overview page cards (/alumni-fellowship) */
html body .master-page-wrapper .premium-fellowship-card,
div.card.premium-fellowship-card {
    background: #071325 !important;
    background-color: #071325 !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
}

.premium-fellowship-card .fellowship-img-wrapper {
    background: #050d1a !important;
    background-color: #050d1a !important;
}

/* Individual fellowship pages (.ultra-premium-card) */
html body .master-page-wrapper .ultra-premium-card,
div.card.ultra-premium-card {
    background: #071325 !important;
    background-color: #071325 !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Fix hardcoded inline text colors (#4a5568, #2d3748) */
.ultra-premium-card [style*="color: #4a5568"],
.ultra-premium-card [style*="color: #2d3748"],
.ultra-premium-card [style*="color: #4A5568"],
.ultra-premium-card [style*="color: #2D3748"] {
    color: #e2e8f0 !important;
}

/* Fix icon squares */
.ultra-premium-card .icon-square {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #D4AF37 !important;
}

.ultra-premium-card .icon-square i {
    color: #D4AF37 !important;
}

/* Fix action box on utilization profile */
.ultra-premium-card .action-box {
    background: #0b1c3c !important;
    background-color: #0b1c3c !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

/* Fix outline navy buttons site-wide on dark mode cards */
.ultra-premium-card .btn-outline-navy,
.premium-fellowship-card .btn-outline-navy,
a.btn-outline-navy[style*="var(--bs-navy)"] {
    color: #D4AF37 !important;
    border-color: #D4AF37 !important;
}

.ultra-premium-card .btn-outline-navy:hover,
.premium-fellowship-card .btn-outline-navy:hover,
a.btn-outline-navy[style*="var(--bs-navy)"]:hover {
    background: #D4AF37 !important;
    color: #071325 !important;
}

/* Fix donor table hover & row contrast */
html body .premium-donor-table tr.donor-row:hover,
tr.donor-row:hover {
    background-color: #1a3868 !important;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(26, 56, 104, 0.95)) !important;
    box-shadow: inset 4px 0 0 #D4AF37 !important;
}

tr.donor-row:hover td,
tr.donor-row:hover span {
    color: #ffffff !important;
}

tr.donor-row span[style*="color: #198754"] {
    color: #2ed573 !important;
}

tr.donor-row .badge.bg-white,
tr.donor-row .badge.text-navy {
    background: #0f2240 !important;
    background-color: #0f2240 !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

/* ==========================================================================
   FELICITATION & AWARDS PAGES OVERRIDES (*-award, felicitation) (#10)
   ========================================================================== */
/* Main wrapper container card */
html body .master-page-wrapper div[style*="background: rgba(255, 255, 255, 0.95)"],
html body .master-page-wrapper div.card[style*="backdrop-filter: blur(15px)"] {
    background: #071325 !important;
    background-color: #071325 !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}

/* Individual alumnus/teacher/staff list item cards */
html body .master-page-wrapper div[style*="background: rgba(248, 249, 250, 0.7)"],
html body .master-page-wrapper div[style*="background: rgba(248,249,250,0.7)"] {
    background: #0b1c3c !important;
    background-color: #0b1c3c !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Fix text colors inside the cards */
html body .master-page-wrapper div[style*="background: rgba(248, 249, 250, 0.7)"] .text-secondary,
html body .master-page-wrapper div[style*="background: rgba(248, 249, 250, 0.7)"] p,
html body .master-page-wrapper div[style*="background: rgba(248, 249, 250, 0.7)"] div {
    color: #e2e8f0 !important;
}

/* Load more button */
#load-more-btn {
    background: #0b1c3c !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
}

#load-more-btn:hover {
    background: #D4AF37 !important;
    color: #071325 !important;
}

/* STICKY ACTION DESK BAR DARK MODE OVERRIDES (#12) */
html body .master-page-wrapper div.sticky-top[style*='background: rgba(248,249,250,0.95)'],
html body .master-page-wrapper div.sticky-top.bg-light {
    background: rgba(11, 28, 60, 0.95) !important;
    background-color: #0b1c3c !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(16px) !important;
}

html body .master-page-wrapper div.sticky-top span[style*='color: var(--bs-navy)'],
html body .master-page-wrapper div.sticky-top .text-navy {
    color: #f8f9fa !important;
}

html body .master-page-wrapper div.sticky-top .badge[style*='background: var(--bs-navy)'],
html body .master-page-wrapper div.sticky-top .badge.bg-navy {
    background: #071325 !important;
    background-color: #071325 !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* ABSOLUTE FORCE TEXT VISIBILITY ON STICKY DESK BARS (#12) */
.sticky-top, .sticky-top *, .sticky-top span, .sticky-top div {
    color: #ffffff !important;
}
.sticky-top .badge, .sticky-top .badge * {
    color: #D4AF37 !important;
    background: #071325 !important;
}

/* ==========================================================================
   ASSOCIATION & SECRETARY DESK ULTRA-PREMIUM DARK MODE (#21)
   ========================================================================== */
html body .master-page-wrapper .secretary-letter-card,
.secretary-letter-card {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
}

.secretary-letter-card .salutation-text,
.secretary-letter-card .honoree-name,
.secretary-letter-card .signoff-name,
.secretary-letter-card h2,
.secretary-letter-card h3,
.secretary-letter-card h4,
.secretary-letter-card h5,
.secretary-letter-card strong {
    color: #f8fafc !important;
}

.secretary-letter-card .letter-body,
.secretary-letter-card .letter-body p,
.secretary-letter-card .plaque-desc {
    color: #cbd5e1 !important;
}

.secretary-letter-card .letter-lead {
    color: #f1f5f9 !important;
}

.secretary-letter-card .highlight-plaque {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
}
.secretary-letter-card .highlight-plaque .plaque-title {
    color: #f8fafc !important;
}

.secretary-letter-card .letter-footer {
    background: rgba(7, 19, 37, 0.85) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
    color: #94a3b8 !important;
}

/* Member Discussion & Feedback Desk */
html body .master-page-wrapper .feedback-showcase,
.feedback-showcase {
    background: rgba(11, 23, 43, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6) !important;
}
.feedback-showcase .feedback-body {
    background: transparent !important;
}
.feedback-showcase .elite-label {
    color: #cbd5e1 !important;
}
.feedback-showcase .elite-input-group .input-group-text {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #cbd5e1 !important;
}
.feedback-showcase .elite-input,
.feedback-showcase textarea,
.feedback-showcase input {
    background: rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #f8fafc !important;
}
.feedback-showcase .elite-input:focus,
.feedback-showcase textarea:focus,
.feedback-showcase input:focus {
    border-color: #D4AF37 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2) !important;
}
.feedback-showcase .captcha-box {
    border-color: rgba(255, 255, 255, 0.18) !important;
}
.feedback-showcase .btn-captcha {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #cbd5e1 !important;
}
.feedback-showcase .btn-elite-reset {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #cbd5e1 !important;
}
.feedback-showcase .btn-elite-reset:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* First & Present Executive Committees Dark Mode */
.elite-member-card {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.elite-member-card h4,
.elite-member-card h5,
.elite-member-card h6,
.elite-member-card .card-title,
.elite-member-card strong {
    color: #f8fafc !important;
}
.elite-member-card p,
.elite-member-card .small {
    color: #cbd5e1 !important;
}
.member-img-wrapper {
    background: #071325 !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
}
.card[style*="background: rgba(255,255,255"] {
    background: rgba(15, 23, 42, 0.88) !important;
    color: #f8fafc !important;
}
.card[style*="background: rgba(255,255,255"] h4 {
    color: #f8fafc !important;
}

/* ==========================================================================
   GLOBAL CONTACT HELPDESK ULTRA-PREMIUM DARK MODE (#22)
   ========================================================================== */
html body .master-page-wrapper .contact-form-card,
html body .master-page-wrapper .contact-info-card,
.contact-form-card,
.contact-info-card {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
}

.contact-form-card .form-header-title,
.contact-info-card .info-header-title,
.contact-info-card .info-block-title,
.contact-info-card .heritage-title,
.contact-form-card .success-title {
    color: #f8fafc !important;
}

.contact-info-card p,
.contact-info-card .text-muted,
.contact-info-card .small {
    color: #cbd5e1 !important;
}

.contact-info-card .contact-link {
    color: #f8fafc !important;
}
.contact-info-card .contact-link:hover {
    color: #D4AF37 !important;
}

.contact-form-card .elite-label {
    color: #cbd5e1 !important;
}

.contact-form-card .elite-input-group .input-group-text {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #cbd5e1 !important;
}

.contact-form-card .contact-input,
.contact-form-card textarea,
.contact-form-card input {
    background: rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #f8fafc !important;
}

.contact-form-card .contact-input:focus,
.contact-form-card textarea:focus,
.contact-form-card input:focus {
    border-color: #D4AF37 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2) !important;
}

.contact-form-card .captcha-img-container {
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: #0f172a !important;
    height: 64px !important;
    width: 270px !important;
    min-width: 250px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.contact-form-card .captcha-img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
}

.contact-form-card .btn-reload-captcha {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #cbd5e1 !important;
}

.contact-form-card .btn-contact-reset {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #cbd5e1 !important;
}
.contact-form-card .btn-contact-reset:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.contact-info-card .heritage-plaque {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
}

/* ==========================================================================
   23. CONGRATS HALL OF FAME DARK MODE OVERRIDES
   ========================================================================== */
.hall-card {
    background: #0f172a !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}
.hall-card:hover {
    border-color: #D4AF37 !important;
    box-shadow: 0 20px 55px rgba(212, 175, 55, 0.3) !important;
}
.hall-card h4, .hall-card h5, .text-navy {
    color: #ffffff !important;
}
.hall-card p {
    color: #94a3b8 !important;
}

/* ==========================================================================
   24. SYMPOSIUM 2024 PROCEEDINGS DARK MODE OVERRIDES
   ========================================================================== */
.symp-doc-card {
    background: #0f172a !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}
.doc-toolbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-bottom-color: rgba(212, 175, 55, 0.3) !important;
}
.doc-parchment-frame {
    background: #0b1329 !important;
}
.symp-page-img {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7) !important;
}
.symp-page-img:hover {
    border-color: #D4AF37 !important;
    box-shadow: 0 25px 65px rgba(212, 175, 55, 0.3) !important;
}
.doc-header-title {
    color: #ffffff !important;
}

/* ==========================================================================
   25. FACULTY PROFILE INDIVIDUAL PAGE DARK MODE OVERRIDES
   ========================================================================== */
.faculty-wrapper-bg {
    background-color: #050d1a !important;
}
.premium-header {
    background: linear-gradient(135deg, #071325 0%, #0F2240 100%) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}
.premium-avatar {
    border: 6px solid #0F2240 !important;
    background: #0F2240 !important;
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.4) !important;
}
.premium-card {
    background: #0b1c3c !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    color: #e2e8f0 !important;
}
.premium-title {
    color: #ffffff !important;
}
.contact-item {
    background: #071325 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.contact-item:hover {
    background: #0f2240 !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}
.contact-icon {
    background: #0b1c3c !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}
.contact-text {
    color: #f8fafc !important;
}
.contact-label {
    color: #94a3b8 !important;
}
.premium-pill {
    background: #071325 !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    color: #e2e8f0 !important;
}
.premium-pill:hover {
    background: #D4AF37 !important;
    color: #050d1a !important;
    border-color: #D4AF37 !important;
}
.timeline-title {
    color: #f8fafc !important;
}
.timeline-subtitle {
    color: #94a3b8 !important;
}
.timeline-item::before {
    background: #0b1c3c !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4) !important;
}
.premium-timeline::before {
    background: linear-gradient(to bottom, #D4AF37, transparent) !important;
}
.premium-html-content {
    color: #cbd5e1 !important;
}
.premium-html-content h1,
.premium-html-content h2,
.premium-html-content h3,
.premium-html-content h4,
.premium-html-content h5 {
    color: #ffffff !important;
}
.premium-html-content h1, .premium-html-content h3 {
    color: #D4AF37 !important;
}
.premium-html-content h2 {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   26. SEMESTER ROSTER & STUDENT SECTION DARK MODE OVERRIDES
   ========================================================================== */
[data-bs-theme="dark"] .elite-glass-panel {
    background: #0b1c3c !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .elite-student-card {
    background: #071325 !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}
[data-bs-theme="dark"] .elite-student-card:hover {
    border-color: #D4AF37 !important;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2) !important;
}
[data-bs-theme="dark"] .elite-student-name {
    color: #ffffff !important;
}
[data-bs-theme="dark"] .elite-search-input {
    background-color: #050d1a !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .elite-search-input::placeholder {
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] .student-roll-badge {
    background: #0b1c3c !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

/* ==========================================================================
   27. FELLOWSHIP APPLICATION PAGE DARK MODE OVERRIDES
   ========================================================================== */
[data-bs-theme="dark"] .apply-glass-panel {
    background: #0b1c3c !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .apply-doc-card {
    background: #071325 !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}
[data-bs-theme="dark"] .apply-doc-card:hover {
    border-color: #D4AF37 !important;
    background: #0a1931 !important;
}
[data-bs-theme="dark"] .apply-address-box {
    background: #071325 !important;
    border-color: #D4AF37 !important;
}
[data-bs-theme="dark"] .apply-text-navy {
    color: #ffffff !important;
}


