/* ==========================================================================
   XAVIER ONLINE 2026 - HYPER-LUMINOUS GAMING DESIGN SYSTEM
   ========================================================================== */

:root {
    --cyan-neon: #00ffd5;
    --cyan-glow: rgba(0, 255, 213, 0.45);
    --emerald-bright: #10b981;
    --mint-vibrant: #34d399;
    --gold-accent: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.4);
    
    --bg-base: #061914;
    --bg-glass-card: rgba(13, 41, 33, 0.78);
    --bg-glass-card-hover: rgba(18, 56, 45, 0.9);
    
    --border-glass: rgba(0, 255, 213, 0.38);
    --border-glass-hover: rgba(0, 255, 213, 0.85);
    
    --text-white: #ffffff;
    --text-body: #f1f5f9;
    --text-sub: #cbd5e1;
    --text-muted: #94a3b8;
}

body {
    font-family: 'Marcellus', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 15px;
    color: var(--text-body);
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 50% 12%, rgba(0, 255, 213, 0.28) 0%, rgba(16, 185, 129, 0.18) 35%, transparent 70%),
        radial-gradient(circle at 15% 55%, rgba(0, 255, 213, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(251, 191, 36, 0.1) 0%, transparent 45%),
        linear-gradient(180deg, #09211a 0%, #051511 50%, #030d0a 100%),
        url('../images/body_background.jpg');
    background-position: center top;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Vibrant Header & Navbar */
#sticky-header,
.sticky-menu {
    background-color: rgba(9, 36, 28, 0.92) !important;
    background-image: linear-gradient(90deg, rgba(0, 255, 213, 0.1) 0%, rgba(16, 185, 129, 0.16) 50%, rgba(0, 255, 213, 0.1) 100%) !important;
    backdrop-filter: blur(18px) saturate(200%);
    -webkit-backdrop-filter: blur(18px) saturate(200%);
    position: relative;
    z-index: 1050 !important;
    box-sizing: border-box;
    border-bottom: 2px solid rgba(0, 255, 213, 0.5) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 255, 213, 0.25) !important;
}

.sticky-menu {
    left: 0;
    top: 0;
    margin: auto;
    position: fixed;
    width: 100%;
    z-index: 1050 !important;
    animation: fadeInOpacity 600ms ease-in-out 0s 1 running;
    border-radius: 0;
    opacity: 1;
}

@keyframes fadeInOpacity {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Modern Glowing Buttons */
.edgt-btn {
    display: inline-block;
    position: relative;
    outline: 0;
    padding: 14px 44px;
    font-style: normal;
    font-weight: 700;
    font-family: 'Marcellus', sans-serif;
    font-size: 14px;
    line-height: 24px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(0, 255, 213, 0.3) 100%);
    border: 1px solid var(--cyan-neon);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 255, 213, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.edgt-btn:hover,
.edgt-btn.edgt-btn-hover-solid:not(.edgt-btn-custom-border-hover):hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: var(--cyan-neon) !important;
    box-shadow: 0 0 30px rgba(0, 255, 213, 0.65) !important;
    transform: translateY(-2px) scale(1.02);
}

.header-container {
    background: transparent;
    left: 0;
    top: 0;
    z-index: 998;
    position: relative;
    width: 100%;
}

.header-container::after {
    display: none;
}

.header-banner-wrapper {
    position: relative;
    z-index: -1;
    margin-top: 15px;
    margin-bottom: 25px;
    perspective: 1000px; /* Added perspective for 3D hover */
}

/* ORNATE GOLD-CYAN GAMING FRAME */
.ornate-frame {
    position: relative;
    padding: 0; /* Remove padding to fit video perfectly */
    background: transparent;
    border-radius: 16px;
    border: 1.5px solid rgba(0, 255, 213, 0.7);
    box-shadow: 
        0 16px 45px rgba(0, 0, 0, 0.85), 
        inset 0 0 18px rgba(251, 191, 36, 0.22), 
        0 0 25px rgba(0, 255, 213, 0.25);
    display: inline-block;
    width: 70%; /* Reduced by 30% */
    margin: 0 auto;
    
    /* 3D HOVER EFFECTS (Same as Cards) */
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
}

.ornate-frame:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--cyan-neon);
    box-shadow: 
        0 18px 40px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(0, 255, 213, 0.5),
        inset 0 0 25px rgba(251, 191, 36, 0.35);
}

