:root {
    --brand-orange: #ff5500;
    --brand-orange-glow: rgba(255, 85, 0, 0.7);
    --brand-dark: #070709;
    --brand-darker: #020203;
    --text-main: #ffffff;
    --text-muted: #9ba1a6;
}

body {
    background-color: var(--brand-darker);
    color: var(--text-main);
    /* Changed to Chakra Petch for a very futuristic/tech look that supports Thai */
    font-family: 'Chakra Petch', sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- High-Tech Background --- */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--brand-darker);
}

/* Animated Grid */
.cyber-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(255, 85, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 85, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    opacity: 0.6;
}

@keyframes gridMove {
    0% { transform: perspective(600px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(600px) rotateX(60deg) translateY(60px) translateZ(-200px); }
}

/* Glowing Orbs */
.glow-orb-1, .glow-orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatOrb 10s ease-in-out infinite alternate;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.6) 0%, transparent 70%);
    top: 20%;
    left: -10%;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 40, 0, 0.5) 0%, transparent 70%);
    bottom: -10%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* Vignette to darken edges over the grid */
.vignette {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 20%, var(--brand-darker) 100%);
}

/* -------------------------------- */

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--brand-darker); }
::-webkit-scrollbar-thumb { background: #ff5500; border-radius: 0px; }
::-webkit-scrollbar-thumb:hover { background: #ff7700; }

/* Navigation */
.navbar-custom {
    background: rgba(2, 2, 3, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 85, 0, 0.2);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main) !important;
    text-transform: uppercase;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    text-shadow: 0 0 10px rgba(255,85,0,0.5);
}

.navbar-brand span { color: var(--brand-orange); }

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(5, 5, 7, 0.95);
        padding: 15px;
        border: 1px solid rgba(255,85,0,0.3);
        margin-top: 10px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .navbar-collapse > .navbar-nav:first-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: stretch;
    }
    .navbar-collapse > .navbar-nav:first-child .nav-item { width: 100%; }
    .navbar-collapse > .navbar-nav:first-child .nav-link { margin: 0 !important; }
    
    /* Force horizontal layout for nav items on mobile */
    .navbar-collapse > .navbar-nav:first-child .nav-link.d-flex {
        justify-content: flex-start !important;
        padding: 10px 12px !important;
        height: 100%;
        text-align: left;
    }
    .navbar-collapse > .navbar-nav:first-child .nav-link.d-flex i {
        margin-bottom: 0 !important;
        margin-right: 10px !important;
        font-size: 1.1rem !important;
        width: 20px;
        text-align: center;
    }
    
    .navbar-collapse > .navbar-nav:last-child {
        margin-top: 15px !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 20px;
        border-top: 1px solid rgba(255,255,0,0.2);
        padding-top: 15px;
    }
    
    /* Make dropdown menu float over content on mobile */
    .navbar-collapse .dropdown-menu {
        position: absolute !important;
        bottom: 100%; /* Open upwards since it's at the bottom of the screen */
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 10px !important;
        min-width: 200px;
    }
}

@media (min-width: 992px) {
    .navbar-center-absolute {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--brand-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--brand-orange) !important; text-shadow: 0 0 15px var(--brand-orange-glow); }

/* Hero Section */
.hero-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    min-height: 100vh;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

/* Server Status Badge */
.status-badge-container {
    margin-bottom: 25px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 85, 0, 0.05);
    border: 1px solid rgba(255, 85, 0, 0.4);
    padding: 8px 30px;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 3px;
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    box-shadow: inset 0 0 15px rgba(255,85,0,0.1), 0 0 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    margin-right: 15px;
    box-shadow: 0 0 10px #00ff00;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #00ff00; }
    50% { opacity: 0.2; box-shadow: 0 0 2px #00ff00; }
}

/* Stunning Logo Integration */
.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.server-logo {
    max-width: 100%;
    width: clamp(280px, 70vw, 550px);
    height: auto;
    mix-blend-mode: screen; 
    animation: pulseLogo 4s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 15px rgba(255, 85, 0, 0.5)) contrast(1.1);
}

