/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0d0d10;
  --bg-panel: #17171c;
  --bg-panel-light: #1f1f26;
  --border: #2c2c35;
  --gold: #d4a94f;
  --gold-light: #f0d68a;
  --red: #8c1f28;
  --red-bright: #b8272f;
  --blue: #2e3d52;
  --text-main: #eae6db;
  --text-muted: #9a978f;
}

html, body { height: 100%; }

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Be Vietnam Pro', sans-serif;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== PAGE SHELL ===== */
.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-dark);
}

/* Hoạ tiết đồ hoạ 2 bên cho nửa dưới trang (không dùng hero-bg.png vì có chữ ở giữa,
   dễ bị "chữ ma" đè lên nội dung — dùng ảnh nhân vật không chữ thay thế) */
.side-art {
  position: absolute;
  top: 460px;
  bottom: 0;
  width: 260px;
  z-index: 0;
  background-size: cover;
  opacity: 0.4;
  pointer-events: none;
}

.side-art-left {
  left: 0;
  background-image: url('../images/banner-left.png');
  background-position: left center;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 100%);
}

.side-art-right {
  right: 0;
  background-image: url('../images/banner-right.png');
  background-position: right center;
  -webkit-mask-image: linear-gradient(270deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 40%, transparent 100%);
}

/* ===== HERO BAND — dùng ảnh gốc nguyên vẹn (đã có sẵn chữ JX/NGHĨA HIỆP/badge trong ảnh) ===== */
.hero-band {
  position: relative;
  flex: 0 0 auto;
  height: 460px;
  background-image: url('../images/anh8888.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-logo {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 360px;
  max-width: 38%;
  height: auto;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.65));
}

.hero-logo-tanthu {
  width: 520px;
  max-width: 52%;
  top: 10%;
}

.hero-band-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  padding: 96px 20px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.85) 100%);
}

.hero-tagline {
  position: relative;
  top: -18px;
  margin: 0 0 14px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  text-shadow: 0 2px 6px rgba(0,0,0,0.85), 0 0 14px rgba(0,0,0,0.6);
}

/* Trang Hoạt Động Hàng Ngày: ảnh hero riêng (hiện nguyên ảnh, không cắt, để chữ không bị phóng to) */
.hoatdong-hero-img {
  width: 420px;
  max-width: 40%;
  top: 2%;
}

/* Tiêu đề hero dạng chữ (không dùng ảnh) - không còn dùng ở trang Hoạt Động, giữ lại phòng khi cần lại */
.hero-title-block {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 90%;
  max-width: 640px;
  text-align: center;
  pointer-events: none;
}

.hero-title-text {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 46px;
  letter-spacing: 2px;
  line-height: 1.15;
  background: linear-gradient(180deg, #f7e2a0 0%, var(--gold) 55%, #a9761f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
}

.hero-title-text::after {
  content: '';
  display: block;
  width: 130px;
  height: 3px;
  margin: 12px auto 14px;
  background: linear-gradient(90deg, transparent, var(--red) 50%, transparent);
}

.hero-title-sub {
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  text-shadow: 0 2px 6px rgba(0,0,0,0.85);
}

/* Trang Lộ Trình: hero dạng chữ, gọn hơn để vừa dải hero 300px */
.page-lotrinh .hero-title-block {
  top: 8%;
  padding: 16px 32px 18px;
  background: rgba(6,6,8,0.5);
  border: 1px solid rgba(212,169,79,0.4);
  border-radius: 10px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.page-lotrinh .hero-title-text {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 38px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--gold-light);
  -webkit-text-stroke: 0;
  text-shadow: 0 3px 0 rgba(0,0,0,0.5), 0 6px 16px rgba(0,0,0,0.9);
}

.page-lotrinh .hero-title-sub {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0,0,0,0.95);
}

.page-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.site-header {
  background: rgba(20,20,24,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(212,169,79,0.35);
  flex: 0 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 56px;
}

.logo {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-jx {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
}

.version-badge {
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  padding: 3px 6px;
  border-radius: 3px;
}

.main-nav {
  grid-column: 2;
}

.main-nav ul {
  display: flex;
  gap: 26px;
}

.main-nav a {
  position: relative;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-main);
  padding: 6px 0 10px;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  transform: translateX(-50%);
  transition: width 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(212,169,79,0.8);
}

.header-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(212,169,79,0.6);
  background: rgba(0,0,0,0.35);
  font-size: 14px;
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 22px;
  cursor: pointer;
}

.hero-cta {
  margin-top: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== BUTTONS (bo tròn, viền vàng + hoạ tiết góc như hoa văn cổ trang) ===== */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,224,160,0.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.btn::before,
.btn::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0.95;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M2 20 L2 6 Q2 2 6 2 L20 2' stroke='%23fff0cf' stroke-width='2' fill='none'/%3E%3Ccircle cx='2' cy='2' r='2.2' fill='%23fff0cf'/%3E%3Cpath d='M7 7 q3 4 7 1' stroke='%23fff0cf' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
}

.btn::before { top: -2px; left: -2px; }
.btn::after { bottom: -2px; right: -2px; transform: rotate(180deg); }

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 18px rgba(0,0,0,0.55), 0 0 16px rgba(212,169,79,0.4);
}

.btn small { display: block; font-weight: 400; font-size: 9px; opacity: 0.85; letter-spacing: 0; text-transform: none; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), inset 0 0 6px rgba(0,0,0,0.35);
}

.btn-red { background: linear-gradient(180deg, var(--red-bright), var(--red) 55%, #5c1219); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #8a6a2c); color: #241a05; text-shadow: 0 1px 0 rgba(255,255,255,0.35); }
.btn-blue { background: linear-gradient(180deg, #45597a, var(--blue) 55%, #1c2635); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.btn-small {
  padding: 8px 16px;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

/* ===== BUTTONS phiên bản khung ảnh riêng (user tự thiết kế PNG khung kiếm hiệp) ===== */
.btn-img {
  width: 220px;
  height: 80px;
  padding: 0 26px;
  justify-content: center;
  border: none;
  box-shadow: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  color: #f4ecd2;
}

.btn-img::before,
.btn-img::after { content: none; }

.btn-img .btn-icon {
  background: none;
  border: none;
  box-shadow: none;
  font-size: 20px;
}

.btn-img span:not(.btn-icon) { font-size: 16px; text-shadow: 0 2px 5px rgba(0,0,0,0.9); }
.btn-img small { font-size: 11px; }

.btn-frame-1 { background-image: url('../images/menu1-crop.png'); }
.btn-frame-2 { background-image: url('../images/menu2-crop.png'); }
.btn-frame-3 { background-image: url('../images/menu3-crop.png'); }

/* ===== MAIN GRID ===== */
.main-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 760px) 380px;
  justify-content: center;
  align-items: start;
  align-content: start;
  gap: 18px;
  margin: 54px auto 0;
  width: 100%;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(15,15,20,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(212,169,79,0.55);
  border-radius: 8px;
  padding: 11px 12px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(212,169,79,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(0,0,0,0.5),
    0 10px 24px rgba(0,0,0,0.45);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.page-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid rgba(212,169,79,0.5);
  background: rgba(0,0,0,0.35);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.page-num.active {
  background: var(--gold);
  color: #241a05;
  border-color: var(--gold);
}

/* Ornamental gold corner accents (khung nhỏ: tin nổi bật, banner sự kiện) */
.event-banner::before,
.event-banner::after,
.news-featured::before,
.news-featured::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  opacity: 0.9;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M2 20 L2 6 Q2 2 6 2 L20 2' stroke='%23d4a94f' stroke-width='2' fill='none'/%3E%3Ccircle cx='2' cy='2' r='2.2' fill='%23d4a94f'/%3E%3Cpath d='M7 7 q3 4 7 1' stroke='%23d4a94f' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  z-index: 2;
}

.news-featured::before { top: 0; left: 0; }
.news-featured::after { bottom: 0; right: 0; transform: rotate(180deg); }
.event-banner::before { top: -1px; left: -1px; }
.event-banner::after { bottom: -1px; right: -1px; transform: rotate(180deg); }

/* Ornamental gold corner accents (khung lớn: tính năng / tin tức / top server - hoạ tiết cầu kỳ hơn) */
.panel::before,
.panel::after {
  content: '';
  position: absolute;
  width: 42px;
  height: 42px;
  pointer-events: none;
  opacity: 0.95;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f5e0a3'/%3E%3Cstop offset='1' stop-color='%23a8792c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 36 L3 11 Q3 3 11 3 L36 3' stroke='url(%23g)' stroke-width='2.4' fill='none'/%3E%3Cpath d='M9.5 36 L9.5 15.5 Q9.5 9.5 15.5 9.5 L36 9.5' stroke='url(%23g)' stroke-width='1.1' fill='none' opacity='0.7'/%3E%3Ccircle cx='3.5' cy='3.5' r='3.6' fill='url(%23g)'/%3E%3Cpath d='M3.5 3.5 l0 0' stroke='url(%23g)'/%3E%3Cpath d='M13 13 q6 8 15 3.5' stroke='url(%23g)' stroke-width='1.4' fill='none'/%3E%3Cpath d='M8 24 q5 2 4 10' stroke='url(%23g)' stroke-width='1' fill='none' opacity='0.75'/%3E%3Cpath d='M24 8 q2 5 10 4' stroke='url(%23g)' stroke-width='1' fill='none' opacity='0.75'/%3E%3Cpath d='M17 17 l2.6 2.6' stroke='url(%23g)' stroke-width='1' opacity='0.6'/%3E%3C/svg%3E");
  z-index: 2;
}

.panel::before { top: -2px; left: -2px; }
.panel::after { bottom: -2px; right: -2px; transform: rotate(180deg); }

.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.see-all {
  font-size: 13px;
  color: var(--text-muted);
}

.features {
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.55) 0%, rgba(10,10,14,0.85) 100%),
    url('../images/bannertinhnang.png');
  background-size: cover;
  background-position: center;
}

.news {
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.55) 0%, rgba(10,10,14,0.85) 100%),
    url('../images/bannertintuc.png');
  background-size: cover;
  background-position: center;
}