.ornate-frame::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    border: 1px solid rgba(251, 191, 36, 0.65);
    pointer-events: none;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.ornate-diamond {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border: 2px solid #00ffd5;
    box-shadow: 0 0 14px #00ffd5, 0 0 8px #fbbf24;
    z-index: 10;
}

.ornate-diamond.ornate-top {
    top: -10px;
}

.ornate-diamond.ornate-bottom {
    bottom: -10px;
}

.header-banner-img,
.header-banner-video {
    width: 100%;
    height: auto;
    border-radius: 14px; /* Slightly smaller than 16px frame to fit perfectly inside */
    display: block;
    object-fit: cover;
}

@media screen and (max-width: 991px) {
    .header-container .introduction::before,
    .header-container .introduction::after {
        display: none;
    }

    .header-container .introduction h1 {
        font-size: 2.5rem !important;
        margin: auto !important;
    }

    .header-container .navbar {
        background-color: rgba(9, 36, 28, 0.96) !important;
        backdrop-filter: blur(14px);
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: .7rem 1rem !important;
        color: #e2e8f0;
        font-size: 15px;
    }

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        background: linear-gradient(90deg, rgba(0, 255, 213, 0.2) 0%, transparent 100%);
        color: var(--cyan-neon) !important;
        border-left: 3px solid var(--cyan-neon);
    }

    .header-container .navbar .nav-link:not(.dropdown-toggle):after {
        content: none !important;
    }
}

@media screen and (max-width: 415px) {
    .header-container .introduction h1 {
        font-size: 2rem !important;
    }
}

.introduction {
    display: inline-flex;
    z-index: 6;
    font-family: 'Marcellus', serif;
    visibility: visible;
    text-align: inherit;
    line-height: 83px;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 100px;
    margin: 0;
    padding: 0;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.introduction-text {
    margin-top: 100px;
    font-family: 'Marcellus', serif;
}

.header-container .introduction::before {
    content: "";
    background-image: url('../images/header_graphic_1.png');
    background-size: 186px 220px;
    background-repeat: no-repeat;
    position: relative;
    height: 220px;
    width: 186px;
    z-index: 100000;
}

.header-container .introduction::after {
    content: "";
    background-image: url('../images/header_graphic_2.png');
    background-size: 163px 220px;
    background-repeat: no-repeat;
    position: relative;
    height: 220px;
    width: 163px;
    z-index: 100000;
}

.header-container .introduction h1 {
    text-transform: uppercase;
    font-size: 4.5rem;
    margin: auto 3.5rem;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(0, 255, 213, 0.8), 0 0 50px rgba(16, 185, 129, 0.5), 0 2px 10px rgba(0, 0, 0, 0.9);
    letter-spacing: 3px;
}

/* Dropdown Menu styling */
.header-container .dropdown-menu {
    background-color: rgba(8, 30, 24, 0.96);
    background-image: url('../images/pattern_dark.png');
    backdrop-filter: blur(16px);
    padding: 16px 0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 255, 213, 0.25);
    border: 1px solid rgba(0, 255, 213, 0.45);
    border-radius: 8px;
    min-width: 250px;
    z-index: 9999 !important;
}

.header-container .dropdown-item {
    width: 100%;
    clear: both;
    padding: 11px 24px;
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.header-container .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(0, 255, 213, 0.2) 0%, transparent 100%);
    color: var(--cyan-neon);
    padding-left: 30px;
    text-shadow: 0 0 10px rgba(0, 255, 213, 0.4);
}

.header-container .navbar {
    text-transform: uppercase;
}

.header-container .navbar ul li {
    position: relative;
}

.header-container .navbar .nav-link {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.header-container .navbar .nav-link:hover {
    color: var(--cyan-neon) !important;
    text-shadow: 0 0 12px var(--cyan-neon);
}

.header-container .navbar .nav-link:not(.dropdown-toggle):not(.notifications):after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--cyan-neon), var(--gold-accent));
    box-shadow: 0 0 14px var(--cyan-neon), 0 0 8px var(--mint-vibrant);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.header-container .navbar .nav-link:not(.dropdown-toggle):hover:after,
.header-container .navbar .nav-link:not(.dropdown-toggle).active:after {
    width: 85%;
}

