﻿@charset "UTF-8";
/* ==========================================================================
   THIÊN LONG CUỒNG CHIẾN - TUYỆT ĐỈNH KIẾM HIỆP TLBB
   GIAO DIỆN CHUẨN XÁC THEO MẪU THAM KHẢO
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@500;600;700;800;900&family=Montserrat:wght@500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

:root {
  --color-gold-bright: #ffe682;
  --color-gold: #e2b34a;
  --color-gold-dark: #996e21;
  --color-gold-border: #d4a742;
  
  --color-red-bright: #e6282e;
  --color-red-main: #9e1419;
  --color-red-dark: #5c0a0e;
  --color-red-bg: #3f0406;

  --font-serif: 'Playfair Display', 'Be Vietnam Pro', serif;
  --font-sans: 'Montserrat', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-action: 'Montserrat', 'Be Vietnam Pro', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Martial Arts Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(25, 4, 6, 0.9);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-gold-bright) 0%, var(--color-gold-dark) 100%);
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-bright);
  box-shadow: 0 0 6px rgba(255, 220, 50, 0.8);
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: #0d0606;
  font-family: var(--font-sans);
  color: #fff;
  user-select: none;
}

/* ==========================================================================
   HÌNH NỀN TOÀN CẢNH (BACKGROUND)
   ========================================================================== */
.hero-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   HÌNH NỀN TOÀN CẢNH (BACKGROUND GỐC - TẮT HẾT LAYER ĐỘNG)
   ========================================================================== */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Lớp phủ sắc độ chiến trường */


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 18% 78%, rgba(255, 77, 0, 0.15) 0%, transparent 45%),
              linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 30%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Vô hiệu hóa toàn bộ layer động */
.living-scene,
.scene-layer,
.layer-1-sky,
.layer-2-smoke,
.layer-3-fire,
.layer-hero-wrap,
.layer-horse-wrap,
.layer-spear-glint,
.layer-overlay,
.layer-4-embers {
  display: none !important;
}

/* ==========================================================================
   KHÍ QUYỂN CHIẾN TRƯỜNG: LỬA BÊN TRÁI, KHÓI TRÔI & TÀN LỬA BAY
   ========================================================================== */
/* 1. LAYER LỬA ĐỘNG CHIẾN TRƯỜNG: PHÂN BỐ THƯA VÀ ĐỀU CÁC KHU VỰC CHÁY */
#battlefield-fire-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* LAYER ĐỘNG KHU VỰC NHỎ: HÀNG RÀO GỖ GÓC TRÁI (ORGANIC FLUID FLAME SIMULATION) */
.small-fire-zone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(220px, 18vw, 300px);
  height: clamp(260px, 34vh, 360px);
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: screen;
}

#small-fire-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.fire-scene-layer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45vw;
  height: 60vh;
  pointer-events: none;
  z-index: 2;
}

.fire-glow-base {
  position: absolute;
  left: -2%;
  bottom: -6%;
  width: 22vw;
  height: 26vh;
  border-radius: 50%;
  mix-blend-mode: screen;
  background: radial-gradient(circle at 35% 75%, rgba(255, 95, 0, 0.18) 0%, rgba(255, 45, 0, 0.08) 45%, rgba(180, 20, 0, 0.02) 65%, transparent 80%);
  filter: blur(24px);
  pointer-events: none;
  transition: opacity 0.08s ease-out;
}

.fire-glow-accent {
  position: absolute;
  left: 2%;
  bottom: 1%;
  width: 13vw;
  height: 16vh;
  border-radius: 50%;
  mix-blend-mode: screen;
  background: radial-gradient(circle at 38% 72%, rgba(255, 185, 50, 0.20) 0%, rgba(255, 105, 12, 0.10) 35%, transparent 70%);
  filter: blur(16px);
  pointer-events: none;
  transition: opacity 0.06s ease-out;
}

.fire-heat-shimmer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40vw;
  height: 55vh;
  filter: url(#heatHazeFilter);
  opacity: 0.85;
  pointer-events: none;
}