.top-server {
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.55) 0%, rgba(10,10,14,0.85) 100%),
    url('../images/bannertopcaothu.png');
  background-size: cover;
  background-position: center;
}

/* Features sidebar */
.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  font-weight: 600;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,169,79,0.5);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.6);
  filter: grayscale(1) brightness(1.6) contrast(0.9);
}

.feature-list .label {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.feature-list .label small {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.feature-list .feature-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: inherit;
  transition: color 0.15s;
}

.feature-list .feature-link:hover { color: var(--gold-light); }
.feature-list .feature-link:hover .label small { color: var(--gold-light); opacity: 0.8; }

.feature-list .feature-link:hover .icon {
  border-color: var(--gold-light);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.6), 0 0 8px rgba(212,169,79,0.5);
}

.btn-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
}

/* News */
.news-featured {
  position: relative;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(212,169,79,0.25);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.news-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.news-featured-body {
  display: flex;
  gap: 12px;
}

.news-featured-img {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 6px;
  background-image: url('../images/news-featured.png');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(212,169,79,0.4);
}

.news-featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.news-featured h4 {
  font-size: 16px;
  margin-bottom: 0;
  color: var(--text-main);
}

.news-featured-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.news-featured-date {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 6px !important;
}

.hot-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  border-radius: 20px;
  padding: 2px 8px;
  box-shadow: 0 0 6px rgba(226,60,60,0.6);
  animation: hot-blink 1.3s ease-in-out infinite;
}

@keyframes hot-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(226,60,60,0.6); }
  50% { opacity: 0.55; box-shadow: 0 0 12px rgba(226,60,60,0.95); }
}

.news-featured p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}

.news-list li:last-child { border-bottom: none; }
.news-title { flex: 1; color: var(--text-main); }
.news-list time { color: var(--text-muted); font-size: 13px; }

.news-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: inherit;
}

.news-list li a:hover .news-title { color: var(--gold-light); }

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

.tag-event { background: #4a2020; color: #ff8080; }
.tag-update { background: #204a3a; color: #6fdbb0; }
.tag-guide { background: #204a4a; color: #6fd0db; }
.tag-news { background: #3a3a20; color: #dbd06f; }

/* Top server */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.tab {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 4px;
  border-radius: 4px;
  cursor: pointer;
}

.tab.active {
  background: var(--gold);
  color: #241a05;
  border-color: var(--gold);
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}

.rank-list li:last-child { border-bottom: none; }

.rank-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 26px 8px;
  border-bottom: none !important;
}

.rank-empty-icon { font-size: 22px; }

.rank-empty-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Khung Top Server: cuộn để xem Top 6-10 thay vì phân trang - giới hạn đúng 5 dòng để chiều cao khung không đổi khi chuyển tab */
.rank-list-wrap {
  max-height: 148px;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -6px;
}

.rank-list-wrap::-webkit-scrollbar { width: 5px; }
.rank-list-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 3px; }
.rank-list-wrap::-webkit-scrollbar-thumb { background: rgba(212,169,79,0.5); border-radius: 3px; }
.rank-list-wrap::-webkit-scrollbar-thumb:hover { background: rgba(212,169,79,0.85); }

.rank {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.rank-1 { background: #d4a94f; color: #241a05; }
.rank-2 { background: #b8b8c0; color: #241a05; }
.rank-3 { background: #b06a3a; color: #241a05; }

.rank-name { flex: 1; font-weight: 600; }
.rank-level { color: var(--gold); font-size: 13px; }

.event-banner {
  position: relative;
  margin-top: 10px;
  padding: 10px 12px;
  background-image:
    linear-gradient(180deg, rgba(15,8,9,0.55), rgba(15,8,9,0.9)),
    url('../images/event-congthanhchien.png');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--red);
  border-radius: 8px;
  text-align: center;
}

.event-banner h4 {
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--gold-light);
}

.event-banner p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0;
}

/* ===== COMMUNITY ===== */
.community {
  flex: 0 0 auto;
  border-top: 1px solid rgba(212,169,79,0.25);
  padding: 14px 0;
}

.community-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.community-text h3 {
  font-size: 18px;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.brush-font {
  font-family: 'Charm', cursive;
  font-weight: 700;
  font-size: 26px !important;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(212,169,79,0.4);
}

.community-text p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.community-photo {
  display: block;
  height: 90px;
  width: auto;
  border-radius: 8px;
  border: 1px solid rgba(212,169,79,0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

.qr-box {
  width: 96px;
  height: 96px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
  padding: 6px;
}

.qr-box img { width: 100%; height: 100%; object-fit: contain; }

.community-cta p {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.community-ticker {
  flex: 1 1 auto;
  min-width: 100px;
  height: 40px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  animation: ticker-scroll 85s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.ticker-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ad46f;
  box-shadow: 0 0 6px #5ad46f;
  flex-shrink: 0;
}

.ticker-item strong { color: var(--gold-light); font-weight: 800; }

@keyframes ticker-scroll {
  from { transform: translateY(-50%) translateX(0); }
  to { transform: translateY(-50%) translateX(-50%); }
}

.community-fb {
  flex-shrink: 0;
  width: 340px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 4px;
  border: 2px solid #1877F2;
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
  box-shadow: 0 0 10px rgba(24,119,242,0.35);
  box-sizing: border-box;
}

.community-fb-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  cursor: pointer;
  transition: color 0.15s;
}

.community-fb-label:hover { color: #4ea1ff; }

.community-fb .fb-page,
.community-fb span,
.community-fb iframe {
  width: 100% !important;
  max-width: 340px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.social-links small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 9px;
  margin-top: 2px;
}

.social-link-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 84px;
  transition: transform 0.15s, filter 0.15s;
}

.social-link-icon:hover { transform: translateY(-2px); filter: brightness(1.15); }

.social-link-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.social-link-icon span {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
}

/* ===== FOOTER ===== */
.site-footer {
  flex: 0 0 auto;
  text-align: center;
  padding: 8px 0;
  font-size: 10px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== TRANG PHỤ (Tải Game...): banner tiêu đề + lưới nội dung ===== */
.page-banner {
  position: relative;
  flex: 0 0 auto;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(10,10,12,0.35) 0%, rgba(10,10,12,0.82) 100%),
    url('../images/anh8888.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.page-title {
  font-family: 'Charm', cursive;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.1;
  background: linear-gradient(180deg, #f5e3a0, #b8862f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.6));
}

.page-subtitle {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.page-banner-cta {
  flex: 0 0 auto;
  padding: 14px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10,10,12,0.75) 0%, rgba(10,10,12,0.9) 100%);
  border-bottom: 1px solid rgba(212,169,79,0.25);
}

.page-banner-logo {
  width: 440px;
  max-width: 48%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6));
}

.tintuc-banner-logo {
  width: auto;
  height: 170px;
  max-width: 38%;
}

.page-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: 16px;
  margin: 20px auto;
  width: 100%;
}

.community-panel {
  text-align: left;
  padding: 18px 20px;
  background-image:
    linear-gradient(90deg, rgba(10,10,14,0.94) 0%, rgba(10,10,14,0.6) 48%, rgba(10,10,14,0.15) 100%),
    url('../images/iconcongdong.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.community-panel-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin: 6px 0 14px;
  line-height: 1.4;
}

.community-icons {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.community-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  border: 1px solid rgba(212,169,79,0.5);
  background: rgba(0,0,0,0.35);
  color: var(--gold-light);
  transition: transform 0.15s, filter 0.15s;
}

.community-icon:hover { transform: translateY(-2px); filter: brightness(1.2); }

.community-icon img { width: 22px; height: 22px; object-fit: contain; }

.dl-main { display: flex; flex-direction: column; gap: 14px; }

.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(15,15,20,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(212,169,79,0.75);
  border-radius: 10px;
  padding: 18px 18px 16px;
  text-align: center;
  overflow: hidden;
}

.dl-card .dl-btn { margin-top: auto; }
.dl-card .dl-icon { margin-top: 10px; margin-bottom: 10px; }

/* Hoạ tiết góc vàng cầu kỳ (giống khung tính năng/tin tức) */
.dl-card::before,
.dl-card::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
  opacity: 0.95;
  z-index: 3;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f5e0a3'/%3E%3Cstop offset='1' stop-color='%23a8792c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 36 L3 11 Q3 3 11 3 L36 3' stroke='url(%23g)' stroke-width='2.4' fill='none'/%3E%3Cpath d='M9.5 36 L9.5 15.5 Q9.5 9.5 15.5 9.5 L36 9.5' stroke='url(%23g)' stroke-width='1.1' fill='none' opacity='0.7'/%3E%3Ccircle cx='3.5' cy='3.5' r='3.6' fill='url(%23g)'/%3E%3Cpath d='M13 13 q6 8 15 3.5' stroke='url(%23g)' stroke-width='1.4' fill='none'/%3E%3Cpath d='M8 24 q5 2 4 10' stroke='url(%23g)' stroke-width='1' fill='none' opacity='0.75'/%3E%3Cpath d='M24 8 q2 5 10 4' stroke='url(%23g)' stroke-width='1' fill='none' opacity='0.75'/%3E%3C/svg%3E");
}

.dl-card::before { top: -2px; left: -2px; }
.dl-card::after { bottom: -2px; right: -2px; transform: rotate(180deg); }

/* Ảnh nền rồng/phượng cho từng ô, viền vàng đồng dùng chung (bỏ viền màu xanh/đỏ) */
.dl-card-patch {
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.55) 0%, rgba(10,10,14,0.85) 100%),
    url('../images/taipatch.png');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 6px rgba(10,10,12,0.4), 0 10px 24px rgba(0,0,0,0.4);
}

.dl-card-full {
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.55) 0%, rgba(10,10,14,0.85) 100%),
    url('../images/taifull.png?v=2');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 6px rgba(10,10,12,0.4), 0 10px 24px rgba(0,0,0,0.4);
}