.header-container .navbar .dropdown-item.active, 
.header-container .navbar .dropdown-item:active {
    background: linear-gradient(90deg, #10b981 0%, transparent 100%);
    color: #ffffff;
}

.navbar-toggler {
    padding: .4rem .85rem;
    font-size: 1.25rem;
    background-color: rgba(0, 255, 213, 0.15);
    border: 1px solid rgba(0, 255, 213, 0.5);
    border-radius: .4rem;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 255, 213, 1)' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* HIGH-GLOW LUMINOUS FOOTER & COPYRIGHT */
footer {
    background: transparent !important;
}

#footer {
    display: block;
    width: 100%;
    margin: 0 auto;
    position: relative;
    color: var(--text-sub);
    font-weight: 400;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(13, 46, 36, 0.94) 0%, rgba(6, 22, 17, 0.98) 100%) !important;
    backdrop-filter: blur(18px) saturate(200%);
    -webkit-backdrop-filter: blur(18px) saturate(200%);
    padding: 75px 0 50px 0;
    border-top: 2px solid rgba(0, 255, 213, 0.5) !important;
    box-shadow: inset 0 15px 35px rgba(0, 0, 0, 0.7), 0 -10px 35px rgba(0, 255, 213, 0.25) !important;
}

#footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--cyan-neon) 50%, var(--gold-accent) 80%, transparent 100%);
    box-shadow: 0 0 18px var(--cyan-neon);
}

#footer h5 {
    margin-bottom: 24px;
    text-transform: uppercase !important;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(0, 255, 213, 0.5);
}

.footer-copyright {
    background-color: rgba(3, 13, 10, 0.98) !important;
    position: relative;
    width: 100%;
    z-index: 100;
    padding: 22px 0;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 14px;
    border-top: 1px solid rgba(0, 255, 213, 0.35) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.footer-copyright a {
    color: var(--cyan-neon) !important;
    text-shadow: 0 0 8px rgba(0, 255, 213, 0.5);
}

.social-networks a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 255, 213, 0.12);
    border: 1px solid rgba(0, 255, 213, 0.5);
    color: var(--cyan-neon) !important;
    margin-right: 10px;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.social-networks a:hover {
    background: var(--cyan-neon);
    color: #030d0a !important;
    box-shadow: 0 0 25px var(--cyan-neon);
    transform: translateY(-3px) scale(1.12);
}

a {
    color: var(--cyan-neon);
    font-weight: 500;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--gold-accent);
    text-decoration: none;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

@media (min-width: 576px) { main.container { max-width: 540px; } }
@media (min-width: 768px) { main.container { max-width: 720px; } }
@media (min-width: 992px) { main.container { max-width: 960px; } }
@media (min-width: 1200px) { main.container { max-width: 1140px; } }
@media (min-width: 1366px) { main.container { max-width: 1320px; } }

.card {
    margin-bottom: 24px;
    background-color: transparent;
    border: none;
    border-radius: 0;
}

/* HIGH-GLOW CARD HEADERS */
.sidebar .card-header,
.main-container .card-header {
    position: relative;
    margin-top: 0;
    border-bottom: 1px solid rgba(0, 255, 213, 0.45);
    margin-bottom: 18px;
    padding: 0 0 10px 0;
    font-family: 'Marcellus', sans-serif;
    font-size: 21px;
    line-height: 1.5em;
    letter-spacing: 1px;
    background-color: transparent;
    color: #ffffff;
}

.sidebar .card-header h5,
.main-container .card-header h5,
.card-header h6, .card-header h4, .card-header h3, .card-header h2, .card-header h1 {
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 12px rgba(0, 255, 213, 0.4), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.main-container > .card > .card-header {
    text-align: center;
    border-bottom: none;
}

.main-container > .card > .card-header:after {
    content: "";
    background-image: url('../images/section-title.png');
    background-repeat: no-repeat;
    height: 18px;
    width: auto;
    display: block;
    background-position: center;
    margin-top: 8px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 213, 0.5));
}

/* 2026 LUMINOUS GLASS CARDS (MATCHING WEBSITE.WEBP ORNATE STYLE) */
.sidebar .card, 
.main-container > .card > .card-body {
    margin-bottom: 24px;
    background: rgba(4, 20, 15, 0.88) !important;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1.5px solid rgba(0, 255, 213, 0.7) !important;
    border-radius: 16px !important;
    padding: 18px;
    box-shadow: 
        0 16px 45px rgba(0, 0, 0, 0.85), 
        inset 0 0 18px rgba(251, 191, 36, 0.22), 
        0 0 25px rgba(0, 255, 213, 0.25) !important;
    position: relative;
}

