/* Desarrollado por LayerGaming - https://layergaming.com */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    background-image: radial-gradient(circle at 50% 50%, rgba(20, 20, 30, 1) 0%, rgba(10, 10, 10, 1) 100%);
    min-height: 100vh;
    font-family: Tahoma, Geneva, sans-serif;
    display: flex;
    color: #ffffff;
    overflow: hidden;
}

.scene-container {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
    top: 0;
    left: 0;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    background-color: #0a0a0a;
}

#sparks-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fire-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 60%, rgba(255,100,0,0.15) 0%, rgba(255,0,0,0) 60%);
    mix-blend-mode: screen;
    z-index: 2;
    pointer-events: none;
    animation: fireGlow 8s infinite alternate;
}

@keyframes fireGlow {
    0% { opacity: 0.4; }
    50% { opacity: 0.7; }
    100% { opacity: 0.4; }
}

.sidebar {
    width: 220px;
    padding: 20px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
}

.cta-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

/* Responsive gap cho mobile */
@media (max-width: 768px) {
    .sidebar-content {
        gap: 14px;
    }
    
    .cta-stack {
        gap: 14px;
    }
    
    .server-card {
        padding: 16px;
    }
}

.sidebar-logo {
    padding: 15px;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.sidebar-logo img {
    height: 120px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-menu li {
    width: 100%;
}

/* Base Button Style - Unified Typography */
.nav-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    height: 52px;
    border-radius: 14px;
    text-decoration: none;
    font-family: "Rajdhani", "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-left: none;
    background-color: #1a1a1f;
    position: relative;
    overflow: hidden;
}

.nav-button i,
.nav-button svg {
    width: 18px;
    height: 18px;
    font-size: 18px;
    flex-shrink: 0;
}

.nav-button.registro {
    color: #4CAF50;
    border-left: 4px solid #4CAF50;
}

.nav-button.registro:hover {
    background-color: #222228;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.nav-button.descargar {
    color: #2196F3;
    border-left: 4px solid #2196F3;
}

.nav-button.descargar:hover {
    background-color: #222228;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.nav-button.ranking {
    color: #FFC107;
    border-left: 4px solid #FFC107;
}

.nav-button.ranking:hover {
    background-color: #222228;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.nav-button.inicio {
    color: #FFD700;
    background-color: #000000;
    border-left: 4px solid #FFD700;
    animation: blinkText 1.5s infinite;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.55);
}

.nav-button.inicio i,
.nav-button.inicio svg {
    color: #FFD700;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.nav-button.inicio:hover {
    background-color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.75);
}

.nav-button.inicio:hover i,
.nav-button.inicio:hover svg {
    filter: drop-shadow(0 3px 10px rgba(255, 215, 0, 0.6));
}

.nav-button.inicio:active {
    transform: translateY(0px);
}

@keyframes blinkText {
    0%, 50% { 
        color: #FFD700; 
        text-shadow: 0 0 10px #FFD700;
    }
    51%, 100% { 
        color: #FFA500; 
        text-shadow: 0 0 15px #FFA500;
    }
}

/* Quà Reset Button - Enhanced Visibility */
.nav-button.rewards {
    color: #39b6ff;
    border-left: 4px solid #39b6ff;
    font-weight: 800;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.55);
}

.nav-button.rewards i,
.nav-button.rewards svg {
    color: #39b6ff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.nav-button.rewards:hover {
    color: #7ad3ff;
    background-color: #222228;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.75);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(57, 182, 255, 0.4);
}

.nav-button.rewards:hover i,
.nav-button.rewards:hover svg {
    color: #7ad3ff;
    filter: drop-shadow(0 3px 10px rgba(57, 182, 255, 0.6));
}

.nav-button.rewards:active {
    transform: translateY(0px);
}

/* Thông tin Server Button - Same style as Rewards */
.nav-button.serverinfo {
    color: #FFD700;
    border-left: 4px solid #FFD700;
    font-weight: 800;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.55);
}

.nav-button.serverinfo i,
.nav-button.serverinfo svg {
    color: #FFD700;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.nav-button.serverinfo:hover {
    color: #FFF4A3;
    background-color: #222228;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.75);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.4);
}