.dl-card-title { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; color: var(--text-main); }
.dl-card-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 1px; margin-top: 3px; }

.dl-icon {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 26px;
  z-index: 1;
}

.dl-icon span { position: relative; z-index: 1; }

.dl-icon::before {
  content: '';
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.dl-icon-green { background: radial-gradient(circle, rgba(60,140,80,0.25), transparent 70%); border: 2px solid rgba(90,200,120,0.6); box-shadow: 0 0 20px rgba(90,200,120,0.25); }
.dl-icon-red { background: radial-gradient(circle, rgba(180,60,60,0.25), transparent 70%); border: 2px solid rgba(212,90,90,0.6); box-shadow: 0 0 20px rgba(212,90,90,0.25); }

.dl-icon-green::before {
  background-image:
    repeating-conic-gradient(rgba(120,220,150,0.28) 0deg 3deg, transparent 3deg 16deg),
    radial-gradient(circle, transparent 59%, rgba(120,220,150,0.4) 60%, transparent 62%),
    radial-gradient(circle, transparent 77%, rgba(120,220,150,0.25) 78%, transparent 80%);
}

.dl-icon-red::before {
  background-image:
    repeating-conic-gradient(rgba(230,120,120,0.28) 0deg 3deg, transparent 3deg 16deg),
    radial-gradient(circle, transparent 59%, rgba(230,120,120,0.4) 60%, transparent 62%),
    radial-gradient(circle, transparent 77%, rgba(230,120,120,0.25) 78%, transparent 80%);
}

.dl-features {
  text-align: left;
  margin: 0 0 12px;
  padding-left: 4px;
}

.dl-features li {
  position: relative;
  padding-left: 16px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.35;
}

.dl-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.15s, filter 0.15s;
}

.dl-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.dl-btn-green { background: linear-gradient(180deg, #4caf6c, #2f7a45); }
.dl-btn-red { background: linear-gradient(180deg, var(--red-bright), var(--red)); }

.dl-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--text-muted);
}

.notice-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(15,15,20,0.6);
  border: 1px solid rgba(212,169,79,0.35);
  border-radius: 10px;
  overflow: hidden;
}

.notice-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212,169,79,0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 18px;
}

.notice-list { flex: 1; min-width: 0; }

.notice-list li {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.notice-art {
  position: relative;
  flex-shrink: 0;
  width: 118px;
  height: 74px;
}

.notice-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%);
  mask-image: linear-gradient(90deg, transparent, #000 25%);
}

.notice-art-text {
  position: absolute;
  right: 8px;
  bottom: 8px;
  text-align: right;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-light);
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.notice-art-text small { display: block; font-weight: 600; font-size: 9px; color: var(--text-muted); }

/* ===== TRANG DONATE ===== */
.donate-hero {
  flex: 0 0 auto;
  text-align: center;
  padding: 24px 20px 18px;
  background-image:
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.9) 100%),
    url('../images/anh8888.png');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

.donate-title {
  font-family: 'Charm', cursive;
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #f5e3a0, #b8862f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.6));
}

.donate-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(212,169,79,0.6);
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  color: var(--gold-light);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.donate-hero-logo {
  width: 380px;
  max-width: 46%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6));
}

.donate-desc {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.donate-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  gap: 14px;
  margin: 16px auto;
  width: 100%;
}

.donate-menu { grid-column: 1; grid-row: 1; }

.donate-menu-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
  cursor: pointer;
  transition: background 0.15s;
}

.donate-menu-list li .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  flex-shrink: 0;
}

.donate-menu-list li:hover { background: rgba(255,255,255,0.06); }

.donate-menu-list li.active {
  background: rgba(212,169,79,0.18);
  border: 1px solid rgba(212,169,79,0.55);
  color: var(--gold-light);
}

.donate-community {
  grid-column: 1;
  grid-row: 2;
}

.btn-more-block {
  display: block;
  margin-top: auto;
  padding: 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #8a6a2c);
  color: #241a05;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.3px;
}

.donate-main {
  grid-column: 2;
  grid-row: 1 / 3;
  text-align: center;
  padding: 16px 20px;
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.6) 0%, rgba(10,10,14,0.88) 100%),
    url('../images/donate1.png');
  background-size: cover;
  background-position: center;
}
.donate-main .panel-title.center { text-align: center; }

.donate-sub { font-size: 12px; color: var(--text-muted); margin: 4px 0 14px; }

.donate-qr-box {
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.donate-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.donate-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }

.donate-code {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid rgba(212,169,79,0.6);
  background: rgba(212,169,79,0.12);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.donate-thanks { font-size: 11px; color: var(--text-muted); }

.donate-notice {
  grid-column: 3;
  grid-row: 1 / 3;
  padding: 16px 16px;
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.65) 0%, rgba(10,10,14,0.92) 100%),
    url('../images/banner-right.png');
  background-size: cover;
  background-position: center top;
}

.donate-notice-list li {
  font-size: 11px;
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}

.donate-notice-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.donate-chest {
  margin-top: auto;
  align-self: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: radial-gradient(circle, rgba(212,169,79,0.18), transparent 70%);
  border: 1px solid rgba(212,169,79,0.3);
}