@keyframes pulseLogo {
    0% { filter: drop-shadow(0 0 10px rgba(255, 85, 0, 0.3)) contrast(1.1); transform: scale(0.99); }
    100% { filter: drop-shadow(0 0 30px rgba(255, 85, 0, 0.8)) contrast(1.2); transform: scale(1.01); }
}

.server-subtitle {
    color: var(--brand-orange);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    letter-spacing: clamp(5px, 1.5vw, 12px);
    text-transform: uppercase;
    margin-bottom: 45px;
    text-shadow: 0 0 15px rgba(255,85,0,0.6);
}

/* Action Buttons Grid - Sci-Fi Style */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .action-buttons {
        flex-direction: row;
        gap: 30px;
    }
}

.btn-siege {
    background: rgba(255, 85, 0, 0.8);
    color: white;
    border: 1px solid var(--brand-orange);
    padding: 16px 40px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    position: relative;
}

@media (min-width: 768px) {
    .btn-siege { width: auto; max-width: none; }
}

.btn-siege:hover {
    background: #ff6600;
    box-shadow: 0 0 35px rgba(255, 85, 0, 0.8);
    color: white;
}

.btn-siege-outline {
    background: rgba(0,0,0,0.5);
    color: var(--text-main);
    border: 1px solid rgba(255, 85, 0, 0.5);
    padding: 16px 40px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    width: 100%;
    max-width: 300px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

@media (min-width: 768px) {
    .btn-siege-outline { width: auto; max-width: none; }
}

.btn-siege-outline:hover {
    background: rgba(255, 85, 0, 0.2);
    border-color: var(--brand-orange);
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.4);
    color: #fff;
}

/* Connection Info Box - HUD Style */
.connection-box {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 85, 0, 0.3);
    border-left: 4px solid var(--brand-orange);
    padding: 15px 30px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: all 0.3s;
}

.ip-label {
    color: var(--brand-orange);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}

.ip-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #fff;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.copy-btn {
    background: transparent;
    color: var(--brand-orange);
    border: 1px solid rgba(255, 85, 0, 0.3);
    padding: 8px 15px;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.2s;
}
.copy-btn:hover {
    background: var(--brand-orange);
    color: #000;
    box-shadow: 0 0 15px var(--brand-orange);
}

/* Features Section */
.features-section {
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, var(--brand-darker) 10%);
    padding: 100px 0;
}

.feature-card {
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid rgba(255,85,0,0.1);
    border-top: 2px solid var(--brand-orange);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Tech circuit accent on cards */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 30px; height: 30px;
    background: linear-gradient(135deg, transparent 50%, rgba(255,85,0,0.2) 50%);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 20px rgba(255,85,0,0.15);
    border-color: rgba(255,85,0,0.3);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--brand-orange);
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(255,85,0,0.5);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.feature-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
footer {
    background: #010101;
    border-top: 1px solid rgba(255,85,0,0.2);
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

footer h4 { color: var(--brand-orange); font-weight: 600; letter-spacing: 3px; }

/* Cash Custom Icon */
.siam-coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 28px;
    height: 22px;
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 50%, #155724 100%);
    border-radius: 4px;
    border: 1px solid #54e377;
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.8), inset 0 0 8px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    margin-right: 8px;
    margin-top: -3px;
}
.siam-coin::before {
    content: '\f53d'; /* FontAwesome money-bill-wave */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ffffff;
    font-size: 13px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    position: relative;
    z-index: 2;
}
.siam-coin::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 70%);
    animation: coin-shine 3s infinite linear;
    z-index: 1;
}
@keyframes coin-shine {
    0% { transform: translate(-100%, -100%); }
    20% { transform: translate(100%, 100%); }
    100% { transform: translate(100%, 100%); }
}
/* Sleek Navbar Design */
.custom-nav-item {
    color: #a0a5aa !important;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.custom-nav-item i {
    color: #6c757d;
    transition: all 0.3s ease;
}
.custom-nav-item:hover, .custom-nav-item.active-nav {
    color: #ffffff !important;
    background: rgba(255, 85, 0, 0.1);
    border: 1px solid rgba(255, 85, 0, 0.3);
    box-shadow: inset 0 0 10px rgba(255,85,0,0.1);
}
.custom-nav-item.active-nav {
    border-bottom: 2px solid #ff5500;
}
.custom-nav-item:hover i, .custom-nav-item.active-nav i {
    color: #ff5500;
    filter: drop-shadow(0 0 5px rgba(255,85,0,0.5));
}

