/**
 * Garads - Modern 3D Theme & Design System
 * Supports Light Theme (Default) with Seamless Switcher to Dark Theme
 * 3D Elevation, Tactile Micro-Interactions, Glassmorphism, and Depth Layering
 */

/* ==========================================================================
   1. Design Tokens & Theme Variables
   ========================================================================== */

:root,
:root[data-bs-theme="light"],
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-main-mesh: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
                    radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
                    radial-gradient(at 50% 100%, rgba(168, 85, 247, 0.05) 0px, transparent 50%),
                    #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-sidebar-active: rgba(var(--bs-primary-rgb, 79, 70, 229), 0.08);
    --border-color: rgba(226, 232, 240, 0.9);
    --border-subtle: #edf2f7;
    --border-highlight: rgba(255, 255, 255, 0.9);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-heading: #0f172a;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(var(--bs-primary-rgb, 79, 70, 229), 0.12);
    --accent: #0284c7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --top-navbar-bg: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.75);
    
    /* 3D Shadows & Elevations */
    --3d-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --3d-shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 10px 20px -3px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
    --3d-shadow-hover: 0 20px 35px -8px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.16), 0 10px 16px -4px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
    --3d-shadow-inset: inset 0 2px 4px rgba(15, 23, 42, 0.05);
    --3d-btn-shadow: 0 4px 14px 0 rgba(var(--bs-primary-rgb, 79, 70, 229), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
    
    --stat-gradient: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    --hero-gradient: radial-gradient(circle at 50% 0%, #e0e7ff 0%, #f8fafc 80%);
    
    --code-box-bg: #f1f5f9;
    --code-box-text: #4338ca;
    --input-bg: #ffffff;
    --input-color: #0f172a;
    --input-border: #cbd5e1;
    --input-focus-bg: #ffffff;
    --input-group-bg: #f1f5f9;
}

:root[data-bs-theme="dark"],
[data-theme="dark"] {
    --bg-main: #0b0f19;
    --bg-main-mesh: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0b0f19 75%);
    --bg-card: #111827;
    --bg-card-hover: #172133;
    --bg-sidebar: #0d1322;
    --bg-sidebar-active: rgba(var(--bs-primary-rgb, 79, 70, 229), 0.2);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: #1e293b;
    --border-highlight: rgba(255, 255, 255, 0.1);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3af;
    --text-muted: #64748b;
    --text-heading: #ffffff;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.15);
    --accent: #38bdf8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --top-navbar-bg: rgba(17, 24, 39, 0.85);
    --glass-bg: rgba(17, 24, 39, 0.75);
    
    /* 3D Shadows & Elevations */
    --3d-shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --3d-shadow-card: 0 12px 30px -5px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --3d-shadow-hover: 0 22px 45px -10px rgba(var(--bs-primary-rgb, 79, 70, 229), 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --3d-shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    --3d-btn-shadow: 0 4px 14px 0 rgba(var(--bs-primary-rgb, 79, 70, 229), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.35);
    
    --stat-gradient: linear-gradient(135deg, #111827 0%, #172133 100%);
    --hero-gradient: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0b0f19 80%);
    
    --code-box-bg: #090d16;
    --code-box-text: #a5b4fc;
    --input-bg: #0b0f19;
    --input-color: #ffffff;
    --input-border: #1f293d;
    --input-focus-bg: #0d1424;
    --input-group-bg: #111827;
}

/* ==========================================================================
   2. Base Body & 3D Lighting Setup
   ========================================================================== */

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--bg-main);
    background-image: var(--bg-main-mesh);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   3. Modern 3D Theme Switcher Pill Component
   ========================================================================== */

.theme-switch-3d {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--3d-shadow-sm);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    text-decoration: none;
}

.theme-switch-3d:hover {
    transform: translateY(-2px);
    box-shadow: var(--3d-shadow-card);
    color: var(--text-primary);
}

.theme-switch-3d:active {
    transform: translateY(1px);
    box-shadow: var(--3d-shadow-inset);
}

.theme-switch-3d .theme-icon-sun {
    color: #f59e0b;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
    font-size: 0.95rem;
}

.theme-switch-3d .theme-icon-moon {
    color: #38bdf8;
    filter: drop-shadow(0 2px 4px rgba(56, 189, 248, 0.4));
    font-size: 0.95rem;
    display: none;
}

:root[data-bs-theme="dark"] .theme-switch-3d .theme-icon-sun {
    display: none;
}

:root[data-bs-theme="dark"] .theme-switch-3d .theme-icon-moon {
    display: inline-block;
}

/* ==========================================================================
   4. Sidebar (3D Depth & Frosted Glass)
   ========================================================================== */

.app-sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    overflow-y: auto;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--3d-shadow-sm);
}

.app-sidebar .nav-link {
    color: var(--text-secondary);
    padding: 0.65rem 1rem;
    border-radius: 0.65rem;
    margin: 0.2rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-sidebar .nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-sidebar-active);
    transform: translateX(4px);
}

.app-sidebar .nav-link.active {
    color: #fff !important;
    background-color: var(--primary);
    box-shadow: var(--3d-btn-shadow);
    transform: translateX(4px);
}

.app-sidebar .nav-link i {
    font-size: 1.15rem;
}

/* Content layout */
.app-content {
    margin-left: 260px;
    padding: 1.5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        z-index: 1045;
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
    .app-content {
        margin-left: 0;
        padding: 1rem 1rem calc(75px + env(safe-area-inset-bottom, 0px)) 1rem;
    }
}

/* Top Navbar */
.top-navbar {
    background-color: var(--top-navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.75rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    margin: -1.5rem -2rem 1.5rem -2rem;
    box-shadow: var(--3d-shadow-sm);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 991.98px) {
    .top-navbar {
        margin: -1rem -1rem 0.75rem -1rem;
        padding: 0.7rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .app-content {
        padding: 0.75rem 0.65rem calc(75px + env(safe-area-inset-bottom, 0px)) 0.65rem;
    }
    .top-navbar {
        margin: -0.75rem -0.65rem 0.5rem -0.65rem;
        padding: 0.5rem 0.6rem;
    }
    .theme-switch-3d {
        padding: 0.28rem 0.55rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    .wallet-nav-pill {
        padding: 0.2rem 0.45rem !important;
        font-size: 0.78rem !important;
    }
}

/* ==========================================================================
   5. Modern 3D Cards & Containers
   ========================================================================== */

.card-theme,
.card-3d {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--3d-shadow-card);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
}

.card-theme:hover,
.card-3d:hover {
    transform: translateY(-4px);
    box-shadow: var(--3d-shadow-hover);
    border-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.35);
}

/* ==========================================================================
   Modal Stability & Anti-Jitter Engine
   ========================================================================== */

body.modal-open {
    padding-right: 0 !important;
    overflow: hidden !important;
}

/* While any modal is open, completely freeze hover transforms on background cards and elements */
body.modal-open .card-theme,
body.modal-open .card-theme:hover,
body.modal-open .card-3d,
body.modal-open .card-3d:hover,
body.modal-open .stat-card,
body.modal-open .stat-card:hover,
body.modal-open .btn:hover,
body.modal-open .table-theme tbody tr:hover {
    transform: none !important;
    transition: none !important;
}

/* Modal layers and contents must never inherit transforms or trigger jitter loops */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-dialog {
    margin: 1.75rem auto;
}

.modal-content,
.modal-content.card-theme,
.modal-content.card-3d,
.modal .card-theme,
.modal .card-3d {
    transform: none !important;
    transition: none !important;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45) !important;
}