/* 2. Khói chiến trường trôi ngang */
#smoke-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
}

/* 3. Tàn lửa bay từ trái sang phải */
#embers-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* ==========================================================================
   LOGO TRANG CHỦ (ĐẶT CHUẨN XÁC TRONG VÙNG KHOANH ĐỎ HÌNH 2)
   ========================================================================== */
.logo-container {
  position: absolute;
  top: clamp(40px, 0vh, 0px);
  left: clamp(100px, 0vw, 0px);
  z-index: 25;
  max-width: clamp(2040px, 25vw, 380px);
  display: inline-block;
}

.game-logo {
  width: 100%;
  height: auto;
  display: block;
  /* Tắt hoàn toàn đường viền cam quanh logo, giữ logo nguyên bản */
  transition: transform 0.3s ease;
}

.game-logo:hover {
  transform: scale(1.02);
}

/* Ánh sáng trắng lướt chậm qua hết logo (ôm khít theo nét chữ và hình khối) */
#logo-shine-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Thanh tiện ích góc trên bên phải (Âm thanh & Máy chủ) */
.top-bar-right {
  position: absolute;
  top: 15px;
  right: 18px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-status-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(180deg, rgba(80, 14, 18, 0.9) 0%, rgba(38, 6, 9, 0.95) 100%);
  border: 1px solid var(--color-gold);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gold-bright);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.user-status-tag:hover {
  background: linear-gradient(180deg, rgba(130, 22, 28, 0.95) 0%, rgba(70, 10, 15, 0.95) 100%);
  border-color: #fff;
  box-shadow: 0 0 14px rgba(226, 179, 74, 0.7);
  transform: translateY(-1px);
}

.user-avatar-mini {
  font-size: 14px;
}

.user-display-name {
  color: #fff;
  font-weight: 700;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badge-online {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}

.server-status-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(20, 10, 10, 0.75);
  border: 1px solid rgba(226, 179, 74, 0.5);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold-bright);
  backdrop-filter: blur(5px);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: blinkDot 1.6s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.icon-btn {
  background: rgba(40, 10, 12, 0.85);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-bright);
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.icon-btn:hover {
  background: var(--color-red-main);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255, 200, 50, 0.5);
}

.icon-btn.muted svg {
  opacity: 0.4;
}

/* ==========================================================================
   CỤM NÚT ĐIỀU HƯỚNG GAME - THIẾT KẾ HÌNH TRÒN KIẾM HIỆP CAO CẤP
   ========================================================================== */
.action-box {
  position: absolute;
  bottom: 52px;
  right: 2px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  transform: scale(1.4);
  transform-origin: bottom right;
}

/* Base style chung cho toàn bộ nút hình tròn */
.btn-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, filter 0.28s ease;
  overflow: visible;
}

.btn-circle .circle-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

/* 1. NÚT LỚN NHẤT: TẢI GAME (HERO MASTER CIRCLE - MẪU 1: VÀNG HOÀNG KIM) */
.btn-circle-download {
  width: 96px;
  height: 96px;
  background: radial-gradient(circle at 38% 28%, #ffe57f 0%, #fbc02d 45%, #b27a00 85%, #593c00 100%);
  border: 2.8px solid #ffffff;
  box-shadow: 0 0 0 2px #593c00,
              0 8px 24px rgba(0, 0, 0, 0.85),
              inset 0 3px 6px rgba(255, 255, 255, 0.65),
              inset 0 -4px 10px rgba(0, 0, 0, 0.75),
              0 0 18px rgba(255, 215, 0, 0.75);
}

.btn-circle-download .circle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
  animation: downloadBounce 2s ease-in-out infinite;
}

.btn-circle-download .circle-icon svg {
  width: 28px;
  height: 28px;
  color: #dd0000;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.75));
}

.btn-circle-download .circle-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #dd0000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  margin-top: 3px;
  white-space: nowrap;
}

/* Vòng hào quang xung nhịp phát sáng quanh nút Tải Game */
.circle-ring-pulse {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 215, 0, 0.75);
  pointer-events: none;
  animation: ringPulse 2.4s ease-out infinite;
}

