@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&display=swap');

/* === PREMIUM THEME SYSTEM 3.0 === */

:root,
[data-theme="dark"] {
    /* Midnight Indigo - Hyper Pro */
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --primary-rgb: 99, 102, 241;
    --secondary: #a855f7;
    --secondary-glow: rgba(168, 85, 246, 0.3);
    --accent: #f43f5e;
    --accent-glow: rgba(244, 63, 94, 0.3);
    --bg-dark: #030712;
    --bg-card: rgba(31, 41, 55, 0.8);
    --bg-header: rgba(3, 7, 18, 0.85);
    --body-gradient: linear-gradient(135deg, #030712 0%, #0f172a 100%);
    --mesh-1: rgba(99, 102, 241, 0.15);
    --mesh-2: rgba(168, 85, 247, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #475569;
    --glass-bg: rgba(31, 41, 55, 0.6);
    --glass-border: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    --radius-lg: 32px;

    --radius-md: 18px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --container-max: 1280px;
    --backdrop-blur: 40px;
    --header-height: 80px;
    --transition-base: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --bottom-nav-height: 70px;
}

[data-theme="gold"] {
    /* Royal Gold - Luxury Elite */
    --primary: #fbbf24;
    --primary-glow: rgba(251, 191, 36, 0.2);
    --primary-rgb: 251, 191, 36;
    --secondary: #d97706;
    --secondary-glow: rgba(217, 119, 6, 0.15);
    --accent: #f8fafc;
    --accent-glow: rgba(255, 255, 255, 0.1);
    --bg-dark: #0a0a05;
    --bg-card: #14140a;
    --bg-header: rgba(20, 20, 10, 0.9);
    --body-gradient: linear-gradient(135deg, #050503 0%, #1a1a0a 100%);
    --mesh-1: rgba(251, 191, 36, 0.08);
    --mesh-2: rgba(217, 119, 6, 0.05);
    --text-main: #fffbeb;
    --text-muted: #d4d4d8;
    --text-dim: #71717a;
    --glass-bg: rgba(30, 30, 20, 0.7);
    --glass-border: rgba(251, 191, 36, 0.3);
    --card-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9);
}

[data-theme="ocean"] {
    /* Deep Ocean - Ultra Pro */
    --primary: #06b6d4;
    --primary-glow: rgba(6, 182, 212, 0.3);
    --primary-rgb: 6, 182, 212;
    --secondary: #3b82f6;
    --secondary-glow: rgba(59, 130, 246, 0.2);
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.3);
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --bg-header: rgba(15, 23, 42, 0.85);
    --body-gradient: linear-gradient(135deg, #020617 0%, #0c1e34 100%);
    --mesh-1: rgba(14, 165, 233, 0.12);
    --mesh-2: rgba(6, 182, 212, 0.1);
    --text-main: #f0f9ff;
    --text-muted: #94a3b8;
    --text-dim: #7dd3fc;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(14, 165, 233, 0.25);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

[data-theme="emerald"] {
    /* Emerald Forest - Ultra Pro */
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.3);
    --primary-rgb: 16, 185, 129;
    --secondary: #14b8a6;
    --secondary-glow: rgba(20, 184, 166, 0.2);
    --accent: #fbbf24;
    --accent-glow: rgba(251, 191, 36, 0.3);
    --bg-dark: #022c22;
    --bg-card: #064e3b;
    --bg-header: rgba(6, 78, 59, 0.9);
    --body-gradient: linear-gradient(135deg, #021a14 0%, #064e3b 100%);
    --mesh-1: rgba(16, 185, 129, 0.15);
    --mesh-2: rgba(5, 150, 105, 0.1);
    --text-main: #ecfdf5;
    --text-muted: #a7f3d0;
    --text-dim: #10b981;
    --glass-bg: rgba(10, 50, 40, 0.7);
    --glass-border: rgba(16, 185, 129, 0.3);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] {
    /* Clean Pearl - Classic Pro */
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.12);
    --primary-dark: #4338ca;
    --primary-rgb: 79, 70, 229;
    --accent: #f43f5e;
    --accent-glow: rgba(244, 63, 94, 0.1);
    --accent-rgb: 244, 63, 94;
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.9);
    --body-gradient: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.03) 0px, transparent 50%);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="cyberpunk"] {
    /* Neon Nights - Ultimate Cyber */
    --primary: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.4);
    --primary-rgb: 168, 85, 247;
    --secondary: #ec4899;
    --secondary-glow: rgba(236, 72, 153, 0.35);
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.4);
    --bg-dark: #030005;
    --bg-card: #09020d;
    --bg-header: rgba(9, 2, 13, 0.9);
    --body-gradient: linear-gradient(135deg, #020004 0%, #0f0010 100%);
    --mesh-1: rgba(217, 70, 239, 0.15);
    --mesh-2: rgba(34, 211, 238, 0.12);
    --text-main: #ffffff;
    --text-muted: #f5d0fe;
    --text-dim: #a855f7;
    --glass-bg: rgba(20, 0, 30, 0.7);
    --glass-border: rgba(217, 70, 239, 0.4);
    --card-shadow: 0 0 60px rgba(217, 70, 239, 0.2);
}

