/**
 * GLOBAL AI NEXUS - Official Theme System
 * Direct implementation of PDF design: Luxury Emerald Green & Metallic Gold Palette
 */
:root {
    --nexus-bg-body: #010906;
    --nexus-bg-surface: #021810;
    --nexus-bg-surface-2: #01130c;
    --nexus-bg-card: #021810;
    --nexus-card-border: rgba(212, 175, 55, 0.45);
    --nexus-card-border-gold: rgba(245, 207, 93, 0.70);
    
    /* Luxury Gold System */
    --nexus-gold: #d4af37;
    --nexus-gold-light: #fff2a8;
    --nexus-gold-dark: #8c6818;
    --nexus-gold-hover: #ffe484;
    --nexus-gold-glow: 0 0 22px rgba(212, 175, 55, 0.40);
    --nexus-gold-gradient: linear-gradient(135deg, #FFF6BD 0%, #F5CF5D 30%, #D4AF37 65%, #926C19 100%);
    --nexus-gold-metallic: linear-gradient(180deg, #FFFFFF 0%, #FFE28A 25%, #D4AF37 60%, #987520 100%);
    
    /* Cyber & Crypto Emerald Green System */
    --nexus-emerald: #10b981;
    --nexus-emerald-neon: #00e676;
    --nexus-emerald-dark: #042417;
    --nexus-emerald-gradient: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    --nexus-emerald-glow: 0 0 22px rgba(16, 185, 129, 0.35);

    /* Backwards compatibility aliases */
    --falcon-bg-body: var(--nexus-bg-body);
    --falcon-bg-surface: var(--nexus-bg-surface);
    --falcon-bg-surface-2: var(--nexus-bg-surface-2);
    --falcon-bg-card: var(--nexus-bg-card);
    --falcon-card-border: var(--nexus-card-border);
    --falcon-card-border-gold: var(--nexus-card-border-gold);
    --falcon-cyan: var(--nexus-gold);
    --falcon-cyan-hover: var(--nexus-gold-hover);
    --falcon-cyan-glow: var(--nexus-gold-glow);
    --falcon-cyan-gradient: var(--nexus-gold-gradient);
    --falcon-gold: var(--nexus-gold);
    --falcon-gold-light: var(--nexus-gold-light);
    --falcon-gold-dark: var(--nexus-gold-dark);
    --falcon-gold-gradient: var(--nexus-gold-gradient);
    --falcon-gold-glow: var(--nexus-gold-glow);
    --falcon-green: var(--nexus-emerald);
    --falcon-purple: #8b5cf6;
    --falcon-red: #ef4444;
    
    --falcon-text: #f8fafc;
    --falcon-text-muted: #94a3b8;
    --falcon-text-dim: #64748b;
    
    --falcon-radius-sm: 8px;
    --falcon-radius: 14px;
    --falcon-radius-lg: 20px;

    /* Theme override for third-party template style tokens */
    --nk-accent-blue: var(--nexus-gold);
    --nk-accent-purple: var(--nexus-emerald);
    --nk-info: var(--nexus-gold);
}

body.falcon-theme {
    background-color: var(--nexus-bg-body) !important;
    color: var(--falcon-text);
    font-family: 'DM Sans', 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

/* Global Link & Accent Palette Standardization - PDF Luxury Gold & Emerald */
a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
    color: #ffe484;
    text-decoration: none;
}

.text-info {
    color: #f5cf5d !important;
}

.badge.bg-info,
.bg-info {
    background: rgba(245, 207, 93, 0.15) !important;
    color: #f5cf5d !important;
    border: 1px solid rgba(245, 207, 93, 0.35) !important;
}

/* Background Grid & Emerald-Gold Luxury Ambient Glow */
.falcon-glow-bg {
    background: 
        radial-gradient(circle at 50% -10%, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.08) 40%, transparent 70%),
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 75%, rgba(212, 175, 55, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(4, 30, 20, 0.5) 0%, transparent 80%),
        var(--nexus-bg-body);
}

/* Glassmorphism Luxury Cards matching PDF */
.falcon-card {
    background: var(--nexus-bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--nexus-card-border);
    border-radius: var(--falcon-radius);
    padding: 24px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 245, 180, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.falcon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.falcon-card.gold-border {
    border-color: var(--nexus-card-border-gold);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 18px rgba(212, 175, 55, 0.15);
}

.falcon-card.gold-border:hover {
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.3);
    border-color: rgba(255, 230, 120, 0.8);
}

/* Card Glow Accent Line */
.falcon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--nexus-gold), transparent);
    opacity: 0.7;
}