.modal-content:hover,
.modal-content.card-theme:hover,
.modal-content.card-3d:hover,
.modal .card-theme:hover,
.modal .card-3d:hover {
    transform: none !important;
    transition: none !important;
}

.card-theme .card-header,
.card-3d .card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-theme .card-body,
.card-3d .card-body {
    padding: 1.35rem;
    color: var(--text-primary);
}

/* ==========================================================================
   6. 3D Stat Widgets & Isometric Badges
   ========================================================================== */

/* ==========================================================================
   13. VIP & Gamification 3D Cards
   ========================================================================== */

.vip-card-3d {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 243, 199, 0.6));
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: var(--3d-shadow-card);
}
:root[data-bs-theme="dark"] .vip-card-3d {
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.95), rgba(30, 35, 50, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.daily-spin-card-3d {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(224, 242, 254, 0.6));
    border: 1px solid rgba(14, 165, 233, 0.35) !important;
    box-shadow: var(--3d-shadow-card);
}
:root[data-bs-theme="dark"] .daily-spin-card-3d {
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.95), rgba(15, 35, 45, 0.95));
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--3d-shadow-card);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card.accent-success,
.card-theme.accent-success {
    border-top: 3px solid #10b981 !important;
}

.stat-card.accent-info,
.card-theme.accent-info {
    border-top: 3px solid #06b6d4 !important;
}

.stat-card.accent-primary,
.card-theme.accent-primary {
    border-top: 3px solid var(--primary) !important;
}

.stat-card.accent-warning,
.card-theme.accent-warning {
    border-top: 3px solid #f59e0b !important;
}

.stat-card.accent-danger,
.card-theme.accent-danger {
    border-top: 3px solid #ef4444 !important;
}


.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--3d-shadow-hover);
    border-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.35);
}

.stat-card .stat-icon,
.stat-icon-3d {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 16px -4px rgba(var(--bs-primary-rgb, 79, 70, 229), 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transform: perspective(600px) rotateX(4deg);
    transition: transform 0.25s ease;
}

.stat-card:hover .stat-icon,
.stat-card:hover .stat-icon-3d {
    transform: perspective(600px) rotateX(0deg) scale(1.08);
}

/* ==========================================================================
   7. Tactile 3D Buttons & Micro-Interactions
   ========================================================================== */

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 0.65rem;
    box-shadow: var(--3d-btn-shadow);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(var(--bs-primary-rgb, 79, 70, 229), 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-success {
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
    border-radius: 0.65rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-success:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-success:active {
    transform: translateY(2px);
}

.btn-outline-secondary,
.btn-outline-light {
    border-radius: 0.65rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* ==========================================================================
   8. Form Controls & 3D Inputs
   ========================================================================== */

.form-control,
.form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-color);
    border-radius: 0.65rem;
    padding: 0.65rem 0.95rem;
    box-shadow: var(--3d-shadow-inset);
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-focus-bg);
    border-color: var(--primary);
    color: var(--input-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb, 99, 102, 241), 0.2), var(--3d-shadow-inset);
}

.input-group-text {
    background-color: var(--input-group-bg);
    border: 1px solid var(--input-border);
    color: var(--text-secondary);
    border-radius: 0.65rem;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ==========================================================================
   9. Tables with 3D Depth
   ========================================================================== */

.table-theme {
    color: var(--text-primary);
}

.table-theme th {
    background-color: var(--table-header-bg);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    padding: 0.95rem 1.15rem;
}

.table-theme td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.95rem 1.15rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-theme tbody tr {
    transition: background-color 0.15s ease;
}

.table-theme tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.04);
}

/* ==========================================================================
   10. Badges with Specular Highlight
   ========================================================================== */