.donate-benefits {
  flex: 0 0 auto;
  max-width: 1880px;
  margin: 0 auto;
  padding: 12px 20px 14px;
  border-top: 1px solid rgba(212,169,79,0.25);
}

.donate-benefits-title {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.donate-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  background: rgba(212,169,79,0.12);
  border: 1px solid rgba(212,169,79,0.4);
  color: var(--gold-light);
}

.benefit-item strong { display: block; font-size: 11.5px; letter-spacing: 0.3px; }
.benefit-item small { display: block; font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ===== TRANG HƯỚNG DẪN ===== */
.guide-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  align-items: stretch;
  gap: 14px;
  margin: 12px auto;
  width: 100%;
}

/* Trang Hướng Dẫn: hero gọn hơn (tanthu.png đã có sẵn tiêu đề+tagline) để gói vừa 1 màn hình
   (chỉ áp dụng từ 769px trở lên - dưới mức đó dùng layout mobile xếp dọc riêng) */
@media (min-width: 769px) {
  .page-guide .hero-band,
  .page-maptrain .hero-band,
  .page-mocvip .hero-band,
  .page-hoatdong .hero-band,
  .page-lotrinh .hero-band,
  .page-nguhanh .hero-band { height: 300px; }
  .page-guide .hero-logo-tanthu,
  .page-maptrain .hero-logo-compact,
  .page-mocvip .hero-logo-compact,
  .page-nguhanh .hero-logo { width: 370px; max-width: 42%; top: 3%; }
  .page-guide .hero-band-bottom,
  .page-maptrain .hero-band-bottom,
  .page-mocvip .hero-band-bottom,
  .page-hoatdong .hero-band-bottom,
  .page-lotrinh .hero-band-bottom,
  .page-nguhanh .hero-band-bottom { padding-top: 16px; }
  .page-guide .community,
  .page-maptrain .community,
  .page-mocvip .community,
  .page-hoatdong .community,
  .page-lotrinh .community,
  .page-nguhanh .community { padding: 8px 0; }
  .page-guide .site-footer,
  .page-maptrain .site-footer,
  .page-mocvip .site-footer,
  .page-hoatdong .site-footer,
  .page-lotrinh .site-footer,
  .page-nguhanh .site-footer { padding: 5px 0; }
}

.guide-menu {
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.55) 0%, rgba(10,10,14,0.88) 100%),
    url('../images/banner-right.png');
  background-size: cover;
  background-position: center top;
}

.guide-menu-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.guide-menu-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
  cursor: pointer;
  transition: background 0.15s;
}

.guide-menu-list li .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 14px;
  flex-shrink: 0;
}

.guide-menu-list li .chevron {
  margin-left: auto;
  color: var(--gold-light);
  font-weight: 900;
}

.guide-menu-list li a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  color: inherit;
}

.guide-menu-list li:hover { background: rgba(255,255,255,0.06); }

.guide-menu-list li.active {
  background: rgba(212,169,79,0.18);
  border: 1px solid rgba(212,169,79,0.55);
  color: var(--gold-light);
}

.guide-main {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.55) 0%, rgba(10,10,14,0.85) 100%),
    url('../images/bannertanthu.png?v=2');
  background-size: cover;
  background-position: center;
}

.guide-main-title {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.guide-main-title span { color: var(--gold); opacity: 0.7; font-size: 13px; }

.guide-steps { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }

.guide-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.guide-steps li:last-child { border-bottom: none; }

.guide-step-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 17px;
  background: rgba(212,169,79,0.12);
  border: 1px solid rgba(212,169,79,0.45);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
}

.guide-step-icon-text { font-size: 10.5px; font-weight: 800; color: var(--gold-light); letter-spacing: 0.2px; }

.guide-step-body { flex: 1; min-width: 0; }
.guide-step-body h4 { font-size: 13px; font-weight: 800; letter-spacing: 0.2px; margin-bottom: 3px; }
.guide-step-body p { font-size: 11.5px; color: var(--text-muted); line-height: 1.3; }

.guide-step-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 5px;
  border: 1px solid rgba(212,169,79,0.5);
  background: rgba(0,0,0,0.35);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: 0;
  white-space: nowrap;
}

.guide-side { display: flex; flex-direction: column; gap: 11px; }

.guide-side-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  margin-bottom: 8px;
  text-align: center;
}

.guide-video { padding: 11px; }

.guide-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 2.1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.3), rgba(10,10,14,0.75)),
    url('../images/anh8888.png');
  background-size: cover;
  background-position: center;
  margin-bottom: 8px;
}

.guide-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.guide-video-caption { font-size: 11.5px; font-weight: 700; text-align: center; color: var(--text-main); }

.guide-tips { padding: 11px 14px; }

.guide-tips-list li {
  position: relative;
  padding-left: 17px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.3;
}

.guide-tips-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.guide-tips-list li:last-child { margin-bottom: 0; }

.guide-community { padding: 11px 14px; }
.guide-community-row { display: flex; gap: 9px; align-items: center; margin-bottom: 9px; }
.guide-community-row .qr-box { width: 58px; height: 58px; }
.guide-community-text p { font-size: 10.5px; font-weight: 700; line-height: 1.25; }
.guide-community-text small { display: block; margin-top: 2px; font-size: 9px; color: var(--text-muted); }

.guide-fanpage-btn {
  display: block;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  background: #1877f2;
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.guide-fanpage-btn small { font-weight: 400; font-size: 9.5px; opacity: 0.85; }

.guide-video-thumb { cursor: pointer; }

/* Modal xem video hướng dẫn - hiện giữa màn hình PC */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.video-modal.open { display: flex; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.video-modal-box {
  position: relative;
  width: min(900px, 88vw);
  aspect-ratio: 16 / 9;
  z-index: 1;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.video-modal-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #241a05;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* ===== TRANG MAP TRAIN ===== */
.maptrain-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  align-items: stretch;
  gap: 14px;
  margin: 10px auto;
  width: 100%;
}

.maptrain-main {
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.55) 0%, rgba(10,10,14,0.85) 100%),
    url('../images/bannermaptrain.png');
  background-size: cover;
  background-position: center;
}

.maptrain-main-title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 3px;
}

.maptrain-main-title span { color: var(--gold); opacity: 0.7; font-size: 14px; }

.maptrain-main-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.maptrain-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin: 6px 0;
}

.maptrain-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.maptrain-rows li:last-child { border-bottom: none; }

.maptrain-tier {
  flex-shrink: 0;
  width: 88px;
  aspect-ratio: 1665 / 945;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.maptrain-tier small { display: block; font-weight: 400; font-size: 9.5px; opacity: 0.9; margin-top: 1px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

.tier-plaque-a { background-image: url('../images/nut0x4x.png?v=2'); }
.tier-plaque-b { background-image: url('../images/nut5x8x.png?v=2'); }
.tier-plaque-c { background-image: url('../images/nut9x.png?v=2'); }

.maptrain-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: #5ad46f; }
.dot-blue { background: #4a90d9; }
.dot-purple { background: #a97bf0; }
.dot-orange { background: #e6a153; }
.dot-red { background: #e2555f; }

.maptrain-desc { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-main); line-height: 1.4; }
.maptrain-desc small { color: var(--text-muted); font-size: 12px; margin-left: 4px; }

.maptrain-warning {
  margin-top: 6px;
  padding: 9px 12px;
  border: 1px solid rgba(184,39,47,0.5);
  border-radius: 8px;
  background: rgba(184,39,47,0.08);
}

.maptrain-warning-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: #ff8080;
  margin-bottom: 5px;
}

.maptrain-warning p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 7px;
}

.maptrain-example { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.maptrain-example-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(212,169,79,0.4);
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
}

.maptrain-example-item strong { font-size: 13px; color: var(--gold-light); }
.maptrain-example-item small { font-size: 11px; color: var(--text-muted); }
.maptrain-arrow { color: var(--gold); font-size: 12px; }
.maptrain-example-dots { color: var(--text-muted); font-size: 12px; padding: 0 2px; }

.maptrain-side { display: flex; flex-direction: column; gap: 12px; }

.maptrain-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  min-height: 0;
}

.maptrain-card-title { font-size: 13px; font-weight: 800; color: var(--gold-light); margin-bottom: 2px; }
.maptrain-card-sub { font-size: 10.5px; color: var(--text-muted); margin-bottom: 8px; }

.maptrain-card-img {
  flex: 1;
  min-height: 70px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(212,169,79,0.35);
}

.maptrain-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.zoomable { cursor: zoom-in; position: relative; }

/* Modal xem ảnh phóng to - hiện giữa màn hình PC */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.image-modal.open { display: flex; }

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.image-modal-box {
  position: relative;
  width: min(880px, 90vw);
  max-height: 88vh;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  background: #000;
}

.image-modal-box img {
  display: block;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #000;
}

.image-modal-caption {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(10,10,14,0.92);
  border-top: 1px solid rgba(212,169,79,0.35);
}

.image-modal-caption:empty { display: none; }

.image-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #241a05;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.maptrain-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(212,169,79,0.15);
  border: 1px solid rgba(212,169,79,0.5);
  color: var(--gold-light);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}

/* ===== TRANG MỐC VIP ===== */
.content-tabs {
  flex: 0 0 auto;
  border-top: 1px solid rgba(212,169,79,0.35);
  border-bottom: 1px solid rgba(212,169,79,0.35);
  background: rgba(15,15,20,0.5);
}

.content-tabs-inner {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.content-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.content-tab .icon { font-size: 15px; }
.content-tab:hover { color: var(--gold-light); }
.content-tab.active { color: var(--gold-light); border-bottom-color: var(--gold); }

.mocvip-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  margin: 22px auto;
  width: 100%;
}

.mocvip-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.mocvip-features-panel { flex: 0 0 auto; height: 460px; }

.guide-menu-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.guide-menu-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  font-weight: 600;
}