/* User Profile Button in Navbar */
.user-profile-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    padding-left: 20px !important;
}
.user-profile-btn:hover {
    background: rgba(255, 85, 0, 0.1);
    border-color: rgba(255, 85, 0, 0.5);
    box-shadow: 0 0 15px rgba(255,85,0,0.2);
}
.avatar-img {
    border: 2px solid #333;
    transition: all 0.3s ease;
}
.user-profile-btn:hover .avatar-img {
    border-color: #ff5500;
    box-shadow: 0 0 10px rgba(255,85,0,0.5);
}

@keyframes pulseLogo { 0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255,85,0,0.4)); } 100% { transform: scale(1.02); filter: drop-shadow(0 0 30px rgba(255,85,0,0.8)); } }

/* =========================================
   LIGHT MODE OVERRIDES
   ========================================= */
[data-bs-theme="light"] {
    --esport-dark: #f8f9fa !important;
    --esport-panel: rgba(255, 255, 255, 0.9) !important;
    --esport-border: rgba(0, 0, 0, 0.1) !important;
    --esport-primary-glow: transparent !important;
}

[data-bs-theme="light"] body {
    background-color: #f4f6f9;
    color: #212529;
}

[data-bs-theme="light"] .cyber-background {
    background-color: #f8f9fa;
}

[data-bs-theme="light"] .cyber-grid {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    opacity: 0.8;
}