.badge-soft-primary { background-color: rgba(var(--bs-primary-rgb, 79, 70, 229), 0.12); color: var(--primary); border: 1px solid rgba(var(--bs-primary-rgb, 79, 70, 229), 0.2); }
.badge-soft-success { background-color: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-soft-warning { background-color: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-soft-danger  { background-color: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-soft-info    { background-color: rgba(6, 182, 212, 0.12); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.2); }

.badge {
    border-radius: 0.5rem;
    font-weight: 600;
}

/* ==========================================================================
   11. Code Boxes & Helpers
   ========================================================================== */

.code-box {
    background-color: var(--code-box-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    padding: 0.75rem 1rem;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
    color: var(--code-box-text);
    box-shadow: var(--3d-shadow-inset);
}

.hero-section {
    background: var(--hero-gradient);
    padding: 5rem 0 4rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--3d-shadow-card);
    transform: perspective(600px) rotateX(4deg);
    transition: transform 0.25s ease;
}

.feature-icon-box:hover {
    transform: perspective(600px) rotateX(0deg) scale(1.1);
}

/* Pulse Animation for Active OTP */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.pulse-badge {
    animation: pulse-ring 2s infinite ease-in-out;
}

/* ==========================================================================
   12. Universal Light/Dark Theme Typography Adapters & Contrast Enforcer
   ========================================================================== */

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

/* Light Mode Global Text Contrast Overrides */
:root,
:root[data-bs-theme="light"],
[data-theme="light"] {
    --table-header-bg: #f1f5f9;
}

:root[data-bs-theme="dark"],
[data-theme="dark"] {
    --table-header-bg: #151922;
}

:root[data-bs-theme="light"],
[data-theme="light"] {
    --bs-body-color: #0f172a;
    --bs-body-color-rgb: 15, 23, 42;
    --bs-heading-color: #0f172a;
    --bs-light: #f1f5f9;
    --bs-light-rgb: 241, 245, 249;
    --bs-dark: #0f172a;
    --bs-dark-rgb: 15, 23, 42;
    --bs-link-color: var(--primary, #4f46e5);
    --bs-link-hover-color: var(--primary-hover, #4338ca);
}

/* Force dark text on all general headings and paragraphs */
:root[data-bs-theme="light"] h1,
:root[data-bs-theme="light"] h2,
:root[data-bs-theme="light"] h3,
:root[data-bs-theme="light"] h4,
:root[data-bs-theme="light"] h5,
:root[data-bs-theme="light"] h6 {
    color: #0f172a;
}

/* Universal elimination of white / faint text on light backgrounds */
:root[data-bs-theme="light"] .text-dark,
:root[data-bs-theme="light"] [class*="text-dark"] {
    color: #0f172a !important;
}

:root[data-bs-theme="light"] .text-white,
:root[data-bs-theme="light"] [class*="text-white"] {
    color: #0f172a !important;
}

:root[data-bs-theme="light"] .text-light,
:root[data-bs-theme="light"] [class*="text-light"] {
    color: #334155 !important;
}

:root[data-bs-theme="light"] .text-white-50 {
    color: #64748b !important;
}

:root[data-bs-theme="light"] .text-secondary {
    color: #475569 !important;
}

:root[data-bs-theme="light"] .text-muted {
    color: #64748b !important;
}

/* Links with text-white / text-light */
:root[data-bs-theme="light"] a.text-white,
:root[data-bs-theme="light"] a.text-light {
    color: #0f172a !important;
}
:root[data-bs-theme="light"] a.text-white:hover,
:root[data-bs-theme="light"] a.text-light:hover {
    color: var(--primary) !important;
}

/* Radio / Checkbox Selection States (.btn-check) */
:root[data-bs-theme="light"] .btn-check:checked + .btn-outline-secondary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: var(--3d-btn-shadow) !important;
}
:root[data-bs-theme="light"] .btn-check:checked + .btn-outline-secondary * {
    color: #ffffff !important;
}
:root[data-bs-theme="light"] .btn-check:not(:checked) + .btn-outline-secondary {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
:root[data-bs-theme="light"] .btn-check:not(:checked) + .btn-outline-secondary * {
    color: #0f172a !important;
}
:root[data-bs-theme="light"] .btn-check:not(:checked) + .btn-outline-secondary .text-secondary,
:root[data-bs-theme="light"] .btn-check:not(:checked) + .btn-outline-secondary .text-muted {
    color: #64748b !important;
}

/* Whitelist ONLY elements with solid saturated colored backgrounds that genuinely require white text */
:root[data-bs-theme="light"] .btn-primary:not(.btn-outline-primary),
:root[data-bs-theme="light"] .btn-primary:not(.btn-outline-primary) *,
:root[data-bs-theme="light"] .btn-success:not(.btn-outline-success),
:root[data-bs-theme="light"] .btn-success:not(.btn-outline-success) *,
:root[data-bs-theme="light"] .btn-danger:not(.btn-outline-danger),
:root[data-bs-theme="light"] .btn-danger:not(.btn-outline-danger) *,
:root[data-bs-theme="light"] .badge.bg-primary:not([class*="bg-opacity-"]):not([class*="-subtle"]),
:root[data-bs-theme="light"] .badge.bg-primary:not([class*="bg-opacity-"]):not([class*="-subtle"]) *,
:root[data-bs-theme="light"] .badge.bg-success:not([class*="bg-opacity-"]):not([class*="-subtle"]),
:root[data-bs-theme="light"] .badge.bg-success:not([class*="bg-opacity-"]):not([class*="-subtle"]) *,
:root[data-bs-theme="light"] .badge.bg-danger:not([class*="bg-opacity-"]):not([class*="-subtle"]),
:root[data-bs-theme="light"] .badge.bg-danger:not([class*="bg-opacity-"]):not([class*="-subtle"]) *,
:root[data-bs-theme="light"] .app-sidebar .nav-link.active,
:root[data-bs-theme="light"] .app-sidebar .nav-link.active * {
    color: #ffffff !important;
}

/* Fix bg-dark containers in light mode to be clean light gray with dark text */
:root[data-bs-theme="light"] .bg-dark:not(.badge):not(.btn) {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}
:root[data-bs-theme="light"] .bg-dark * {
    color: #0f172a !important;
}
:root[data-bs-theme="light"] .bg-dark .text-secondary,
:root[data-bs-theme="light"] .bg-dark .text-muted {
    color: #64748b !important;
}
:root[data-bs-theme="light"] .bg-dark .text-info {
    color: #0284c7 !important;
}
:root[data-bs-theme="light"] .bg-dark .text-warning {
    color: #d97706 !important;
}
:root[data-bs-theme="light"] .bg-dark .text-success {
    color: #059669 !important;
}
:root[data-bs-theme="light"] .bg-dark .text-danger {
    color: #dc2626 !important;
}
:root[data-bs-theme="light"] .bg-dark .badge.bg-primary:not([class*="bg-opacity-"]) {
    color: #ffffff !important;
}

/* Alerts text contrast in light mode */
:root[data-bs-theme="light"] .alert {
    color: #0f172a !important;
}
:root[data-bs-theme="light"] .alert * {
    color: inherit;
}
:root[data-bs-theme="light"] .alert-primary {
    background-color: rgba(var(--bs-primary-rgb, 79, 70, 229), 0.08) !important;
    border-color: rgba(var(--bs-primary-rgb, 79, 70, 229), 0.25) !important;
    color: var(--primary) !important;
}
:root[data-bs-theme="light"] .alert-primary * {
    color: inherit;
}
:root[data-bs-theme="light"] .alert-primary .badge.bg-primary {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}
:root[data-bs-theme="light"] .btn-close-white {
    filter: none !important;
}

/* Fix dark badges in light mode */
:root[data-bs-theme="light"] .badge.bg-dark {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

:root[data-bs-theme="light"] .badge.bg-dark * {
    color: #0f172a !important;
}

/* Fix dark buttons in light mode */
:root[data-bs-theme="light"] .btn-dark:not(.btn-primary):not(.btn-success):not(.btn-danger) {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
    box-shadow: var(--3d-shadow-sm) !important;
}
:root[data-bs-theme="light"] .btn-dark:not(.btn-primary):not(.btn-success):not(.btn-danger) * {
    color: #1e293b !important;
}

:root[data-bs-theme="light"] .btn-dark:not(.btn-primary):not(.btn-success):not(.btn-danger):hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
    transform: translateY(-2px);
    box-shadow: var(--3d-shadow-card) !important;
}

/* Form Controls & Inputs */
:root[data-bs-theme="light"] .form-control,
:root[data-bs-theme="light"] .form-select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
:root[data-bs-theme="light"] .input-group-text {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

/* Tables in Light Mode */
:root[data-bs-theme="light"] .table,
:root[data-bs-theme="light"] .table-theme {
    --bs-table-color: #0f172a;
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #f8fafc;
    color: #0f172a !important;
}
:root[data-bs-theme="light"] .table th,
:root[data-bs-theme="light"] .table-theme th {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
:root[data-bs-theme="light"] .table td,
:root[data-bs-theme="light"] .table-theme td {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
:root[data-bs-theme="light"] .table td .text-secondary,
:root[data-bs-theme="light"] .table td .text-muted {
    color: #64748b !important;
}

/* Fix accordion buttons in light mode */
:root[data-bs-theme="light"] .accordion-button {
    color: #0f172a !important;
    background-color: #ffffff !important;
}

:root[data-bs-theme="light"] .accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    background-color: #f8fafc !important;
}

:root[data-bs-theme="light"] .accordion-item {
    background-color: transparent !important;
    border-color: #e2e8f0 !important;
}

/* Fix dropdown menus in light mode */
:root[data-bs-theme="light"] .dropdown-menu,
:root[data-bs-theme="light"] .dropdown-menu.bg-dark {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: var(--3d-shadow-hover) !important;
}

:root[data-bs-theme="light"] .dropdown-menu .dropdown-item,
:root[data-bs-theme="light"] .dropdown-menu.bg-dark .dropdown-item {
    color: #334155 !important;
}

:root[data-bs-theme="light"] .dropdown-menu .dropdown-item:hover,
:root[data-bs-theme="light"] .dropdown-menu.bg-dark .dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: var(--primary) !important;
}

/* Public responsive navbar for Homepage & Legal pages */
.public-navbar {
    background-color: var(--top-navbar-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color) !important;
    z-index: 1040;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.public-navbar .navbar-brand {
    color: var(--text-heading) !important;
}

.public-navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    white-space: nowrap !important;
    font-size: 0.9rem;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--primary) !important;
}

.public-navbar .mobile-nav-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color) !important;
    color: var(--text-heading) !important;
    box-shadow: var(--3d-shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.public-navbar .mobile-nav-toggle:hover,
.public-navbar .mobile-nav-toggle:focus {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: var(--bg-card-hover);
}

@media (max-width: 1199.98px) {
    .public-navbar .navbar-collapse {
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 1rem;
        padding: 1.25rem;
        margin-top: 0.75rem;
        box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45);
    }

    .public-navbar .navbar-collapse .nav-link {
        color: var(--text-heading) !important;
        font-weight: 600;
        padding: 0.6rem 0.85rem;
        border-radius: 0.5rem;
    }

    .public-navbar .navbar-collapse .nav-link:hover {
        background: var(--bg-sidebar-active) !important;
        color: var(--primary) !important;
    }
}

/* Public navbar in light mode fallback */
:root[data-bs-theme="light"] .navbar-dark.bg-dark {
    background-color: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: var(--3d-shadow-sm);
}

:root[data-bs-theme="light"] .navbar-dark .navbar-nav .nav-link {
    color: #475569 !important;
    font-weight: 500;
}

:root[data-bs-theme="light"] .navbar-dark .navbar-nav .nav-link:hover {
    color: #0f172a !important;
}

:root[data-bs-theme="light"] .navbar-dark .navbar-brand {
    color: #0f172a !important;
}

:root[data-bs-theme="light"] .navbar-dark .btn-outline-light {
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
}

/* Public footer in light mode */
:root[data-bs-theme="light"] footer.bg-dark {
    background-color: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

:root[data-bs-theme="light"] footer .text-white {
    color: #0f172a !important;
}

/* Stat card values in light mode */
:root[data-bs-theme="light"] .stat-card h3,
:root[data-bs-theme="light"] .stat-card h5,
:root[data-bs-theme="light"] .stat-card .fw-bold {
    color: #0f172a !important;
}

/* Cards & Modals */
:root[data-bs-theme="light"] .card-theme:not(.btn),
:root[data-bs-theme="light"] .card-3d:not(.btn),
:root[data-bs-theme="light"] .modal-content {
    color: #0f172a !important;
    background-color: #ffffff !important;
}

/* Ensure Primary Buttons always keep their vibrant blue across all themes and contexts */
:root[data-bs-theme="light"] .btn-primary,
:root[data-bs-theme="dark"] .btn-primary,
.btn-primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    background-color: #2563eb !important;
    border-color: #1d4ed8 !important;
}

:root[data-bs-theme="light"] .btn-primary:hover,
:root[data-bs-theme="dark"] .btn-primary:hover,
.btn-primary:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    background-color: #1d4ed8 !important;
    border-color: #1e40af !important;
}

:root[data-bs-theme="light"] .card-title,
:root[data-bs-theme="light"] .card-header,
:root[data-bs-theme="light"] .modal-title {
    color: #0f172a !important;
}

/* Border secondary */
:root[data-bs-theme="light"] .border-secondary {
    border-color: rgba(226, 232, 240, 0.9) !important;
}

/* ==========================================================================
   CUSTOM OPACITY UTILITIES (Fixes Bootstrap 5 missing 15% & 20% utilities)
   ========================================================================== */
.bg-opacity-5  { --bs-bg-opacity: 0.05 !important; }
.bg-opacity-10 { --bs-bg-opacity: 0.10 !important; }
.bg-opacity-15 { --bs-bg-opacity: 0.15 !important; }
.bg-opacity-20 { --bs-bg-opacity: 0.20 !important; }
.bg-opacity-25 { --bs-bg-opacity: 0.25 !important; }
.bg-opacity-30 { --bs-bg-opacity: 0.30 !important; }
.bg-opacity-40 { --bs-bg-opacity: 0.40 !important; }
.bg-opacity-50 { --bs-bg-opacity: 0.50 !important; }
.bg-opacity-60 { --bs-bg-opacity: 0.60 !important; }
.bg-opacity-70 { --bs-bg-opacity: 0.70 !important; }
.bg-opacity-75 { --bs-bg-opacity: 0.75 !important; }
.bg-opacity-80 { --bs-bg-opacity: 0.80 !important; }
.bg-opacity-90 { --bs-bg-opacity: 0.90 !important; }

.border-opacity-10 { --bs-border-opacity: 0.10 !important; }
.border-opacity-15 { --bs-border-opacity: 0.15 !important; }
.border-opacity-20 { --bs-border-opacity: 0.20 !important; }
.border-opacity-25 { --bs-border-opacity: 0.25 !important; }
.border-opacity-30 { --bs-border-opacity: 0.30 !important; }
.border-opacity-50 { --bs-border-opacity: 0.50 !important; }

/* ==========================================================================
   BULLETPROOF BADGE TEXT CONTRAST & TINTED BACKGROUNDS
   ========================================================================== */
.badge.bg-success[class*="bg-opacity-"],
.badge-soft-success {
    background-color: rgba(16, 185, 129, 0.18) !important;
    color: #10b981 !important;
}
:root[data-bs-theme="light"] .badge.bg-success[class*="bg-opacity-"],
:root[data-bs-theme="light"] .badge-soft-success {
    background-color: rgba(16, 185, 129, 0.14) !important;
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.badge.bg-danger[class*="bg-opacity-"],
.badge-soft-danger {
    background-color: rgba(239, 68, 68, 0.18) !important;
    color: #ef4444 !important;
}
:root[data-bs-theme="light"] .badge.bg-danger[class*="bg-opacity-"],
:root[data-bs-theme="light"] .badge-soft-danger {
    background-color: rgba(239, 68, 68, 0.14) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.badge.bg-warning[class*="bg-opacity-"],
.badge-soft-warning {
    background-color: rgba(245, 158, 11, 0.18) !important;
    color: #f59e0b !important;
}
:root[data-bs-theme="light"] .badge.bg-warning[class*="bg-opacity-"],
:root[data-bs-theme="light"] .badge-soft-warning {
    background-color: rgba(245, 158, 11, 0.14) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

.badge.bg-info[class*="bg-opacity-"],
.badge-soft-info {
    background-color: rgba(6, 182, 212, 0.18) !important;
    color: #06b6d4 !important;
}
:root[data-bs-theme="light"] .badge.bg-info[class*="bg-opacity-"],
:root[data-bs-theme="light"] .badge-soft-info {
    background-color: rgba(6, 182, 212, 0.14) !important;
    color: #0284c7 !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
}

.badge.bg-primary[class*="bg-opacity-"],
.badge-soft-primary {
    background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.18) !important;
    color: var(--primary) !important;
}
:root[data-bs-theme="light"] .badge.bg-primary[class*="bg-opacity-"],
:root[data-bs-theme="light"] .badge-soft-primary {
    background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.14) !important;
    color: var(--primary) !important;
    border-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.3) !important;
}

/* ==========================================================================
   NOTIFICATION BELL & 3D DROPDOWN SYSTEM
   ========================================================================== */
.notification-bell-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    box-shadow: var(--3d-shadow-sm);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.notification-bell-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--3d-shadow-card);
    color: var(--primary);
    border-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.4);
}

