/* ========================================
   CSS VARIABLES - RP THEME
   ======================================== */

:root {
    /* v2 conceptual: Midnight Cyber & High-Contrast Neon */
    --bg-deep: #05060b;
    --bg-primary: #0a0b14;
    --bg-secondary: #0f111a;

    /* Ultra-Glass Tokens (24px blur foundation) */
    --glass-bg: rgba(10, 11, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* High-Intensity Neon Palette */
    --accent-blue: #00d2ff;
    --accent-blue-glow: rgba(0, 210, 255, 0.4);
    --accent-purple: #818cf8;
    --accent-purple-glow: rgba(129, 140, 248, 0.4);
    --accent-cyan: #2dd4bf;
    --accent-cyan-glow: rgba(45, 212, 191, 0.4);

    /* Redefining Core Tokens */
    --accent-primary: var(--accent-blue);
    --accent-secondary: var(--accent-purple);
    --accent-glow: var(--accent-blue-glow);

    /* Dynamic Status Tokens */
    --success: #00ffa3;
    --success-glow: rgba(0, 255, 163, 0.3);
    --warning: #ffaa00;
    --warning-glow: rgba(255, 170, 0, 0.3);
    --danger: #ff3366;
    --danger-glow: rgba(255, 51, 102, 0.3);
    --info: #00d2ff;

    /* Typography Coloration */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Conceptual Island Layouts */
    --radius-full: 9999px;
    --radius-island: 1.5rem;
    --radius-panel: 1.25rem;
    --radius-control: 0.75rem;

    /* Motion Tokens */
    --transition-cyber: 400ms cubic-bezier(0.19, 1, 0.22, 1);
    --glow-primary: 0 0 20px var(--accent-blue-glow);
    --glow-success: 0 0 20px var(--success-glow);
    --glow-danger: 0 0 20px var(--danger-glow);
}

/* ========================================
   GOOGLE FONTS IMPORT
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Orbitron:wght@500;700;900&display=swap');

/* ========================================
   BASE STYLES & RESET - conceptual v2
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto !important;
    font-size: 16px;
    background: var(--bg-deep);
    height: 100%;
}

body.loading {
    overflow: hidden;
    height: 100vh;
}

/* Mesh Gradient Infrastructure - Enhanced Premium Version */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(0, 210, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(129, 140, 248, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(5, 6, 11, 1) 0%, transparent 100%);
    background-size: 100% 100%;
    pointer-events: none;
    animation: backgroundShift 15s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% {
        background-position: 0% 0%, 100% 0%, 50% 50%, 0 0, 0 0;
    }

    100% {
        background-position: 10% 10%, 90% 10%, 50% 50%, 25px 25px, 25px 25px;
    }
}

/* Lenis Smooth Scroll Recommended Styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* GSAP/Parallax Preparation */
.parallax-item {
    will-change: transform;
}

.reveal-up {
    opacity: 0;
}


/* Glass Surface Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: var(--radius-panel);
    position: relative;
    overflow: hidden;
}

.glass-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--glass-highlight) 0%, transparent 100%);
    pointer-events: none;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 1.5rem;
}

.gap-3 {
    gap: 2.5rem;
}

.gap-4 {
    gap: 4rem;
}

.flex-1 {
    flex: 1;
    min-width: 0;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-weight: 400;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-secondary);
}

/* ========================================
   NAVBAR - Premium Glass Layout
   ======================================== */
/* ========================================
   NAVBAR - Floating Conceptual Island
   ======================================== */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1200px;
    height: 4rem;
    z-index: 2000;
    transition: transform var(--transition-cyber), top var(--transition-cyber), width var(--transition-cyber), opacity var(--transition-cyber);
}

.navbar.scrolled {
    top: 0.5rem;
    width: calc(100% - 1rem);
    max-width: 1000px;
}

.navbar.navbar-hidden {
    transform: translate(-50%, -120%);
    opacity: 0;
    pointer-events: none;
}

.navbar-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(10, 11, 20, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    transition: padding var(--transition-cyber), background var(--transition-cyber), border-radius var(--transition-cyber);
}

