:root {
    --gold: #D4AF37;
    --gold-light: #F1C232;
    --gold-dark: #B8860B;
    --black-dark: #111111;
    --black-medium: #1D1D1D;
    --black-light: #2A2A2A;
    --text-gold: #D4AF37;
    --bg-dark: #111111;
    --primary-gradient: linear-gradient(310deg, #D4AF37 0%, #B8860B 100%);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f1d592 100%);
    --obsidian-gradient: radial-gradient(circle at top, rgba(212, 175, 55, 0.2) 0%, rgba(17, 17, 17, 1) 70%);
    --premium-glow: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(17, 17, 17, 0) 100%);
}

/* Prevent layout shift (sliding) when scrollbar appears */
.main-content {
    scrollbar-gutter: stable;
}

body {
    overflow-x: hidden !important;
}

/* Overriding Soft UI primary colors */
.bg-gradient-primary {
    background-image: var(--primary-gradient) !important;
    color: #000 !important; /* Force black text on gold background */
}

.text-primary {
    color: var(--gold) !important;
}

.btn-primary {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #000 !important; /* Force black text on gold background */
}

.btn-outline-primary {
    color: var(--gold) !important;
    border-color: var(--gold) !important;
}

.btn-outline-primary:hover {
    background-color: var(--gold) !important;
    color: #000 !important; /* Contrast fix while hovered */
}



/* Dashboard & Cards styling */
.stat-card {
    background: var(--black-medium) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 16px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15) !important;
}