.notification-bell-btn:active {
    transform: translateY(1px);
    box-shadow: var(--3d-shadow-inset);
}

.notification-bell-btn i {
    font-size: 1.15rem;
    transition: transform 0.25s ease;
}

.notification-bell-btn:hover i {
    transform: rotate(15deg) scale(1.1);
}

.notification-bell-btn.has-unread i {
    animation: bell-swing 3s infinite ease-in-out;
}

@keyframes bell-swing {
    0%, 80%, 100% { transform: rotate(0); }
    85% { transform: rotate(14deg); }
    90% { transform: rotate(-12deg); }
    95% { transform: rotate(8deg); }
}

.notification-badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.55);
    border: 2px solid var(--bg-card);
    pointer-events: none;
    animation: pulse-badge 2.2s infinite ease-in-out;
}

.notification-dropdown-menu {
    width: 380px;
    max-width: 92vw;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--3d-shadow-hover) !important;
    margin-top: 10px !important;
    z-index: 1060;
}

.notification-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-dropdown-list {
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notification-dropdown-list::-webkit-scrollbar {
    width: 5px;
}
.notification-dropdown-list::-webkit-scrollbar-track {
    background: transparent;
}
.notification-dropdown-list::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 10px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.15s ease-in-out;
    position: relative;
    background: var(--bg-card);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.06) !important;
    transform: translateX(2px);
}

.notification-item.unread {
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.04);
}

:root[data-bs-theme="light"] .notification-item.unread {
    background: #f8faff;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3.5px;
    border-radius: 0 4px 4px 0;
    background: var(--primary);
}