[data-theme="sunset"] {
    /* Sunset Aura - Tri-Gradient */
    --primary: #f97316;
    --primary-glow: rgba(249, 115, 22, 0.4);
    --primary-rgb: 249, 115, 22;
    --secondary: #e11d48;
    --secondary-glow: rgba(225, 29, 72, 0.3);
    --accent: #facc15;
    --accent-glow: rgba(250, 204, 21, 0.4);
    --bg-dark: #0c0202;
    --bg-card: #1a0a0a;
    --bg-header: rgba(26, 10, 10, 0.9);
    --body-gradient: linear-gradient(135deg, #0a0303 0%, #200505 100%);
    --mesh-1: rgba(249, 115, 22, 0.18);
    --mesh-2: rgba(225, 29, 72, 0.12);
    --text-main: #fff5f5;
    --text-muted: #ffcdcd;
    --text-dim: #f87171;
    --glass-bg: rgba(40, 10, 10, 0.7);
    --glass-border: rgba(249, 115, 22, 0.4);
    --card-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    background-color: var(--bg-dark);
    background-image: var(--body-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--bottom-nav-height);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}

body::before {
    background:
        radial-gradient(circle at 20% 30%, var(--mesh-1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--mesh-2) 0%, transparent 40%);
    animation: meshMove 20s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.2) translate(5%, 5%);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* Visibility Utilities for Separate Views */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: block !important;
    }
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* Layout Elements */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

main {
    min-height: calc(100vh - var(--header-height) - 300px);
}

/* Components */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--backdrop-blur));
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(45deg);
    transition: 0.8s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 30px var(--primary-glow);
    border-color: var(--primary);
}

.card:hover::after {
    left: 100%;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-base);
    gap: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px var(--primary-glow), 0 0 20px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Header */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(var(--backdrop-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
}

.site-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-emoji {
    font-size: 2rem;
}

.logo-text {
    font-weight: 900;
    color: var(--text-main);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

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

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

/* Pulse Animation for Live Status */
@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.badge-live {
    background: #ef4444;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    animation: pulse-red 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* Responsive Table */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 1rem;
}

/* Bottom Tab Bar (Mobile Only) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: var(--bg-header);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    padding-bottom: var(--padding-safe);
}

.bottom-nav-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    gap: 4px;
    transition: var(--transition-base);
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item.active {
    color: var(--primary);
}

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .header {
        height: 60px;
        --header-height: 60px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Floating Action Button for Contact or Quick Apply */
    .fab-mobile {
        position: fixed;
        bottom: calc(var(--bottom-nav-height) + 20px);
        right: 20px;
        width: 56px;
        height: 56px;
        background: var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.5);
        z-index: 900;
        font-size: 1.5rem;
    }
}

/* Global Responsive Fixes for Dashboards & Forms */
@media (max-width: 992px) {

    div[style*="grid-template-columns: 1.5fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {

    /* Responsive Headings */
    h1[style*="font-size: 2.5rem"],
    h2[style*="font-size: 2rem"],
    h1[style*="font-size: 4rem"] {
        font-size: 1.75rem !important;
    }

    /* Target large dashboard headers only */
    div[style*="margin-bottom: 2rem; display: flex; justify-content: space-between"],
    div[style*="padding: 4rem; position: relative"],
    div[style*="display: flex; gap: 4rem; align-items: center"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }

    /* Specific absolute position fixes */
    div[style*="position: absolute; top: 30px; right: 40px"] {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin-bottom: 2rem !important;
        width: 100% !important;
    }

    div[style*="text-align: right"] {
        text-align: center !important;
    }

    /* Padding adjustments */
    div[style*="padding: 4rem 1.5rem"],
    div[style*="padding: 2.5rem"],
    div[style*="padding: 4rem"] {
        padding: 1.5rem 1rem !important;
    }

    /* Grid Stacking */
    div[style*="grid-template-columns: repeat(auto-fit"],
    div[style*="grid-template-columns: 2fr 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Profile Image resizing in view_player */
    div[style*="width: 200px; height: 200px"] {
        width: 140px !important;
        height: 140px !important;
        margin: 0 auto;
    }

    .module-card {
        padding: 1.25rem !important;
        gap: 1rem !important;
    }

    .module-icon {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
    }

    .btn,
    a.btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center;
        margin-top: 10px;
    }

    /* Fix matches/scorecard views */
    .match-header {
        flex-direction: column !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem !important;
    }

    .card {
        padding: 1rem !important;
    }
}

/* UX Utilities & Interactive States */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base) !important;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sticky-table-header th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-card);
}

