/* Modernized UI Fixes & Utilities */
.branding-mark, [dir="rtl"] .branding-mark {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    flex-direction: row !important;
    text-align: left !important;
}

.branding-mark span, [dir="rtl"] .branding-mark span {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.fw-black {
    font-weight: 900 !important;
}

.ls-1 {
    letter-spacing: 1px !important;
}

.ls-2 {
    letter-spacing: 2px !important;
}

.ls-3 {
    letter-spacing: 3px !important;
}

.extra-small {
    font-size: 0.7rem !important;
}

.text-white-20 {
    color: rgba(255, 255, 255, 0.2) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.border-white-5 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.bg-white-5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.z-100 {
    z-index: 10000 !important;
}

.pointer-events-none {
    pointer-events: none !important;
}

/* Custom Animations */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(222, 35, 30, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(222, 35, 30, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(222, 35, 30, 0);
    }
}

.glow-animation {
    animation: pulse-glow 2s infinite;
}

/* Scrollbar Fixes */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px !important;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #0b1120 !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #de231e !important;
    border-radius: 4px !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #ff706c !important;
}

/* Mobile Floating Navigation Global Fixes */
@media (max-width: 991px) {
    body {
        padding-bottom: 100px !important;
    }

    .bottom-menu {
        display: none !important;
    }

    /* Ensure content doesn't get hidden behind the floating bar */
    .wrapper {
        margin-bottom: 20px !important;
    }
}

/* Character Glow Effects */
.purple-neon-glow {
    text-shadow: 0 0 10px rgba(222, 35, 30, 0.5), 0 0 20px rgba(222, 35, 30, 0.3);
}

.cyan-neon-glow {
    text-shadow: 0 0 10px rgba(26, 213, 238, 0.5), 0 0 20px rgba(26, 213, 238, 0.3);
}

/* Custom Switches */
.custom-switch-gold .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    width: 3.5em;
    height: 1.75em;
}

.custom-switch-gold .form-check-input:checked {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(222, 35, 30, 0.4);
}

.custom-switch-gold .form-check-input:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   LAMBORGHINI CASH - PURE LUXURY BLACK & GOLD THEME OVERRIDE
   ========================================================================== */

:root {
    --gold-primary: #de231e !important;
    --gold-hover: #c01b17 !important;
    --gold-dark: #8a0c09 !important;
    --gold-light: #ff706c !important;
    
    --bg-body: #0A0A0A !important;
    --bg-card: #111111 !important;
    --bg-surface: #0E0E0E !important;
    --bg-darker: #050505 !important;
    --border-color: #262626 !important;
    
    --text-primary: #FFFFFF !important;
    --text-secondary: #AAAAAA !important;
    --text-muted: #888888 !important;
    
    --status-success: #39C16C !important;
    --status-danger: #FF4D4F !important;
    --status-warning: #F2C94C !important;

    /* Override Bootstrap & Tabler System Variables */
    --bs-primary: #de231e !important;
    --bs-primary-rgb: 222, 35, 30 !important;
    --bs-body-bg: #0A0A0A !important;
    --bs-body-color: #FFFFFF !important;
    --bs-border-color: #262626 !important;
    --bs-link-color: #de231e !important;
    --bs-link-hover-color: #c01b17 !important;

    --tblr-primary: #de231e !important;
    --tblr-primary-rgb: 222, 35, 30 !important;
    --tblr-body-bg: #0A0A0A !important;
    --tblr-body-color: #FFFFFF !important;
    --tblr-bg-surface: #111111 !important;
    --tblr-border-color: #262626 !important;

    /* Legacy Brand Color Variable Overrides */
    --purple-100: #fff1f1 !important;
    --purple-200: #ffe1e0 !important;
    --purple-300: #8a0c09 !important;
    --purple-400: #de231e !important;
    --purple-500: #c01b17 !important;
    --purple-600: #8a0c09 !important;
    --purple-700: #5a0604 !important;
    --purple-800: #2e0302 !important;
    --cyan-400: #de231e !important;
    --cyan-500: #c01b17 !important;
    --navy-fintech: #0A0A0A !important;
    --charcoal-bg: #0A0A0A !important;
    --primary-gradient: linear-gradient(135deg, #ff706c 0%, #de231e 50%, #8a0c09 100%) !important;
}

/* 1. Global Page Body & Structure */
body, html, .wrapper, .page-wrapper, .page, .content, .main-wrapper, #app {
    background-color: #0A0A0A !important;
    color: #FFFFFF !important;
    font-family: 'Outfit', sans-serif !important;
}

body::before, body::after, .wrapper::before, .wrapper::after {
    background: none !important;
    display: none !important;
}

/* 2. Navigation & Headers */
header, nav, .top-nav, .navbar, .site-header, .header, .navbar-vertical {
    background-color: #0A0A0A !important;
    background: #0A0A0A !important;
    border-bottom: 1px solid #262626 !important;
    border-right: 1px solid #262626 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
}