.notification-icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: var(--3d-shadow-sm);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.notification-meta-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.notification-meta-desc {
    font-size: 0.775rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-meta-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.notification-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   High-Contrast & Obvious Manual Payment Selection Styles
   ========================================================================== */
.manual-dropdown-container {
    border: 2px solid #2563eb !important;
    border-radius: 0.85rem;
    background: rgba(37, 99, 235, 0.08) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

:root[data-bs-theme="light"] .manual-dropdown-container {
    background: #f0f7ff !important;
    border-color: #2563eb !important;
}

.manual-select-prominent {
    border: 2px solid #2563eb !important;
    font-size: 1.05rem !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
    background-color: var(--bg-card) !important;
    color: var(--text-heading) !important;
}

:root[data-bs-theme="light"] .manual-select-prominent {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.manual-select-prominent:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3) !important;
}

/* Method Card default state */
.manual-method-card {
    border: 2px solid rgba(148, 163, 184, 0.28) !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border-radius: 0.75rem;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

:root[data-bs-theme="light"] .manual-method-card {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.manual-method-card:hover {
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

/* Obvious Active State: Glowing Blue Border, Vibrant Blue Tint Background */
.manual-method-card.active {
    border: 2.5px solid #2563eb !important;
    background: rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.32), 0 6px 18px rgba(37, 99, 235, 0.22) !important;
    transform: translateY(-2px);
}

:root[data-bs-theme="light"] .manual-method-card.active {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.28), 0 6px 18px rgba(2, 132, 199, 0.18) !important;
}

.manual-method-card .active-check-badge {
    display: none;
}

.manual-method-card.active .active-check-badge {
    display: inline-flex !important;
}

.manual-method-card.active .method-card-name {
    color: #3b82f6 !important;
}

:root[data-bs-theme="light"] .manual-method-card.active .method-card-name {
    color: #0369a1 !important;
}

/* ==========================================================================
   Captcha Verification & Password Strength Utilities
   ========================================================================== */
.captcha-display-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    background: #111625 !important;
    border: 1.5px solid rgba(168, 85, 247, 0.45) !important;
    height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.captcha-display-card svg {
    height: 46px !important;
    max-height: 46px !important;
    width: 100% !important;
    display: block !important;
}

.captcha-display-card:hover {
    transform: scale(1.01);
    border-color: #c084fc !important;
    box-shadow: 0 0 18px rgba(192, 132, 252, 0.35) !important;
}

.captcha-display-card:active {
    transform: scale(0.99);
}

.captcha-refresh-spin {
    animation: captchaSpin 0.5s ease-in-out;
}

@keyframes captchaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Password Strength Indicator */
#passwordStrengthBox {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.strength-meter-bar {
    height: 6px;
    border-radius: 999px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.req-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.req-item.valid {
    color: #10b981 !important;
    font-weight: 600;
}

.req-item.valid i {
    color: #10b981 !important;
}

.password-toggle-btn {
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.password-toggle-btn:hover {
    color: var(--text-heading) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

:root[data-bs-theme="light"] .password-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
   Dashboard Notification Banner & 1-Minute Auto-Dismiss
   ========================================================================== */
.dashboard-notif-alert {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.4s ease,
                padding 0.4s ease;
    max-height: 160px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.dashboard-notif-alert.dismissing {
    opacity: 0 !important;
    transform: translateY(-8px) scale(0.98) !important;
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    border-width: 0 !important;
}

.notif-close-btn {
    opacity: 0.65;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
}

.notif-close-btn:hover {
    opacity: 1;
    transform: scale(1.12);
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--text-heading) !important;
}

:root[data-bs-theme="light"] .notif-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.notif-timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    width: 100%;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    opacity: 0.65;
    animation: notifTimerShrink 60s linear forwards;
}

@keyframes notifTimerShrink {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* ==========================================================================
   Google Translate Styling & Trademark Removal
   ========================================================================== */

/* Hide Google Translate top banner iframe and prevent page displacement */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
iframe.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
}

body {
    top: 0px !important;
    position: static !important;
}

/* Hide Google logos, trademarks, attribution links, and tooltips */
.goog-logo-link,
.goog-te-gadget span,
.goog-te-gadget .goog-logo-link,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

/* Hide "Powered by Google" and all wrapper text */
.goog-te-gadget {
    color: transparent !important;
    font-size: 0px !important;
    line-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

/* Strip Google's text hover highlight */
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* Container wrapper for Google Translate */
.google-translate-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    vertical-align: middle;
}

/* Custom styled modern language dropdown */
.goog-te-gadget .goog-te-combo {
    display: inline-block !important;
    font-family: inherit !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--text-heading, #0f172a) !important;
    background-color: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.25)) !important;
    border-radius: 0.5rem !important;
    padding: 0.32rem 1.75rem 0.32rem 1.85rem !important;
    margin: 0 !important;
    height: 32px !important;
    line-height: 1.4 !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* Dual background icons: Globe on left, Chevron on right */
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236366f1' viewBox='0 0 16 16'%3E%3Cpath d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m7.5-6.923c-.67.204-1.335.82-1.887 1.855A8 8 0 0 0 5.145 4H7.5zM4.09 4a9.3 9.3 0 0 1 .64-1.539 7 7 0 0 1 .597-.933A7.03 7.03 0 0 0 2.255 4zm-.582 3.5c.03-.877.138-1.718.312-2.5H1.67A6.96 6.96 0 0 0 1.05 7.5zM1.67 8.5h2.152c-.174.782-.282 1.623-.312 2.5H1.05A6.96 6.96 0 0 0 1.67 8.5m1.655 3.5h2.09c.277.839.638 1.547 1.077 2.072A7 7 0 0 1 2.255 12zm2.84 0h2.755v2.923c-.67-.204-1.335-.82-1.887-1.855a8 8 0 0 1-.468-1.068m3.335 0v2.923c.67-.204 1.335-.82 1.887-1.855.173-.324.33-.682.468-1.068zm3.325-1.5a9.3 9.3 0 0 0-.64 1.539 7 7 0 0 1-.597.933 7.03 7.03 0 0 0 3.07-2.472zm.582-3.5c-.03.877-.138 1.718-.312 2.5h2.152a6.96 6.96 0 0 0 .62-2.5zm0-1H12.74c.174-.782.282-1.623.312-2.5h2.152c.28.78.49 1.62.62 2.5m-1.655-3.5h-2.09a8 8 0 0 1-1.077-2.072 7.03 7.03 0 0 1 3.167 2.072M8.5 1.077V4h2.355a8 8 0 0 0-.468-1.068c-.552-1.035-1.218-1.65-1.887-1.855M8.5 5v3.5h3.918a8.2 8.2 0 0 0-.17-2.5zm0 4.5V13h2.355c-.277-.839-.638-1.547-1.077-2.072a8.2 8.2 0 0 0-.74-1.428zm-1 0H4.582a8.2 8.2 0 0 0 .74 1.428c.439.525.8 1.233 1.077 2.072V9.5zm0-1V5H5.082a8.2 8.2 0 0 0-.17 2.5H7.5z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: left 0.55rem center, right 0.5rem center !important;
    background-size: 13px 13px, 10px 10px !important;
    max-width: 145px !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 767.98px) {
    .google-translate-wrapper {
        max-width: 82px;
    }
    .goog-te-gadget .goog-te-combo {
        max-width: 82px !important;
        font-size: 0.72rem !important;
        padding: 0.25rem 0.95rem 0.25rem 1.35rem !important;
        background-position: left 0.35rem center, right 0.25rem center !important;
        background-size: 11px 11px, 8px 8px !important;
        height: 28px !important;
    }
}

@media (max-width: 420px) {
    .google-translate-wrapper {
        max-width: 66px;
    }
    .goog-te-gadget .goog-te-combo {
        max-width: 66px !important;
        padding: 0.2rem 0.75rem 0.2rem 1.15rem !important;
        background-position: left 0.25rem center, right 0.2rem center !important;
        background-size: 10px 10px, 7px 7px !important;
        height: 26px !important;
        font-size: 0.68rem !important;
    }
}

:root[data-bs-theme="dark"] .goog-te-gadget .goog-te-combo {
    background-color: rgba(30, 41, 59, 0.85) !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.goog-te-gadget .goog-te-combo:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.18) !important;
}