.guide-menu-features li:last-child { border-bottom: none; }

.guide-menu-features .feature-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: inherit;
  transition: color 0.15s;
}

.guide-menu-features .feature-link:hover { color: var(--gold-light); }

.guide-menu-features .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  font-size: 15px;
}

.guide-menu-features .label { display: flex; flex-direction: column; line-height: 1.3; }

.guide-menu-features .label small {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.guide-menu-features .feature-link:hover .label small { color: var(--gold-light); opacity: 0.8; }

.mocvip-video {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.mocvip-video-thumb {
  position: relative;
  flex: 1;
  min-height: 90px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.3), rgba(10,10,14,0.75)),
    url('../images/anh8888.png');
  background-size: cover;
  background-position: center;
}

.mocvip-dl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(212,169,79,0.55);
  background: linear-gradient(180deg, rgba(30,24,10,0.9), rgba(15,12,6,0.9));
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(212,169,79,0.18), 0 6px 16px rgba(0,0,0,0.4);
}

.mocvip-dl-icon { font-size: 20px; }
.mocvip-dl-text { font-size: 13.5px; font-weight: 800; line-height: 1.4; }
.mocvip-dl-text small { color: var(--text-muted); font-weight: 600; font-size: 11px; }

.mocvip-main {
  padding: 16px 20px;
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.55) 0%, rgba(10,10,14,0.85) 100%),
    url('../images/mocvip.png');
  background-size: cover;
  background-position: center;
}

.mocvip-main-title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.mocvip-main-title span { color: var(--gold); opacity: 0.7; font-size: 14px; }

.mocvip-table-wrap { overflow-x: auto; }

.mocvip-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.mocvip-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid rgba(212,169,79,0.5);
  white-space: nowrap;
}

.mocvip-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-main);
  vertical-align: middle;
  line-height: 1.4;
}

.mocvip-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.mocvip-table tbody tr:hover { background: rgba(212,169,79,0.06); }

.mocvip-table td:nth-child(2) { color: var(--gold-light); font-weight: 700; white-space: nowrap; }

.mocvip-table td.mocvip-time {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  border-left: 1px solid rgba(212,169,79,0.2);
}

.vip-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: #fff; white-space: nowrap; }
.vip-dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; }

@media (max-width: 1024px) {
  .mocvip-grid { grid-template-columns: 1fr; }
  .mocvip-features-panel { height: auto; }
}

@media (max-width: 768px) {
  .content-tabs-inner { gap: 16px 22px; padding: 4px 0; }
  .content-tab { font-size: 12px; padding: 10px 2px; }
  .mocvip-table { font-size: 11px; }
  .hoatdong-table { font-size: 11px; table-layout: auto; min-width: 620px; }
  .lotrinh-table { font-size: 11px; table-layout: auto; min-width: 680px; }
}

/* Trang Hoạt Động Hàng Ngày */
.hoatdong-main {
  padding: 16px 20px;
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.55) 0%, rgba(10,10,14,0.85) 100%),
    url('../images/bannertanthu.png?v=2');
  background-size: cover;
  background-position: center;
}

.hoatdong-table-wrap { overflow-x: auto; }

.hoatdong-table { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }

.hoatdong-table th {
  text-align: left;
  padding: 6px 8px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(212,169,79,0.35);
}

.hoatdong-table td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-main);
  vertical-align: middle;
  line-height: 1.25;
}

.hoatdong-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.hoatdong-table tbody tr:hover { background: rgba(212,169,79,0.06); }

.hoatdong-table th:nth-child(1), .hoatdong-table td:nth-child(1) { width: 16%; }
.hoatdong-table th:nth-child(2), .hoatdong-table td:nth-child(2) { width: 32%; }
.hoatdong-table th:nth-child(3), .hoatdong-table td:nth-child(3) { width: 16%; }
.hoatdong-table th:nth-child(4), .hoatdong-table td:nth-child(4) { width: 18%; }
.hoatdong-table th:nth-child(5), .hoatdong-table td:nth-child(5) { width: 12%; }

.hoatdong-table th:nth-child(3),
.hoatdong-table th:nth-child(4),
.hoatdong-table th:nth-child(5) { text-align: center; }

.hoatdong-name { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #fff; font-size: 12.5px; }
.hoatdong-name .icon { font-size: 13px; flex-shrink: 0; }

.hoatdong-table td:nth-child(3) { text-align: center; color: var(--text-muted); font-size: 11.5px; }
.hoatdong-table td:nth-child(4) { text-align: center; }
.hoatdong-table td:nth-child(5) { text-align: center; }

.hoatdong-guide-link {
  display: inline-block;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(212,169,79,0.4);
  border-radius: 20px;
  padding: 3px 10px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.hoatdong-guide-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212,169,79,0.1);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.status-live { background: rgba(90,212,111,0.16); color: #5ad46f; border: 1px solid rgba(90,212,111,0.45); }
.status-upcoming { background: rgba(226,85,95,0.16); color: #ff8f8f; border: 1px solid rgba(226,85,95,0.45); }
.status-soon { background: rgba(219,208,111,0.14); color: #dbd06f; border: 1px solid rgba(219,208,111,0.4); }

/* Trang Hoạt Động: khung Top Cao Thủ Hoạt Động (bên dưới khung Tính Năng Nổi Bật) */
.hoatdong-top-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hoatdong-top-panel .rank-list {
  overflow-y: auto;
  max-height: 172px;
  padding-right: 6px;
  margin-right: -6px;
}

/* Thanh cuộn gọn, tông vàng đồng bộ theme */
.hoatdong-top-panel .rank-list::-webkit-scrollbar,
.page-hoatdong .guide-menu-features::-webkit-scrollbar {
  width: 5px;
}

.hoatdong-top-panel .rank-list::-webkit-scrollbar-track,
.page-hoatdong .guide-menu-features::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.hoatdong-top-panel .rank-list::-webkit-scrollbar-thumb,
.page-hoatdong .guide-menu-features::-webkit-scrollbar-thumb {
  background: rgba(212,169,79,0.5);
  border-radius: 3px;
}

.hoatdong-top-panel .rank-list::-webkit-scrollbar-thumb:hover,
.page-hoatdong .guide-menu-features::-webkit-scrollbar-thumb:hover {
  background: rgba(212,169,79,0.85);
}

/* Khung Tính Năng Nổi Bật ở trang Hoạt Động: giới hạn chiều cao để luôn có thanh cuộn, giống khung Top Cao Thủ */
.page-hoatdong .guide-menu-features {
  flex: none;
  display: block;
  max-height: 215px;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -6px;
}

/* ===== TRANG TIN TỨC (chi tiết bài viết) ===== */
.breadcrumb-bar {
  flex: 0 0 auto;
  background: rgba(10,10,14,0.7);
  border-bottom: 1px solid rgba(212,169,79,0.25);
  padding: 10px 0;
}

.breadcrumb-bar .container { font-size: 12.5px; color: var(--text-muted); }
.breadcrumb-bar a { color: var(--text-muted); }
.breadcrumb-bar a:hover { color: var(--gold-light); }
.breadcrumb-bar .sep { margin: 0 6px; color: rgba(255,255,255,0.3); }
.breadcrumb-bar .current { color: var(--gold-light); font-weight: 600; }

.tintuc-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  align-items: start;
  gap: 14px;
  margin: 16px auto;
  width: 100%;
}

.article-panel { padding: 18px 22px; }

.article-title {
  margin: 10px 0 6px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-style: normal;
  font-size: 32px;
  letter-spacing: 0.5px;
  line-height: 1.25;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f7e2a0 0%, var(--gold) 55%, #a9761f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.article-banner {
  display: block;
  width: auto;
  max-width: 92%;
  height: auto;
  max-height: 240px;
  border-radius: 8px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.offbang-banner {
  max-width: 100%;
  max-height: 460px;
}

/* Bảng Zalo nổi bám theo màn hình khi khách lướt web */
.zalo-float {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  width: 168px;
  padding: 16px 12px 14px;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,14,8,0.97) 0%, rgba(10,7,4,0.98) 100%);
  border: 1px solid rgba(212,169,79,0.55);
  animation: zalo-float-glow 2.4s ease-in-out infinite;
}

@keyframes zalo-float-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(212,169,79,0.15), 0 10px 30px rgba(0,0,0,0.6), 0 0 16px rgba(212,169,79,0.3); }
  50% { box-shadow: 0 0 0 1px rgba(212,169,79,0.3), 0 10px 34px rgba(0,0,0,0.65), 0 0 30px rgba(212,169,79,0.6); }
}

