:root {
    --primary: #06b6d4;
    --primary-dark: #0284c7;
    --secondary: #38bdf8;
    --dark-bg: #040914;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f0f9ff;
    --text-muted: #94a3b8;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Typography & Utils */
.text-light-gray {
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

/* Navigation Bar (Glassmorphism) */
.custom-navbar {
    background: rgba(9, 9, 11, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s ease;
    padding: 1.25rem 0;
}

.custom-navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(9, 9, 11, 0.85);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-dark .navbar-toggler {
    border-color: var(--border-color);
    border-radius: 8px;
}

/* Nav Links Styling */
.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:not(.nav-link-btn):hover,
.navbar-nav .nav-link:not(.nav-link-btn).active {
    color: var(--text-main) !important;
}

.navbar-nav .nav-link:not(.nav-link-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:not(.nav-link-btn):hover::after,
.navbar-nav .nav-link:not(.nav-link-btn).active::after {
    width: calc(100% - 2rem);
}

/* Buttons */
.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white !important;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.5);
}

.btn-glass {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.bg-glass {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.18) 0%, rgba(4, 9, 20, 1) 60%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://wallpapercave.com/wp/ANdo2tw.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

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

.custom-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Countdown Styles */
.countdown-wrapper {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.25);
    display: inline-flex;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-item span.display-4 {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.countdown-separator {
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.2;
    }
}

/* Dashboard Styles */
.custom-hover-text:hover {
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.05);
}

.custom-hover-row:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: scale(1.01);
}

.btn-logout:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    color: white !important;
}

table.table-dark {
    --bs-table-bg: transparent;
}

/* Server Info Philosophy Section */
.server-philosophy-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}

.bg-gradient-overlay {
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.15), transparent 60%),
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.15), transparent 60%);
    pointer-events: none;
}

.feature-hover {
    transition: transform 0.3s ease;
}

.feature-hover:hover {
    transform: translateY(-8px);
}

.feature-icon-box {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-hover:hover .feature-icon-box {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* =============================================
   Server Info — Features Layout
   ============================================= */

.si-wrapper {
    padding-bottom: 3rem;
}

/* Sidebar */
.si-sidebar {
    display: flex;
    flex-direction: column;
    background: rgba(6, 8, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem 0;
    position: sticky;
    top: 88px;
}

.si-sidebar-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 0.2rem 1.25rem 0.8rem;
}

.si-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    padding: 0.55rem 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1.4;
}

.si-nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.si-nav-item.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(6, 182, 212, 0.08);
    font-weight: 500;
}

.si-nav-item span {
    font-size: 0.8rem;
    opacity: 0.4;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.si-nav-item.active span {
    opacity: 1;
}

/* Content Panels */
.si-content {
    min-width: 0;
}

.si-panel {
    display: none;
}

.si-panel.active {
    display: block;
    animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Panel Header */
.si-panel-title {
    font-family: 'Cinzel', 'Outfit', serif;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.si-panel-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.65;
}

.si-tag-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: default;
}

/* Stage Cards */
.si-stage-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 1rem 1.1rem 1.1rem;
    height: 100%;
}

.si-stage-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.si-stage-rate {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.si-stage-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.si-stage-detail strong {
    color: #fff;
}

/* Group Cards */
.si-group-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    height: 100%;
}

.si-group-header {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.si-item {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    line-height: 1.5;
}

.si-item strong {
    color: #fff;
    font-weight: 600;
}

.si-item em {
    color: rgba(255, 255, 255, 0.38);
    font-style: italic;
}

.si-item code {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    border-radius: 4px;
    padding: 0.08rem 0.4rem;
    font-size: 0.8rem;
}

.si-bullet {
    color: var(--primary);
    margin-right: 0.35rem;
    font-size: 0.6rem;
    vertical-align: middle;
}

/* Boss Table */
.si-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.si-table th {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
}

.si-table td {
    padding: 0.55rem 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.si-table td strong {
    color: #fff;
}

.si-table td em {
    color: var(--primary);
    font-style: normal;
    font-size: 0.78rem;
}

.si-table tr:last-child td {
    border-bottom: none;
}

.si-divider {
    border-color: rgba(255, 255, 255, 0.06);
    margin: 0.6rem 0;
}

/* Responsive */
@media (max-width: 991px) {
    .si-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .si-sidebar-label {
        width: 100%;
    }

    .si-nav-item {
        width: 50%;
    }
}

@media (max-width: 575px) {
    .si-nav-item {
        width: 100%;
    }

    .si-panel-title {
        font-size: 1.2rem;
    }
}

/* Server Info - Tabbed Sections */
.info-panel {
    display: none;
}

.info-panel.active {
    display: block;
    animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rate-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rate-row:hover {
    background: rgba(6, 182, 212, 0.06);
    border-color: rgba(6, 182, 212, 0.15);
}

.sidebar-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.sidebar-nav-btn.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* =============================================
   Welcome Bonus Modal Styles & Animations
   ============================================= */
.bonus-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.bonus-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bonus-modal-card {
    position: relative;
    width: 90%;
    max-width: 520px;
    background: radial-gradient(circle at top, rgba(6, 182, 212, 0.18) 0%, rgba(4, 9, 20, 0.98) 75%);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    animation: bonusCardSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.25), inset 0 0 20px rgba(6, 182, 212, 0.1);
    overflow: hidden;
}

.bonus-modal-overlay.active .bonus-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Background lightning glow effect */
.bonus-card-lightning-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: lightningGlowPulse 5s ease-in-out infinite alternate;
}

@keyframes lightningGlowPulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    50% { transform: scale(1.1) translate(10px, -10px); opacity: 0.8; }
    100% { transform: scale(0.9) translate(-10px, 10px); opacity: 0.4; }
}