@keyframes ringPulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  60% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes downloadBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.btn-circle-download:hover {
  transform: scale(1.08) translateY(-2px);
  background: radial-gradient(circle at 38% 28%, #fff0a8 0%, #ffd54f 45%, #c68c00 85%, #664400 100%);
  border-color: #fff;
  box-shadow: 0 0 0 2.5px #fff2af,
              0 12px 30px rgba(255, 180, 0, 0.7),
              inset 0 4px 8px rgba(255, 255, 255, 0.8),
              inset 0 -4px 12px rgba(0, 0, 0, 0.85),
              0 0 25px rgba(255, 215, 0, 0.95);
}

.btn-circle-download:active {
  transform: scale(0.98) translateY(1px);
}

/* 2. CỤM PHÍM CHỨC NĂNG ĐIỀU HƯỚNG DỌC (ĐĂNG KÝ, NẠP THẺ, FANPAGE, ZALO) */
.sub-circles-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-circle-sub {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 38% 28%, #6d0f15 0%, #3f0407 65%, #1d0103 100%);
  border: 1.8px solid rgba(226, 179, 74, 0.85);
  box-shadow: 0 0 0 1.5px #240204,
              0 5px 14px rgba(0, 0, 0, 0.8),
              inset 0 2px 4px rgba(255, 230, 130, 0.3),
              inset 0 -2px 6px rgba(0, 0, 0, 0.6);
}

.btn-circle-sub .circle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-bright);
  transition: transform 0.22s ease, color 0.22s ease;
}

.btn-circle-sub .circle-icon svg {
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

.btn-circle-sub .circle-text {
  font-family: var(--font-action);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #f7e6c4;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  margin-top: 2px;
  white-space: nowrap;
}

.btn-circle-sub:hover {
  transform: scale(1.1) translateY(-2px);
  background: radial-gradient(circle at 38% 28%, #9e1419 0%, #5a070c 65%, #2a0204 100%);
  border-color: #ffd700;
  box-shadow: 0 0 0 1.8px #ffb300,
              0 6px 18px rgba(220, 20, 30, 0.5),
              inset 0 2px 5px rgba(255, 240, 160, 0.5),
              0 0 14px rgba(255, 200, 50, 0.65);
}

.btn-circle-sub:hover .circle-icon {
  color: #ffffff;
  transform: scale(1.15);
}

.btn-circle-sub:hover .circle-text {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 230, 100, 0.9);
}

.btn-circle-sub:active {
  transform: scale(0.96) translateY(1px);
}

/* 3. NÚT DƯỚI CÙNG: TRANG CHỦ (HÌNH TRÒN) */
.btn-circle-home {
  width: 66px;
  height: 66px;
  background: radial-gradient(circle at 38% 28%, #8e151b 0%, #54070a 65%, #250204 100%);
  border: 2px solid #e2b34a;
  box-shadow: 0 0 0 1.8px #2b0204,
              0 6px 16px rgba(0, 0, 0, 0.8),
              inset 0 2px 4px rgba(255, 230, 130, 0.35),
              inset 0 -3px 8px rgba(0, 0, 0, 0.65),
              0 0 12px rgba(226, 179, 74, 0.4);
}

.btn-circle-home .circle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.22s ease;
}

.btn-circle-home .circle-icon svg {
  width: 19px;
  height: 19px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.btn-circle-home .circle-text {
  font-family: var(--font-action);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(255, 220, 80, 0.6);
  margin-top: 1px;
  white-space: nowrap;
}

.btn-circle-home:hover {
  transform: scale(1.08) translateY(-2px);
  background: radial-gradient(circle at 38% 28%, #b81c22 0%, #6e0b10 65%, #350306 100%);
  border-color: #ffd700;
  box-shadow: 0 0 0 2px #ffc107,
              0 8px 22px rgba(220, 20, 30, 0.55),
              inset 0 2px 5px rgba(255, 240, 160, 0.55),
              0 0 16px rgba(255, 200, 50, 0.7);
}

.btn-circle-home:active {
  transform: scale(0.96) translateY(1px);
}

/* ==========================================================================
   MODAL / POPUP DIALOGS (PHONG CÁCH KIẾM HIỆP CỔ TRANG)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 15px;
}

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

.modal-dialog {
  display: none;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  background: linear-gradient(180deg, #2a0407 0%, #170103 100%);
  border: 2px solid var(--color-gold);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 167, 66, 0.25);
  position: relative;
  overflow-y: auto;
  animation: modalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-dialog.active {
  display: block;
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Header Modal */
.modal-header {
  position: relative;
  padding: 18px 24px;
  background: linear-gradient(180deg, #570a0e 0%, #300305 100%);
  border-bottom: 1.5px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-wrap .title-icon {
  color: var(--color-gold-bright);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 800;
  color: var(--color-gold-bright);
  text-shadow: 0 2px 6px rgba(0,0,0,0.8), 0 0 10px rgba(255, 220, 100, 0.4);
  letter-spacing: 1px;
}

.modal-close {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-bright);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--color-red-main);
  transform: rotate(90deg);
  border-color: #fff;
}

/* Nội dung Modal */
.modal-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #e5e5e5;
}

/* ==========================================================================
   CHI TIẾT CÁC MODAL TỪNG CHỨC NĂNG
   ========================================================================== */

/* 1. Modal Tải Game */
.dl-section-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gold-bright);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: rgba(50, 8, 10, 0.7);
  border: 1px solid rgba(226, 179, 74, 0.4);
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  transition: all 0.22s ease;
}