.zalo-float-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  border: none;
  padding: 0;
}
.zalo-float-close:hover { background: rgba(255,255,255,0.18); color: #fff; }

.zalo-float-hot { position: absolute; top: -10px; left: -8px; }

.zalo-float-icon {
  display: flex;
  width: 52px;
  height: 52px;
  margin: 4px auto 10px;
  border-radius: 50%;
  background: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.zalo-float-icon img { width: 32px; height: 32px; }

.zalo-float-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.3;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.zalo-float-sub {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.zalo-float-qr {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 4px;
}
.zalo-float-qr img { width: 100%; height: 100%; object-fit: contain; }

.zalo-float-btn {
  display: block;
  width: 100%;
  padding: 8px 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-align: center;
}
.zalo-float-btn:hover { filter: brightness(1.1); }

.zalo-float-note {
  margin-top: 8px;
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .zalo-float { right: 10px; width: 150px; padding: 14px 10px 12px; }
}

@media (max-width: 768px) {
  .zalo-float {
    top: auto;
    bottom: 90px;
    right: 12px;
    transform: none;
    width: 58px;
    padding: 7px;
    border-radius: 50%;
  }
  .zalo-float-title, .zalo-float-sub, .zalo-float-qr, .zalo-float-note, .zalo-float-btn { display: none; }
  .zalo-float-icon { margin: 0; width: 44px; height: 44px; }
  .zalo-float-icon img { width: 26px; height: 26px; }
  .zalo-float-close { top: -6px; right: -6px; background: rgba(20,14,8,0.92); }
  .zalo-float-hot { top: -8px; left: -6px; font-size: 9px; padding: 1px 6px; }
}

.article-video {
  display: block;
  width: 100%;
  max-width: 82%;
  height: auto;
  border-radius: 10px;
  margin: 4px auto 20px;
  border: 1px solid rgba(212,169,79,0.35);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  background: #000;
}

.article-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 12px;
}

.article-highlights-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-light);
  margin: 18px 0 8px;
}

.article-highlights-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

.article-highlights-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Khối mở đầu bài viết (banner chữ) */
.article-lead {
  text-align: center;
  padding: 16px 10px 20px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(212,169,79,0.25);
}

.article-lead-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--gold-light);
  text-shadow: 0 0 14px rgba(212,169,79,0.35);
  margin-bottom: 4px;
}

.article-lead-sub {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.article-lead-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
}

/* Tiêu đề từng mục trong bài (dùng chung cho mọi h3) */
.article-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-light);
  margin: 22px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
}

/* Lịch khai mở */
.schedule-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }

.schedule-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 6px;
}

.schedule-label { font-size: 13px; font-weight: 800; color: var(--text-main); letter-spacing: 0.3px; }
.schedule-time { font-size: 13px; font-weight: 700; color: var(--gold-light); text-align: right; }

.article-time {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-light);
}

/* Khung nhấn mạnh (nói không với cờ bạc...) */
.article-callout {
  margin: 14px 0;
  padding: 12px 16px;
  border: 1px solid rgba(140,31,40,0.55);
  border-left: 3px solid var(--red-bright);
  border-radius: 6px;
  background: rgba(140,31,40,0.12);
}

.article-callout p { font-size: 13.5px; line-height: 1.6; color: var(--text-main); margin: 0; }
.article-callout p + p { margin-top: 4px; }
.article-callout strong { color: #ff9d9d; }

/* Bảng phần thưởng */
.reward-table-wrap { overflow-x: auto; margin-bottom: 6px; }

.reward-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13.5px; }

.reward-table th:first-child, .reward-table td:first-child { width: 32%; }
.reward-table th:last-child, .reward-table td:last-child { width: 68%; }

.reward-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid rgba(212,169,79,0.35);
}

.reward-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-main);
  line-height: 1.5;
  vertical-align: top;
}

.reward-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.reward-table td:first-child { font-weight: 800; color: var(--gold-light); }

.article-warning {
  font-size: 12.5px;
  color: #e6a153;
  background: rgba(230,161,83,0.1);
  border: 1px solid rgba(230,161,83,0.35);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 4px;
}

/* Khối kết bài (chữ ký) */
.article-closing {
  text-align: center;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(212,169,79,0.25);
}

.article-closing-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.article-closing-server {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--gold-light);
  text-shadow: 0 0 14px rgba(212,169,79,0.35);
  margin: 4px 0;
}

.article-closing-open { font-size: 13px; color: var(--text-main); margin-bottom: 4px; }

.article-closing-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
}

/* Banner tiêu đề bài viết dạng chữ (không dùng ảnh PNG riêng) */
.article-hero-banner {
  position: relative;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  background-image:
    linear-gradient(180deg, rgba(10,10,12,0.5) 0%, rgba(10,10,12,0.88) 100%),
    url('../images/event-congthanhchien.png');
  background-size: cover;
  background-position: center 22%;
  border: 1px solid rgba(212,169,79,0.35);
}

.article-hero-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; justify-content: center; }

.article-hero-tag {
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  border: 1px solid rgba(212,169,79,0.5);
  border-radius: 4px;
  background: rgba(0,0,0,0.45);
}

.article-hero-title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 2px;
  line-height: 1.1;
  background: linear-gradient(180deg, #f7e2a0 0%, var(--gold) 55%, #a9761f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.7));
}

.article-hero-subbar {
  margin-top: 12px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(212,169,79,0.4);
  border-radius: 20px;
}

/* Khung nhấn mạnh tông vàng (khác bản đỏ cảnh báo) */
.article-callout-gold {
  margin: 14px 0;
  padding: 12px 16px;
  border: 1px solid rgba(212,169,79,0.5);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: rgba(212,169,79,0.1);
}

.article-callout-gold p { font-size: 13.5px; line-height: 1.6; color: var(--text-main); margin: 0; }
.article-callout-gold p + p { margin-top: 4px; }
.article-callout-gold strong { color: var(--gold-light); }

/* Lưới thẻ quyền lợi (icon + mô tả ngắn) */
.article-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 14px 0 6px;
}

.article-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 8px;
}

.article-icon-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 18px;
  background: rgba(212,169,79,0.12);
  border: 1px solid rgba(212,169,79,0.4);
}

.article-icon-card span:not(.icon) {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-main);
}

/* Danh sách trường đăng ký (dạng khung tối, 1 cột) */
.article-form-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }

.article-form-list li {
  padding: 8px 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(212,169,79,0.2);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.article-cta { text-align: center; margin: 18px 0; }

@media (max-width: 1024px) {
  .article-icon-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .article-hero-title { font-size: 30px; }
  .article-hero-banner { height: 190px; }
  .article-icon-grid { grid-template-columns: repeat(2, 1fr); }
}

.related-news-list { display: flex; flex-direction: column; gap: 12px; }

.related-news-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.related-news-link {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  color: inherit;
}

.related-news-thumb {
  width: 72px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 6px;
  background:
    linear-gradient(160deg, rgba(212,169,79,0.25), rgba(0,0,0,0.4)),
    var(--bg-panel-light);
  border: 1px solid rgba(212,169,79,0.2);
}

.related-news-info { min-width: 0; }

.related-news-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 4px;
}

.related-news-item:hover .related-news-title { color: var(--gold-light); }

.related-news-date { font-size: 11.5px; color: var(--text-muted); }

/* Cột phải trang Tin Tức: gộp khung Tin Tức Liên Quan + khung Top Bang Hội */
.tintuc-side-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.top-banghoi-panel .rank-list li { font-size: 12.5px; }

@media (max-width: 1024px) {
  .tintuc-grid { grid-template-columns: 1fr 1fr; }
  .article-panel { grid-column: 1 / 3; order: -1; }
}

@media (max-width: 768px) {
  .tintuc-grid { grid-template-columns: 1fr; margin: 20px auto; gap: 14px; }
  .article-panel { grid-column: 1; order: 0; }
  .article-title { font-size: 21px; }
  .article-banner { max-width: 96%; max-height: 170px; }
}

/* ===== DESKTOP RỘNG: gói gọn 1 màn hình, không cuộn ===== */
@media (min-width: 1400px) {
  .page-shell {
    height: 100vh;
    overflow-y: auto;
    background:
      linear-gradient(180deg, rgba(13,13,16,0) 0%, rgba(13,13,16,0.4) 55%, rgba(13,13,16,0.88) 100%),
      url('../images/anh8888.png') center top / cover no-repeat,
      var(--bg-dark);
  }
  .page-content { min-height: 100%; }
  .hero-band { background: none; }
  .page-banner { background: linear-gradient(180deg, rgba(10,10,12,0) 0%, rgba(10,10,12,0.7) 100%); }
  .donate-hero { background: linear-gradient(180deg, rgba(10,10,12,0) 0%, rgba(10,10,12,0.75) 100%); }
  .side-art { display: none; }
}

/* ===== RESPONSIVE (dưới desktop rộng: cho phép cuộn bình thường) ===== */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .news { grid-column: 1 / 3; order: -1; }
  .side-art { width: 140px; opacity: 0.3; }

  .page-grid { grid-template-columns: 1fr; grid-template-rows: none; }

  .donate-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .donate-menu, .donate-community, .donate-main, .donate-notice { grid-column: 1; grid-row: auto; }

  .guide-grid { grid-template-columns: 1fr 1fr; }
  .guide-menu { grid-column: 1 / 3; }

  .maptrain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #000;
    border-bottom: 2px solid var(--gold);
    display: none;
    z-index: 50;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
  }

  .header-right .icon-btn { display: none; }

  .side-art { display: none; }

  /* ---- HERO: bỏ kiểu overlay tuyệt đối (chỉ hợp màn rộng), xếp chồng tự nhiên cho điện thoại ---- */
  .hero-band {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px 24px;
    background-position: center 15%;
  }

  .hero-logo {
    position: static;
    width: 80%;
    max-width: 300px;
    transform: none;
    margin: 0 0 16px;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.7));
  }

  .hero-title-block {
    position: static;
    width: 100%;
    max-width: none;
    transform: none;
    margin: 0 0 16px;
  }

  .hero-title-text { font-size: 30px; }

  .hero-band-bottom {
    position: static;
    width: 100%;
    padding: 0;
    background: none;
  }

  .hero-tagline {
    top: 0;
    font-size: 18px;
    margin: 0 0 18px;
    padding: 0 6px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-img {
    width: 88%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 220 / 80;
    padding: 0 20px;
  }

  .btn-img span:not(.btn-icon) { font-size: 15px; }
  .btn-img small { font-size: 10px; }

  /* ---- MAIN GRID: gộp về 1 cột ---- */
  .main-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; margin: 26px auto 0; }
  .news { grid-column: auto; order: 0; }

  .panel::before, .panel::after { width: 30px; height: 30px; }

  .news-featured-body { flex-direction: column; }
  .news-featured-img { width: 100%; height: 170px; }

  .community-inner { justify-content: center; text-align: center; gap: 16px; }
  .social-links { margin-left: 0; }
  .community-ticker { flex: 0 0 auto; width: 100%; order: 5; }
  .community-fb { order: 6; }

  /* ---- Trang phụ (Tải Game...) ---- */
  .page-banner { padding: 40px 16px; }
  .page-title { font-size: 40px; }
  .page-subtitle { font-size: 12px; }
  .page-banner-logo { max-width: 84%; }

  .page-grid { margin: 24px auto; gap: 16px; }

  .dl-grid { grid-template-columns: 1fr; }

  .notice-bar { flex-direction: column; text-align: center; }
  .notice-list { text-align: left; }
  .notice-art { margin: 0 auto; }

  /* ---- Trang Donate ---- */
  .donate-hero-logo { max-width: 78%; }
  .donate-desc { font-size: 12px; }
  .donate-grid { margin: 20px auto; gap: 14px; }
  .donate-benefits-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .benefit-item { flex-direction: column; text-align: center; }

  /* ---- Trang Hướng Dẫn ---- */
  .guide-grid { grid-template-columns: 1fr; margin: 20px auto; gap: 14px; }
  .guide-menu { grid-column: 1; }
  .guide-steps li { flex-wrap: wrap; }
  .guide-step-btn { margin-left: 46px; }

  /* ---- Trang Map Train ---- */
  .maptrain-grid { grid-template-columns: 1fr; margin: 20px auto; gap: 14px; }
  .maptrain-rows li { flex-wrap: wrap; }
  .maptrain-card { flex: none; }
  .maptrain-card-img { min-height: 160px; }
}

@media (max-width: 380px) {
  .hero-logo { width: 86%; }
  .hero-tagline { font-size: 15px; }
  .btn-img { width: 94%; }
}

/* ===== TRANG LỘ TRÌNH ===== */
.lotrinh-main {
  padding: 18px 22px;
}

.lotrinh-main-title {
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.lotrinh-main-title span { color: var(--gold); opacity: 0.7; font-size: 16px; }

.lotrinh-intro {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 auto 24px;
  max-width: 680px;
}

.lotrinh-table-wrap { overflow-x: auto; }

.lotrinh-table { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }

.lotrinh-table th {
  text-align: left;
  padding: 7px 9px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(212,169,79,0.35);
}

.lotrinh-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-main);
  vertical-align: top;
  line-height: 1.4;
}

.lotrinh-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.lotrinh-table tbody tr:hover { background: rgba(212,169,79,0.06); }

.lotrinh-table th:nth-child(1), .lotrinh-table td:nth-child(1) { width: 18%; }
.lotrinh-table th:nth-child(2), .lotrinh-table td:nth-child(2) { width: 11%; }
.lotrinh-table th:nth-child(3), .lotrinh-table td:nth-child(3) { width: 33%; }
.lotrinh-table th:nth-child(4), .lotrinh-table td:nth-child(4) { width: 13%; }
.lotrinh-table th:nth-child(5), .lotrinh-table td:nth-child(5) { width: 25%; }

.lotrinh-table th:nth-child(2),
.lotrinh-table th:nth-child(4) { text-align: center; }

.lotrinh-table td:nth-child(2) {
  text-align: center;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 12px;
}

.lotrinh-table td:nth-child(4) { text-align: center; }