.navbar.scrolled .navbar-content {
    padding: 0 1.5rem;
    height: 3.5rem;
    border-radius: var(--radius-control);
    background: rgba(10, 11, 20, 0.85);
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(to right, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-cyber);
}

.navbar-brand:hover {
    filter: drop-shadow(0 0 8px var(--accent-blue-glow));
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    transition: var(--transition-cyber);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 0.25rem 0;
}

.navbar-link:hover {
    color: var(--text-primary);
    filter: drop-shadow(0 0 5px var(--accent-blue-glow));
}

.navbar-link.active {
    color: var(--accent-blue);
    font-weight: 700;
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

#user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 2.5rem;
    transition: var(--transition-cyber);
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Main content shift to accommodate fixed floating navbar */
body>section,
body>div.main-content,
body>.container:not(.navbar-content) {
    padding-top: 7rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   CARDS - Ultra Glass Reconstruction
   ======================================== */
.card,
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    padding: 1.75rem 2rem;
    transition: var(--transition-cyber);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.card:hover,
.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-blue-glow);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.4), var(--glow-primary);
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ========================================
   BUTTONS - Concept Neon Strikes
   ======================================== */
.btn {
    padding: 0.875rem 2rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-control);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-cyber);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    background: transparent;
}

.btn-primary {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(0, 210, 255, 0.05);
}

.btn-primary:hover {
    background: var(--accent-blue);
    color: #000;
    box-shadow: 0 0 30px var(--accent-blue-glow);
    transform: translateY(-2px);
}

.btn-success {
    border-color: var(--success);
    color: var(--success);
    background: rgba(0, 255, 163, 0.05);
}

.btn-success:hover {
    background: var(--success);
    color: #000;
    box-shadow: var(--glow-success);
}

.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(255, 51, 102, 0.05);
}

.btn-danger:hover {
    background: var(--danger);
    color: #000;
    box-shadow: var(--glow-danger);
}

.btn-secondary {
    border-color: var(--glass-border);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

/* ========================================
   FORMS - Sleek Precision Inputs
   ======================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-input,
.form-select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.form-input:focus,
.form-select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-deep);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   TABLES - Premium Data Grid
   ======================================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-medium);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.table-container::-webkit-scrollbar {
    display: none;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    background: var(--bg-deep);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--border-medium);
    font-family: 'Orbitron', sans-serif;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--accent-primary);
}

/* ========================================
   MODALS - Enhanced Backdrop & Animations
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--glow-primary);
    animation: slideUp 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--divider-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
}

.modal-header h2 {
    margin: 0;
    background: linear-gradient(to right, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

.modal-close:hover {
    color: var(--text-primary);
    border-color: var(--danger);
    background: var(--gradient-danger);
    transform: rotate(90deg);
}

.modal-content form {
    padding: 2rem;
}

/* ========================================
   BADGES - Modern Status Indicators
   ======================================== */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid transparent;
}

.badge-primary {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    border-color: rgba(56, 189, 248, 0.2);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border-color: rgba(59, 130, 246, 0.2);
}

/* ========================================
   STAT CARDS - High-Impact Visuals
   ======================================== */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 500ms;
}

.stat-card:hover::before {
    opacity: 1;
}


.stat-card-green:hover {
    box-shadow: var(--glow-success);
}

.stat-card-red {
    background: var(--gradient-danger);
    border-color: rgba(255, 51, 102, 0.3);
}

.stat-card-red:hover {
    box-shadow: var(--glow-danger);
}

.stat-card-blue {
    background: var(--gradient-primary);
    border-color: rgba(0, 212, 255, 0.3);
}

.stat-card-blue:hover {
    box-shadow: var(--glow-primary);
}

.stat-card-gold {
    background: var(--gradient-gold);
    border-color: rgba(255, 215, 0, 0.3);
}

.stat-card-gold:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    line-height: 1.3;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.flex {
    display: flex;
}

.flex-col,
.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--accent-success);
}

.text-error {
    color: var(--accent-danger);
}

/* ========================================
   SPINNER / LOADING
   ======================================== */

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ========================================
   LOGO STYLES
   ======================================== */