/* Vibrant Status Badges */
.badge-status {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

.status-live {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.status-live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

.status-open {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.2);
}

.status-upcoming {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.2);
}

.status-completed {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-color: var(--glass-border);
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite linear;
    border-radius: 8px;
}

@keyframes loading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 25px);
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    #back-to-top {
        right: 20px;
        bottom: calc(var(--bottom-nav-height) + 15px);
    }
}

/* === Admin Desktop Sidebar Layout Redesign (Premium 3.0) === */
.admin-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    width: 100%;
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--bg-card);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    height: calc(100vh - var(--header-height));
    position: sticky;
    top: var(--header-height);
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 50;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
}

.admin-sidebar::-webkit-scrollbar {
    width: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.admin-sidebar-inner {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.admin-sidebar-title {
    font-size: 0.62rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 900;
    letter-spacing: 2.5px;
    padding-left: 1rem;
    margin-bottom: 0.85rem;
    opacity: 0.5;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.admin-sidebar-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-muted);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.35;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.admin-sidebar-link span {
    flex: 1;
    word-break: break-word;
    padding-top: 3px;
}

.admin-sidebar-link i {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 1px;
}

.admin-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.05);
}

.admin-sidebar-link:hover i {
    color: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.2);
}

.admin-sidebar-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(79, 70, 229, 0.1) 100%);
    color: white;
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.admin-sidebar-link.active i {
    background: var(--primary);
    color: white;
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

/* Admin Main Area */
.admin-main {
    flex: 1;
    min-width: 0;
    background: var(--bg-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(244, 63, 94, 0.02) 0px, transparent 50%);
    padding: 2rem 3rem;
    position: relative;
}

/* Breadcrumb Redesign */
.admin-breadcrumb-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.breadcrumb-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.breadcrumb-pill a {
    color: var(--text-dim);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-pill a:hover {
    color: white;
}

.active-item {
    color: var(--primary-light);
    font-weight: 800;
    text-transform: capitalize;
}

.admin-time-pill {
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dashboard Specific Overrides for Pro Look */
.admin-main .container {
    padding: 0;
    max-width: 1400px;
}

@media (max-width: 1200px) {
    .admin-main {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 88px;
    }

    .admin-sidebar-inner {
        padding: 2rem 0.5rem;
        align-items: center;
    }

    .admin-sidebar-link span,
    .admin-sidebar-title,
    .admin-user-card,
    .admin-sidebar-brand span {
        display: none;
    }

    .admin-sidebar-link {
        justify-content: center;
        width: 54px;
        height: 54px;
        padding: 0;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        padding: 1.5rem 1rem 5rem;
    }
}

/* === HYPER-PREMIUM GLOBAL UTILITIES === */

::selection {
    background: var(--primary);
    color: white;
}

.text-glow {
    text-shadow: 0 0 20px var(--primary-glow);
}

.badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.badge:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.badge-live {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes floatAnim {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-15px);
    }
}

.reveal {
    animation: revealAnim 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes revealAnim {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === GLOBAL SEARCH & NOTIFICATIONS === */

/* Search Modal */
#searchModal {
    backdrop-filter: blur(20px);
    background: rgba(3, 7, 18, 0.9);
    transition: var(--transition-base);
}

.search-container {
    max-width: 700px;
    margin: 15vh auto;
    padding: 0 1.5rem;
    animation: slideDown 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.search-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.search-input-wrapper {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    outline: none;
    font-weight: 500;
}

.search-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.search-close-btn:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg);
}

.search-results-area {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}

/* Search Result Items */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary-glow);
    transform: translateX(5px);
}

.search-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification Dropdown */
.notif-dropdown {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    max-height: calc(100vh - 120px);
    z-index: 999999;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    padding: 0;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
    pointer-events: auto;
    flex-direction: column;
}

.notif-dropdown.show {
    display: flex !important;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.notif-actions {
    display: flex;
    gap: 10px;
}

.notif-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.notif-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.notif-action-btn.clear:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.notif-list {
    overflow-y: auto;
    flex: 1;
    max-height: 400px;
}

.notif-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notif-item.unread {
    background: rgba(99, 102, 241, 0.08);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Notification Helpers */
.notif-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.notif-toggle.has-unread i {
    animation: ring 2s ease infinite;
}

.notif-toggle.mobile {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 2;
}

.mark-read-btn {
    background: transparent;
    border: none;
    font-size: 0.75rem;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
}

.mark-read-btn:hover {
    text-decoration: underline;
}

.bell-ping {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: 1;
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(5deg);
    }

    40% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.dashboard-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}


@media (max-width: 768px) {
    .search-container {
        margin: 0;
        max-width: 100%;
        height: 100%;
        padding: 0;
    }

    .search-box {
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .notif-dropdown {
        position: fixed;
        top: 72px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - 100px);
        z-index: 100000;
    }
}