.nav-button.serverinfo:hover i,
.nav-button.serverinfo:hover svg {
    color: #FFF4A3;
    filter: drop-shadow(0 3px 10px rgba(255, 215, 0, 0.6));
}

.nav-button.serverinfo:active {
    transform: translateY(0px);
}

.main-content {
    margin-left: 220px;
    flex-grow: 1;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.nav-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

.nav-button:hover::after {
    opacity: 1;
}

.server-card {
    background-color: rgba(15, 15, 20, 0.7);
    border-radius: 10px;
    padding: 18px;
    margin-top: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 220px;
}

.server-card-center {
    max-width: 400px;
    margin: 40px auto 0 auto;
    background-color: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.server-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #FFC107;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.server-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.stat-label {
    color: #cccccc;
}

.stat-value {
    color: #ffffff;
    font-weight: 600;
}

.website-button {
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px 20px;
    height: 52px;
    font-family: "Rajdhani", "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.55);
}

.website-button:hover {
    background-color: #0d8aed;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.4);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.75);
}

.website-button:active {
    transform: translateY(0px);
}

/* Center content moved to Hero Banner section below */

.main-title {
    font-family: Tahoma, Geneva, sans-serif;
    font-weight: 700;
    font-size: 60px;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.sub-text {
    font-family: Tahoma, Geneva, sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #e0e0e0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-sidebar:empty {
    display: none;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(10, 10, 15, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 22px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Specific colors for each platform */
.social-icon:has(.fa-facebook-f):hover {
    background-color: #1877F2;
}

.social-icon:has(.fa-instagram):hover {
    background: linear-gradient(45deg, #E4405F, #FCCC63, #833AB4);
}

.social-icon:has(.fa-whatsapp):hover {
    background-color: #25D366;
}

.social-icon:has(.fa-discord):hover {
    background-color: #5865F2;
}

.social-icon:has(.fa-tiktok):hover {
    background-color: #000000;
}

.social-icon:has(.fa-youtube):hover {
    background-color: #FF0000;
}

.social-icon:has(.fa-telegram-plane):hover {
    background-color: #0088CC;
}

.youtube-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
    height: 40px;
    width: 200px;
}

.youtube-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #FF0000;
    color: white;
    font-size: 20px;
}

.youtube-text {
    background-color: #1a1a1f;
    color: white;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-grow: 1;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.play-icon {
    background-color: rgba(128, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.youtube-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.watermark {
    position: fixed;
    bottom: 10px;
    left: 245px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-family: Tahoma, Geneva, sans-serif;
    font-weight: 300;
    z-index: 900;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s ease;
    letter-spacing: 1px;
}

.watermark:hover {
    opacity: 0.6;
}

/* Download Modal Styles - New Simple Version */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-modal.show {
    display: flex !important;
    opacity: 1 !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.95), rgba(25, 25, 35, 0.95));
    border-radius: 20px;
    margin: auto;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.modal-header h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.game-info {
    text-align: center;
    margin-bottom: 30px;
}

.game-info h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-info p {
    color: #cccccc;
    margin: 5px 0;
    font-size: 14px;
}

.download-section {
    text-align: center;
}

.download-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    min-width: 200px;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
    background: linear-gradient(45deg, #45a049, #3d8b40);
}

.download-btn:disabled {
    background: #555555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.download-btn i {
    font-size: 24px;
}

.download-btn span {
    font-size: 16px;
    font-weight: 600;
}

.download-btn small {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.download-note {
    margin-top: 25px;
    padding: 15px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.download-note i {
    color: #2196F3;
    margin-right: 8px;
}

.download-note p {
    color: #cccccc;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .modal-header, .modal-body {
        padding: 20px;
    }
    
    .download-btn {
        width: 100%;
        padding: 16px 20px;
    }
}
.download-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.download-popup.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: rgba(15, 15, 20, 0.95);
    border-radius: 15px;
    padding: 30px;
    max-width: 900px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.servers-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Responsive: chuyển về 1 cột trên màn hình nhỏ */
@media (max-width: 768px) {
    .servers-list {
        grid-template-columns: 1fr;
    }
}

.server-item {
    background-color: rgba(20, 20, 25, 0.8);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.server-item.maintenance {
    opacity: 0.6;
    border-color: rgba(255, 193, 7, 0.3);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.server-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.server-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.server-status.online {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.server-status.maintenance {
    background-color: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid #FFC107;
}

.server-description {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.server-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.server-size {
    color: #888888;
    font-size: 13px;
}

.download-btn {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
    margin: 5px;
    min-width: 120px;
    justify-content: center;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
    background: linear-gradient(45deg, #1976D2, #00BCD4);
}

.download-btn:disabled {
    background: #555555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.download-btn i {
    font-size: 16px;
}

/* Multiple download links container */
.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Different styles for different download types */
.download-btn.primary {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.download-btn.primary:hover {
    background: linear-gradient(45deg, #45a049, #3d8b40);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.download-btn.secondary {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

.download-btn.secondary:hover {
    background: linear-gradient(45deg, #F57C00, #E65100);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.download-btn.torrent {
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
    box-shadow: 0 3px 10px rgba(156, 39, 176, 0.3);
}

.download-btn.torrent:hover {
    background: linear-gradient(45deg, #7B1FA2, #6A1B9A);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading {
    text-align: center;
    color: #cccccc;
    padding: 40px;
}

.loading i {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* ========================================
   FIX: Spacing giữa nút Tải Game và card NovaMu
   ======================================== */

.cta-stack-debug {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
    width: 100% !important;
    outline: none;
    border: none;
}

/* Loại bỏ margin/padding thừa có thể gây dính */
.cta-stack-debug .sidebar-menu {
    margin: 0 !important;
}

.cta-stack-debug .server-card {
    margin-top: 0 !important;
}

/* Responsive - Mobile gap 14px */
@media (max-width: 768px) {
    .cta-stack-debug {
        gap: 14px !important;
    }
}


/* ========================================
   HERO BANNER - Clean MU Style (No Panel)
   ======================================== */

/* Hero Overlay - Subtle gradient for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15));
    z-index: 1;
    pointer-events: none;
}

/* Center Content - Floating text */
/* Center Content - Floating text */
.center-content {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: auto;
    max-width: 100%;
    padding: 0 20px;
}

/* Title Wrapper with Shadow Strip */
.title-wrap {
    position: relative;
    display: inline-block;
    padding: 10px 18px;
    margin-bottom: 24px;
}

.title-wrap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(900px, 90vw);
    height: 86px;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent 70%);
    filter: blur(2px);
    z-index: -1;
}

/* Hero Title - Sharp & Bold (Single Line) */
.hero-title {
    font-family: 'Cinzel', 'Trajan Pro', serif;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff2d6;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    display: inline-block;
    font-size: clamp(28px, 5vw, 80px);
    -webkit-text-stroke: 2.4px rgba(0, 0, 0, 0.88);
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.75);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hero Chips Container */
.hero-chips {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

/* Individual Chip */
.chip {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffd25a;
    font-family: 'Rajdhani', 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.65);
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

/* Hero Badge - Announcement */
.hero-badge {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.50);
    border: 1px solid rgba(255, 170, 60, 0.55);
    color: #ffb347;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    animation: blink 1.2s ease-in-out infinite;
}

/* Animations */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* ========================================
   RESPONSIVE - Hero Banner
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .center-content {
        top: 50%;
        padding: 0 20px;
    }

    .title-wrap {
        padding: 8px 16px;
        margin-bottom: 20px;
    }

    .title-wrap::before {
        height: 76px;
    }

    .hero-title {
        letter-spacing: 2px;
    }

    .hero-chips {
        gap: 16px;
    }

    .chip {
        font-size: 17px;
        padding: 9px 16px;
    }

    .hero-badge {
        font-size: 16px;
        padding: 10px 18px;
        margin-top: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .center-content {
        top: 48%;
        padding: 0 16px;
    }

    .title-wrap {
        padding: 6px 14px;
        margin-bottom: 18px;
    }

    .title-wrap::before {
        height: 66px;
        width: 95vw;
    }

    .hero-title {
        letter-spacing: 1.5px;
        -webkit-text-stroke: 2px rgba(0, 0, 0, 0.9);
    }

    .hero-chips {
        gap: 14px;
    }

    .chip {
        font-size: 16px;
        padding: 8px 14px;
        -webkit-text-stroke: 0.8px rgba(0, 0, 0, 0.65);
    }

    .hero-badge {
        font-size: 15px;
        padding: 9px 16px;
        margin-top: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .center-content {
        top: 46%;
        padding: 0 12px;
    }

    .title-wrap {
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    .title-wrap::before {
        height: 56px;
        width: 98vw;
    }

    .hero-title {
        letter-spacing: 1px;
        -webkit-text-stroke: 1.8px rgba(0, 0, 0, 0.9);
    }

    .hero-chips {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    .chip {
        font-size: 15px;
        padding: 7px 13px;
    }

    .hero-badge {
        font-size: 14px;
        padding: 8px 14px;
        margin-top: 12px;
    }
}
        font-size: 14px;
        padding: 9px 16px;
        margin-top: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .center-content {
        top: 52%;
        padding: 0 12px;
    }

    .hero-title {
        letter-spacing: 1px;
        margin-bottom: 14px;
        transform: scale(0.95);
        transform-origin: center;
        -webkit-text-stroke: 1px rgba(0, 0, 0, 0.85);
    }

    .hero-chips {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .chip {
        font-size: 14px;
        padding: 8px 14px;
        width: 90%;
        max-width: 280px;
        -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.65);
    }

    .hero-badge {
        font-size: 13px;
        padding: 8px 14px;
        margin-top: 14px;
        width: 90%;
        max-width: 320px;
    }
}


/* ========================================
   RESPONSIVE - Sidebar & Social Icons
   ======================================== */

/* Tablet - Scale down sidebar */
@media (max-width: 1024px) {
    .sidebar {
        transform: scale(0.9);
        transform-origin: top left;
        width: 200px;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .main-content {
        margin-left: 180px;
    }

    .social-sidebar {
        right: 12px;
        gap: 10px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* Mobile - Convert sidebar to FAB */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    /* Floating Action Button */
    .sidebar-logo {
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 1001;
        padding: 0;
        margin: 0;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
        border-radius: 50%;
        box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .sidebar-logo:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 32px rgba(255, 215, 0, 0.6);
    }

    .sidebar-logo img {
        width: 40px;
        height: 40px;
    }

    /* Hide social sidebar on mobile, show only in menu */
    .social-sidebar {
        display: none;
    }
}

/* Small Mobile - Show only 2 main social icons */
@media (max-width: 480px) {
    .social-sidebar {
        display: flex;
        flex-direction: row;
        position: fixed;
        bottom: 20px;
        right: 20px;
        gap: 10px;
        transform: none;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* Hide all except Facebook and Zalo */
    .social-icon:not([title="Facebook"]):not([title="Whatsapp"]) {
        display: none;
    }

    /* Adjust FAB position to not overlap with social icons */
    .sidebar-logo {
        left: 20px;
        bottom: 90px;
    }
}


/* ========================================
   REWARDS MODAL
   ======================================== */

/* Modal Container */
.rewards-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rewards-modal.is-open {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* Overlay */
.rewards-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/* Modal Content */
.rewards-content {
    position: relative;
    width: 80vw;
    max-width: 1100px;
    height: 80vh;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.98), rgba(25, 25, 35, 0.98));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.rewards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px 20px 0 0;
}

.rewards-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Close Button */
.rewards-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.rewards-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Modal Body */
.rewards-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Table Styles */
.rewards-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #00BCD4;
    border-radius: 8px;
    overflow: hidden;
}

.rewards-table thead {
    background: rgba(200, 200, 200, 0.9);
}

.rewards-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    border-bottom: 2px solid #00BCD4;
}

.rewards-table tbody {
    background: rgba(20, 20, 25, 0.9);
}

.rewards-table tbody tr {
    border-bottom: 1px solid rgba(0, 188, 212, 0.3);
    transition: background 0.2s ease;
}

.rewards-table tbody tr:hover {
    background: rgba(0, 188, 212, 0.1);
}

.rewards-table tbody tr:last-child {
    border-bottom: none;
}

.rewards-table tbody td {
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

.reset-milestone {
    color: #90EE90 !important;
    font-weight: 600;
}

/* Note */
.rewards-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #FFC107;
    border-radius: 4px;
    color: #FFC107;
    font-size: 14px;
    font-style: italic;
}

/* Scrollbar */
.rewards-body::-webkit-scrollbar {
    width: 8px;
}

.rewards-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.rewards-body::-webkit-scrollbar-thumb {
    background: rgba(0, 188, 212, 0.5);
    border-radius: 4px;
}

.rewards-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 188, 212, 0.7);
}

/* ========================================
   RESPONSIVE - Rewards Modal
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .rewards-content {
        width: 85vw;
        height: 85vh;
    }

    .rewards-header h2 {
        font-size: 20px;
    }

    .rewards-table thead th,
    .rewards-table tbody td {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .rewards-content {
        width: 94vw;
        height: 85vh;
    }

    .rewards-header {
        padding: 18px 20px;
    }

    .rewards-header h2 {
        font-size: 16px;
    }

    .rewards-body {
        padding: 20px;
        overflow-x: auto;
    }

    .rewards-table {
        min-width: 600px;
    }

    .rewards-table thead th,
    .rewards-table tbody td {
        font-size: 12px;
        padding: 8px 10px;
    }

    .rewards-note {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .rewards-content {
        width: 96vw;
        height: 90vh;
        border-radius: 12px;
    }

    .rewards-header {
        padding: 14px 16px;
    }

    .rewards-header h2 {
        font-size: 14px;
    }

    .rewards-close {
        font-size: 28px;
        width: 36px;
        height: 36px;
    }

    .rewards-body {
        padding: 16px;
    }
}

/* ========================================
   SERVER INFO MODAL
   ======================================== */

/* Modal Container */
.server-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-info-modal.is-open {
    display: flex;
    opacity: 1;
}

/* Overlay */
.server-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/* Modal Content */
.server-info-content {
    position: relative;
    width: min(1200px, 92vw);
    height: min(82vh, 760px);
    margin: auto;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100000;
}

/* Header */
.server-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-info-header h2 {
    color: #FFD700;
    font-family: "Rajdhani", "Montserrat", sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.server-info-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.server-info-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Body */
.server-info-body {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    overflow-x: hidden;
}

.server-info-body::-webkit-scrollbar {
    width: 8px;
}

.server-info-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.server-info-body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

.server-info-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Grid Layout */
.server-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* Section */
.info-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.info-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.info-section-icon {
    font-size: 24px;
    color: #FF69B4;
    filter: drop-shadow(0 2px 6px rgba(255, 105, 180, 0.6));
}

.info-section-title {
    color: #ffffff;
    font-family: "Rajdhani", "Montserrat", sans-serif;
    font-size: 26px;
    font-weight: 800;
    font-style: italic;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Content List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    color: #e0e0e0;
    font-family: "Rajdhani", "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.info-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #FFD700;
    font-size: 20px;
    line-height: 1.6;
}

/* Highlight Colors */
.highlight-yellow {
    color: #FFA500;
    font-weight: 700;
}

.highlight-cyan {
    color: #00CED1;
    font-weight: 700;
}

.highlight-red {
    color: #FF6B6B;
    font-weight: 700;
}

.highlight-green {
    color: #4CAF50;
    font-weight: 700;
}

/* Video Link */
.video-link {
    color: #FFA500;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-link:hover {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.6);
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .server-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .server-info-content {
        width: 94vw;
        height: 88vh;
    }

    .server-info-header {
        padding: 20px 24px;
    }

    .server-info-header h2 {
        font-size: 24px;
    }

    .server-info-body {
        padding: 24px;
    }

    .info-section {
        padding: 20px;
    }

    .info-section-title {
        font-size: 22px;
    }

    .info-list li {
        font-size: 15px;
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .server-info-content {
        width: 96vw;
        height: 92vh;
        border-radius: 16px;
    }

    .server-info-header {
        padding: 16px 20px;
    }

    .server-info-header h2 {
        font-size: 20px;
    }

    .server-info-close {
        font-size: 28px;
        width: 38px;
        height: 38px;
    }

    .server-info-body {
        padding: 20px;
    }

    .server-info-grid {
        gap: 16px;
    }

    .info-section {
        padding: 16px;
    }

    .info-section-title {
        font-size: 20px;
    }

    .info-section-icon {
        font-size: 20px;
    }

    .info-list li {
        font-size: 14px;
        margin-bottom: 8px;
    }
}