.logo-sm {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

/* ========================================
   TABS
   ======================================== */

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
    overflow-x: auto;
}

.tab {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* ========================================
   ENHANCED STAT TILES - Neon Glass v2
   ======================================== */
.stat-card-green {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.1);
}

.stat-card-green:hover {
    box-shadow: var(--glow-success);
    background: rgba(0, 255, 163, 0.05);
}

.stat-card-red {
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.1);
}

.stat-card-red:hover {
    box-shadow: var(--glow-danger);
    background: rgba(255, 51, 102, 0.05);
}

.stat-card-blue {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
}

.stat-card-blue:hover {
    box-shadow: var(--glow-primary);
    background: rgba(0, 210, 255, 0.05);
}

.stat-card-pink {
    border-color: #ff33ff;
    box-shadow: 0 0 20px rgba(255, 51, 255, 0.1);
}

.stat-card-pink:hover {
    box-shadow: 0 0 30px rgba(255, 51, 255, 0.4);
    background: rgba(255, 51, 255, 0.05);
}

.stat-card-green .stat-value,
.stat-card-red .stat-value,
.stat-card-pink .stat-value,
.stat-card-blue .stat-value {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.stat-card-green .stat-label,
.stat-card-red .stat-label,
.stat-card-pink .stat-label,
.stat-card-blue .stat-label {
    color: var(--text-secondary);
}


/* ========================================
   LOGIN PAGE / HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    padding: 4rem 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 3rem 2rem;
    }
}


/* ========================================
   CLUB/GANG LOGO STYLES
   ======================================== */

.logo {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .logo {
        width: 80px;
        height: 80px;
    }
}

/* ========================================
   NAVBAR PROFILE IMAGE
   ======================================== */

#user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

#user-profile span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    color: var(--accent-primary);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 9999;
    padding: 2rem 0;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: var(--transition);
}

.mobile-nav-close:hover {
    color: var(--accent-primary);
}

.mobile-nav-items {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-items li {
    margin: 0;
}

.mobile-nav-items a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.mobile-nav-items a:hover,
.mobile-nav-items a.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    border-left-color: var(--accent-primary);
}

/* ========================================
   ENHANCED MOBILE RESPONSIVENESS
   ======================================== */