.download-link-card:hover {
  background: rgba(90, 12, 16, 0.9);
  border-color: var(--color-gold);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.download-link-card .dl-icon {
  color: var(--color-gold);
}

.download-link-card .dl-info {
  flex: 1;
}

.download-link-card .dl-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.download-link-card .dl-meta {
  font-size: 12px;
  color: #bbb;
}

.download-link-card .dl-badge {
  padding: 4px 10px;
  background: linear-gradient(180deg, #991b1b 0%, #5e0b0d 100%);
  border: 1px solid var(--color-gold);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gold-bright);
}

.install-guide-box {
  background: rgba(15, 5, 5, 0.6);
  border: 1px dashed rgba(226, 179, 74, 0.4);
  border-radius: 4px;
  padding: 14px;
  margin-top: 18px;
}

.install-guide-box h4 {
  color: var(--color-gold);
  font-size: 13px;
  margin-bottom: 6px;
}

.install-guide-box ol {
  padding-left: 20px;
  font-size: 13px;
  color: #ccc;
}

/* 2. Modal Đăng Ký & Đăng Nhập */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(18, 4, 6, 0.6);
  padding: 4px;
  border-radius: 6px;
  border: 1px solid rgba(226, 179, 74, 0.25);
}

.auth-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #c9b097;
  font-family: var(--font-action);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.auth-tab-btn .tab-icon {
  font-size: 14px;
}

.auth-tab-btn:hover {
  color: #fff;
  background: rgba(226, 179, 74, 0.1);
}