[data-bs-theme="light"] .vignette {
    background: radial-gradient(circle at center, transparent 40%, #e9ecef 100%);
}

[data-bs-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

[data-bs-theme="light"] .navbar-brand .text-white {
    color: #212529 !important;
}

[data-bs-theme="light"] .custom-nav-item {
    color: #495057 !important;
}

[data-bs-theme="light"] .custom-nav-item:hover, 
[data-bs-theme="light"] .custom-nav-item.active-nav {
    color: #ff5500 !important;
    background: rgba(255, 85, 0, 0.05);
    box-shadow: inset 0 0 10px rgba(255,85,0,0.05);
}

[data-bs-theme="light"] .user-profile-btn {
    background: #ffffff;
    border: 1px solid #dee2e6;
}

[data-bs-theme="light"] .user-profile-btn .text-white {
    color: #212529 !important;
}

[data-bs-theme="light"] .dropdown-menu-dark {
    background: #ffffff !important;
    border-color: #dee2e6 !important;
}
[data-bs-theme="light"] .dropdown-menu-dark .dropdown-item {
    color: #212529;
}
[data-bs-theme="light"] .dropdown-menu-dark .dropdown-item:hover {
    background: #f8f9fa;
    color: #ff5500;
}
[data-bs-theme="light"] .dropdown-menu-dark .dropdown-divider {
    background-color: #dee2e6 !important;
}

[data-bs-theme="light"] .features-section {
    background: linear-gradient(to bottom, transparent, #e9ecef 10%) !important;
}

[data-bs-theme="light"] footer {
    background: #e9ecef !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
}

[data-bs-theme="light"] footer h4 {
    color: #343a40 !important;
}

/* Base Component Overrides for Light Mode */
[data-bs-theme="light"] .accordion-item,
[data-bs-theme="light"] .faq-box,
[data-bs-theme="light"] .card,
[data-bs-theme="light"] .bg-dark,
[data-bs-theme="light"] .scum-card,
[data-bs-theme="light"] .stage-panel,
[data-bs-theme="light"] .info-panel,
[data-bs-theme="light"] .gacha-card-esport,
[data-bs-theme="light"] .esport-balance,
[data-bs-theme="light"] .glass-input,
[data-bs-theme="light"] .roll-panel,
[data-bs-theme="light"] .loot-panel,
[data-bs-theme="light"] .loot-header,
[data-bs-theme="light"] .loot-item {
    background-color: rgba(255, 255, 255, 0.9) !important;
    background-image: none !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #212529 !important;
}

[data-bs-theme="light"] .gacha-card-esport,
[data-bs-theme="light"] .stage-panel {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

[data-bs-theme="light"] [style*="radial-gradient"] {
    background: none !important;
}

[data-bs-theme="light"] .bg-black {
    background-color: #e9ecef !important;
}

[data-bs-theme="light"] .scum-card::before,
[data-bs-theme="light"] .gacha-card-esport::before,
[data-bs-theme="light"] .stage-panel::before {
    display: none !important;
}

[data-bs-theme="light"] .scum-card .card-header {
    background: rgba(0,0,0,0.02) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

[data-bs-theme="light"] .glass-input {
    color: #212529 !important;
}

[data-bs-theme="light"] .text-white,
[data-bs-theme="light"] .text-white-50,
[data-bs-theme="light"] .text-light,
[data-bs-theme="light"] .accordion-body {
    color: #495057 !important;
}

[data-bs-theme="light"] [style*="blur(50px)"],
[data-bs-theme="light"] [style*="blur(40px)"] {
    display: none !important;
}

[data-bs-theme="light"] [style*="filter: drop-shadow("] {
    filter: none !important;
}

[data-bs-theme="light"] [style*="box-shadow: 0 10px 40px rgba(0,0,0,0.5)"],
[data-bs-theme="light"] [style*="box-shadow: 0 10px 30px rgba(0,0,0,0.5)"] {
    box-shadow: 0 10px 40px rgba(0,0,0,0.05) !important;
}

[data-bs-theme="light"] .list-group-item.active {
    color: #ff5500 !important;
    background: rgba(255,85,0,0.1) !important;
}

[data-bs-theme="light"] .accordion-button:not(.collapsed) {
    background: rgba(255, 85, 0, 0.1) !important;
    color: #ff5500 !important;
    text-shadow: none !important;
}

[data-bs-theme="light"] .accordion-button {
    color: #343a40 !important;
}

[data-bs-theme="light"] [style*="background: rgba(0,0,0"],
[data-bs-theme="light"] [style*="background: rgba(0, 0, 0"],
[data-bs-theme="light"] [style*="background:#111"],
[data-bs-theme="light"] [style*="background: #111"],
[data-bs-theme="light"] [style*="background:#050505"],
[data-bs-theme="light"] [style*="background: #050505"],
[data-bs-theme="light"] [style*="background: rgba(15,15,18"],
[data-bs-theme="light"] [style*="background: rgba(20, 20, 25"],
[data-bs-theme="light"] [style*="background: rgba(30, 30, 35"],
[data-bs-theme="light"] [style*="background: rgba(18, 18, 22"],
[data-bs-theme="light"] [style*="background: rgba(20, 20, 24"],
[data-bs-theme="light"] [style*="background: rgba(10, 10, 15"],
[data-bs-theme="light"] [style*="background: rgba(18,20,28"],
[data-bs-theme="light"] [style*="background: rgba(10, 10, 12"] {
    background-color: rgba(255, 255, 255, 0.8) !important;
    background-image: none !important;
}

[data-bs-theme="light"] [style*="border: 1px solid rgba(255,255,255"],
[data-bs-theme="light"] [style*="border-bottom: 1px solid rgba(255,255,255"] {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="light"] [style*="color: #a0a5aa"],
[data-bs-theme="light"] [style*="color: #888"] {
    color: #495057 !important;
}

[data-bs-theme="light"] h1[style*="color: var(--brand-orange)"],
[data-bs-theme="light"] h2[style*="color: var(--brand-orange)"],
[data-bs-theme="light"] h3[style*="color: var(--brand-orange)"] {
    color: #343a40 !important;
}

[data-bs-theme="light"] h1[style*="text-shadow: 0 0 15px rgba(255,85,0,0.5)"] {
    text-shadow: none !important;
}

[data-bs-theme="light"] .hero-section {
    background: none;
}

[data-bs-theme="light"] .server-logo {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15)) !important;
}

[data-bs-theme="light"] .server-subtitle {
    color: #343a40 !important;
    text-shadow: none !important;
    letter-spacing: 8px !important;
    font-weight: 700 !important;
}

[data-bs-theme="light"] .connection-box {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 85, 0, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

[data-bs-theme="light"] .connection-box .ip-label {
    color: #6c757d !important;
}

[data-bs-theme="light"] .connection-box .ip-text {
    color: #ff5500 !important;
}

[data-bs-theme="light"] .status-badge {
    background: #ffffff !important;
    border: 1px solid rgba(255, 85, 0, 0.3) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}

[data-bs-theme="light"] .status-badge .text-white {
    color: #212529 !important;
}

[data-bs-theme="light"] .features-section h2.text-white {
    color: #ff5500 !important;
    text-shadow: none !important;
}

[data-bs-theme="light"] .feature-card, 
[data-bs-theme="light"] .stat-box,
[data-bs-theme="light"] .profile-header-card,
[data-bs-theme="light"] .card {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}
[data-bs-theme="light"] .feature-card:hover,
[data-bs-theme="light"] .stat-box:hover {
    box-shadow: 0 8px 25px rgba(255,85,0,0.15) !important;
    border-color: rgba(255,85,0,0.3) !important;
}

[data-bs-theme="light"] .feature-title,
[data-bs-theme="light"] h1, [data-bs-theme="light"] h2, [data-bs-theme="light"] h3, 
[data-bs-theme="light"] h4, [data-bs-theme="light"] h5 {
    color: #212529 !important;
}
[data-bs-theme="light"] .text-white {
    color: #212529 !important;
}
[data-bs-theme="light"] .text-white-50,
[data-bs-theme="light"] .feature-desc {
    color: #6c757d !important;
}

[data-bs-theme="light"] .form-control {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
}
[data-bs-theme="light"] .form-control::placeholder {
    color: #adb5bd !important;
}
[data-bs-theme="light"] .input-group-text {
    background-color: #f8f9fa !important;
    border-color: #ced4da !important;
}

[data-bs-theme="light"] .table-dark {
    --bs-table-bg: #ffffff;
    --bs-table-color: #212529;
    --bs-table-border-color: #dee2e6;
    color: #212529;
}
[data-bs-theme="light"] .table-dark th {
    background-color: #f8f9fa;
    color: #212529;
}

[data-bs-theme="light"] .badge.bg-dark {
    background-color: #e9ecef !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

[data-bs-theme="light"] .list-group-item {
    color: #212529 !important;
}
[data-bs-theme="light"] .list-group-item.active {
    background: rgba(255,85,0,0.1) !important;
    color: #ff5500 !important;
}

[data-bs-theme="light"] .modal-content {
    background: #ffffff !important;
}
[data-bs-theme="light"] .modal-header,
[data-bs-theme="light"] .modal-footer {
    border-color: #dee2e6 !important;
}
[data-bs-theme="light"] .alert-dark {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

/* --- Sci-Fi Dropdown UI --- */
.sci-fi-dropdown {
    background: rgba(10, 12, 16, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 15px rgba(255,85,0,0.05);
    border-radius: 4px !important;
    padding: 10px;
    animation: dropdownGlow 0.3s ease-out forwards;
    transform-origin: top center;
}

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

.sci-fi-dropdown.border-info { border-top: 3px solid #0dcaf0; }
.sci-fi-dropdown.border-warning { border-top: 3px solid #ffc107; }
.sci-fi-dropdown.border-orange { border-top: 3px solid #ff5500; }

.sci-fi-dropdown .dropdown-item {
    color: #a0a5aa;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.sci-fi-dropdown .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    color: #ffffff;
    border-left: 2px solid var(--brand-orange);
    transform: translateX(5px);
}

.sci-fi-dropdown .dropdown-divider {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin: 8px 0;
}

/* --- HUD Navbar --- */
.hud-navbar-wrapper {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    max-width: 1600px;
    z-index: 1030;
    transition: all 0.3s ease;
}

.hud-navbar {
    padding: 5px 20px !important;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
}

.hud-navbar::before {
    content: '';
    position: absolute;
    top: 0; left: -30px; width: calc(100% + 60px); height: 100%;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 85, 0, 0.5);
    border-top: 3px solid var(--brand-orange);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,85,0,0.1);
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    z-index: -1;
}

.hud-nav-item {
    color: #a0a5aa !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 20px !important;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    background: rgba(0,0,0,0.3);
    border: 1px solid transparent;
    white-space: nowrap;
}

.hud-nav-item:hover, .hud-nav-item.active-nav {
    color: #ffffff !important;
    background: rgba(255, 85, 0, 0.2);
    border: 1px solid var(--brand-orange);
    text-shadow: 0 0 10px rgba(255,85,0,0.8);
    box-shadow: inset 0 0 15px rgba(255,85,0,0.3);
}

/* Responsive adjustments for mid-size screens (laptops) */
@media (max-width: 1400px) and (min-width: 992px) {
    .hud-nav-item {
        padding: 6px 10px !important;
        margin: 0 2px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    .hud-navbar-wrapper {
        width: 100%;
        max-width: 100%;
    }
    .navbar-brand {
        margin-right: 15px !important;
    }
    .navbar-brand span {
        font-size: 1rem !important;
    }
    .hud-user-btn {
        padding: 5px 10px 5px 5px;
    }
    .avatar-img {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Pulsing Glow Effect for Top-Up Button */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(40, 167, 69, 0.2), inset 0 0 5px rgba(40, 167, 69, 0.2); border-color: rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 0 15px rgba(40, 167, 69, 0.6), inset 0 0 10px rgba(40, 167, 69, 0.4); border-color: rgba(40, 167, 69, 0.8); text-shadow: 0 0 8px rgba(40, 167, 69, 0.8); }
    100% { box-shadow: 0 0 5px rgba(40, 167, 69, 0.2), inset 0 0 5px rgba(40, 167, 69, 0.2); border-color: rgba(40, 167, 69, 0.3); }
}

.hud-nav-item.topup-btn-glow {
    animation: pulseGlow 2s infinite;
    color: #28a745 !important;
}

.hud-nav-item.topup-btn-glow:hover {
    background: rgba(40, 167, 69, 0.15);
    border-color: #28a745;
    color: #ffffff !important;
    text-shadow: 0 0 10px #28a745;
}

.topup-icon-glow {
    filter: drop-shadow(0 0 5px rgba(40, 167, 69, 0.8));
    animation: pulseGlow 2s infinite alternate;
}

.hud-user-btn {
    background: linear-gradient(90deg, rgba(255,85,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    border-left: 2px solid var(--brand-orange);
    padding: 5px 15px 5px 10px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    transition: all 0.3s ease;
}

.hud-user-btn:hover {
    background: linear-gradient(90deg, rgba(255,85,0,0.2) 0%, rgba(255,85,0,0.05) 100%);
    box-shadow: inset 2px 0 10px rgba(255,85,0,0.5);
}

@media (max-width: 991px) {
    .hud-navbar-wrapper {
        top: 0;
        width: 100%;
        max-width: 100%;
    }
    .hud-navbar::before {
        clip-path: none;
        border-radius: 0;
        border-top: none;
        border-bottom: 2px solid var(--brand-orange);
    }
    .hud-nav-item {
        margin: 5px 0;
        justify-content: center;
    }
}

/* ========================================================================= */
/* BOT CHAT WIDGET STYLES (Bottom Left)                                      */
/* ========================================================================= */

.bot-chat-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align to left */
}

.bot-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-orange), #ff2200);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(255, 85, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.bot-chat-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 85, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.5);
}

.bot-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand-darker);
    animation: bounceBadge 2s infinite;
}

@keyframes bounceBadge {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.bot-chat-window {
    width: 350px;
    height: 450px;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 85, 0, 0.3);
    border-radius: 12px 12px 12px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,85,0,0.05);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom left;
    animation: popOut 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.bot-chat-header {
    background: linear-gradient(90deg, rgba(255, 85, 0, 0.2), transparent);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 85, 0, 0.2);
}

.bot-chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.bot-message {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--brand-orange);
    align-self: flex-start;
    border-radius: 0 8px 8px 8px;
}

.user-message {
    background: rgba(255, 85, 0, 0.15);
    border-right: 3px solid var(--brand-orange);
    align-self: flex-end;
    border-radius: 8px 0 8px 8px;
}

.bot-chat-input-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-chat-input-area .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.bot-chat-input-area .form-control:focus {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.2) !important;
}

@media (max-width: 576px) {
    .bot-chat-window {
        width: 300px;
        height: 400px;
    }
}