.falcon-card.gold-border::before {
    background: linear-gradient(90deg, transparent, var(--nexus-gold-light), transparent);
    opacity: 0.9;
}

/* PDF Gold Chamfer Geometric Border Box */
.pdf-gold-box {
    background: linear-gradient(145deg, rgba(7, 27, 18, 0.9), rgba(3, 14, 9, 0.95));
    border: 1.5px solid var(--nexus-gold);
    border-radius: 14px;
    position: relative;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.18), inset 0 0 15px rgba(16, 185, 129, 0.08);
}

/* Gradients & Text */
.text-cyan, .text-gold {
    color: var(--nexus-gold) !important;
}

.text-emerald, .text-green {
    color: var(--nexus-emerald) !important;
}

.gold-gradient-text {
    background: var(--nexus-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.cyan-gradient-text {
    background: var(--nexus-gold-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.emerald-gradient-text {
    background: var(--nexus-emerald-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Primary Luxury Gold Buttons */
.btn-falcon-cyan, .btn-falcon-gold {
    background: var(--nexus-gold-gradient);
    color: #04140D !important;
    font-weight: 800;
    border: none;
    border-radius: var(--falcon-radius-sm);
    padding: 11px 24px;
    letter-spacing: 0.6px;
    box-shadow: var(--nexus-gold-glow);
    transition: all 0.25s ease;
    text-transform: uppercase;
    font-size: 13px;
}

.btn-falcon-cyan:hover, .btn-falcon-gold:hover {
    opacity: 0.95;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.65);
    transform: translateY(-2px);
    color: #000000 !important;
}

.btn-falcon-outline, .btn-falcon-gold-outline {
    background: transparent;
    color: var(--nexus-gold) !important;
    border: 1.5px solid var(--nexus-gold);
    border-radius: var(--falcon-radius-sm);
    padding: 10px 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.btn-falcon-outline:hover, .btn-falcon-gold-outline:hover {
    background: rgba(212, 175, 55, 0.16);
    box-shadow: var(--nexus-gold-glow);
    color: #ffffff !important;
}

.btn-falcon-emerald {
    background: var(--nexus-emerald-gradient);
    color: #020906 !important;
    font-weight: 800;
    border: none;
    border-radius: var(--falcon-radius-sm);
    padding: 11px 24px;
    box-shadow: var(--nexus-emerald-glow);
    transition: all 0.25s ease;
}

.btn-falcon-emerald:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Stat Box */
.falcon-stat-box {
    display: flex;
    align-items: center;
    gap: 18px;
}

.falcon-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.falcon-stat-icon.cyan, .falcon-stat-icon.gold {
    background: rgba(212, 175, 55, 0.14);
    color: var(--nexus-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.falcon-stat-icon.green {
    background: rgba(16, 185, 129, 0.14);
    color: var(--nexus-emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.falcon-stat-icon.purple {
    background: rgba(139, 92, 246, 0.14);
    color: var(--falcon-purple);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.falcon-stat-val {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.falcon-stat-label {
    font-size: 12px;
    color: var(--falcon-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

/* Capping Progress Meter */
.capping-track {
    background: rgba(255, 255, 255, 0.08);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.capping-bar {
    height: 100%;
    background: var(--nexus-gold-gradient);
    border-radius: 6px;
    transition: width 0.6s ease;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* Fastage / Special Cards */
.fastage-card {
    background: linear-gradient(145deg, rgba(7, 28, 18, 0.95), rgba(3, 13, 8, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--falcon-radius);
    padding: 20px;
    position: relative;
    transition: transform 0.25s ease;
}

.fastage-card.active-fastage {
    border-color: var(--nexus-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* Live Market / Forex / Crypto Ticker */
.forex-ticker-container {
    background: #030e09;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 8px 16px;
    overflow-x: auto;
    white-space: nowrap;
}

.forex-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 28px;
    font-size: 13px;
}

.forex-ticker-item .symbol {
    font-weight: 800;
    color: #ffffff;
}

.forex-ticker-item .price {
    color: var(--nexus-gold);
    font-family: monospace;
    font-weight: 700;
}

.forex-ticker-item .change-up {
    color: var(--nexus-emerald);
    font-size: 12px;
}

.forex-ticker-item .change-down {
    color: var(--falcon-red);
    font-size: 12px;
}

/* Tables */
.falcon-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--falcon-text);
}

.falcon-table th {
    background: rgba(6, 26, 17, 0.9);
    color: var(--nexus-gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    font-weight: 700;
}

.falcon-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    font-size: 14px;
    vertical-align: middle;
}

.falcon-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

/* Form Controls */
.falcon-form-control {
    background: rgba(4, 18, 12, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #ffffff !important;
    border-radius: var(--falcon-radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.falcon-form-control:focus {
    border-color: var(--nexus-gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22) !important;
    background: rgba(5, 24, 16, 1) !important;
}

.falcon-form-control::placeholder {
    color: #64748b !important;
}

.falcon-form-label {
    color: var(--falcon-text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Badges */
.badge-falcon-cyan, .badge-falcon-gold {
    background: rgba(212, 175, 55, 0.16);
    color: var(--nexus-gold);
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-falcon-green, .badge-falcon-emerald {
    background: rgba(16, 185, 129, 0.16);
    color: var(--nexus-emerald);
    border: 1px solid rgba(16, 185, 129, 0.45);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Sidebar Styling for User & Admin */
.falcon-sidebar {
    background: #030e09;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.falcon-sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.falcon-sidebar-nav {
    padding: 20px 12px;
    flex-grow: 1;
    overflow-y: auto;
}

.falcon-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.falcon-nav-link:hover {
    color: var(--nexus-gold);
    background: rgba(212, 175, 55, 0.08);
}

.falcon-nav-link.active, .falcon-nav-link.gold.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.06));
    border-left: 3px solid var(--nexus-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.falcon-nav-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #5d756b;
    padding: 16px 16px 6px;
    font-weight: 800;
}

.falcon-main-content {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.falcon-topbar {
    background: rgba(3, 14, 9, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}

@media (max-width: 991px) {
    .falcon-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .falcon-sidebar.open {
        transform: translateX(0);
    }
    .falcon-main-content {
        margin-left: 0;
    }
}

/* ==========================================================================
   GLOBAL AI-NEXUS OFFICIAL LUXURY THEME (MATCHING PDF & DEXTRADE 100%)
   ========================================================================== */
.pdf-package-card {
    background: linear-gradient(145deg, rgba(3, 20, 14, 0.90), rgba(1, 10, 7, 0.95)) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 15px rgba(212, 175, 55, 0.12), inset 0 1px 1px rgba(255, 241, 170, 0.15) !important;
    border-radius: 18px !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
    box-sizing: border-box !important;
    position: relative;
}

.welcome-panel {
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 45%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 45%),
                linear-gradient(145deg, rgba(2, 22, 15, 0.94), rgba(1, 8, 5, 0.98)) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.42) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 241, 170, 0.2) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

/* Master Executive & Glassmorphic Utilities */
.nexus-glass-card {
    background: linear-gradient(145deg, rgba(3, 20, 14, 0.90), rgba(1, 10, 7, 0.95)) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 241, 170, 0.12);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nexus-glass-card:hover {
    border-color: rgba(212, 175, 55, 0.55) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(212, 175, 55, 0.18);
}

.nexus-profile-hero {
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 45%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 45%),
                linear-gradient(145deg, rgba(2, 22, 15, 0.94), rgba(1, 8, 5, 0.98)) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 241, 170, 0.2);
}

.nexus-ref-pill {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 10px 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nexus-ref-pill:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(0, 0, 0, 0.75);
}

.nexus-stat-number {
    font-family: 'DM Sans', monospace, sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 30%, #FFE28A 70%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nexus-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 12px #10b981;
    display: inline-block;
    animation: nexusPulse 2s infinite;
}

@keyframes nexusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

#nexusHeroCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.50;
}

.dashboard-main,
.dashboard-content {
    position: relative;
    z-index: 1;
}

.pdf-stat-card {
    padding: 22px 24px !important;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdf-income-card {
    padding: 20px 18px !important;
    border-radius: 16px !important;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none !important;
    color: #ffffff !important;
}

.pdf-income-card:hover,
.pdf-income-card:focus,
.pdf-income-card:active {
    transform: translateY(-4px) !important;
    box-shadow: 0 0 30px rgba(243, 202, 82, 0.45) !important;
    border-color: rgba(255, 230, 130, 1) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.pdf-income-card span:not([class*="badge"]):not([class*="gold-highlight"]) {
    color: #cbd5e1;
}

.pdf-income-card small {
    color: #94a3b8;
}

.pdf-package-card:hover {
    transform: translateY(-3px) scale(1.008) !important;
    box-shadow: 0 0 35px rgba(243, 202, 82, 0.45) !important;
    border-color: rgba(255, 230, 130, 0.95) !important;
}

.pdf-gold-badge {
    background: linear-gradient(135deg, #FFF7C2 0%, #F5CF5D 40%, #D4AF37 80%, #997316 100%) !important;
    border: 1.5px solid #FFEAA5 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.45), inset 0 1px 2px #FFFFFF !important;
    color: #04140D !important;
    font-weight: 900 !important;
}

.pdf-gold-ribbon {
    background: linear-gradient(135deg, #FFF6BD 0%, #F5CF5D 35%, #D4AF37 75%, #A87D1A 100%) !important;
    color: #04140D !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4) !important;
    border: 1px solid rgba(255, 245, 180, 0.6) !important;
    font-weight: 900 !important;
    transition: all 0.25s ease !important;
}

.pdf-gold-ribbon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6) !important;
    filter: brightness(1.08);
    color: #000000 !important;
}

.gold-highlight {
    color: #f5cf5d !important;
    font-weight: 800 !important;
    text-shadow: 0 0 12px rgba(245, 207, 93, 0.4) !important;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #FFF6BD 0%, #F5CF5D 35%, #D4AF37 70%, #987520 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Luxury Action Buttons */
.btn-action-gold {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #02140d !important;
    border: 1.5px solid rgba(212, 175, 55, 0.7) !important;
    color: #ffd700 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    cursor: pointer;
}

.btn-action-gold:hover {
    background: linear-gradient(135deg, #FFF6BD, #D4AF37) !important;
    color: #04140D !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.55) !important;
    transform: translateY(-2px);
}

.btn-action-icon {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: #01130b !important;
    border: 1.5px solid rgba(212, 175, 55, 0.5) !important;
    color: #ffd700 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-action-icon:hover {
    background: #ffd700 !important;
    color: #04140D !important;
    border-color: #ffd700 !important;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6) !important;
}

/* Sleek Status Pills Matching PDF */
.nexus-pill-active {
    background: rgba(16, 185, 129, 0.14) !important;
    border: 1.5px solid #10b981 !important;
    color: #34d399 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    border-radius: 30px !important;
    padding: 4px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.nexus-pill-inactive {
    background: rgba(239, 68, 68, 0.14) !important;
    border: 1.5px solid #ef4444 !important;
    color: #f87171 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    border-radius: 30px !important;
    padding: 4px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.nexus-pill-sky {
    background: rgba(245, 207, 93, 0.14) !important;
    border: 1.5px solid #f5cf5d !important;
    color: #f5cf5d !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    border-radius: 30px !important;
    padding: 4px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* Sky/Cyan color override to luxury gold & emerald */
.text-sky-300,
.text-sky-400,
.text-sky-500 {
    color: #f5cf5d !important;
}

.bg-sky-950,
.bg-sky-900 {
    background-color: #021810 !important;
}

.border-sky-600,
.border-sky-500,
.border-sky-400 {
    border-color: rgba(245, 207, 93, 0.5) !important;
}

.nexus-pill-gold {
    background: rgba(245, 207, 93, 0.14) !important;
    border: 1.5px solid #f5cf5d !important;
    color: #f5cf5d !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    border-radius: 30px !important;
    padding: 4px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* Perfect Jet-Black Gold Trim Table Header Matching PDF */
.table,
table,
.nexus-table {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: rgba(245, 207, 93, 0.02) !important;
    --bs-table-hover-bg: rgba(245, 207, 93, 0.08) !important;
    --bs-table-color: #f1f5f9 !important;
    --bs-table-hover-color: #f1f5f9 !important;
    background-color: transparent !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table > :not(caption) > * > *,
.nexus-table > :not(caption) > * > *,
table > :not(caption) > * > * {
    background-color: transparent !important;
    color: inherit !important;
}

.nexus-table thead th,
table thead th,
.table thead th {
    background: #000000 !important;
    color: #f5cf5d !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 14px 16px !important;
    border-top: none !important;
    border-bottom: 2px solid rgba(245, 207, 93, 0.5) !important;
    white-space: nowrap !important;
}

.nexus-table tbody tr,
table tbody tr,
.table tbody tr {
    background: rgba(2, 18, 12, 0.85) !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nexus-table tbody tr:hover,
table tbody tr:hover,
.table tbody tr:hover {
    background: rgba(245, 207, 93, 0.1) !important;
}

.nexus-table tbody td,
table tbody td,
.table tbody td {
    padding: 14px 16px !important;
    vertical-align: middle !important;
    border-top: none !important;
    border-bottom: 1.5px solid rgba(212, 175, 55, 0.35) !important;
    color: #f1f5f9 !important;
}

table tbody tr,
.table tbody tr,
.nexus-table tbody tr {
    border-bottom: 1.5px solid rgba(212, 175, 55, 0.35) !important;
}

/* Global Table Pagination Luxury Gold Styling */
.pagination {
    margin-bottom: 0 !important;
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.pagination .page-item .page-link {
    background: rgba(2, 24, 16, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    color: #f5cf5d !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-family: 'DM Sans', monospace, sans-serif !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #FFF1AA, #D4AF37) !important;
    color: #04140D !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.5) !important;
    font-weight: 900 !important;
}

.pagination .page-item .page-link:hover {
    background: rgba(212, 175, 55, 0.3) !important;
    color: #ffffff !important;
    border-color: #ffd700 !important;
    transform: translateY(-1px) !important;
}

.pagination .page-item.disabled .page-link {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.25) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Filter Bar and Inputs matching Obsidian Theme */
.nexus-filter-bar {
    padding: 16px 20px !important;
    background: rgba(1, 15, 10, 0.75) !important;
    border-bottom: 1.5px solid rgba(212, 175, 55, 0.25) !important;
}

.nexus-input, .nexus-select {
    background: rgba(2, 24, 16, 0.85) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    height: 42px !important;
    font-size: 13px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.nexus-input:focus, .nexus-select:focus {
    border-color: #ffd700 !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.45) !important;
    outline: none !important;
    color: #ffffff !important;
    background: rgba(2, 24, 16, 0.95) !important;
}

.nexus-filter-bar .btn,
.nexus-filter-bar button {
    height: 42px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.nexus-input::placeholder {
    color: #94a3b8 !important;
}

.nexus-select option {
    background: #021810 !important;
    color: #ffffff !important;
}

/* Standardized Search Inputs & Action Buttons */
.nexus-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nexus-search-wrap .bi-search,
.nexus-search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd700;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.nexus-search-input {
    background: #020b07 !important;
    border: 1.5px solid rgba(245, 207, 93, 0.55) !important;
    border-radius: 10px !important;
    padding-left: 40px !important;
    padding-right: 14px !important;
    height: 42px !important;
    font-size: 13px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.nexus-search-input:focus {
    background: #01130c !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.45) !important;
    outline: none !important;
    color: #ffffff !important;
}

.nexus-search-input::placeholder {
    color: #94a3b8 !important;
}

/* Consistent Action Button Proportions */
.nexus-btn-primary {
    height: 42px !important;
    padding: 0 20px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    cursor: pointer;
}

.nexus-btn-primary.pdf-gold {
    background: linear-gradient(135deg, #FFF6BD 0%, #F5CF5D 30%, #D4AF37 65%, #926C19 100%) !important;
    color: #04140D !important;
}

.nexus-btn-primary.pdf-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55) !important;
    color: #000000 !important;
}

.nexus-btn-secondary {
    height: 42px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #cbd5e1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.nexus-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Modal Stacking & Backdrop Fix */
.dashboard-main {
    position: relative !important;
    z-index: auto !important;
}

.modal-backdrop {
    z-index: 1050 !important;
    background-color: rgba(0, 5, 3, 0.85) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.modal {
    z-index: 1060 !important;
}

.modal-dialog {
    z-index: 1065 !important;
    position: relative !important;
}

/* Universal Search Inputs & Consistent Styling Across All Admin & User Pages */
input[name="search"],
.nexus-search-input {
    background-color: #020b07 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffd700' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
    background-size: 15px 15px !important;
    padding-left: 42px !important;
    padding-right: 14px !important;
    height: 42px !important;
    border: 1.5px solid rgba(245, 207, 93, 0.55) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.position-relative > i.bi-search + input[name="search"],
.nexus-search-wrap > i.bi-search + input[name="search"],
.position-relative > i.bi-search + .nexus-search-input,
.nexus-search-wrap > i.bi-search + .nexus-search-input {
    background-image: none !important;
}

input[name="search"]:focus,
.nexus-search-input:focus {
    background-color: #01130c !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.45) !important;
    outline: none !important;
    color: #ffffff !important;
}

input[name="search"]::placeholder,
.nexus-search-input::placeholder,
.nexus-input::placeholder,
.nexus-select::placeholder {
    color: #94a3b8 !important;
    opacity: 0.9 !important;
    font-size: 12.5px !important;
}

/* ========================================================
   GLOBAL AI NEXUS - LUXURY AUTH GLASSPANEL & FORM STYLES
   ======================================================== */
.auth-card {
    background: linear-gradient(145deg, rgba(2, 22, 14, 0.88) 0%, rgba(1, 14, 9, 0.94) 50%, rgba(0, 5, 3, 0.98) 100%) !important;
    border: 1.5px solid rgba(245, 207, 93, 0.5) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255, 245, 180, 0.3) !important;
}

.auth-card--admin {
    border-color: rgba(255, 215, 0, 0.6) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 45px rgba(255, 215, 0, 0.25), inset 0 1px 0 rgba(255, 245, 180, 0.35) !important;
}

.auth-card h1 em {
    color: #ffd700 !important;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6) !important;
}

.auth-card .form-control-wrap {
    background: rgba(2, 18, 12, 0.85) !important;
    border: 1.5px solid rgba(245, 207, 93, 0.38) !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
}

.auth-card .form-control-wrap:focus-within {
    border-color: #ffd700 !important;
    background: rgba(2, 22, 15, 0.98) !important;
    box-shadow: 0 0 0 3px rgba(245, 207, 93, 0.25), 0 0 25px rgba(245, 207, 93, 0.35) !important;
}

.auth-card .form-control-wrap > i {
    color: #ffd700 !important;
}

.auth-submit,
.auth-submit--gold,
.auth-submit--cyan {
    background: linear-gradient(135deg, #FFF1AA 0%, #F5CF5D 35%, #D4AF37 70%, #926C19 100%) !important;
    color: #04140D !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.45) !important;
    opacity: 1 !important;
    filter: none !important;
    cursor: pointer !important;
}

.auth-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 40px rgba(212, 175, 55, 0.65) !important;
    filter: brightness(1.08) !important;
}

.auth-switch {
    background: rgba(2, 24, 16, 0.75) !important;
    border: 1.5px solid rgba(245, 207, 93, 0.35) !important;
    color: #f8fafc !important;
    transition: all 0.25s ease !important;
}

.auth-switch:hover {
    border-color: #ffd700 !important;
    color: #ffd700 !important;
    background: rgba(212, 175, 55, 0.15) !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35) !important;
}

/* ==========================================================================
   GLOBAL AI NEXUS - MASTER RESPONSIVE ENGINE (ADMIN & USER PANELS)
   Unified Breakpoints: Desktop (992px+), Tablet (576px-991px), Mobile (320px-575px)
   ========================================================================== */

/* 1. Global Viewport & Container Reset */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    -webkit-text-size-adjust: 100%;
}

/* 2. Desktop Mode (min-width: 992px) */
@media (min-width: 992px) {
    .dashboard-page {
        --sidebar-width: 260px !important;
    }

    .dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 260px !important;
        transform: none !important;
        z-index: 1030 !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 8px 0 35px rgba(0, 0, 0, 0.6) !important;
    }

    .dashboard-main {
        margin-left: 260px !important;
        width: calc(100% - 260px) !important;
        max-width: calc(100% - 260px) !important;
        min-width: 0 !important;
    }

    .topbar-menu {
        display: none !important;
    }

    .sidebar-close {
        display: none !important;
    }

    .sidebar-scrim {
        display: none !important;
    }
}

/* 3. Mobile & Tablet Drawer Mode (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .dashboard-page {
        --sidebar-width: 0px !important;
    }

    .dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        z-index: 1060 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 25px 0 60px rgba(0, 0, 0, 0.85) !important;
        display: flex !important;
        flex-direction: column !important;
        background: #02140d !important;
        border-right: 1.5px solid rgba(212, 175, 55, 0.3) !important;
    }

    .dashboard-sidebar.is-open {
        transform: translateX(0) !important;
    }

    .sidebar-close {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(212, 175, 55, 0.3);
        color: #ffd700;
        font-size: 18px;
        cursor: pointer;
    }

    .sidebar-close:hover {
        background: rgba(212, 175, 55, 0.2);
        color: #fff;
    }

    .sidebar-scrim {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1055 !important;
        background: rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }

    .sidebar-scrim.is-visible {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .dashboard-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .dashboard-topbar {
        padding: 12px 18px !important;
        min-height: 68px !important;
        gap: 12px !important;
    }

    .topbar-menu {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 10px !important;
        background: rgba(2, 24, 16, 0.95) !important;
        border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
        color: #ffd700 !important;
        font-size: 22px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
    }

    .topbar-menu:hover,
    .topbar-menu:active {
        background: rgba(212, 175, 55, 0.25) !important;
        border-color: #ffd700 !important;
        transform: scale(1.05) !important;
    }

    .topbar-date {
        display: none !important;
    }

    .topbar-main h1 {
        font-size: clamp(15px, 4vw, 20px) !important;
        max-width: 220px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-content {
        padding: 20px 16px 36px !important;
    }

    .dashboard-footer {
        padding: 14px 16px !important;
        flex-direction: column !important;
        gap: 6px !important;
        text-align: center !important;
        font-size: 11px !important;
    }
}

/* 4. Small Mobile Refinements (max-width: 575.98px) */
@media (max-width: 575.98px) {
    .dashboard-topbar {
        padding: 10px 14px !important;
        min-height: 62px !important;
    }

    .topbar-main h1 {
        max-width: 135px !important;
        font-size: 15px !important;
    }

    .topbar-kicker {
        font-size: 7.5px !important;
        letter-spacing: 0.8px !important;
    }

    .topbar-profile__copy {
        display: none !important;
    }

    .topbar-profile {
        padding: 4px !important;
    }

    .topbar-avatar {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
    }

    /* Cards & Panels */
    .pdf-package-card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }

    /* Welcome Banner Headers */
    .welcome-panel {
        padding: 18px 14px !important;
        min-height: auto !important;
    }

    .welcome-panel h2 {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }

    .welcome-panel p {
        font-size: 12px !important;
    }

    .welcome-panel__art {
        display: none !important;
    }

    /* Stat Numbers Responsive Font Size */
    .pdf-stat-card h3,
    .stat-card .stat-value,
    .nexus-stat-number {
        font-size: clamp(18px, 6vw, 24px) !important;
        word-break: break-all;
    }

    /* Auth Page on Mobile */
    .auth-card {
        padding: 26px 18px 22px !important;
        border-radius: 18px !important;
        max-width: 100% !important;
    }

    .auth-card h1 {
        font-size: 24px !important;
    }

    .auth-shell {
        width: 100% !important;
        padding: 0 12px !important;
    }

    .auth-shell__top {
        height: 68px !important;
    }

    .auth-shell__top .brand-mark__logo {
        height: 42px !important;
        max-width: 180px !important;
    }

    .auth-home {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    /* Filter Form Elements on Mobile */
    .nexus-filter-bar form > div,
    form.row.g-3 > div,
    form.row.g-2 > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Referral link pills */
    .nexus-ref-pill {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .nexus-ref-pill button {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Action buttons in lists */
    .user-detail-actions,
    .user-row-actions {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
}

/* 5. Fluid Responsive Table System */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    border-radius: 12px !important;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 4px;
}

.nexus-table th,
.nexus-table td {
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.nexus-table th {
    font-size: 11px !important;
    letter-spacing: 0.8px !important;
}

/* 6. Modals on Mobile & Tablet */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 12px !important;
        max-width: calc(100% - 24px) !important;
    }

    .modal-content {
        padding: 14px !important;
        border-radius: 16px !important;
    }
}

/* 7. Genealogy Tree Mobile Guarantee */
.genealogy-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
}

/* ==========================================================================
   Universal High-Contrast Placeholder Styling & Utility Helpers
   ========================================================================== */
::placeholder {
    color: #94a3b8 !important;
    opacity: 0.85 !important;
}

::-webkit-input-placeholder {
    color: #94a3b8 !important;
    opacity: 0.85 !important;
}

::-moz-placeholder {
    color: #94a3b8 !important;
    opacity: 0.85 !important;
}

:-ms-input-placeholder {
    color: #94a3b8 !important;
    opacity: 0.85 !important;
}

input::placeholder,
textarea::placeholder,
select::placeholder,
.form-control::placeholder,
.form-select::placeholder,
.falcon-form-control::placeholder,
.nexus-input::placeholder,
.nexus-search-input::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 0.85 !important;
}

input:focus::placeholder,
textarea:focus::placeholder,
.form-control:focus::placeholder {
    color: #cbd5e1 !important;
    opacity: 0.7 !important;
}

/* Emerald Color Utilities */
.text-emerald-400 {
    color: #10b981 !important;
}

.text-emerald-300 {
    color: #34d399 !important;
}

.text-emerald-500 {
    color: #059669 !important;
}

.dropdown-item.text-emerald-400 {
    color: #10b981 !important;
}

.dropdown-item.text-emerald-400:hover,
.dropdown-item.text-emerald-400:focus {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.15) !important;
}