/* Tablets and below (768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .navbar-menu {
        display: none;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .card {
        padding: 1.25rem;
    }

    .stat-card,
    .stat-card-green,
    .stat-card-red,
    .stat-card-pink,
    .stat-card-blue {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-card-green .stat-value,
    .stat-card-red .stat-value,
    .stat-card-pink .stat-value,
    .stat-card-blue .stat-value {
        font-size: 2rem;
    }

    /* Tabs horizontal scroll */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        -ms-overflow-style: auto;
        padding-bottom: 0.25rem;
        margin-bottom: 1.5rem;
        gap: 0.25rem;
        display: flex;
        flex-wrap: nowrap;
    }

    .tabs::-webkit-scrollbar {
        height: 4px;
    }

    .tabs::-webkit-scrollbar-track {
        background: var(--bg-secondary);
    }

    .tabs::-webkit-scrollbar-thumb {
        background: rgba(99, 102, 241, 0.5);
        border-radius: 4px;
    }

    .tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        min-width: fit-content;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Modal full screen on mobile */
    .modal {
        padding: 0;
    }

    .modal-content {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
    }

    .modal-header {
        padding: 1.25rem;
    }

    .modal-content form {
        padding: 1.25rem;
    }

    /* Table improvements */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 100%;
        font-size: 0.75rem;
    }

    th,
    td {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }

    /* Make action buttons more compact on mobile */
    td .flex.gap-1 {
        gap: 0.25rem;
        flex-wrap: nowrap;
    }

    td .btn-sm {
        padding: 0.375rem 0.5rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    /* Button improvements */
    .btn {
        padding: 0.875rem 1.25rem;
        min-height: 44px;
    }

    .btn-sm {
        padding: 0.625rem 1rem;
        min-height: 38px;
    }

    /* Fix large currency value overflow in report cards */
    .card div[style*="font-size: 2.5rem"],
    .card div[style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
        word-break: break-all;
        overflow-wrap: anywhere;
        line-height: 1.2;
    }

    .stat-value {
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    /* Form improvements */
    .form-input,
    .form-select,
    textarea {
        padding: 0.875rem 1rem;
        font-size: 16px;
        /* Prevents zoom on iOS */
        min-height: 44px;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    /* Grid adjustments */
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Hero adjustments */
    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Small mobile devices (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .card {
        padding: 1rem;
    }

    .stat-card,
    .stat-card-green,
    .stat-card-red,
    .stat-card-pink,
    .stat-card-blue {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-card-green .stat-value,
    .stat-card-red .stat-value,
    .stat-card-pink .stat-value,
    .stat-card-blue .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .tab {
        padding: 0.5rem 0.625rem;
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }

    /* Show mobile labels on small screens */
    .tab .tab-text {
        display: none;
    }

    .tab::before {
        content: attr(data-mobile-label);
    }

    .badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }
}

/* Touch-friendly improvements for all mobile */
@media (hover: none) and (pointer: coarse) {

    /* Increase tap targets */
    .btn,
    .navbar-link,
    .tab,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
    }

    .stat-card:hover,
    .stat-card-green:hover,
    .stat-card-red:hover,
    .stat-card-pink:hover,
    .stat-card-blue:hover {
        transform: none;
    }

    /* Add active states instead */
    .btn:active {
        transform: scale(0.98);
    }

    .card:active {
        background: var(--bg-card-hover);
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .modal-content {
        max-height: 95vh;
        overflow-y: auto;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Improve scrollbar on mobile */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
}

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */

/* Notification Container */
.notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

/* Toast Notifications */
.notification-toast {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--accent-primary);
    min-width: 300px;
    max-width: 400px;
    pointer-events: all;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-toast .notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.notification-toast .notification-message {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.notification-toast .notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-toast .notification-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Toast Types */
.notification-success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), var(--bg-card));
}

.notification-success .notification-icon {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.notification-error {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1), var(--bg-card));
}

.notification-error .notification-icon {
    background: rgba(255, 51, 102, 0.2);
    color: var(--danger);
}

.notification-warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.1), var(--bg-card));
}

.notification-warning .notification-icon {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning);
}

.notification-info {
    border-left-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), var(--bg-card));
}

.notification-info .notification-icon {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-primary);
}

/* Notification Modals */
.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}

.notification-modal.active {
    display: flex;
}

.notification-modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl), 0 0 50px rgba(0, 212, 255, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.notification-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.notification-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--divider-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
}

.notification-modal-header .notification-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.2);
}

.notification-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.notification-modal-body {
    padding: 2rem;
}

.notification-modal-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.notification-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.notification-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.notification-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--divider-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: var(--bg-card);
}

/* Alert Type Variants */
.notification-alert-success::before {
    background: var(--gradient-success);
}

.notification-alert-success .notification-icon {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.notification-alert-error::before {
    background: var(--gradient-danger);
}

.notification-alert-error .notification-icon {
    background: rgba(255, 51, 102, 0.2);
    color: var(--danger);
}

.notification-alert-warning::before {
    background: linear-gradient(135deg, #ffaa00, #ff6600);
}

.notification-alert-warning .notification-icon {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .notification-toast {
        min-width: auto;
        max-width: none;
    }

    .notification-modal-content {
        max-width: none;
    }

    .notification-modal-header,
    .notification-modal-body,
    .notification-modal-footer {
        padding: 1rem 1.5rem;
    }
}

/* ========================================
   PREMIUM 3-COLUMN FOOTER
   ======================================== */
.footer-landing {
    background: #05060b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0 1rem;
    position: relative;
    z-index: 10;
    transition: opacity var(--transition-cyber), transform var(--transition-cyber), visibility var(--transition-cyber);
}

.footer-landing.footer-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    visibility: hidden;
}

.footer-grid-landing {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-col-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
}

.footer-brand-title span {
    color: var(--warning);
}

.footer-tagline-landing {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.footer-logo-landing {
    width: 45px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.3));
}

.footer-official-status {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-col-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    text-align: right;
}