.sidebar .card::before,
.main-container > .card > .card-body::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    border: 1px solid rgba(251, 191, 36, 0.65);
    pointer-events: none;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.sidebar .card:hover, 
.main-container > .card > .card-body:hover {
    background: rgba(8, 30, 23, 0.94) !important;
    border-color: var(--cyan-neon) !important;
    box-shadow: 
        0 20px 55px rgba(0, 0, 0, 0.95), 
        0 0 40px rgba(0, 255, 213, 0.5), 
        inset 0 0 25px rgba(251, 191, 36, 0.35) !important;
}

.sidebar .card:hover::before,
.main-container > .card > .card-body:hover::before {
    opacity: 1;
}

.card-body img {
    max-width: 100%;
    border-radius: 6px;
}

/* ADMIN PANEL WYSIWYG RICH TEXT OVERRIDES */
.card-body p,
.card-body span,
.card-body div,
.card-body article,
.card-body section,
.card-body li,
.card-body ul,
.card-body ol {
    background-color: transparent !important;
    color: #f8fafc;
}

.card-body strong,
.card-body b {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(0, 255, 213, 0.3);
}

.card-body h1, .card-body h2, .card-body h3, 
.card-body h4, .card-body h5, .card-body h6 {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(0, 255, 213, 0.5);
}

.sidebar .card.table-ranking .card-header {
    margin-bottom: 0;
}

.sidebar .card-body, .main-container .card {
    padding: 0;
}

/* HIGH CONTRAST LUMINOUS TABLES */
.sidebar .table, .main-container .table {
    margin: 0;
    color: #ffffff;
}

.sidebar .table th {
    border: none;
    color: var(--cyan-neon);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.8px;
    padding: 12px 14px;
    text-shadow: 0 0 8px rgba(0, 255, 213, 0.4);
}

.sidebar .table td {
    border: none;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    transition: background 0.25s ease;
}

.sidebar .table thead tr {
    border-bottom: 1px solid rgba(0, 255, 213, 0.4);
    background: rgba(0, 255, 213, 0.12);
}

.sidebar .table tbody tr {
    transition: all 0.25s ease;
}

.sidebar .table tbody tr:hover {
    background: rgba(0, 255, 213, 0.15);
}

.sidebar .table tbody tr:not(:last-child) {
    border-bottom: 1px solid rgba(0, 255, 213, 0.18);
}

/* RANKING BADGES */
.table td:first-child {
    font-weight: 700;
    color: var(--gold-accent) !important;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

/* BUTTONS & CONTROLS */
.btn-outline-theme {
    color: var(--cyan-neon);
    border-color: rgba(0, 255, 213, 0.6);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-theme:hover,
.btn-outline-theme.active,
.btn-outline-theme:active {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: var(--cyan-neon);
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.45);
}

.btn-theme {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid var(--cyan-neon);
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 213, 0.3);
}

.btn-theme:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: var(--mint-vibrant);
    box-shadow: 0 0 28px rgba(0, 255, 213, 0.6);
    transform: translateY(-2px);
}

.dataTable thead, .dataTable tfoot {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn.focus, .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 213, 0.45);
}

.form-control {
    background-color: rgba(6, 26, 20, 0.85);
    border: 1px solid rgba(0, 255, 213, 0.4);
    color: #ffffff;
    border-radius: 6px;
    transition: all 0.25s ease;
    font-weight: 500;
}

.form-control:focus {
    color: #ffffff;
    background-color: rgba(6, 26, 20, 0.98);
    border-color: var(--cyan-neon);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 213, 0.35);
}

.list-group-item {
    background-color: rgba(13, 41, 33, 0.85);
    color: #ffffff;
    font-weight: 500;
    border-color: rgba(0, 255, 213, 0.25);
    transition: all 0.25s ease;
}

.list-group-item:hover {
    background-color: rgba(0, 255, 213, 0.18);
    color: var(--cyan-neon);
    padding-left: 20px;
    text-shadow: 0 0 8px rgba(0, 255, 213, 0.4);
}

.list-group-item.active {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: var(--cyan-neon);
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.3);
}

.nav-pills .nav-link {
    background-color: rgba(13, 41, 33, 0.85);
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 213, 0.35);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: var(--cyan-neon);
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.4);
}

.discord {
    max-height: 350px;
    overflow: auto;
}