.goog-te-gadget .goog-te-combo:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.25) !important;
}

.goog-te-gadget .goog-te-combo option {
    background-color: #ffffff;
    color: #0f172a;
    font-size: 0.85rem;
    padding: 4px;
}

:root[data-bs-theme="dark"] .goog-te-gadget .goog-te-combo option {
    background-color: #0f172a;
    color: #f1f5f9;
}

/* ==========================================================================
   19. Dashboard Privacy & Balance Masking Mode
   ========================================================================== */
.balance-maskable {
    display: inline-flex;
    align-items: baseline;
    position: relative;
}

.balance-maskable .masked-amount {
    display: none !important;
    letter-spacing: 2px;
    font-weight: 700;
    user-select: none;
}

html.hide-balances .balance-maskable .real-amount,
body.hide-balances .balance-maskable .real-amount {
    display: none !important;
}

html.hide-balances .balance-maskable .masked-amount,
body.hide-balances .balance-maskable .masked-amount {
    display: inline-block !important;
}

/* Fallback blur on any element with .money-amount when balances are hidden */
html.hide-balances .money-amount,
body.hide-balances .money-amount {
    filter: blur(5px);
    user-select: none;
    transition: filter 0.15s ease;
}

/* Eye Toggle Button Animations */
#toggleBalanceVisibility {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#toggleBalanceVisibility:hover {
    border-color: rgba(245, 158, 11, 0.6) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

#toggleBalanceVisibility:active {
    transform: translateY(0);
}

/* Redesigned VIP Card Highlights */
.vip-card-3d {
    background: radial-gradient(120% 120% at 90% 10%, rgba(245, 158, 11, 0.08) 0%, rgba(30, 41, 59, 0.4) 60%, rgba(15, 23, 42, 0.95) 100%), var(--card-bg);
    position: relative;
    overflow: hidden;
}

.vip-card-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* ==========================================================================
   Admin Mobile Quick-Access Action Strip & Mobile Navigation Dock
   ========================================================================== */

.admin-mobile-quickbar {
    margin: 0 -1rem 1rem -1rem;
    padding: 0.25rem 0.75rem 0.6rem 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.admin-mobile-quickbar::-webkit-scrollbar {
    display: none;
}

@media (max-width: 575.98px) {
    .admin-mobile-quickbar {
        margin: 0 -0.65rem 0.75rem -0.65rem;
        padding: 0.2rem 0.5rem 0.5rem 0.5rem;
    }
}

.admin-quickbar-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.admin-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.admin-quick-chip:hover,
.admin-quick-chip:focus {
    color: var(--text-primary);
    border-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.35);
    transform: translateY(-1px);
}

.admin-quick-chip.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 3px 10px rgba(var(--bs-primary-rgb, 79, 70, 229), 0.35);
}

.admin-quick-chip.active i {
    color: #ffffff !important;
}

.admin-quick-chip .badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 1rem;
}

/* Fixed Mobile Bottom Dock */
.admin-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: var(--top-navbar-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-color);
    padding: 0.4rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px)) 0.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.admin-bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.25rem 0.45rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    min-width: 56px;
    position: relative;
    user-select: none;
}

.admin-bottom-tab i {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.admin-bottom-tab:hover {
    color: var(--text-primary);
}

.admin-bottom-tab.active {
    color: var(--primary) !important;
}

.admin-bottom-tab.active i {
    transform: scale(1.15);
}

.admin-tab-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: var(--warning, #f59e0b);
    color: #111827;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-card);
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1044;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Platform Screen Loading Screen & Presets
   ========================================================================== */
.site-screen-loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    overflow: hidden;
    user-select: none;
}

.site-screen-loader.loader-fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Theme Backdrop Modes */
.site-screen-loader.loader-theme-dark {
    background: #080c16;
    color: #f8fafc;
}

.site-screen-loader.loader-theme-light {
    background: #ffffff;
    color: #0f172a;
}

.site-screen-loader.loader-theme-auto {
    background: #ffffff;
    color: #0f172a;
}

:root[data-bs-theme="dark"] .site-screen-loader.loader-theme-auto,
body[data-bs-theme="dark"] .site-screen-loader.loader-theme-auto {
    background: #080c16;
    color: #f8fafc;
}

/* Centered Content Card */
.loader-content-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 420px;
    padding: 2.5rem 1.75rem;
    position: relative;
    z-index: 2;
}

.loader-visual-stage {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.loader-brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-heading, inherit);
}

.loader-status-text {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
    color: var(--theme-primary, #6366f1);
}

.loader-status-subtext {
    font-size: 0.76rem;
    color: #64748b;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

/* Ambient Background Glow Orb */
.loader-ambient-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb, 99, 102, 241), 0.22) 0%, rgba(6, 182, 212, 0.12) 50%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
    animation: loaderAmbientBreathing 3s ease-in-out infinite alternate;
}

@keyframes loaderAmbientBreathing {
    0% { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.9; }
}

/* --------------------------------------------------------------------------
   PRESET 1: Cyber Shield Pulse (pulse_shield)
   -------------------------------------------------------------------------- */
.loader-preset-pulse-shield {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-shield-core {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--theme-primary, #6366f1), var(--theme-secondary, #06b6d4));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.65rem;
    box-shadow: 0 0 25px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.5);
    z-index: 3;
    animation: shieldCorePulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loader-shield-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--theme-primary, #6366f1);
    opacity: 0;
    animation: shieldRippleExpand 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loader-shield-ripple:nth-child(2) {
    animation-delay: 0.7s;
    border-color: var(--theme-secondary, #06b6d4);
}

.loader-shield-ripple:nth-child(3) {
    animation-delay: 1.4s;
    border-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.6);
}

@keyframes shieldCorePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.6)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 22px rgba(6, 182, 212, 0.85)); }
}

@keyframes shieldRippleExpand {
    0% { transform: scale(0.6); opacity: 0.85; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* --------------------------------------------------------------------------
   PRESET 2: Quantum Dual Orbit (quantum_orbit)
   -------------------------------------------------------------------------- */
.loader-preset-quantum-orbit {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(var(--bs-primary-rgb, 99, 102, 241), 0.35);
}

.loader-orbit-outer {
    width: 90px;
    height: 90px;
    border-top: 2.5px solid var(--theme-primary, #6366f1);
    border-right: 2.5px solid transparent;
    animation: orbitSpinClockwise 1.6s linear infinite;
}

.loader-orbit-outer::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-primary, #6366f1);
    box-shadow: 0 0 10px var(--theme-primary, #6366f1);
}

.loader-orbit-inner {
    width: 64px;
    height: 64px;
    border-bottom: 2.5px solid var(--theme-secondary, #06b6d4);
    border-left: 2.5px solid transparent;
    animation: orbitSpinCounter 1.2s linear infinite;
}

.loader-orbit-inner::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--theme-secondary, #06b6d4);
    box-shadow: 0 0 10px var(--theme-secondary, #06b6d4);
}

.loader-orbit-nucleus {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--theme-primary, #6366f1), var(--theme-secondary, #06b6d4));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 0 14px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.6);
}

@keyframes orbitSpinClockwise {
    to { transform: rotate(360deg); }
}

@keyframes orbitSpinCounter {
    to { transform: rotate(-360deg); }
}

/* --------------------------------------------------------------------------
   PRESET 3: Neon Laser Stream (neon_flow)
   -------------------------------------------------------------------------- */
.loader-preset-neon-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
}

.loader-neon-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb, 99, 102, 241), 0.3);
    color: var(--theme-primary, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 16px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.3);
    animation: shieldCorePulse 1.8s ease-in-out infinite;
}