.footer-copyright-landing {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links-landing {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.footer-link-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-item:hover {
    color: var(--accent-blue);
}

.footer-dev-tag {
    font-size: 0.6rem;
    opacity: 0.4;
    margin-top: 2rem;
    text-align: center;
    letter-spacing: 2px;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .footer-grid-landing {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem; /* Reduced from 3rem */
    }

    .footer-col-left,
    .footer-col-center {
        display: none !important; /* Hide branding and official logo on mobile */
    }

    .footer-col-right {
        align-items: center;
        text-align: center;
    }

    .footer-links-landing {
        justify-content: center; /* Center the links */
    }

    .footer-brand-title {
        font-size: 1.3rem; /* Slightly smaller for mobile */
    }

    .footer-dev-tag {
        margin-top: 1rem; /* Reduced from 2rem to sit closer */
        margin-bottom: 0.5rem;
    }
}

/* Small mobile devices (480px) */
@media (max-width: 480px) {
    .footer-grid-landing {
        gap: 1.25rem; /* Even tighter for small screens */
    }
    .footer-landing {
        padding-bottom: 2rem; /* Ensure it doesn't crowd bottom edge */
    }
}

/* ========================================
   PARALLAX TRANSITION (THREE WINGS)
   ======================================== */
.parallax-transition-container {
    position: relative;
    padding: 2rem 0;
    min-height: 200vh;
}

.sticky-image-swapper {
    position: sticky;
    top: -1px;
    /* Bridge potential subpixel gaps */
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.swapper-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease, transform 1.5s ease;
}

.swapper-image.active {
    opacity: 0.3;
    transform: scale(1);
}

.swapper-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-deep) 90%);
    z-index: 2;
}

.relative-z {
    position: relative;
    z-index: 5;
}

.feature-scroll-content {
    display: flex;
    flex-direction: column;
    gap: 30vh;
    padding-bottom: 20vh;
}

.wings-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(10, 11, 20, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 210, 255, 0.1) !important;
    transition: transform 0.8s var(--ease-premium), opacity 0.8s ease;
}

.wings-card.active {
    border-color: var(--landing-accent) !important;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.15);
    transform: translateY(-10px) scale(1.02);
}

@media (max-width: 992px) {
    .parallax-transition-container {
        padding: 5rem 0;
        min-height: auto;
    }

    .sticky-image-swapper {
        display: block; /* Restore for mobile */
        height: 100dvh; /* Better mobile support */
    }

    .feature-scroll-content {
        gap: 25vh; /* Increase scroll room for parallax transition */
        padding-bottom: 40vh;
    }

    .wings-card {
        background: rgba(10, 11, 20, 0.85) !important; /* Higher contrast for mobile readability */
        backdrop-filter: blur(15px);
        margin: 0 1rem;
    }
}

/* ========================================
   SECTION BACKGROUND IMAGES & PARALLAX
   ======================================== */
.landing-hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Contain the parallax background */
}

.hero-parallax-bg {
    position: absolute;
    top: -10%;
    /* Start higher for scroll room */
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller than container */
    background-image: linear-gradient(to right, rgba(5, 6, 11, 0.9) 0%, rgba(5, 6, 11, 0.4) 100%), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: -2;
    /* Behind canvas and mesh */
    pointer-events: none;
}

#trust-section {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Contain the parallax background */
    z-index: 1;
}

.trust-parallax-bg {
    position: absolute;
    top: -15%;
    /* Start higher */
    left: 0;
    width: 100%;
    height: 130%;
    /* Taller to allow significant scroll movement */
    background-image: linear-gradient(rgba(5, 6, 11, 0.85), rgba(5, 6, 11, 0.85)), url('../images/trust_bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

.trust-container {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
}

.trust-container::after {
    display: none !important;
}

#staff {
    position: relative !important;
    overflow: hidden !important;
}

.staff-parallax-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.staff-parallax-bg.active {
    opacity: 1;
}

.staff-parallax-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 6, 11, 0.75) 0%, rgba(5, 6, 11, 0.92) 100%);
}

@media (max-width: 992px) {
    .staff-parallax-bg {
        display: none !important; /* Disable hover parallax on mobile */
    }
}