/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
    /* Color Palette - Dark Purple */
    --bg-dark: #0a050f;
    --bg-darker: #050208;
    --bg-panel: rgba(20, 10, 30, 0.6);
    --border-panel: rgba(155, 44, 255, 0.2);

    --purple-main: #9b2cff;
    --purple-hover: #b966ff;
    --purple-dark: #4a0099;
    --purple-glow: rgba(155, 44, 255, 0.5);

    --text-main: #e0d5f0;
    --text-muted: #a496b8;
    --white: #ffffff;

    --accent-red: #ff2c55;
    --accent-gold: #ffbe2c;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    color: var(--purple-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--purple-hover);
}

/* ==========================================================================
   Glassmorphism Panels
   ========================================================================== */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-panel);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(155, 44, 255, 0.4);
    box-shadow: 0 8px 32px 0 var(--purple-glow);
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--purple-dark);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.text-purple {
    color: var(--purple-main) !important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    padding-top: 2rem;
    position: relative;
    z-index: 10;
}

.main-logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 15px var(--purple-glow));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.02);
}

.online-status-container {
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.online-badge {
    background: rgba(155, 44, 255, 0.1);
    border: 1px solid rgba(155, 44, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(155, 44, 255, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00ff88;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.status-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-main);
    font-weight: 600;
}

.status-text strong {
    color: var(--white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}


.navbar-nav {
    background: rgba(10, 5, 20, 0.5);
    padding: 8px 60px;
    border-radius: 50px;
    border: 1px solid rgba(155, 44, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-nav .nav-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 20px !important;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.navbar-nav .nav-link i {
    color: var(--purple-main);
    margin-right: 6px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--purple-hover);
    transition: width 0.3s ease;
    box-shadow: 0 -2px 10px var(--purple-glow);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(155, 44, 255, 0.15);
    color: var(--white);
    text-shadow: 0 0 10px rgba(155, 44, 255, 0.8);
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link.active i {
    color: var(--white);
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.nav-wrapper {
    z-index: 5;
}

.nav-relief-logo {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    width: auto;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 0 10px var(--purple-glow));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.nav-wrapper:hover .nav-relief-logo {
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 0 15px rgba(155, 44, 255, 0.8));
}

/* ==========================================================================
   Premium Buttons
   ========================================================================== */
.btn-premium {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    margin: 0 10px;
    text-align: left;
}

.btn-icon {
    width: 45px;
    height: 45px;
    margin-right: 15px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-text .main-text {
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-premium .subtext {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-transform: none;
    margin-top: 2px;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-premium:hover::before {
    transform: translateX(100%);
}

.btn-register {
    color: var(--white);
    background: url('../img/btn-bg-register.jpg') center/cover no-repeat, linear-gradient(135deg, var(--purple-dark), #7b1bd1);
    background-blend-mode: overlay;
    box-shadow: 0 6px 20px rgba(155, 44, 255, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(155, 44, 255, 0.8);
}

.btn-register:hover {
    color: var(--white);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(155, 44, 255, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    background: url('../img/btn-bg-register.jpg') center/cover no-repeat, linear-gradient(135deg, #7b1bd1, var(--purple-main));
    background-blend-mode: overlay;
}

.btn-register:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.btn-download {
    color: var(--white);
    background: url('../img/btn-bg-download.jpg') center/cover no-repeat, linear-gradient(135deg, #1a1a1a, #2a2a2a);
    background-blend-mode: overlay;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-download:hover {
    color: var(--white);
    transform: translateY(-5px) scale(1.02);
    border-color: var(--purple-main);
    box-shadow: 0 10px 30px rgba(155, 44, 255, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.1);
    background: url('../img/btn-bg-download.jpg') center/cover no-repeat, linear-gradient(135deg, #222, #333);
    background-blend-mode: overlay;
}

.btn-download:hover i {
    transform: translateY(-3px);
}

/* ==========================================================================
   Top Panels (Countdown & Discord)
   ========================================================================== */
.top-panel {
    background: linear-gradient(145deg, rgba(15, 10, 25, 0.9), rgba(5, 2, 10, 0.95));
    border: 1px solid rgba(155, 44, 255, 0.15);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(155, 44, 255, 0.15);
    border-color: rgba(155, 44, 255, 0.3);
}

.top-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.panel-bg-countdown::before {
    background-image: url('../img/slider1.jpg');
}

.panel-bg-discord::before {
    background-image: url('../img/slider2.jpg');
}

.top-panel>* {
    position: relative;
    z-index: 1;
}

/* Countdown Styles */
.timer-title {
    color: var(--accent-gold);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 190, 44, 0.3);
}

.timer-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.countdown-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 85px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.countdown-box .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-box .label {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-gold {
    background: linear-gradient(to bottom, #f9d976, #e9b646);
    color: #111;
    font-weight: 700;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(233, 182, 70, 0.3);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(to bottom, #fff0a8, #f9d976);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 182, 70, 0.5);
}

/* Discord Styles */
.discord-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.discord-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.discord-title .brand {
    color: #5865F2;
    /* Discord brand color */
    text-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.discord-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.discord-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 20px;
    text-align: center;
}

.stat-box .count {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.stat-box .label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discord-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4px 12px 4px 4px;
    margin-right: -10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, z-index 0.2s ease;
    cursor: pointer;
}

.avatar-item:hover {
    transform: translateY(-3px);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
}

.avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    background: #333;
}

.avatar-name {
    font-size: 0.75rem;
    color: var(--white);
    font-weight: 600;
}

.btn-discord {
    background: #5865F2;
    color: white;
    font-weight: 600;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    background: #4752C4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

/* ==========================================================================
   Hero Section & Carousel
   ========================================================================== */
.carousel {
    border-radius: 12px;
}

.carousel-inner {
    border-radius: 12px;
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
    filter: brightness(0.8);
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    text-align: left;
}

.carousel-caption h3 {
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 5px;
}

.carousel-indicators {
    margin-bottom: 10px;
}

.carousel-indicators [data-bs-target] {
    width: 30px;
    height: 4px;
    background-color: var(--purple-main);
    border: none;
}

.carousel-indicators .active {
    background-color: var(--white);
    box-shadow: 0 0 8px var(--purple-glow);
}

/* News Panel */
.news-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.news-list a:hover {
    color: var(--white);
    padding-left: 5px;
}

.news-list .date {
    color: var(--purple-main);
    font-weight: 600;
    margin-right: 10px;
    font-size: 0.9rem;
}

.news-list .title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-all {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==========================================================================
   Events Widgets (Castle Siege / Devias Battle)
   ========================================================================== */
.event-card {
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover .event-bg,
.news-panel:hover .event-bg {
    opacity: 0.3;
}

.cs-bg {
    background-image: url('../img/cs-bg.jpg');
}

.db-bg {
    background-image: url('../img/db-bg.jpg');
}

.news-bg {
    background-image: url('../img/news-bg.jpg');
    opacity: 0.2;
}

.event-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.winner-logo img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    border: 2px solid var(--purple-main);
    box-shadow: 0 0 15px rgba(155, 44, 255, 0.3);
}

.guild-name {
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(155, 44, 255, 0.2);
}

.bg-purple {
    background-color: var(--purple-dark) !important;
    border: 1px solid var(--purple-main);
}

.event-card .text-muted {
    color: #b9adc9 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.bg-danger {
    background: linear-gradient(135deg, #ff2c55 0%, #a00022 100%) !important;
    border: 1px solid #ff2c55;
    box-shadow: 0 0 15px rgba(255, 44, 85, 0.5);
    animation: battle-pulse 1.5s infinite;
}

@keyframes battle-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   Dashboard / User CP
   ========================================================================== */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 100px);
    gap: 30px;
}

.sidebar-nav {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.dashboard-main {
    flex: 1;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    font-weight: 600;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--purple-main);
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(155, 44, 255, 0.1);
    color: var(--white);
}

.sidebar-link.active i {
    color: var(--white);
    filter: drop-shadow(0 0 5px var(--purple-main));
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-card i {
    font-size: 2rem;
    color: var(--purple-main);
    margin-bottom: 5px;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-profile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin-bottom: 30px;
}

.user-info-brief {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--purple-main), var(--purple-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cur-balance {
    display: flex;
    gap: 20px;
}

.balance-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.balance-item .label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.balance-item .amount {
    font-weight: 700;
    color: var(--accent-gold);
}

@media (max-width: 991px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar-nav {
        flex: none;
        position: relative;
        top: 0;
    }
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .sidebar-menu::-webkit-scrollbar { display: none; }
    .sidebar-link {
        flex: 0 0 auto;
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Rankings Section
   ========================================================================== */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
}

.table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 15px;
}

.table td {
    vertical-align: middle;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02) !important;
}

.rank-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}

.rank-1 {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 190, 44, 0.5);
}

.rank-2 {
    background: silver;
    color: #000;
}

.rank-3 {
    background: #cd7f32;
    color: #fff;
}

.top-1 td {
    color: var(--white);
    font-weight: 600;
}

/* ==========================================================================
   Features Tabs Section
   ========================================================================== */
.features-tabs-section {
    position: relative;
}

.tabs-labels-container {
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
}

.tabs-labels-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, etc. */
}

.tab-label {
    flex: 0 0 auto;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.tab-label img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.tab-label span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tab-label:hover {
    background: rgba(155, 44, 255, 0.1);
    border-color: rgba(155, 44, 255, 0.4);
    transform: translateY(-2px);
}

.tab-label.active {
    background: linear-gradient(135deg, rgba(155, 44, 255, 0.4) 0%, rgba(85, 0, 255, 0.2) 100%);
    border-color: var(--purple-main);
    box-shadow: 0 0 20px rgba(155, 44, 255, 0.2);
}

.tab-label.active span {
    color: var(--white);
}

.tab-label.active img {
    filter: drop-shadow(0 0 8px var(--purple-main));
}

.tabs-content-area {
    min-height: 400px;
    padding: 40px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-pane.active {
    display: block;
}

.tab-media-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-media-wrapper img {
    transition: transform 0.5s ease;
}

.tab-media-wrapper:hover img {
    transform: scale(1.03);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .tabs-content-area {
        padding: 25px;
    }
    
    .tab-pane .row {
        flex-direction: column-reverse;
        gap: 30px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 2, 8, 0.8);
}

/* ==========================================================================
   Responsive & Mobile Adjustments
   ========================================================================== */
@media (max-width: 991px) {

    .main-logo {
        max-width: 320px;
    }

    /* Navbar Mobile Premium Button */
    .mobile-menu-toggle {
        background: rgba(10, 5, 20, 0.85);
        border: 1px solid rgba(155, 44, 255, 0.4);
        border-radius: 12px;
        padding: 5px 20px 5px 5px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        color: var(--white);
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-menu-toggle:hover {
        background: rgba(15, 10, 30, 0.95);
        border-color: rgba(155, 44, 255, 0.8);
        box-shadow: 0 4px 20px rgba(155, 44, 255, 0.3);
    }

    .mobile-toggle-logo {
        height: 50px;
        width: auto;
        filter: drop-shadow(0 0 5px var(--purple-glow));
    }

    .mobile-toggle-text {
        font-weight: 700;
        letter-spacing: 2px;
        font-size: 1.1rem;
        color: var(--text-main);
    }

    .mobile-toggle-icon {
        font-size: 1.5rem;
        color: var(--purple-main);
    }

    .navbar-collapse {
        background: rgba(10, 5, 20, 0.95);
        border: 1px solid rgba(155, 44, 255, 0.3);
        border-radius: 15px;
        padding: 15px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    .navbar-nav {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        backdrop-filter: none;
    }

    .navbar-nav .nav-link {
        margin-bottom: 5px;
    }

    /* Header Buttons */
    .main-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .main-actions .btn-premium {
        width: 100%;
        max-width: 350px;
        margin: 0 !important;
    }

    /* Top Panels (Countdown & Discord) */
    .hero-top-panels>div {
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   User Management / Forms
   ========================================================================== */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
}

.auth-card {
    padding: 40px;
    border-radius: 20px;
}

.form-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.input-group-premium {
    position: relative;
    margin-bottom: 25px;
}

.input-group-premium i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple-main);
    z-index: 5;
    transition: all 0.3s ease;
}

.form-control-premium {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 15px 12px 45px !important;
    color: var(--white) !important;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control-premium::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-control-premium:focus {
    background: rgba(155, 44, 255, 0.05) !important;
    border-color: var(--purple-main) !important;
    box-shadow: 0 0 15px rgba(155, 44, 255, 0.2) !important;
    outline: none;
}

.form-control-premium:focus + i {
    color: var(--white);
    filter: drop-shadow(0 0 5px var(--purple-main));
}

.auth-footer-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.auth-link {
    color: var(--purple-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--purple-glow);
}

@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {

    /* Countdown Adjustments */
    .countdown-wrapper {
        gap: 10px;
        flex-wrap: wrap;
    }

    .countdown-box {
        min-width: 65px;
        padding: 10px 15px;
    }

    .countdown-box .number {
        font-size: 1.5rem;
    }

    .countdown-box .label {
        font-size: 0.6rem;
    }

    /* Discord Widget Adjustments */
    .discord-title {
        font-size: 1.4rem;
    }

    .discord-stats {
        flex-direction: column;
        gap: 10px;
    }

    .discord-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .avatar-group {
        justify-content: center;
        margin-bottom: 5px;
    }
}