.loader-neon-track {
    width: 140px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    overflow: hidden;
    position: relative;
}

.loader-neon-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--theme-primary, #6366f1), var(--theme-secondary, #06b6d4), transparent);
    box-shadow: 0 0 12px var(--theme-primary, #6366f1);
    animation: neonBarSweep 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes neonBarSweep {
    0% { left: -50%; }
    100% { left: 110%; }
}

/* --------------------------------------------------------------------------
   PRESET 4: Harmonic Equalizer (wave_dots)
   -------------------------------------------------------------------------- */
.loader-preset-wave-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 48px;
}

.loader-wave-bar {
    width: 6px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(to top, var(--theme-primary, #6366f1), var(--theme-secondary, #06b6d4));
    box-shadow: 0 0 10px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.4);
    animation: waveBarBounce 1.2s ease-in-out infinite alternate;
}

.loader-wave-bar:nth-child(1) { animation-delay: 0.1s; }
.loader-wave-bar:nth-child(2) { animation-delay: 0.25s; }
.loader-wave-bar:nth-child(3) { animation-delay: 0.4s; }
.loader-wave-bar:nth-child(4) { animation-delay: 0.55s; }
.loader-wave-bar:nth-child(5) { animation-delay: 0.7s; }

@keyframes waveBarBounce {
    0% { height: 10px; opacity: 0.35; transform: scaleY(0.6); }
    100% { height: 42px; opacity: 1; transform: scaleY(1.15); filter: drop-shadow(0 0 8px var(--theme-secondary, #06b6d4)); }
}

/* --------------------------------------------------------------------------
   PRESET 5: Matrix Cyber Scanner (cyber_matrix)
   -------------------------------------------------------------------------- */
.loader-preset-cyber-matrix {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(var(--bs-primary-rgb, 99, 102, 241), 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.25);
}

.loader-cyber-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(var(--bs-primary-rgb, 99, 102, 241), 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--bs-primary-rgb, 99, 102, 241), 0.15) 1px, transparent 1px);
    background-size: 10px 10px;
}

.loader-cyber-laser {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--theme-secondary, #06b6d4);
    box-shadow: 0 0 10px var(--theme-secondary, #06b6d4), 0 0 20px var(--theme-primary, #6366f1);
    animation: cyberLaserScan 1.6s ease-in-out infinite alternate;
}

.loader-cyber-center {
    position: relative;
    z-index: 2;
    color: var(--theme-primary, #6366f1);
    font-size: 1.7rem;
    animation: shieldCorePulse 1.6s ease-in-out infinite;
}

@keyframes cyberLaserScan {
    0% { top: 4px; opacity: 0.6; }
    100% { top: calc(100% - 6px); opacity: 1; }
}

/* --------------------------------------------------------------------------
   PRESET 6: Minimalist Conic Ring (minimal_spinner)
   -------------------------------------------------------------------------- */
.loader-preset-minimal-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3.5px solid rgba(var(--bs-primary-rgb, 99, 102, 241), 0.15);
    border-top-color: var(--theme-primary, #6366f1);
    border-right-color: var(--theme-secondary, #06b6d4);
    animation: orbitSpinClockwise 0.85s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    box-shadow: 0 0 18px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.2);
}

/* --------------------------------------------------------------------------
   Motion Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .loader-shield-ripple,
    .loader-orbit-outer,
    .loader-orbit-inner,
    .loader-neon-bar,
    .loader-wave-bar,
    .loader-cyber-laser,
    .loader-preset-minimal-spinner {
        animation-duration: 5s !important;
    }
}

/* ==========================================================================
   Icon Container Tint Contrast & Silver VIP Badge Fixes
   ========================================================================== */
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon i,
.stat-icon svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.bg-primary.bg-opacity-5,  [class*="bg-primary"][class*="bg-opacity-5"]  { background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.05) !important; }
.bg-primary.bg-opacity-10, [class*="bg-primary"][class*="bg-opacity-10"] { background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.10) !important; }
.bg-primary.bg-opacity-15, [class*="bg-primary"][class*="bg-opacity-15"] { background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.15) !important; }
.bg-primary.bg-opacity-20, [class*="bg-primary"][class*="bg-opacity-20"] { background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.20) !important; }
.bg-primary.bg-opacity-25, [class*="bg-primary"][class*="bg-opacity-25"] { background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.25) !important; }

/* Dedicated Silver VIP Badge with metallic gradient & crystal-clear text */
.badge-silver,
.badge.badge-silver {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.25);
    font-weight: 700;
}

/* Bulletproof fallback for .badge.bg-light across dark and light themes */
.badge.bg-light,
.badge.bg-light.text-dark {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
:root[data-bs-theme="dark"] .badge.bg-light,
:root[data-bs-theme="dark"] .badge.bg-light.text-dark {
    background-color: #334155 !important;
    color: #f8fafc !important;
    border: 1px solid #475569 !important;
}

/* ==========================================================================
   SweetAlert2 Theme-Aware Styling (Light & Dark)
   ========================================================================== */
:root[data-bs-theme="light"] .swal2-popup {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}
:root[data-bs-theme="light"] .swal2-title {
    color: #0f172a !important;
}
:root[data-bs-theme="light"] .swal2-html-container {
    color: #334155 !important;
}
:root[data-bs-theme="light"] .swal2-popup .table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #0f172a !important;
    color: #0f172a !important;
}
:root[data-bs-theme="light"] .swal2-popup .table thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 700 !important;
}
:root[data-bs-theme="light"] .swal2-popup .table tbody td {
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
:root[data-bs-theme="light"] .swal2-close {
    color: #64748b !important;
}

:root[data-bs-theme="dark"] .swal2-popup {
    background-color: #151922 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
}
:root[data-bs-theme="dark"] .swal2-title {
    color: #ffffff !important;
}
:root[data-bs-theme="dark"] .swal2-html-container {
    color: #cbd5e1 !important;
}
:root[data-bs-theme="dark"] .swal2-popup .table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #ffffff !important;
    color: #ffffff !important;
}
:root[data-bs-theme="dark"] .swal2-popup .table thead th {
    background-color: #1e2430 !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 700 !important;
}
:root[data-bs-theme="dark"] .swal2-popup .table tbody td {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
:root[data-bs-theme="dark"] .swal2-close {
    color: #94a3b8 !important;
}

/* ==========================================================================
   Progressive Web App (PWA) Install Banner, Modal & Trigger Buttons
   ========================================================================== */
.garads-pwa-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: calc(100vw - 32px);
    max-width: 390px;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s;
    pointer-events: none;
}

.garads-pwa-banner.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.garads-pwa-banner-inner {
    position: relative;
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--bs-primary-rgb, 99, 102, 241), 0.35);
    border-radius: 1.15rem;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 22px 45px -10px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    color: #f8fafc;
    overflow: hidden;
}

.garads-pwa-banner-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary, #6366f1), var(--secondary, #06b6d4));
}

:root[data-bs-theme="light"] .garads-pwa-banner-inner {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.3);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.16),
                0 4px 12px rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.garads-pwa-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.14);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.garads-pwa-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.garads-pwa-banner-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-right: 1.5rem;
}