.auth-tab-btn.active {
  background: linear-gradient(180deg, #8a1419 0%, #4a0609 100%);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-bright);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.form-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 14px 0;
  font-size: 13px;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #bbb;
  user-select: none;
  font-size: 12.5px;
}

.checkbox-container input[type="checkbox"] {
  accent-color: var(--color-gold);
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.forgot-pass-link {
  color: var(--color-gold-bright);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.forgot-pass-link:hover {
  color: #fff;
  text-decoration: underline;
}

.auth-switch-prompt {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(226, 179, 74, 0.25);
  text-align: center;
  font-size: 13px;
  color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-switch-btn {
  color: var(--color-gold-bright);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-switch-btn:hover {
  color: #fff;
  text-shadow: 0 0 6px var(--color-gold);
  transform: translateX(2px);
}

/* 3. Bảng Quản Lý Tài Khoản (Đã Đăng Nhập) */
.user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(35, 6, 8, 0.75);
  border: 1px solid rgba(226, 179, 74, 0.4);
  border-radius: 6px;
  margin-bottom: 20px;
}

.user-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #7b1115 0%, #3a0609 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

.user-online-badge {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border: 2px solid #200406;
  border-radius: 50%;
}

.user-info-text {
  flex: 1;
  min-width: 0;
}

.user-name-title {
  font-size: 14px;
  font-weight: 700;
  color: #ddd;
  margin-bottom: 4px;
}

.user-name-title .gold-highlight {
  color: var(--color-gold-bright);
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.5px;
}

.user-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.tag-server {
  background: rgba(226, 179, 74, 0.15);
  border: 1px solid rgba(226, 179, 74, 0.4);
  color: var(--color-gold-bright);
}

.tag-status {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(60, 10, 14, 0.8);
  border: 1px solid rgba(226, 179, 74, 0.4);
  border-radius: 4px;
  color: #ff9999;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-logout:hover {
  background: var(--color-red-main);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.section-divider-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px 0;
  font-family: var(--font-action);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-gold-bright);
  letter-spacing: 0.5px;
}

.section-divider-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 179, 74, 0.5) 0%, transparent 100%);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(20, 4, 6, 0.85);
  border: 1px solid rgba(226, 179, 74, 0.4);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.captcha-row {
  display: flex;
  gap: 10px;
}

.captcha-display {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #111;
  border: 1px solid var(--color-gold);
  border-radius: 4px;
  font-family: monospace;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-gold-bright);
  letter-spacing: 4px;
  min-width: 110px;
}

.btn-submit-primary {
  width: 100%;
  height: 46px;
  background: linear-gradient(180deg, #c52227 0%, #7d0e12 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  margin-top: 10px;
}

.btn-submit-primary:hover {
  background: linear-gradient(180deg, #e3282f 0%, #9e1419 100%);
  border-color: #fff;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6), 0 0 12px var(--color-gold);
}

.register-success-dialog {
  display: none;
  text-align: center;
  padding: 20px 10px;
}

.success-icon-big {
  font-size: 54px;
  margin-bottom: 12px;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--color-gold-bright);
  margin-bottom: 8px;
}

/* 3. Modal Nạp Thẻ */
.payment-tabs {
  display: flex;
  border-bottom: 1.5px solid rgba(226, 179, 74, 0.4);
  margin-bottom: 20px;
  gap: 6px;
}

.payment-tab-btn {
  flex: 1;
  padding: 10px 8px;
  background: rgba(35, 6, 8, 0.6);
  border: 1px solid rgba(226, 179, 74, 0.3);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  color: #ccc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-tab-btn.active {
  background: linear-gradient(180deg, #6e0f13 0%, #400507 100%);
  border-color: var(--color-gold);
  color: var(--color-gold-bright);
  border-bottom: 2px solid #6e0f13;
  margin-bottom: -1.5px;
}

.payment-tab-content {
  display: none;
}

.payment-tab-content.active {
  display: block;
}

.qr-payment-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
}

.qr-box {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 170px;
}

.qr-box img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.qr-box span {
  color: #333;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.qr-details {
  flex: 1;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  font-size: 13px;
}

.detail-label {
  color: #bbb;
}

.detail-value {
  font-weight: 700;
  color: var(--color-gold-bright);
}

.copy-mini-btn {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  background: rgba(226, 179, 74, 0.2);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-bright);
  border-radius: 3px;
  cursor: pointer;
}

.copy-mini-btn:hover {
  background: var(--color-gold);
  color: #000;
}

.promo-tag {
  display: inline-block;
  background: #b91c1c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
}

/* 4. Modal Giftcode */
.giftcode-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(45, 8, 10, 0.6);
  border: 1px solid rgba(226, 179, 74, 0.35);
  border-radius: 4px;
  margin-bottom: 12px;
}

.giftcode-title {
  font-weight: 700;
  color: var(--color-gold-bright);
  font-size: 14px;
}

.giftcode-reward {
  font-size: 12px;
  color: #ccc;
  margin-top: 3px;
}