.nav-link, .navbar-nav .nav-link {
    color: #AAAAAA !important;
    font-weight: 600 !important;
}

.nav-link:hover, .nav-link.active, .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #de231e !important;
    background: rgba(222, 35, 30, 0.12) !important;
    border-radius: 6px !important;
}

.side-nav, .sidebar, aside {
    background-color: #070707 !important;
    border-right: 1px solid #262626 !important;
}

/* 3. Cards & Containers */
.card, .glass-card, .offer-card, .partners-card, .stat-card, .dashboard-card, .modal-content, .dropdown-menu {
    background-color: #111111 !important;
    background: #111111 !important;
    border: 1px solid #262626 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
}

.card:hover, .glass-card:hover, .offer-card:hover, .partners-card:hover {
    border-color: #de231e !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(222, 35, 30, 0.25) !important;
    transform: translateY(-3px) !important;
}

.card-header, .modal-header, .card-footer, .modal-footer {
    background-color: #0E0E0E !important;
    border-bottom: 1px solid #262626 !important;
    border-top: 1px solid #262626 !important;
}

/* 4. Headings & Typography */
h1, h2, h3, h4, h5, h6, .title, .card-title, .heading {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

.text-gold, .gold-text {
    color: #de231e !important;
}

.text-gold-gradient, .gradient-title {
    background: linear-gradient(135deg, #ff706c 0%, #de231e 50%, #8a0c09 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

a {
    color: #de231e !important;
}

a:hover {
    color: #c01b17 !important;
}

.text-muted, small, .small {
    color: #AAAAAA !important;
}

/* 5. Buttons (Luxury Gold Buttons) */
.btn {
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.btn-primary, .btn.primary-btn, .btn-main, .btn-info, .btn-indigo, .btn-purple {
    background: linear-gradient(135deg, #ff706c 0%, #de231e 50%, #8a0c09 100%) !important;
    border: 1px solid #de231e !important;
    color: #000000 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 18px rgba(222, 35, 30, 0.35) !important;
}

.btn-primary:hover, .btn.primary-btn:hover, .btn-main:hover {
    background: linear-gradient(135deg, #ff8e8b 0%, #c01b17 100%) !important;
    box-shadow: 0 6px 25px rgba(222, 35, 30, 0.6) !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
}

.btn-secondary, .btn-outline-primary, .btn-outline-gold {
    background: rgba(222, 35, 30, 0.1) !important;
    border: 1px solid #262626 !important;
    color: #de231e !important;
}

.btn-secondary:hover, .btn-outline-primary:hover {
    background: rgba(222, 35, 30, 0.22) !important;
    border-color: #de231e !important;
    color: #FFFFFF !important;
}

/* 6. Forms & Inputs */
.form-control, .form-select, input, select, textarea {
    background-color: #141414 !important;
    border: 1px solid #262626 !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
}

.form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus {
    border-color: #de231e !important;
    box-shadow: 0 0 0 3px rgba(222, 35, 30, 0.25) !important;
    background-color: #181818 !important;
    color: #FFFFFF !important;
}

/* 7. Tables */
.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #FFFFFF !important;
    --tblr-table-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

.table th, .table thead th {
    background-color: rgba(222, 35, 30, 0.1) !important;
    color: #de231e !important;
    border-bottom: 2px solid #262626 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.table td, .table tbody tr {
    border-bottom: 1px solid #262626 !important;
    color: #FFFFFF !important;
}

.table tbody tr:hover {
    background-color: rgba(222, 35, 30, 0.05) !important;
}

/* 8. Progress Bars & Badges */
.progress {
    background-color: #1A1A1A !important;
    border-radius: 10px !important;
}

.progress-bar {
    background: linear-gradient(90deg, #8a0c09 0%, #de231e 100%) !important;
    box-shadow: 0 0 10px rgba(222, 35, 30, 0.5) !important;
}

.badge-success, .bg-success { background-color: rgba(57, 193, 108, 0.2) !important; color: #39C16C !important; border: 1px solid #39C16C !important; }
.badge-danger, .bg-danger { background-color: rgba(255, 77, 79, 0.2) !important; color: #FF4D4F !important; border: 1px solid #FF4D4F !important; }
.badge-warning, .bg-warning { background-color: rgba(242, 201, 76, 0.2) !important; color: #F2C94C !important; border: 1px solid #F2C94C !important; }

/* 9. Pagination & Miscellaneous */
.pagination .page-link {
    background-color: #111111 !important;
    border-color: #262626 !important;
    color: #de231e !important;
}

.pagination .page-item.active .page-link {
    background: #de231e !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border-color: #de231e !important;
}

/* Icons */
.icon, i, svg {
    color: inherit;
}
.text-primary {
    color: #de231e !important;
}
.bg-primary {
    background-color: #de231e !important;
}