/* 2026 CYBER SCROLLBAR */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: rgba(3, 13, 10, 0.9);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyan-neon) 0%, var(--emerald-bright) 100%);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-neon);
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.8);
}

/* ==========================================================================
   ANIMATED RISING MAGIC PARTICLES & 3D PERSPECTIVE TILT
   ========================================================================== */

/* Particle Layer 1 (Slower Emerald & Cyan Sparks) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 200vh;
    pointer-events: none;
    z-index: 1;
    background-image: 
        radial-gradient(3px 3px at 8% 25%, rgba(0, 255, 213, 0.9), transparent),
        radial-gradient(4px 4px at 22% 68%, rgba(251, 191, 36, 0.85), transparent),
        radial-gradient(2px 2px at 38% 88%, rgba(16, 185, 129, 0.95), transparent),
        radial-gradient(3px 3px at 52% 35%, rgba(0, 255, 213, 0.9), transparent),
        radial-gradient(4px 4px at 67% 78%, rgba(251, 191, 36, 0.8), transparent),
        radial-gradient(2px 2px at 78% 18%, rgba(16, 185, 129, 0.9), transparent),
        radial-gradient(3px 3px at 89% 55%, rgba(0, 255, 213, 0.95), transparent),
        radial-gradient(5px 5px at 94% 92%, rgba(52, 211, 153, 0.8), transparent);
    background-repeat: repeat;
    background-size: 450px 600px;
    animation: floatUpEmbers 20s linear infinite;
    opacity: 0.85;
}

/* Particle Layer 2 (Faster Amber & Mint Sparks) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 200vh;
    pointer-events: none;
    z-index: 1;
    background-image: 
        radial-gradient(2px 2px at 12% 48%, rgba(251, 191, 36, 0.9), transparent),
        radial-gradient(3px 3px at 28% 12%, rgba(0, 255, 213, 0.85), transparent),
        radial-gradient(4px 4px at 48% 72%, rgba(16, 185, 129, 0.9), transparent),
        radial-gradient(2px 2px at 62% 42%, rgba(0, 255, 213, 0.95), transparent),
        radial-gradient(3px 3px at 74% 82%, rgba(251, 191, 36, 0.9), transparent),
        radial-gradient(2px 2px at 86% 28%, rgba(52, 211, 153, 0.85), transparent);
    background-repeat: repeat;
    background-size: 320px 480px;
    animation: floatUpEmbers 13s linear infinite;
    opacity: 0.75;
}

@keyframes floatUpEmbers {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-600px);
    }
}

/* Custom Gaming Pointer Cursors */
html, body {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23059669' stroke='%2300ffd5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='3 3 10 21 12 12 21 10 3 3'/></svg>") 3 3, default;
}

a, button, .btn, input, select, textarea, .nav-link, .dropdown-item, .card, .clickable, [role="button"] {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'><circle cx='14' cy='14' r='9' stroke='%2300ffd5' stroke-width='2'/><circle cx='14' cy='14' r='4' fill='%23fbbf24'/><path d='M14 1v5M14 22v5M1 14h5M22 14h5' stroke='%2300ffd5' stroke-width='2'/></svg>") 14 14, pointer !important;
}

/* Parent Perspective Containers */
.sidebar, .main-container {
    perspective: 1000px;
}

/* 3D Depth Perspective & Hover Tilt on Cards (Subtle & Smooth) */
.sidebar .card,
.main-container > .card > .card-body {
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease, border-color 0.3s ease;
}

.sidebar .card:hover,
.main-container > .card > .card-body:hover {
    transform: rotateX(2deg) rotateY(-2deg) translateZ(10px) translateY(-5px) !important;
    box-shadow: 
        -10px 18px 40px rgba(0, 0, 0, 0.85),
        0 0 30px rgba(0, 255, 213, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    border-color: var(--cyan-neon) !important;
}

/* 3D Active Click Press Effect */
.sidebar .card:active,
.main-container > .card > .card-body:active,
.btn-theme:active,
.btn-outline-theme:active,
.edgt-btn:active,
.nav-link:active {
    transform: scale(0.98) translateZ(0) !important;
    box-shadow: 0 0 35px rgba(0, 255, 213, 0.8), inset 0 0 12px rgba(0, 255, 213, 0.5) !important;
    transition: transform 0.1s ease, box-shadow 0.1s ease !important;
}