.stat-value {
    color: var(--gold) !important;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Fix text-dark clarity for obsidian theme */
.text-dark {
    color: #D4AF37 !important; /* Primary Theme Gold */
}

.text-obsidian {
    color: #08090d !important;
}

/* Explicit Black Text Utility */
.text-black-ink {
    color: #000 !important;
}

.card {
    background-color: var(--black-medium) !important;
    color: #ffffff !important;
}

.card-header {
    background-color: transparent !important;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #111111 0%, #2A2A2A 100%) !important;
    border: 1px solid var(--gold) !important;
}

.welcome-icon {
    background: var(--primary-gradient) !important;
    color: #000 !important;
}

/* --- THE OBSIDIAN EXPERIENCE --- */

.obsidian-card {
    background: #1d1d1d !important;
    border-radius: 24px !important;
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
    overflow: hidden;
}

.hero-welcome {
    background: var(--obsidian-gradient) !important;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 24px !important;
    border-radius: 24px !important;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.stats-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.obsidian-stat-card {
    background: #1d1d1d !important;
    padding: 20px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease;
}

.obsidian-stat-card i {
    color: var(--gold) !important;
    margin-bottom: 12px;
}

.obsidian-stat-card .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.obsidian-stat-card .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

.upcoming-schedule-item {
    background: #1d1d1d !important;
    padding: 16px !important;
    border-radius: 16px !important;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.date-box {
    min-width: 45px;
    text-align: center;
    border-right: 2px solid var(--gold);
    margin-right: 15px;
    padding-right: 10px;
}

.date-box .day {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
    display: block;
    line-height: 1;
}

.date-box .month {
    font-size: 10px;
    text-transform: uppercase;
    color: #fff;
}

.digital-card {
    background: #111111 !important;
    border: 2px solid var(--gold) !important;
    border-radius: 30px !important;
    padding: 30px !important;
    text-align: center;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: #fff;
    margin: 0 auto 20px;
    border-radius: 15px;
    padding: 10px;
}

.qr-placeholder img {
    width: 100%;
}

.share-access-btn {
    background: var(--primary-gradient) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 15px !important;
    padding: 12px 24px !important;
    width: 100%;
    border: none;
    margin-top: 20px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 75px;
    background: rgba(29, 29, 29, 0.85) !important;
    backdrop-filter: blur(15px);
    display: flex;
    /* Visible on mobile by default */
    justify-content: space-around;
    align-items: center;
    border-radius: 25px 25px 0 0;
    z-index: 1000;
    padding: 0 5px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Hide bottom nav on Desktop */
@media (min-width: 992px) {
    .bottom-nav {
        display: none !important;
    }
}

.bottom-nav-item {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Remove the default blue/pink highlight on mobile */
    outline: none !important;
}

.bottom-nav-item:active, 
.bottom-nav-item:focus {
    color: var(--gold) !important;
    outline: none !important;
    box-shadow: none !important;
}

.bottom-nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-nav-item.active {
    color: var(--gold) !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
    font-size: 20px;
}

/* Adjust main content padding for bottom nav on mobile only */
@media (max-width: 991px) {
    .main-content {
        padding-bottom: 120px !important; /* Increased for safety */
        overflow-y: visible !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        min-height: calc(100vh - 75px);
    }
}

/* Quick Action Row Enhancements */
.quick-action-mosaic {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.quick-action-mosaic::-webkit-scrollbar {
    display: none;
}

.quick-action-item {
    min-width: 80px;
    text-align: center;
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    background: #2a2a2a;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: var(--gold);
    transition: all 0.2s ease;
}

.quick-action-icon:active {
    transform: scale(0.9);
    background: var(--gold);
    color: #000;
}

/* Extra Global Overrides */
.g-sidenav-show {
    background-color: var(--black-dark) !important;
}

.navbar-vertical.navbar-expand-xs {
    background-color: #111111 !important;
}

/* Ensure breadcrumb text is always gold */
.breadcrumb h6,
.navbar-main h6 {
    color: var(--gold) !important;
}


.quick-action-btn:hover {
    background: var(--gold) !important;
    color: #000 !important;
    border-color: var(--gold) !important;
}

.quick-action-btn:hover .icon-wrapper {
    background: #000 !important;
    color: var(--gold) !important;
}

.quick-action-btn .icon-wrapper {
    background: rgba(212, 175, 55, 0.15) !important;
    transition: all 0.3s ease;
}

/* Responsive Grid Improvements for Mobile Actions */
@media (max-width: 576px) {
    .quick-action-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .quick-action-btn {
        padding: 10px 5px !important;
        height: auto !important;
    }

    .quick-action-btn .icon-wrapper {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 5px !important;
    }

    .quick-action-btn span.fw-bold {
        font-size: 10px !important;
    }
}

/* Login Screen Glassmorphism */
.login-card {
    background: rgba(17, 17, 17, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 20px !important;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.form-control:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25) !important;
}

/* Text Utilities */
.text-gold {
    color: var(--gold) !important;
}

.text-gold-light {
    color: var(--gold-light) !important;
}

label,
.form-label {
    color: var(--gold) !important;
    font-weight: 600 !important;
}

.form-check-label {
    color: #ffffff !important;
    opacity: 0.9;
}

/* Footer Styling */
.footer .text-secondary {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer a:hover,
.footer .fab:hover {
    color: var(--gold) !important;
}

/* Sidebar High-Specificity Overrides */
.sidenav.navbar-vertical .navbar-brand span {
    color: var(--gold) !important;
    font-weight: 700 !important;
}

.sidenav.navbar-vertical .nav-link .nav-link-text {
    color: #ffffff !important;
}

.sidenav.navbar-vertical .nav-link.active {
    background-image: var(--primary-gradient) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

.sidenav.navbar-vertical .nav-link.active .nav-link-text {
    color: #08090d !important;
    font-weight: 700 !important;
}

.sidenav.navbar-vertical .nav-link .icon-shape {
    background-color: #1d1d1d !important;
    background-image: none !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.sidenav.navbar-vertical .nav-link:not(.active) i {
    color: #ffffff !important;
}

body,
.main-content,
.bg-gray-100,
.bg-white {
    background-color: var(--black-dark) !important;
    color: #ffffff !important;
}

.navbar-main,
.navbar-main.bg-white,
.navbar-main.shadow-sm {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.breadcrumb-item,
.breadcrumb-item a,
.breadcrumb-item.active,
.breadcrumb-item+.breadcrumb-item::before {
    color: #D4AF37 !important; /* Thematic gold breadcrumbs */
    font-weight: 500;
}

.breadcrumb h6,
.navbar-main h6,
.navbar-brand span {
    color: var(--gold) !important;
    text-transform: uppercase !important;
}

.sidenav.navbar-vertical .nav-link.active .icon-shape {
    background-color: #000000 !important;
    color: var(--gold) !important;
}

.sidenav.navbar-vertical .nav-link.active i {
    color: #08090d !important;
}

/* Navbar Overrides */
.breadcrumb-item a,
.breadcrumb-item.active {
    color: var(--gold) !important;
}

#iconNavbarSidenav .sidenav-toggler-line {
    background-color: var(--gold) !important;
}

.notification-bell i {
    color: var(--gold) !important;
}

.notification-bell:hover i {
    color: #ffffff !important;
}

/* --- PREMIUM DASHBOARD ENHANCEMENTS --- */

/* 1. Banking-style Balance Blink */
@keyframes balancePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.balance-blink {
    animation: balancePulse 2s ease-in-out infinite;
}

/* 2. Profile Progress Bar */
.profile-progress-bar {
    background: rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    height: 8px;
    width: 100%;
    margin-top: 5px;
    overflow: hidden;
}

.profile-progress-fill {
    background: var(--primary-gradient);
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* 3. Floating Action Button (FAB) */
.fab-container {
    position: fixed;
    bottom: 90px;
    /* Above bottom nav */
    right: 20px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.fab-main {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.fab-main i {
    color: #000;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.fab-container.active .fab-main {
    transform: rotate(45deg);
    background: #FF4B4B !important;
    /* Change color to red when active */
}

.fab-options {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-container.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1d1d1d;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    padding: 10px 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.fab-option:active {
    transform: scale(0.95);
    background: var(--gold);
    color: #000;
}

.fab-option i {
    font-size: 16px;
    color: var(--gold);
}

.fab-option:active i {
    color: #000;
}

/* 4. Slide-up Modal (Record Payment) */
.slide-up-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1070;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.slide-up-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-up-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    border-top: 2px solid var(--gold);
    border-radius: 25px 25px 0 0;
    z-index: 1080;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 20px;
    max-height: 90vh; /* FIXED: Now flexible up to 90% of the screen */
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* ALLOW SCROLLING if content exceeds max-height */
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    transition: all 0.2s ease;
}

.modal-close-btn:active {
    background: rgba(255, 75, 75, 0.2);
    color: #FF4B4B;
}

.slide-up-modal.active {
    transform: translateY(0);
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: -10px auto 20px;
}

.modal-body-scrollable {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Livewire Step 1 handles its own scrolling */
}

/* 5. Mobile No-Scroll Dashboard Wrapper */
@media (max-width: 991px) {
    .dashboard-wrapper {
        height: calc(100vh - 75px) !important;
        /* Fixed viewport minus bottom nav */
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 5px 12px 0 !important;
    }

    .dashboard-content-scrollable {
        flex: 1;
        overflow: hidden !important;
        /* STRICT: No scrolling allowed */
        display: flex;
        flex-direction: column;
    }
}

/* Adaptive Compression for Very Small Heights (e.g. iPhone SE) */
@media (max-width: 991px) and (max-height: 700px) {
    .dashboard-header-compact {
        padding-bottom: 2px !important;
    }

    .pf-logo-img-sm {
        width: 24px !important;
        height: 24px !important;
    }

    .stat-card-premium {
        min-height: 70px !important;
        padding: 5px !important;
    }

    .stat-card-premium i {
        font-size: 0.9rem !important;
    }

    .stat-card-premium .stat-value {
        font-size: 0.85rem !important;
    }

    .section-label-sm {
        margin-bottom: 2px !important;
    }

    .action-card {
        padding: 8px 4px !important;
    }

    .action-card i {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }


    .action-card span {
        font-size: 9px !important;
    }

    .profile-completion-section {
        margin-bottom: 8px !important;
    }
}

/* Quick Action Grid Adjustments */
.quick-action-grid-fixed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px 0;
}

.action-card {
    background: #1d1d1d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.action-card:active {
    transform: scale(0.95);
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.action-card i {
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 6px;
}

.action-card span {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* --- INTERACTIVE HUB GRID (3-COLUMN) --- */
.hub-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px 0;
}

.hub-btn {
    background: #1d1d1d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 18px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
    min-height: 100px;
}

.hub-btn:active {
    transform: scale(0.92);
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.hub-btn i {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 8px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

.hub-btn span {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
}

/* Hub Header Fixes for Compact Spacing */
.hub-header-premium {
    padding: 10px 0 20px;
}

/* Ensure Hub Pages don't scroll */
@media (max-width: 991px) {
    .hub-container {
        height: calc(100vh - 75px) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 5px 20px 0 !important;
    }
}

/* --- HARMONIZED OBSIDIAN FORM THEME --- */

.profile-page-wrapper {
    background-color: var(--black-dark) !important;
    min-height: 100vh;
}

.obsidian-form-card {
    background: var(--black-medium) !important;
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
    border-radius: 20px !important;
    overflow: hidden;
    margin-bottom: 2rem;
}

.obsidian-form-header {
    background: rgba(212, 175, 55, 0.05) !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
}

.obsidian-form-header h6 {
    color: var(--gold) !important;
    margin-bottom: 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.border-gold-sm {
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.bg-soft-gold {
    background: rgba(212, 175, 55, 0.1) !important;
}

.xsmall {
    font-size: 0.65rem !important;
}

.btn-premium {
    background: var(--primary-gradient) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.btn-premium:hover, .btn-premium:active {
    transform: scale(0.98) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4) !important;
}

/* Force dark theme on standard Bootstrap components within profile pages */
.profile-page-wrapper .bg-light,
.profile-page-wrapper .bg-gray-100 {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.profile-page-wrapper .text-dark {
    color: #ffffff !important;
}

/* Eye-friendly alerts for instructions */
.obsidian-alert {
    background: rgba(212, 175, 55, 0.03) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-left: 4px solid var(--gold) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 12px !important;
}

.obsidian-alert strong {
    color: var(--gold) !important;
}

/* Dark Search Dropdowns (e.g. Skill Search) */
.profile-page-wrapper .bg-white.border.rounded.shadow-lg {
    background-color: var(--black-light) !important;
    border-color: var(--gold-dark) !important;
    color: #fff !important;
}

.profile-page-wrapper .hover-bg-light:hover {
    background-color: rgba(212, 175, 55, 0.1) !important;
    color: var(--gold) !important;
}

.profile-page-wrapper button.bg-white {
    background-color: transparent !important;
    color: #fff !important;
}

/* Auto-save indicator styling */
.autosave-indicator {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 0.8rem;
}

.autosave-spinner {
    font-size: 0.7rem;
}

/* --- Interactive & Utility Extras --- */

.transition-up {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.transition-up:hover {
    transform: translateY(-8px) scale(1.02);
}

.gold-glow {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25) !important;
    border: 1px solid var(--gold) !important;
    position: relative;
    z-index: 1;
}

.gold-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: var(--gold);
    z-index: -1;
    opacity: 0.1;
    filter: blur(8px);
}

.shadow-gold-hover:hover {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15) !important;
}

.shadow-gold-active:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3) !important;
}

.ls-1 { letter-spacing: 1px !important; }
.fw-800 { font-weight: 800 !important; }

.text-gold-light {
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.border-gold {
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

/* Modal Bottom-Sheet for Mobile */
@media (max-width: 576px) {
    .slide-up-mobile {
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: translateY(100%);
        transition: transform 0.4s ease-out;
    }
    
    .modal.show .slide-up-mobile {
        transform: translateY(0);
    }
    
    .slide-up-mobile .modal-content {
        border-radius: 25px 25px 0 0 !important;
        border-bottom: 0 !important;
        max-height: 90vh;
        overflow-y: auto;
    }
}

.premium-comparison-box {
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.btn-outline-gold {
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    background: transparent !important;
}

.btn-outline-gold:hover {
    background: var(--gold) !important;
    color: #000 !important;
}

/* --- Premium & Upsell Styles --- */

.premium-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--gold) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
    z-index: 10;
    pointer-events: none;
}

.premium-badge i,
.premium-badge i.fas,
.premium-badge i.fa-solid {
    color: var(--gold) !important;
}

.pro-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #e5e4e2 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    filter: drop-shadow(0 0 5px rgba(229, 228, 226, 0.4));
    z-index: 10;
    pointer-events: none;
}

.pro-badge i,
.pro-badge i.fas,
.pro-badge i.fa-solid {
    color: #e5e4e2 !important;
}

.card-locked {
    position: relative;
}

.card-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
}

.sidebar-locked-pill {
    font-size: 0.75rem;
    margin-left: auto;
    color: var(--gold) !important;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.3));
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* High Specificity Overrides for Sidebar Navigation Icons */
.sidenav.navbar-vertical .nav-link .sidebar-locked-pill i,
.sidenav.navbar-vertical .nav-link .sidebar-locked-pill i.fas,
.sidenav.navbar-vertical .nav-link .sidebar-locked-pill i.fa-solid,
.sidebar-locked-pill i {
    color: var(--gold) !important;
}

.sidebar-pro-pill {
    font-size: 0.75rem;
    margin-left: auto;
    color: #e5e4e2 !important;
    filter: drop-shadow(0 0 3px rgba(229, 228, 226, 0.2));
    pointer-events: none;
    display: flex;
    align-items: center;
}

.sidenav.navbar-vertical .nav-link .sidebar-pro-pill i,
.sidenav.navbar-vertical .nav-link .sidebar-pro-pill i.fas,
.sidenav.navbar-vertical .nav-link .sidebar-pro-pill i.fa-solid,
.sidebar-pro-pill i {
    color: #e5e4e2 !important;
}

/* End of custom-theme.css */
/* --- GLOBAL PREMIUM COMPONENTS --- */
.custom-switch { position: relative; display: inline-block; width: 2.8rem; height: 1.5rem; cursor: pointer; margin: 0; flex-shrink: 0; }
.custom-switch-input { opacity: 0; width: 0; height: 0; position: absolute; pointer-events: none; }
.custom-switch-track { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 1rem; transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.custom-switch-track::before { content: ''; position: absolute; top: 50%; left: 3px; transform: translateY(-50%); width: 1rem; height: 1rem; background: rgba(255, 255, 255, 0.65); border-radius: 50%; transition: left 0.2s ease-in-out, background 0.2s ease-in-out; }
.custom-switch-input:checked + .custom-switch-track { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px rgba(212, 175, 55, 0.4); }
.custom-switch-input:checked + .custom-switch-track::before { left: calc(100% - 1.25rem); background: #ffffff; }

/* --- GLOBAL DROPDOWN OVERRIDES (Obsidian & Gold) --- */
.dropdown-menu {
    background-color: #0c0c0c !important; /* Deeper Obsidian */
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8) !important;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(212, 175, 55, 0.12) !important;
    color: var(--gold) !important;
    transform: translateX(3px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    background-color: rgba(255, 255, 255, 0.08) !important;
    margin: 8px 0 !important;
}

/* --- GLOBAL FORM SELECT & OPTION STYLES --- */
select.form-select option,
select.form-control option {
    background-color: #1a1a1a !important; /* Dark background for dropdown options */
    color: #ffffff !important;           /* White text for options */
}

/* --- THEMED MODAL COMPONENTS --- */
.modal-obsidian .modal-content {
    background: rgba(20, 20, 20, 0.9) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,1);
    color: #fff !important;
}

.modal-obsidian .modal-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
    padding: 1.5rem 1.5rem 1rem !important;
}

.modal-obsidian .modal-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.1) !important;
    padding: 1rem 1.5rem 1.5rem !important;
}

.modal-obsidian .modal-title {
    color: var(--gold) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-obsidian .form-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600 !important;
}

.modal-obsidian .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
