:root {
    --primary-color: #800000;
    /* Dark Red */
    --secondary-color: #ffd700;
    /* Gold */
    --bg-dark: #050505;
    --bg-card: #111111;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --gradient-main: linear-gradient(135deg, #800000 0%, #300000 100%);
    --glass-bg: rgba(10, 10, 10, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --gold-glow: 0 0 15px rgba(255, 215, 0, 0.3);
    --bronze-color: #cd7f32;
    --silver-color: #c0c0c0;
    --gold-color: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: var(--glass-border);
    padding: 10px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 60px;
}

.nav-left {
    flex: 0 0 320px;
    /* Base fija para asegurar espacio al logo y musica */
    display: flex;
    align-items: center;
    gap: 30px;
}

.music-control {
    display: flex;
    align-items: center;
}

.music-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(128, 0, 0, 0.4);
    transform: scale(1.1);
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    /* Permite que se achique si es necesario */
}

.nav-right {
    flex: 0 0 320px;
    /* Base fija para que el login no se mueva */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.logo {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    white-space: nowrap;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    font-family: 'Cinzel', serif;
}

.logo span {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(128, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 15px;
    /* Reducido de 25px para que quepan los 11 items */
}

.nav-links a {
    font-size: 11px;
    /* Un poco mas pequeño para elegancia */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 10px;
    /* Padding mas compacto */
    border-radius: 4px;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 10px rgba(128, 0, 0, 0.3);
}

/* Account Actions in Navbar */
.nav-account {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-login-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.2) 0%, rgba(128, 0, 0, 0.4) 100%);
    border: 1px solid rgba(255, 183, 0, 0.3);
    border-radius: 4px;
    color: var(--secondary-color);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-login-nav:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(128, 0, 0, 0.5);
    transform: translateY(-2px);
}