.lotrinh-table td:nth-child(5) {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.lotrinh-name { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #fff; font-size: 12.5px; }
.lotrinh-name .icon { font-size: 13px; flex-shrink: 0; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(180deg, rgba(212,169,79,0.55), rgba(212,169,79,0.08));
}

.timeline-item:last-child::before { display: none; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(212,169,79,0.14);
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(212,169,79,0.3);
}

.timeline-content { flex: 1; min-width: 0; padding-top: 4px; }

.timeline-date {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  background: rgba(212,169,79,0.12);
  border: 1px solid rgba(212,169,79,0.35);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 2px 0 8px;
}

.timeline-time {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.timeline-feature-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-features {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.timeline-extra {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(212,169,79,0.25);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

.timeline-extra strong { color: var(--gold-light); }

@media (max-width: 768px) {
  .timeline-item { gap: 12px; }
  .timeline-marker { width: 36px; height: 36px; font-size: 16px; }
  .timeline-item::before { left: 17px; top: 40px; }
  .timeline-title { font-size: 18px; }
}

/* ===== TRANG HƯỚNG DẪN MẶC ĐỒ NGŨ HÀNH ===== */
.nguhanh-main {
  padding: 18px 22px;
  background-image:
    linear-gradient(180deg, rgba(10,10,14,0.3) 0%, rgba(10,10,14,0.55) 100%),
    url('../images/hinhnennguhanh.png');
  background-size: cover;
  background-position: center;
}

.join-group-panel { padding: 12px; }

.join-group-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: 0 4px 12px rgba(140,31,40,0.4);
}

.join-group-btn .icon { font-size: 20px; flex-shrink: 0; }
.join-group-btn strong { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.5px; }

.join-group-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid rgba(212,169,79,0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}
.join-group-btn small { display: block; font-size: 10px; font-weight: 400; opacity: 0.9; margin-top: 1px; }

.nguhanh-tabs .tab { font-size: 13px; padding: 9px 4px; }
.nguhanh-tabs { margin-bottom: 16px; }

.nguhanh-panel-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  text-align: center;
}

.nguhanh-panel-body {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  max-width: 680px;
  margin: 0 auto;
}

/* Tab KIM riêng: khối xoay Thiếu Lâm bên trái, nội dung + hình dồn sang mép phải */
.nguhanh-kim-body {
  max-width: 100%;
  justify-content: space-between;
  gap: 16px;
}

.nguhanh-kim-content {
  display: flex;
  align-items: center;
  gap: 28px;
}

.thieulam-spin {
  position: relative;
  flex: 0 0 auto;
  width: 380px;
  height: 380px;
  margin-left: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.thieulam-spin img {
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
}

.thieulam-spin:active { cursor: grabbing; }

.thieulam-spin-hint {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.5);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .nguhanh-kim-body { flex-direction: column; justify-content: flex-start; gap: 20px; }
  .thieulam-spin { width: 240px; height: 240px; margin-left: 0; }
  .nguhanh-kim-content { flex-direction: column; align-items: center; gap: 16px; }
}

.nguhanh-img {
  flex: 0 0 270px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.4);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.nguhanh-img img { width: 100%; height: auto; display: block; }

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

.nguhanh-info-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.3px;
  margin: 14px 0 5px;
}

.nguhanh-info-label:first-child { margin-top: 0; }

.nguhanh-cycle-text {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
}

.nguhanh-slot-list li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.nguhanh-slot-list li::before { content: '•'; position: absolute; left: 0; color: var(--gold); }
.nguhanh-slot-list li strong { color: var(--gold-light); font-weight: 700; }

.nguhanh-benefit { margin-top: 14px; }

.nguhanh-cycle-panel { padding: 14px; text-align: center; }
.nguhanh-cycle-svg { display: flex; justify-content: center; }
.nguhanh-cycle-img {
  width: 100%;
  max-width: 230px;
  border-radius: 10px;
  border: 1px solid rgba(212,169,79,0.4);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.nguhanh-cycle-note { font-size: 10.5px; color: var(--text-muted); line-height: 1.5; margin-top: 8px; }

@media (max-width: 768px) {
  .nguhanh-panel-body { flex-direction: column; }
  .nguhanh-img { flex: none; width: 100%; max-width: 220px; margin: 0 auto; }
}

/* ===== TRANG HƯỚNG DẪN TRAIN LEVEL - CẮM TRỤ ===== */
.camtru-main { padding: 18px 22px; }

.camtru-section-title {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin: 18px 0 10px;
}

.camtru-section-title:first-of-type { margin-top: 4px; }

.camtru-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.camtru-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 8px;
  border: 1px solid rgba(212,169,79,0.35);
  background: rgba(212,169,79,0.06);
}

.camtru-stat-icon {
  font-size: 28px;
  margin-bottom: 2px;
}

.camtru-stat-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.camtru-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
}

.camtru-diagram-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.camtru-diagram-box {
  border: 1px solid rgba(212,169,79,0.35);
  border-radius: 8px;
  padding: 12px;
  background: rgba(15,15,20,0.4);
}

.camtru-box-title {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.camtru-box-img {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.3);
}

.camtru-box-img img { width: 100%; height: auto; display: block; }

.camtru-tips-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.camtru-step-panel { padding: 11px 14px; }

.camtru-step-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text-main);
  margin-bottom: 9px;
  line-height: 1.4;
}

.camtru-step-list li:last-child { margin-bottom: 0; }

.camtru-step-num {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #241a05;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 65%);
}

.camtru-warning-list li::before { content: '!'; color: var(--red-bright); font-weight: 800; }

.camtru-tips-row .guide-side-title { font-size: 14.5px; }
.camtru-tips-row .guide-tips-list li { font-size: 14.5px; }

@media (max-width: 1024px) {
  .camtru-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .camtru-diagram-row { grid-template-columns: 1fr; }
  .camtru-tips-row { grid-template-columns: 1fr; }
}

/* Cột trái trang Cắm Trụ: gộp Tính Năng Nổi Bật + Top Server xếp chồng */
.camtru-left-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

/* Cột phải trang Cắm Trụ: Hướng Dẫn Auto Train (auto1.png + auto2.png) */
.camtru-auto-imgs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.camtru-auto-img {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.3);
}

.camtru-auto-img img { width: 100%; height: auto; display: block; }

/* ===== Trang Mốc Phần Thưởng Dã Tẩu ===== */
.datau-hero-compact {
  height: 118px;
}

.datau-hero-compact .hero-band-bottom {
  padding: 30px 20px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}

.datau-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 260px;
  align-items: stretch;
  gap: 16px;
  margin: 20px auto;
  width: 100%;
}

.datau-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
}

.datau-showcase-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.datau-showcase-title span { color: var(--gold); }

.datau-showcase-art {
  width: 100%;
  flex: 1;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.4);
  border-radius: 10px;
  background: radial-gradient(circle at center, rgba(212,169,79,0.15), rgba(0,0,0,0.35) 72%);
  margin-bottom: 16px;
}

.datau-showcase-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.datau-showcase-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  background: linear-gradient(180deg, #f7e2a0 0%, var(--gold) 55%, #a9761f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.datau-showcase-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.datau-showcase-caption {
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

.datau-row-active { box-shadow: inset 3px 0 0 var(--gold); background: rgba(212,169,79,0.06); }

.datau-intro {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: -6px 0 16px;
}

.datau-table th:first-child, .datau-table td:first-child { width: 90px; }
.datau-table td:nth-child(2) {
  white-space: normal;
  color: var(--text-main);
  font-weight: 400;
}

.datau-reward-row {
  display: grid;
  grid-template-columns: 172px 100px 205px minmax(220px, 1fr);
  align-items: center;
  column-gap: 4px;
}

.datau-reward-part {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .datau-reward-row { grid-template-columns: 1fr; row-gap: 4px; }
  .datau-reward-part { white-space: normal; }
}

.datau-milestone {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 14px;
}

.tag-exp {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #b7dd7a, #6f9c3d);
  color: #16260a;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.3px;
  margin-right: 1px;
  vertical-align: middle;
}

.datau-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-size: 11px;
  vertical-align: middle;
  margin: 0 1px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}

.datau-icon.coin { background: linear-gradient(180deg, #f5dfa0, #c98f2e); }
.datau-icon.gift { background: linear-gradient(180deg, #f0a15a, #b8272f); }
.datau-icon.item { background: linear-gradient(180deg, #c9a6f5, #7a4fc4); }
.datau-icon.weapon { background: linear-gradient(180deg, #6a6a78, #232329); border: 1px solid rgba(212,169,79,0.5); }
.datau-icon.herb { background: linear-gradient(180deg, #9be8c9, #2f9e78); }

.datau-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-muted);
}

@media (max-width: 1200px) {
  .datau-grid { grid-template-columns: 210px minmax(0, 1fr); }
  .datau-showcase { grid-column: 1 / 3; flex-direction: row; text-align: left; gap: 18px; }
  .datau-showcase-art { min-height: 140px; max-width: 200px; }
  .datau-showcase-title { width: 100%; }
}

@media (max-width: 1024px) {
  .datau-grid { grid-template-columns: 1fr; }
  .datau-showcase { grid-column: 1; flex-direction: column; text-align: center; }
}