/* Close & Language Header Bar */
.bonus-modal-header-actions {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    right: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

/* Site-wide language switcher (navbar) - same look as the modal's lang toggle below */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
}

.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.lang-toggle-btn:hover,
.lang-toggle-btn.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Lang Toggle Custom Styling */
.bonus-lang-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bonus-lang-toggle-btn:hover,
.bonus-lang-toggle-btn.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.bonus-modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonus-modal-close-btn:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

/* Modal Content Elements */
.bonus-content-wrapper {
    position: relative;
    z-index: 1;
}

.bonus-badge {
    background: linear-gradient(135deg, rgba(253, 224, 71, 0.1) 0%, rgba(234, 179, 8, 0.1) 100%);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #fde047;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
}

.bonus-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-fill-color: transparent;
    -webkit-text-fill-color: transparent;
}

.bonus-highlight-box {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(6, 182, 212, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    border-right: 4px solid var(--primary);
    position: relative;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.1);
}

.bonus-highlight-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.8), 0 0 30px rgba(56, 189, 248, 0.4);
    animation: textNeonPulse 2s ease-in-out infinite alternate;
}

@keyframes textNeonPulse {
    from { text-shadow: 0 0 10px rgba(6, 182, 212, 0.7), 0 0 20px rgba(56, 189, 248, 0.3); }
    to { text-shadow: 0 0 20px rgba(6, 182, 212, 1), 0 0 35px rgba(56, 189, 248, 0.6), 0 0 50px rgba(255, 255, 255, 0.5); }
}

.bonus-highlight-subtitle {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bonus-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.bonus-cta-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.bonus-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.7), 0 0 15px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.bonus-modal-close-text-btn {
    display: inline-block;
    margin-top: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.bonus-modal-close-text-btn:hover {
    color: var(--text-main);
}

/* Language Sections display handler */
.bonus-lang-section {
    display: none;
}

.bonus-lang-section.active {
    display: block;
    animation: bonusFade 0.4s ease-in-out forwards;
}

@keyframes bonusFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Lightning flicker animation */
@keyframes lightning-flicker {
    0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 2px var(--primary)) brightness(1); }
    5% { opacity: 0.2; filter: drop-shadow(0 0 0px var(--primary)) brightness(0.5); }
    10% { opacity: 1; filter: drop-shadow(0 0 15px var(--secondary)) brightness(1.5); }
    15% { opacity: 0.4; filter: drop-shadow(0 0 2px var(--primary)) brightness(0.7); }
    20% { opacity: 1; filter: drop-shadow(0 0 20px #fff) brightness(2); }
    25% { opacity: 0.9; filter: drop-shadow(0 0 8px var(--secondary)) brightness(1.2); }
    80% { opacity: 0.9; filter: drop-shadow(0 0 8px var(--secondary)) brightness(1.2); }
    82% { opacity: 0.2; filter: drop-shadow(0 0 1px var(--primary)) brightness(0.4); }
    85% { opacity: 1; filter: drop-shadow(0 0 18px #fff) brightness(1.8); }
    90% { opacity: 0.8; filter: drop-shadow(0 0 5px var(--primary)) brightness(1); }
}

.bonus-lightning-icon {
    width: 14px;
    height: 14px;
    fill: #fde047;
    animation: lightning-flicker 4s infinite;
}