/* Desarrollado por LayerGaming - https://layergaming.com */
@import url('https://fonts.cdnfonts.com/css/montserrat');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    color: #ffffff;
    overflow: hidden;
}

.scene-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

#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-color: rgba(10, 10, 15, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: space-between;
}

.sidebar-logo {
    padding: 15px;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.sidebar-logo img {
    height: 120px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-menu li {
    width: 100%;
}

.nav-button {
    display: block;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    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;
    color: inherit;
}

.nav-button i {
    margin-right: 2px;
    font-size: 18px;
    color: currentColor; /* icon ăn màu chữ */
}

.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: #ffffff;
    border-left: 4px solid #ffffff;
}
.nav-button.inicio:hover {
    background-color: #222228;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Nút THÔNG TIN */
.nav-button.thongtin {
    color: #ff5100;
    border-left: 4px solid #FF9800;
    background-color: #1a1a1f;
    transition: all 0.3s ease;
}
.nav-button.thongtin:hover {
    background-color: #222228;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.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: 15px;
    margin-top: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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: 6px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.website-button:hover {
    background-color: #0d8aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.center-content {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 80%;
    max-width: 800px;
    padding: 30px;
}

.main-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 60px;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;

    /* Nền glass */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 30px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);

    /* Chữ vàng */
    color: #FFD700; /* vàng sáng sậm */
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}



.sub-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #fff;
    background: rgba(20, 15, 10, 0.85); /* nền sậm đen cafe */
    padding: 10px 25px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}


.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.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);
}
.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.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.6);
    font-family: 'Roboto Condensed', sans-serif; /* đổi font */
    font-weight: 400;
    z-index: 900;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s ease;
    letter-spacing: 1px;

    /* nền trong suốt */
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 8px;
    border-radius: 6px;
}


.watermark:hover {
    opacity: 0.6;
}

.server-line {
    border: none;
    border-top: 1px solid #ccc;
    margin: 10px 0;
}

/* Áp dụng cho tất cả scrollbar trong popup */
#thongtin-overlay div::-webkit-scrollbar {
  width: 8px;                /* độ dày */
}

#thongtin-overlay div::-webkit-scrollbar-track {
  background: #1e1e1e;       /* nền track */
  border-radius: 10px;
}

#thongtin-overlay div::-webkit-scrollbar-thumb {
  background: #ffaa00;       /* thanh kéo màu vàng */
  border-radius: 10px;
}

#thongtin-overlay div::-webkit-scrollbar-thumb:hover {
  background: #ffcc33;       /* hover sáng hơn */
}

/* Nút QUÀ TÂN THỦ */
.nav-button.quatanthu {
    color: #00e676;
    border-left: 4px solid #00e676;
    background-color: #1a1a1f;
    transition: all 0.3s ease;
}
.nav-button.quatanthu:hover {
    background-color: #222228;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Scrollbar popup Quà Tân Binh */
#quatanthu-overlay div::-webkit-scrollbar {
  width: 8px;
}
#quatanthu-overlay div::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 10px;
}
#quatanthu-overlay div::-webkit-scrollbar-thumb {
  background: #ffaa00;
  border-radius: 10px;
}
#quatanthu-overlay div::-webkit-scrollbar-thumb:hover {
  background: #ffcc33;
}

.tiktok-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;
}

.tiktok-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #000000; /* nền TikTok */
    color: #fff;
    font-size: 20px;
}

.tiktok-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;
}

.tiktok-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}
.status-bar {
    width: 100%;
    height: 18px;
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 6px; /* tạo khoảng cách ngay dưới chữ */
}

.status-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #4caf50, #2e7d32);
}

/* ============================
   BẢNG SỰ KIỆN
   ============================ */
.nav-button.sukien {
    color: #ff9800;
    border-left: 4px solid #ff9800;
}
.nav-button.sukien:hover {
    background-color: #222228;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Overlay BẢNG SỰ KIỆN */
#sukien-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,10,0.6);
    backdrop-filter: none;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#sukien-overlay .popup-content {
    background: rgba(20, 20, 25, 1.0);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    color: #fff;
}

/* Header có tiêu đề giữa và nút X góc phải */
#sukien-overlay .popup-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

#sukien-overlay .popup-header h2 {
    color: #FFC107;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    text-align: center;
    flex: 1;
    margin: 0;
}

#sukien-overlay .popup-header .close-popup {
    position: absolute;
    right: 15px;
    top: 0;
    background: none;
    border: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
#sukien-overlay .popup-header .close-popup:hover {
    color: #FFC107;
    transform: scale(1.1);
}

/* Bảng 8 cột giống BXH */
#sukien-overlay table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
}

#sukien-overlay th,
#sukien-overlay td {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px;
    text-align: center;
}

#sukien-overlay th {
    background: rgba(255,255,255,0.08);
    font-weight: 700;
    color: #FFC107;
}

#sukien-overlay tr:nth-child(even) {
    background: rgba(255,255,255,0.03);
}


/* ============================
   BẢNG PHONG THẦN
   ============================ */
.nav-button.phongthan {
    color: #00bcd4;
    border-left: 4px solid #00bcd4;
}
.nav-button.phongthan:hover {
    background-color: #222228;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Overlay popup */
#phongthan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,10,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Hộp nội dung */
#phongthan-overlay .popup-content {
    background: rgba(20, 20, 25, 1.0);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    color: #fff;
}

/* Header tiêu đề và nút đóng */
#phongthan-overlay .popup-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

#phongthan-overlay .popup-header h2 {
    color: #00bcd4;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    margin: 0;
}

#phongthan-overlay .close-popup {
    position: absolute;
    right: 15px;
    top: 0;
    background: none;
    border: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
#phongthan-overlay .close-popup:hover {
    color: #00bcd4;
    transform: scale(1.1);
}

/* BẢNG NỘI DUNG */
#phongthan-overlay table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
}

#phongthan-overlay th,
#phongthan-overlay td {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px;
    text-align: center;
}

#phongthan-overlay th {
    background: rgba(255,255,255,0.08);
    font-weight: 700;
    color: #00bcd4; /* màu tiêu đề cyan */
    font-size: 15px;
}

#phongthan-overlay tr:nth-child(even) {
    background: rgba(255,255,255,0.03);
}

/* Hiệu ứng hover hàng */
#phongthan-overlay tbody tr:hover {
    background: rgba(0,188,212,0.08);
    transition: background 0.2s ease-in-out;
}