.garads-pwa-icon-wrap {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 0.85rem;
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb, 99, 102, 241), 0.28);
    padding: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.garads-pwa-app-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.6rem;
}

.garads-pwa-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0b0f19;
}

:root[data-bs-theme="light"] .garads-pwa-online-dot {
    border-color: #ffffff;
}

.garads-pwa-banner-copy {
    flex: 1;
    min-width: 0;
}

.garads-pwa-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
}

.garads-pwa-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: inherit;
}

.garads-pwa-badge {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.18);
    color: var(--primary, #6366f1);
    border: 1px solid rgba(var(--bs-primary-rgb, 99, 102, 241), 0.35);
}

.garads-pwa-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #94a3b8;
    margin: 0;
}

:root[data-bs-theme="light"] .garads-pwa-desc {
    color: #475569;
}

.garads-pwa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0 0.85rem;
}

.garads-pwa-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

:root[data-bs-theme="light"] .garads-pwa-chip {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

.garads-pwa-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.garads-pwa-install-btn {
    flex: 1;
    font-weight: 700 !important;
    border-radius: 0.65rem !important;
    padding: 0.5rem 0.9rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.garads-pwa-later-btn {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 0.65rem;
    padding: 0.48rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.garads-pwa-later-btn:hover {
    border-color: rgba(148, 163, 184, 0.5);
    color: #f8fafc;
}

:root[data-bs-theme="light"] .garads-pwa-later-btn {
    color: #64748b;
    border-color: #cbd5e1;
}

:root[data-bs-theme="light"] .garads-pwa-later-btn:hover {
    color: #0f172a;
    border-color: #94a3b8;
}

/* PWA Guided Install Modal */
.garads-pwa-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(8, 12, 22, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.garads-pwa-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.garads-pwa-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #111827;
    border: 1px solid rgba(var(--bs-primary-rgb, 99, 102, 241), 0.35);
    border-radius: 1.35rem;
    padding: 1.75rem 1.5rem;
    color: #f8fafc;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.garads-pwa-modal-backdrop.is-open .garads-pwa-modal-dialog {
    transform: translateY(0) scale(1);
}

:root[data-bs-theme="light"] .garads-pwa-modal-dialog {
    background: #ffffff;
    color: #0f172a;
    border-color: #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
}

.garads-pwa-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.14);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.garads-pwa-modal-hero {
    text-align: center;
    margin-bottom: 1.25rem;
}

.garads-pwa-modal-icon-box {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 1rem;
    padding: 6px;
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb, 99, 102, 241), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.garads-pwa-modal-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}

.garads-pwa-modal-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.15);
    color: var(--primary, #6366f1);
    margin-bottom: 0.5rem;
}

.garads-pwa-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: inherit;
}

.garads-pwa-modal-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 0;
    line-height: 1.5;
}

:root[data-bs-theme="light"] .garads-pwa-modal-subtitle {
    color: #64748b;
}

.garads-pwa-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.garads-pwa-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

:root[data-bs-theme="light"] .garads-pwa-step {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.garads-pwa-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary, #6366f1);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.garads-pwa-step-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: inherit;
}

.garads-pwa-step-sub {
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.45;
}

:root[data-bs-theme="light"] .garads-pwa-step-sub {
    color: #64748b;
}

.garads-pwa-inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.45rem;
    border-radius: 0.35rem;
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.15);
    color: var(--primary, #6366f1);
    font-weight: 700;
    font-size: 0.72rem;
}

.garads-pwa-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10005;
    background: #111827;
    color: #f8fafc;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 0.75rem;
    padding: 0.75rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-12px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.garads-pwa-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 575.98px) {
    .garads-pwa-banner {
        right: 12px;
        left: 12px;
        bottom: 14px;
        width: auto;
        max-width: none;
    }
}

/* =========================================================================
   PWA & User Notification Bell Chime Animation & Toggle Styling
   ========================================================================= */
@keyframes bellRing {
    0% { transform: rotate(0); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-14deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    90% { transform: rotate(-5deg); }
    100% { transform: rotate(0); }
}

.notification-bell-btn.bell-ringing i {
    animation: bellRing 0.9s ease-in-out;
    color: #f59e0b !important;
}

.notif-sound-btn {
    transition: transform 0.15s ease, opacity 0.15s ease, color 0.15s ease;
    cursor: pointer;
}
.notif-sound-btn:hover {
    transform: scale(1.15);
}

/* =========================================================================
   Dashboard Quick Actions Grid (Native Mobile App Style Matching Reference)
   ========================================================================= */
.qa-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
}
@media (min-width: 768px) {
    .qa-grid-container {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.85rem;
    }
}
@media (min-width: 1200px) {
    .qa-grid-container {
        grid-template-columns: repeat(8, 1fr);
        gap: 0.95rem;
    }
}

.qa-section-card,
.qa-section-card a,
.qa-section-card a:hover,
.qa-section-card a:focus,
.qa-section-card a:active,
.qa-section-card a:visited,
.qa-grid-card,
.qa-grid-card:hover,
.qa-grid-card:focus,
.qa-grid-card:active,
.qa-grid-card:visited,
.qa-grid-card *,
.qa-grid-label,
.qa-grid-label * {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

.qa-section-card:hover {
    transform: none !important;
}

.qa-grid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 0.25rem 0.65rem;
    background-color: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(226, 232, 240, 0.9));
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    min-height: 94px;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.qa-grid-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary) !important;
    background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.05) !important;
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.18) !important;
    text-decoration: none !important;
}

:root[data-bs-theme="dark"] .qa-grid-card,
[data-theme="dark"] .qa-grid-card,
body[data-bs-theme="dark"] .qa-grid-card {
    background-color: var(--bg-card, #111827) !important;
    border-color: var(--border-color, rgba(255, 255, 255, 0.08)) !important;
}
:root[data-bs-theme="dark"] .qa-grid-card:hover,
[data-theme="dark"] .qa-grid-card:hover,
body[data-bs-theme="dark"] .qa-grid-card:hover {
    background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.12) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.28) !important;
}

.qa-grid-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.10);
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.45rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
:root[data-bs-theme="dark"] .qa-grid-icon-box,
[data-theme="dark"] .qa-grid-icon-box,
body[data-bs-theme="dark"] .qa-grid-icon-box {
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.18);
    color: var(--primary);
}

.qa-grid-card:hover .qa-grid-icon-box {
    transform: scale(1.1);
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.22);
}
:root[data-bs-theme="dark"] .qa-grid-card:hover .qa-grid-icon-box,
[data-theme="dark"] .qa-grid-card:hover .qa-grid-icon-box,
body[data-bs-theme="dark"] .qa-grid-card:hover .qa-grid-icon-box {
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.30);
}

.qa-grid-label {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-heading, #0f172a) !important;
    text-align: center;
    max-width: 100%;
    margin-bottom: 0;
    text-decoration: none !important;
    display: block;
    word-break: normal;
    transition: color 0.2s ease;
}
.qa-grid-card:hover .qa-grid-label {
    color: var(--primary) !important;
}
:root[data-bs-theme="dark"] .qa-grid-label,
[data-theme="dark"] .qa-grid-label,
body[data-bs-theme="dark"] .qa-grid-label {
    color: var(--text-heading, #f8fafc) !important;
}
:root[data-bs-theme="dark"] .qa-grid-card:hover .qa-grid-label,
[data-theme="dark"] .qa-grid-card:hover .qa-grid-label,
body[data-bs-theme="dark"] .qa-grid-card:hover .qa-grid-label {
    color: var(--primary) !important;
}