.nav-account-guest {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-register-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-register-nav:hover {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.user-logged-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.user-logged-info:hover {
    background: rgba(128, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.user-logged-info .user-name {
    color: var(--secondary-color);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.user-profile-link i {
    font-size: 14px;
    color: var(--secondary-color);
}

.nav-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
}

.btn-logout-small {
    color: #ff4d4d;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.btn-logout-small:hover {
    color: #fff;
    background: #ff4d4d;
    transform: scale(1.1);
}





/* Countdown Timer */
.countdown-wrapper {
    margin: 30px auto;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.launch-label {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--secondary-color);
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.timer-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.timer-box span {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.timer-box small {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 5px;
    letter-spacing: 1px;
}

.register-wrapper,
.login-wrapper {
    background: linear-gradient(145deg, rgba(15, 15, 15, 0.98) 0%, rgba(5, 5, 5, 0.99) 100%);
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), inset 0 0 40px rgba(128, 0, 0, 0.15);
    padding: 40px 35px;
    border-radius: 15px;
    max-width: 480px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 35px;
}

.register-wrapper::before,
.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), var(--primary-color), transparent);
    animation: legendary-shine 3s linear infinite;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-family: 'Cinzel', serif;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    color: #fff;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fix Autocomplete Background */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #111 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group input:focus {
    outline: none;
    background: rgba(128, 0, 0, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(128, 0, 0, 0.3);
}

.section-title,
.section-subtitle {
    text-align: center;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
}

.hamburger:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 20px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 5px;
    position: relative;
}

/* Legendary Text Effect */
.hero-content .glitch {
    position: relative;
    display: inline-block;
    /* Epic Gradient: Dark Red -> Gold -> White Shine -> Gold -> Dark Red */
    background: linear-gradient(110deg,
            #b30000 20%,
            #ff3333 40%,
            #ffd700 48%,
            #ffffff 50%,
            #ffd700 52%,
            #ff3333 60%,
            #b30000 80%);
    background-size: 200% auto;

    /* Clip Background to Text */
    -webkit-background-clip: text;
    background-clip: text;

    /* Make text transparent so background shows */
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* Flow Animation */
    animation: legendary-shine 4s linear infinite;

    /* Deep Glow Pulse */
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(200, 0, 0, 0.6));
}

@keyframes legendary-shine {
    to {
        background-position: 200% center;
    }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-light);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(128, 0, 0, 0.4);
}

.btn-primary:hover {
    background: #a00000;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(128, 0, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Server Status */
.server-status {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    animation: pulse 2s infinite;
    background-color: #888;
}

.status-dot.online {
    background-color: #00ff00;
    box-shadow: 0 0 15px #00ff00;
}

.status-dot.offline {
    background-color: #ff0000;
    box-shadow: 0 0 15px #ff0000;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-text {
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

.player-count {
    color: var(--secondary-color);
}

/* Info Section */
.info-section {
    padding: 120px 0;
    background: #080808;
    position: relative;
}

.info-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.tab-btn {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 15px 40px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(128, 0, 0, 0.5);
    transform: translateY(-5px);
}

.tab-content {
    display: none;
    animation: slideUp 0.6s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-item {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    background: rgba(25, 25, 25, 1);
    border-color: var(--primary-color);
}

.info-item .label {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.info-item .value {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

/* VIP Cards */
.vip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.vip-card {
    background: var(--bg-card);
    padding: 60px 40px 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.vip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}

.vip-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.vip-card h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    letter-spacing: 3px;
    color: #fff;
}

.vip-card ul {
    text-align: left;
    list-style: none;
}

.vip-card li {
    margin-bottom: 18px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.vip-card i {
    font-size: 1.1rem;
}

.vip-card.bronze {
    border-color: rgba(205, 127, 50, 0.2);
}

.vip-card.bronze::before,
.vip-card.bronze .vip-badge {
    background: var(--bronze-color);
}

.vip-card.bronze h3,
.vip-card.bronze i {
    color: var(--bronze-color);
}

.vip-card.silver {
    border-color: rgba(192, 192, 192, 0.2);
}

.vip-card.silver::before,
.vip-card.silver .vip-badge {
    background: var(--silver-color);
}

.vip-card.silver h3,
.vip-card.silver i {
    color: var(--silver-color);
}

.vip-card.gold {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, rgba(17, 17, 17, 1) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.vip-card.gold::before,
.vip-card.gold .vip-badge {
    background: var(--gold-color);
}

.vip-card.gold h3,
.vip-card.gold i {
    color: var(--gold-color);
}

/* Rates Table */
.rates-table-wrapper {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
}

.rates-table th,
.rates-table td {
    padding: 22px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rates-table th {
    background: #151515;
    color: var(--text-light);
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.rates-table td:first-child,
.rates-table th:first-child {
    text-align: left;
    padding-left: 40px;
    font-weight: 700;
    color: #fff;
    font-family: 'Cinzel', serif;
}

/* Store Section */
.store-section {
    padding: 120px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('images/hero-bg.png');
    background-size: cover;
    background-attachment: fixed;
}

/* Consolidated Store Grid */
.store-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: 1fr !important;
    }
}

.store-card {
    background: rgba(15, 15, 15, 0.95);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.store-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
    transform: translateY(-15px);
}

.store-card .badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: #000;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.coin-icon {
    font-size: 4.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
}

.store-card h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.store-card .price {
    font-size: 3rem;
    color: #fff;
    font-weight: 900;
    margin-bottom: 40px;
    display: block;
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 80px;
    position: relative;
    letter-spacing: 4px;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    margin: 25px auto 0;
    box-shadow: 0 0 10px var(--primary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.news-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.news-image {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 35px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.news-content h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #fff;
}

.news-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.read-more {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #080808;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.features-section .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 50px;
}

.feature-box {
    text-align: center;
    max-width: 320px;
}

.feature-box i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(128, 0, 0, 0.4);
}

.feature-box h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Downloads Section */
.downloads-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.download-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 60px 40px;
    text-align: center;
    border-radius: 15px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(128, 0, 0, 0.2);
}

.dl-icon {
    font-size: 4.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.download-card h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.8rem;
}

.download-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* News Detail Image Fix */
#news-img {
    height: 600px;
    width: 100%;
    background-size: cover;
    /* POR DEFECTO: Ocupar todo el espacio (sin bordes negros) */
    background-repeat: no-repeat;
    background-position: center top;
    /* Centrar arriba para que se vean las caras */
    background-color: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease;
    /* Transición para el efecto fade */
    opacity: 1;
}

/* Solo para imagenes verticales (Poster) */
#news-img.is-portrait {
    background-size: contain;
    /* Mostrar poster completo */
    background-position: center;
}

@media (max-width: 768px) {
    #news-img {
        height: 400px;
    }
}

.file-size {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 35px;
    font-weight: 700;
}

.dl-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.dl-btns .btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 0.9rem;
}

/* Register Section */
.register-section {
    padding: 120px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Consolidated with Register Wrapper above */

.register-form .form-group {
    margin-bottom: 30px;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
    width: 100%;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.register-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(128, 0, 0, 0.4);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 1rem;
}

.status.online {
    color: #00ff00;
}

.status.offline {
    color: #ff0000;
}

/* News Detail Specifics */
.news-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .news-detail-grid {
        grid-template-columns: 1fr;
    }
}

.news-article {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: var(--glass-border);
}

.article-image {
    height: 400px;
    background-size: cover;
    background-position: center;
}

.article-body {
    padding: 40px;
}

.category {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
}

.article-body h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.article-body ul {
    margin: 30px 0;
    list-style: disc;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

.news-sidebar {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: var(--glass-border);
    height: fit-content;
}

.sidebar-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

.sidebar-list a h4 {
    margin-top: 5px;
    font-size: 1.1rem;
}

.sidebar-list .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Download Card Optimization */
.dl-icon i {
    font-size: 3rem !important;
    /* Smaller icons to fit better */
    margin-bottom: 15px;
}

.download-card h3 {
    font-size: 1.4rem;
}

/* Consolidated News and Ranking elsewhere */

.ranking-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    background: var(--bg-card);
    border-radius: 15px;
    border: var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbar */
.ranking-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.ranking-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.ranking-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.ranking-table th,
.ranking-table td {
    padding: 20px 25px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.ranking-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #151515;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ranking-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.rank-1,
.rank-2,
.rank-3 {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    font-weight: 900;
    color: #000;
}

.rank-1 {
    background: #ffd700;
    box-shadow: 0 0 20px #ffd700;
}

.rank-2 {
    background: #c0c0c0;
    box-shadow: 0 0 20px #c0c0c0;
}

.rank-3 {
    background: #cd7f32;
    box-shadow: 0 0 20px #cd7f32;
}

/* Footer */
footer {
    background: #000;
    padding: 100px 0 40px;
    border-top: 5px solid var(--primary-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-logo h2 {
    font-size: 3rem;
    letter-spacing: 4px;
}

.footer-logo span {
    color: var(--primary-color);
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    background: #1a1a1a;
    border-radius: 50%;
    margin-left: 20px;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: rotate(360deg) scale(1.2);
    box-shadow: 0 0 20px var(--primary-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 40px;
    color: #444;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }

    .nav-center {
        display: none;
        position: absolute;
        top: 70px;
        /* Ajustar al alto del nav */
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        padding: 40px 20px;
        gap: 15px;
        border-bottom: 2px solid var(--primary-color);
        animation: slideDown 0.4s ease forwards;
        z-index: 1000;
        backdrop-filter: blur(20px);
    }

    .nav-center.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .nav-links a {
        font-size: 18px;
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .nav-right {
        gap: 10px;
    }

    /* Ocultar idiomas en móvil si el usuario lo prefiere, o dejarlos visibles junto al hamburger */
    .lang-switcher {
        background: none;
        border: none;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .info-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subpage & Full Height Utility */
.subpage {
    padding-top: 80px;
    /* Offset for fixed navbar */
}

.full-height {
    min-height: calc(100vh - 80px - 150px);
    /* Subtract nav and footer approximate heights */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.subpage .section-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -30px;
    margin-bottom: 50px;
}

/* Ranking Specifics */
.ranking-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.rank-num {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    color: #fff;
    background: #444;
}

.rank-1 {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 10px #ffd700;
}

.rank-2 {
    background: #c0c0c0;
    color: #000;
}

.rank-3 {
    background: #cd7f32;
    color: #000;
}

.status.online {
    color: #00ff00;
}

.status.offline {
    color: #ff0000;
}

/* Download Specifics */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns on desktop */
    gap: 25px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .downloads-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        max-width: 500px;
        margin: 40px auto 0;
    }
}

.download-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 30px 20px !important;
}

.dl-btns-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.drivers-section {
    margin-top: 80px;
    text-align: center;
}

.drivers-section h3 {
    margin-bottom: 30px;
    color: var(--text-light);
}

.drivers-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.driver-link {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

/* Driver Link Hover */
.driver-link:hover {
    background: var(--secondary-color);
    color: #000;
}

/* UNIFIED PREMIUM INPUT STYLES */
.premium-input-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    width: 100%;
}

.premium-input {
    width: 100%;
    max-width: 400px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.premium-input:focus {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px var(--primary-color);
    outline: none;
    transform: scale(1.02);
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Centering the Register Form on Home Page */
.register-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.register-form .form-group {
    margin-bottom: 20px;
    text-align: left;
    /* Keep labels or inputs aligned nicely inside the centered box */
}

/* Force inputs in register form to match premium style if they don't already */
.register-form input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    transition: border-color 0.3s;
}

.register-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

.checkbox-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Floating Support Button */
.floating-support {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.floating-support a {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #5865F2;
    /* Discord Color */
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}

.floating-support a:hover {
    background-color: #4752C4;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
    color: white;
}

.floating-support i {
    font-size: 1.5rem;
}

.floating-support span {
    display: inline-block;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    .floating-support {
        bottom: 20px;
        right: 20px;
    }

    .floating-support span {
        display: none;
        /* Hide text on mobile, show only icon */
    }

    .floating-support a {
        padding: 15px;
    }
}

/* --- CASTLE SIEGE STATUS EPIC STYLES --- */
.castle-siege-container {
    transition: all 0.5s ease-in-out;
    animation: fadeIn 1s forwards;
    margin-top: 25px;
    text-align: center;
    width: 100%;
    padding: 5px;
}

.cs-owner-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 35px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    position: relative;
}

.cs-unclaimed .cs-owner-row {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 0, 0, 0.4) !important;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.3) !important;
    animation: pulseRedAura 2.5s infinite ease-in-out !important;
}

.cs-owned .cs-owner-row {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.15) !important;
}

@keyframes pulseRedAura {
    0% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
        border-color: rgba(255, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.5);
        border-color: rgba(255, 0, 0, 0.6);
    }

    100% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
        border-color: rgba(255, 0, 0, 0.3);
    }
}

.cs-unclaimed .cs-name {
    color: #ff4d4d !important;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.9) !important;
    letter-spacing: 2px;
    font-weight: bold;
    font-style: italic;
    text-transform: uppercase;
}

.cs-owned .cs-name {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important;
}

/* Invasions Section */
.invasions-section {
    padding: 120px 0;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.invasions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.invasion-card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.invasion-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.invasion-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.invasion-card:hover .invasion-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.2);
}

.invasion-name {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invasion-timer {
    font-family: 'Roboto', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    letter-spacing: 2px;
}

.invasion-reward {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.invasion-reward i {
    color: var(--secondary-color);
}

.status-label {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-label.next {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-label.active {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    animation: pulseActive 2s infinite ease-in-out;
}

.status-label.upcoming {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    animation: pulseUpcoming 1.5s infinite ease-in-out;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.highlight-next {
    border-color: rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1) !important;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9) 0%, rgba(30, 25, 10, 0.8) 100%) !important;
}

@keyframes pulseUpcoming {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
        opacity: 0.9;
    }
}

@keyframes pulseActive {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .invasions-grid {
        grid-template-columns: 1fr;
    }
}