.giftcode-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-badge {
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
  color: var(--color-gold-bright);
  background: #111;
  padding: 4px 10px;
  border: 1px dashed var(--color-gold);
  border-radius: 4px;
}

.copy-btn {
  padding: 6px 14px;
  background: linear-gradient(180deg, #991b1b 0%, #5e0b0d 100%);
  border: 1px solid var(--color-gold);
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--color-gold);
  color: #111;
}

/* 5. Modal Fanpage & Zalo */
.community-card {
  text-align: center;
  padding: 15px;
}

.community-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #781014 0%, #3e0608 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold-bright);
}

.community-btn-direct {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(180deg, #c52227 0%, #7d0e12 100%);
  border: 1.5px solid var(--color-gold-bright);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.25s ease;
}

.community-btn-direct:hover {
  background: linear-gradient(180deg, #e3282f 0%, #9e1419 100%);
  box-shadow: 0 0 15px rgba(255, 220, 50, 0.6);
  transform: translateY(-2px);
}

/* ==========================================================================
   TOAST NOTIFICATION (THÔNG BÁO NỔI GÓC MÀN HÌNH)
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(180deg, rgba(82, 10, 14, 0.95) 0%, rgba(35, 4, 6, 0.95) 100%);
  border: 1.5px solid var(--color-gold-bright);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0,0,0,0.8), 0 0 15px rgba(226, 179, 74, 0.4);
  animation: toastSlideDown 0.35s ease forwards;
  pointer-events: auto;
}

.toast-item.hide {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.35s ease;
}

.toast-item.error {
  border-color: #ef4444;
}

.toast-item.success {
  border-color: #22c55e;
}

@keyframes toastSlideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN CHO MÁY TÍNH BẢNG & ĐIỆN THOẠI DI ĐỘNG
   ========================================================================== */
@media (max-width: 992px) {
  .logo-container {
    top: clamp(30px, 6vh, 60px);
    left: clamp(50px, 8vw, 120px);
    max-width: 320px;
  }

  .action-box {
    bottom: 14px;
    right: 14px;
    gap: 8px;
  }

  .btn-circle-download {
    width: 82px;
    height: 82px;
  }

  .btn-circle-download .circle-icon svg {
    width: 24px;
    height: 24px;
  }

  .btn-circle-download .circle-text {
    font-size: 11.5px;
  }

  .btn-circle-sub {
    width: 50px;
    height: 50px;
  }

  .btn-circle-sub .circle-icon svg {
    width: 15px;
    height: 15px;
  }

  .btn-circle-sub .circle-text {
    font-size: 7.5px;
  }

  .btn-circle-home {
    width: 56px;
    height: 56px;
  }

  .btn-circle-home .circle-icon svg {
    width: 16px;
    height: 16px;
  }

  .btn-circle-home .circle-text {
    font-size: 8.5px;
  }
}

@media (max-width: 576px) {
  .hero-background {
    background-position: 70% top;
  }

  .logo-container {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 260px;
    text-align: center;
  }

  .top-bar-right {
    top: 10px;
    right: 10px;
  }

  .action-box {
    bottom: 10px;
    right: 10px;
    gap: 6px;
  }

  .btn-circle-download {
    width: 72px;
    height: 72px;
  }

  .btn-circle-download .circle-icon svg {
    width: 20px;
    height: 20px;
  }

  .btn-circle-download .circle-text {
    font-size: 10px;
  }

  .btn-circle-sub {
    width: 44px;
    height: 44px;
  }

  .btn-circle-sub .circle-icon svg {
    width: 13px;
    height: 13px;
  }

  .btn-circle-sub .circle-text {
    font-size: 7px;
  }

  .btn-circle-home {
    width: 48px;
    height: 48px;
  }

  .btn-circle-home .circle-icon svg {
    width: 14px;
    height: 14px;
  }

  .btn-circle-home .circle-text {
    font-size: 7.5px;
  }

  .qr-payment-wrapper {
    flex-direction: column;
    text-align: center;
  }
}
