/* ==========================================================================
   MIS GAMES - DARK FANTASY & ROYAL GOLD SHOWCASE (2026)
   Nền tối sâu (#090D16), Kính mờ Glassmorphism, Điểm nhấn Vàng Kim (#F5B82E)
   & Bố cục 4 Cột Panoramic sang trọng.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Rajdhani:wght@600;700&display=swap');

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --bg-primary: #090d16;
  --bg-overlay: radial-gradient(circle at 70% 40%, rgba(237, 88, 11, 0.16) 0%, rgba(193, 22, 43, 0.1) 35%, rgba(9, 13, 22, 0.88) 72%);
  --bg-section-mask: linear-gradient(135deg, rgba(9, 13, 22, 0.92) 0%, rgba(15, 23, 42, 0.78) 50%, rgba(9, 13, 22, 0.92) 100%);
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-primary: #ed580b;
  --accent-secondary: #c1162b;
  --accent-gradient: linear-gradient(135deg, #ed580b 0%, #c1162b 55%, #ac092c 100%);
  --card-bg: rgba(17, 24, 39, 0.72);
  --card-border: rgba(237, 88, 11, 0.3);
  --card-hover-border: #ed580b;
  --card-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.12);
  --nav-text: rgba(255, 255, 255, 0.55);
  --nav-active: #ed580b;
}

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

html,
body {
  width: 100%;
  height: 100%;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
}

/* Interactive Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   TOP HEADER BAR
   -------------------------------------------------------------------------- */
.top-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  padding: 0 40px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.top-header-bar > * {
  pointer-events: auto;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.brand-logo:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.brand-logo .logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.top-quick-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transition: all 0.3s var(--ease-out-expo);
}

.quick-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.quick-btn.primary {
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  border: none;
  box-shadow: 0 6px 20px rgba(193, 22, 43, 0.38);
}

.quick-btn.primary:hover {
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(237, 88, 11, 0.55);
}

/* --------------------------------------------------------------------------
   LANGUAGE SWITCHER (.lang-switcher) IN HEADER
   -------------------------------------------------------------------------- */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  white-space: nowrap;
}

.lang-btn:hover,
.lang-switcher.open .lang-btn {
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(237, 88, 11, 0.28);
}

.lang-btn-globe {
  font-size: 13px;
  line-height: 1;
}

.lang-btn-caret {
  font-size: 10px;
  opacity: 0.75;
  transition: transform 0.25s ease;
}

.lang-switcher.open .lang-btn-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(9, 13, 22, 0.95);
  border: 1px solid rgba(237, 88, 11, 0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: all 0.22s var(--ease-out-expo);
  z-index: 1200;
}

.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.lang-option.active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(237, 88, 11, 0.35);
}

.lang-option .lang-code {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   CUSTOM TIMELINE SIDE NAVIGATION (#nav - COMPACT TOOLTIP STYLE)
   -------------------------------------------------------------------------- */
#nav {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 999;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

#nav li {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}

#nav li:hover {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(237, 88, 11, 0.45);
}

#nav li .nav-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--nav-text);
  min-width: 20px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: color 0.3s ease, transform 0.3s ease;
}

#nav li .nav-bar {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out-expo);
}

/* Floating Tooltip: Hidden by default (even when .active), shown ONLY on :hover */
#nav li .nav-label {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate3d(-8px, -50%, 0);
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(9, 13, 22, 0.92);
  border: 1px solid rgba(237, 88, 11, 0.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease-out-expo),
    transform 0.25s var(--ease-out-expo),
    visibility 0.25s;
}

/* Tooltip Left Arrow */
#nav li .nav-label::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(9, 13, 22, 0.92);
  border-left: 1px solid rgba(237, 88, 11, 0.55);
  border-bottom: 1px solid rgba(237, 88, 11, 0.55);
}

#nav li:hover .nav-label {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
}

#nav li:hover .nav-num,
#nav li.active .nav-num {
  color: #ffffff;
  transform: scale(1.1);
}

#nav li.active {
  background: linear-gradient(135deg, rgba(237, 88, 11, 0.32) 0%, rgba(193, 22, 43, 0.35) 100%);
  border: 1px solid rgba(237, 88, 11, 0.85);
  box-shadow: 0 4px 16px rgba(193, 22, 43, 0.35);
}

#nav li.active .nav-bar {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nav-active);
  box-shadow: 0 0 10px var(--nav-active);
}

#fp-nav {
  display: none !important;
}

/* --------------------------------------------------------------------------
   SECTIONS COMMON
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: 1;
  filter: brightness(0.45) contrast(1.15) saturate(1.2);
}

.section-mask {
  position: absolute;
  inset: 0;
  background: var(--bg-section-mask);
  z-index: 2;
}

.section1 .section-bg {
  background-image: url("../images/1.png");
  filter: brightness(0.55) contrast(1.1);
}
.section1 .section-mask {
  background: var(--bg-overlay);
}
.section2 .section-bg { background-image: url("../images/5.png"); }
.section3 .section-bg { background-image: url("../images/3.png"); }
.section4 .section-bg { background-image: url("../images/4.png"); }
.section5 .section-bg { background-image: url("../images/2.png"); }
.section6 .section-bg { background-image: url("../images/5.png"); }
.section7 .section-bg { background-image: url("../images/3.png"); }
.section8 .section-bg { background-image: url("../images/4.png"); }

.tech-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   SECTION 1: HERO 2.5D PARALLAX SHOWCASE
   -------------------------------------------------------------------------- */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  z-index: 6;
  display: flex;
  align-items: center;
  padding: 0 60px 0 84px;
}

.hero-info {
  position: relative;
  z-index: 20;
  max-width: 580px;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
}

.animate-section1 .hero-info {
  animation: heroRevealUp 0.9s 0.15s var(--ease-out-expo) forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(237, 88, 11, 0.14);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(193, 22, 43, 0.38);
  transition: all 0.35s var(--ease-out-expo);
  cursor: pointer;
  border: none;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(237, 88, 11, 0.52);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease-out-expo);
}

.btn-hero-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
}

/* 2.5D Layered Character Artwork */
.hero-art-layers {
  position: absolute;
  top: 0;
  right: -60px;
  width: 860px;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.art-layer {
  position: absolute;
  will-change: transform;
}

.layer-slash-big {
  top: 0;
  right: 40px;
  width: 820px;
  height: 100%;
  opacity: 0;
}

.layer-slash-small {
  top: 0;
  right: 0;
  width: 480px;
  height: 100%;
  opacity: 0;
}

.layer-qilin {
  bottom: 4%;
  right: 280px;
  width: 450px;
  height: auto;
  opacity: 0;
  z-index: 3;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
}

.layer-girl {
  bottom: -2%;
  right: 0;
  height: 92vh;
  width: auto;
  max-width: 780px;
  object-fit: contain;
  opacity: 0;
  z-index: 4;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}

.layer-niu {
  bottom: -60px;
  right: 360px;
  width: 330px;
  opacity: 0;
  z-index: 5;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4));
}

.layer-shatter {
  position: absolute;
  inset: 0;
  background: url("../images/one/suipian.png") no-repeat center center;
  background-size: cover;
  z-index: 6;
  pointer-events: none;
  animation: floatBreathing 6s ease-in-out infinite;
}

.animate-section1 .layer-slash-big {
  animation: slashSlideIn 1s var(--ease-out-expo) forwards;
}

.animate-section1 .layer-slash-small {
  animation: slashSlideIn 1s 0.2s var(--ease-out-expo) forwards;
}

.animate-section1 .layer-qilin {
  animation:
    heroRevealUp 0.9s 0.35s var(--ease-out-expo) forwards,
    floatBreathingSlow 7s 1.3s ease-in-out infinite;
}

.animate-section1 .layer-girl {
  animation:
    heroGirlEntrance 1s 0.5s var(--ease-out-expo) forwards,
    floatBreathing 5.5s 1.5s ease-in-out infinite;
}

.animate-section1 .layer-niu {
  animation:
    heroRevealUp 0.85s 0.65s var(--ease-spring) forwards,
    floatBreathing 4.5s 1.6s ease-in-out infinite;
}

.scroll-down-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.scroll-down-cue:hover {
  color: var(--accent-primary);
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid currentColor;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-primary);
  animation: scrollWheelAnim 1.8s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   SECTIONS 2 -> 5: 4-COLUMN PANORAMIC GAME SHOWCASE
   -------------------------------------------------------------------------- */
.showcase-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 88px 40px 40px 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  opacity: 0;
  transform: translate3d(-30px, 0, 0);
}

.animate-section2 .section-header-bar,
.animate-section3 .section-header-bar,
.animate-section4 .section-header-bar,
.animate-section5 .section-header-bar,
.animate-section6 .section-header-bar,
.animate-section7 .section-header-bar,
.animate-section8 .section-header-bar {
  animation: headerSlideRight 0.75s var(--ease-out-expo) forwards;
}

.region-title-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.region-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 0.9;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.region-text-wrap .region-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 4px;
}

.region-text-wrap .region-heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.region-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* 4-Column Panoramic Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  height: clamp(340px, 56vh, 460px);
  perspective: 1200px;
}

.mobile-carousel-bar {
  display: none;
}

.game-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 0.2s ease-out,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  opacity: 0;
}

.game-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 24px rgba(237, 88, 11, 0.28);
}

.animate-section2 .game-card:nth-child(1),
.animate-section3 .game-card:nth-child(1),
.animate-section4 .game-card:nth-child(1),
.animate-section5 .game-card:nth-child(1),
.animate-section6 .game-card:nth-child(1),
.animate-section7 .game-card:nth-child(1),
.animate-section8 .game-card:nth-child(1) {
  animation: cardSpringUp 0.75s 0.1s var(--ease-out-expo) forwards;
}

.animate-section2 .game-card:nth-child(2),
.animate-section3 .game-card:nth-child(2),
.animate-section4 .game-card:nth-child(2),
.animate-section5 .game-card:nth-child(2),
.animate-section6 .game-card:nth-child(2),
.animate-section7 .game-card:nth-child(2),
.animate-section8 .game-card:nth-child(2) {
  animation: cardSpringUp 0.75s 0.22s var(--ease-out-expo) forwards;
}

.animate-section2 .game-card:nth-child(3),
.animate-section3 .game-card:nth-child(3),
.animate-section4 .game-card:nth-child(3),
.animate-section5 .game-card:nth-child(3),
.animate-section6 .game-card:nth-child(3),
.animate-section7 .game-card:nth-child(3),
.animate-section8 .game-card:nth-child(3) {
  animation: cardSpringUp 0.75s 0.34s var(--ease-out-expo) forwards;
}

.animate-section2 .game-card:nth-child(4),
.animate-section3 .game-card:nth-child(4),
.animate-section4 .game-card:nth-child(4),
.animate-section5 .game-card:nth-child(4),
.animate-section6 .game-card:nth-child(4),
.animate-section7 .game-card:nth-child(4),
.animate-section8 .game-card:nth-child(4) {
  animation: cardSpringUp 0.75s 0.46s var(--ease-out-expo) forwards;
}

.game-card .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out-expo);
}

.game-card:hover .card-img {
  transform: scale(1.12);
}

.game-card .card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28), transparent 60%);
}

.game-card:hover .card-glare {
  opacity: 1;
}

.card-top-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-genre {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(9, 13, 22, 0.78);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tag-rating {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--accent-gradient);
  color: #ffffff;
}

.card-Overlay-info {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  padding: 28px 20px 20px;
  background: linear-gradient(to top, rgba(6, 9, 17, 0.96) 0%, rgba(6, 9, 17, 0.78) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.4s var(--ease-out-expo);
}

.card-game-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  transform: translateZ(20px);
}

.card-game-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  gap: 8px;
  opacity: 0.92;
  transform: translateY(6px);
  transition: all 0.35s var(--ease-out-expo);
}

.game-card:hover .card-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn-card-action {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-card-action.pay {
  background: var(--accent-gradient);
  color: #ffffff;
}

.btn-card-action.site {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-card-action:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   PUBLISHER FOOTER (AUTO-HEIGHT SECTION 9 & STATIC PAGES)
   -------------------------------------------------------------------------- */
.section.fp-auto-height,
.fp-auto-height.fp-section,
.fp-auto-height .fp-slide,
.fp-auto-height .fp-tableCell {
  height: auto !important;
}

.section-footer {
  background: #050811;
  overflow: visible;
}

.publisher-footer {
  position: relative;
  width: 100%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(237, 88, 11, 0.12) 0%, rgba(193, 22, 43, 0.05) 45%, transparent 75%),
    linear-gradient(180deg, rgba(11, 16, 28, 0.98) 0%, #050811 100%);
  border-top: 1px solid rgba(237, 88, 11, 0.28);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.75);
  z-index: 20;
}

.footer-glow-line {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(237, 88, 11, 0.85) 30%,
    #ff7a2f 50%,
    rgba(193, 22, 43, 0.85) 70%,
    transparent 95%
  );
  box-shadow: 0 0 18px rgba(237, 88, 11, 0.65);
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 40px 24px 84px;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1.2fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Column 1: Brand & 18+ Warning */
.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 16px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.footer-brand-logo:hover {
  border-color: rgba(237, 88, 11, 0.55);
  transform: translateY(-2px);
}

.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.footer-brand-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.age-warning-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(237, 88, 11, 0.08);
  border: 1px solid rgba(237, 88, 11, 0.25);
}

.age-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(193, 22, 43, 0.4);
}

.age-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Column 2: Legal Info */
.footer-col-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.legal-company-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.legal-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legal-info-list li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
}

.legal-info-list .legal-label {
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.legal-info-list strong {
  color: #ffffff;
  font-weight: 700;
}

/* Column 3: Payment & Policy Links + Back to Top */
.footer-col-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.footer-col-header-row .footer-col-title {
  margin-bottom: 0;
}

.btn-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-back-to-top:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 88, 11, 0.4);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s ease;
}

.footer-nav-link:hover {
  color: #ffffff;
  border-color: rgba(237, 88, 11, 0.5);
  background: rgba(237, 88, 11, 0.12);
  transform: translateX(3px);
}

.footer-nav-link.highlight {
  color: #ffffff;
  font-weight: 700;
  background: rgba(237, 88, 11, 0.16);
  border-color: rgba(237, 88, 11, 0.45);
}

.footer-nav-link.highlight:hover {
  background: var(--accent-gradient);
  border-color: transparent;
}

/* Bottom Bar */
.footer-bottom-bar {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-copy strong {
  color: var(--text-secondary);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* --------------------------------------------------------------------------
   KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes heroRevealUp {
  from {
    opacity: 0;
    transform: translate3d(0, 48px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroGirlEntrance {
  from {
    opacity: 0;
    transform: translate3d(60px, -40px, 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes slashSlideIn {
  from {
    opacity: 0;
    transform: translate3d(120px, -120px, 0);
  }
  to {
    opacity: 0.85;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes floatBreathing {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@keyframes floatBreathingSlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-8px, -10px, 0) scale(1.015);
  }
}

@keyframes headerSlideRight {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cardSpringUp {
  from {
    opacity: 0;
    transform: translate3d(0, 55px, 0) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes scrollWheelAnim {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (LAPTOP, TABLET & MOBILE)
   -------------------------------------------------------------------------- */

/* 1. Laptop & Màn hình chiều cao thấp (1366x768, 1280x720) */
@media (max-height: 780px) and (min-width: 1101px) {
  #nav {
    gap: 7px;
  }
  #nav li {
    padding: 4px 9px;
  }
  #nav li .nav-num {
    font-size: 14px;
  }
  .showcase-container {
    padding: 72px 36px 24px 80px;
  }
  .section-header-bar {
    margin-bottom: 14px;
  }
  .region-number {
    font-size: 42px;
  }
  .region-text-wrap .region-heading {
    font-size: 24px;
  }
  .games-grid {
    height: clamp(300px, 58vh, 410px);
    gap: 16px;
  }
  .card-Overlay-info {
    padding: 20px 16px 14px;
  }
  .card-game-title {
    font-size: 17px;
  }
  .card-game-desc {
    margin-bottom: 10px;
  }
}

/* 2. Laptop vừa (1101px - 1366px) */
@media (max-width: 1366px) and (min-width: 1101px) {
  .hero-stage {
    padding: 0 40px 0 80px;
  }
  .hero-info {
    max-width: 500px;
  }
  .hero-art-layers {
    right: -80px;
    width: 740px;
  }
  .layer-girl {
    height: 86vh;
  }
  .layer-qilin {
    width: 380px;
    right: 240px;
  }
}

/* 3. Tablet (768px - 1100px) */
@media (max-width: 1100px) {
  .top-header-bar {
    padding: 0 20px;
    height: 64px;
  }
  .brand-logo {
    padding: 6px 16px;
  }
  .brand-logo .logo-img {
    height: 30px;
  }
  #nav {
    top: auto;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 6px 10px;
    gap: 6px;
    border-radius: 999px;
    background: rgba(9, 13, 22, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
  #nav li {
    padding: 5px 10px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  #nav li.active {
    background: var(--accent-gradient);
    border-color: rgba(255, 255, 255, 0.3);
  }
  #nav li .nav-label,
  #nav li .nav-bar {
    display: none !important;
  }
  .hero-stage {
    padding: 84px 28px 86px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }
  .hero-info {
    max-width: 560px;
    background: linear-gradient(135deg, rgba(9, 13, 22, 0.85) 0%, rgba(15, 23, 42, 0.72) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 28px;
    border-radius: 22px;
  }
  .hero-actions {
    margin-bottom: 0;
  }
  .hero-art-layers {
    width: 100%;
    right: 0;
    top: 40px;
    opacity: 0.92;
  }
  .layer-girl {
    height: 68vh;
    right: -10px;
    bottom: 6%;
  }
  .layer-qilin {
    width: 310px;
    right: 210px;
    bottom: 10%;
  }
  .scroll-down-cue {
    display: none;
  }
  .showcase-container {
    padding: 72px 24px 76px;
  }
  .section-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 14px;
  }
  .region-number {
    font-size: 42px;
  }
  .region-text-wrap .region-heading {
    font-size: 24px;
  }
  .region-subtitle {
    font-size: 12.5px;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: calc(100vh - 235px);
    max-height: 540px;
    gap: 14px;
  }
  .card-Overlay-info {
    padding: 16px 14px 12px;
  }
  .card-game-title {
    font-size: 16.5px;
    margin-bottom: 4px;
  }
  .card-game-desc {
    font-size: 12px;
    -webkit-line-clamp: 1;
    margin-bottom: 8px;
  }
  .card-actions {
    opacity: 1;
    transform: translateY(0);
  }
  .btn-card-action {
    padding: 7px 10px;
    font-size: 11.5px;
  }
  .site-footer-inner {
    padding: 28px 24px 86px;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* 4. Điện thoại Di động (<= 767px) - Horizontal Snap Carousel */
@media (max-width: 767px) {
  .top-header-bar {
    height: 56px;
    padding: 0 12px;
  }
  .brand-logo {
    padding: 5px 12px;
  }
  .brand-logo .logo-img {
    height: 24px;
  }
  .top-quick-bar {
    gap: 6px;
  }
  .quick-btn {
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .lang-btn {
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px;
  }
  .lang-btn-globe {
    font-size: 11.5px;
  }

  /* Thanh Dock #nav gọn ở đáy màn hình điện thoại */
  #nav {
    bottom: 10px;
    padding: 4px 6px;
    gap: 3px;
    max-width: calc(100vw - 16px);
  }
  #nav li {
    padding: 4px 6px;
    min-width: 30px;
    justify-content: center;
  }
  #nav li .nav-num {
    font-size: 12.5px;
    min-width: auto;
  }

  /* Màn 1: Hero 2.5D trên Điện thoại */
  .hero-stage {
    padding: 62px 14px 68px;
    justify-content: flex-end;
    align-items: center;
  }
  .hero-art-layers {
    width: 100%;
    height: 58%;
    top: 48px;
    right: 0;
    left: 0;
    opacity: 1;
  }
  .layer-slash-big,
  .layer-slash-small {
    width: 100%;
    right: 0;
  }
  .layer-girl {
    height: 48vh;
    max-height: 370px;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 0;
  }
  .layer-qilin {
    width: 200px;
    left: -70px;
    right: 0;
    margin: 0 auto;
    bottom: 8%;
  }
  .hero-info {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 18px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.78) 0%, rgba(9, 13, 22, 0.95) 100%);
  }
  .hero-badge {
    font-size: 10px;
    padding: 5px 12px;
    margin-bottom: 10px;
    letter-spacing: 0.8px;
  }
  .hero-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 14px;
  }
  .hero-actions {
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }
  .btn-hero-primary,
  .btn-hero-outline {
    flex: 1;
    justify-content: center;
    padding: 11px 10px;
    font-size: 12.5px;
    border-radius: 11px;
    white-space: nowrap;
  }

  /* Màn 2 -> 8: Bố cục Vuốt Ngang Từng Thẻ (Horizontal Snap Carousel) */
  .showcase-container {
    padding: 62px 0 60px;
    justify-content: center;
  }
  .section-header-bar {
    padding: 0 16px;
    margin-bottom: 10px;
    gap: 2px;
  }
  .region-title-group {
    gap: 10px;
  }
  .region-number {
    font-size: 34px;
  }
  .region-text-wrap .region-tag {
    font-size: 9.5px;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .region-text-wrap .region-heading {
    font-size: 19px;
  }
  .region-subtitle {
    font-size: 11.5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .games-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    grid-template-rows: none;
    width: 100%;
    height: calc(100vh - 225px);
    min-height: 290px;
    max-height: 430px;
    padding: 4px 11vw 8px;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
  }
  .games-grid::-webkit-scrollbar {
    display: none;
  }

  .game-card {
    flex: 0 0 78vw;
    max-width: 300px;
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    border-radius: 18px;
  }
  .card-top-tags {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .card-Overlay-info {
    padding: 22px 16px 14px;
  }
  .card-game-title {
    font-size: 17px;
    margin-bottom: 5px;
  }
  .card-game-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
    margin-bottom: 12px;
  }
  .btn-card-action {
    padding: 8px 10px;
    font-size: 12px;
  }

  /* Thanh Chấm Tròn & Chỉ dẫn Vuốt Ngang dưới Carousel */
  .mobile-carousel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px 0;
  }
  .mobile-carousel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .carousel-dot.active {
    width: 22px;
    background: var(--accent-gradient);
    box-shadow: 0 0 10px rgba(237, 88, 11, 0.6);
  }
  .carousel-swipe-hint {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
  }

  /* Publisher Footer trên Điện thoại */
  .site-footer-inner {
    padding: 24px 16px 76px;
  }
  .footer-main-grid {
    gap: 18px;
    padding-bottom: 18px;
  }
  .footer-brand-logo {
    width: 100%;
    margin-bottom: 10px;
  }
  .footer-logo-img {
    height: 36px;
  }
  .legal-company-name {
    font-size: 13.5px;
  }
  .legal-info-list li {
    font-size: 11.5px;
    flex-direction: column;
    gap: 1px;
  }
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 8px;
  }
  .footer-nav-link {
    font-size: 11.5px;
    padding: 7px 10px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 14px;
  }
  .footer-copy {
    font-size: 11px;
  }
}

/* 5. Điện thoại màn hình rất nhỏ (<= 380px, iPhone SE / Mini) */
@media (max-width: 380px) {
  .quick-btn {
    padding: 5px 7px;
    font-size: 10px;
  }
  .lang-btn {
    padding: 5px 8px;
    font-size: 10px;
  }
  #nav li {
    padding: 3px 5px;
    min-width: 27px;
  }
  #nav li .nav-num {
    font-size: 11.5px;
  }
  .layer-girl {
    height: 42vh;
  }
  .hero-title {
    font-size: 22px;
  }
  .games-grid {
    height: calc(100vh - 215px);
    min-height: 260px;
  }
}

/* ==========================================================================
   13. TRANG TÀI LIỆU / CHÍNH SÁCH / HƯỚNG DẪN (STATIC DOCUMENT PAGES)
   ========================================================================== */
body.doc-page-body,
html:has(body.doc-page-body) {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
}

.doc-hero-section {
  position: relative;
  min-height: calc(100vh - 220px);
  height: auto !important;
  overflow: hidden;
}

.doc-stage {
  position: relative;
  z-index: 10;
  max-width: 1120px;
  margin: 0 auto;
  padding: 100px 32px 64px;
}

.doc-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(9, 13, 22, 0.72);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.doc-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.doc-subnav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.doc-subnav-link.active {
  color: #ffffff;
  background: var(--accent-gradient);
  box-shadow: 0 4px 16px rgba(237, 88, 11, 0.35);
}

.doc-glass-card {
  padding: 44px 48px;
  border-radius: 24px;
  background: rgba(11, 16, 28, 0.86);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--card-shadow);
  animation: heroRevealUp 0.7s var(--ease-out-expo) forwards;
}

.doc-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.doc-header .hero-title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 10px;
}

.doc-meta-line {
  font-size: 13.5px;
  color: var(--text-muted);
}

.doc-article {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.8;
}

.doc-article h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 30px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--accent-primary);
  line-height: 1.4;
}

.doc-article h2:first-child {
  margin-top: 0;
}

.doc-article h3 {
  font-size: 16px;
  font-weight: 700;
  color: #FF9E66;
  margin: 20px 0 8px;
  line-height: 1.45;
}

.doc-article p {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.doc-article ul,
.doc-article ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.doc-article li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.doc-article strong {
  color: var(--text-primary);
  font-weight: 600;
}

.doc-article a {
  color: #FF8547;
  text-decoration: none;
  border-bottom: 1px dashed rgba(237, 88, 11, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.doc-article a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.doc-info-box {
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(237, 88, 11, 0.1) 0%, rgba(193, 22, 43, 0.08) 100%);
  border: 1px solid rgba(237, 88, 11, 0.28);
  margin: 22px 0;
}

.doc-info-box p:last-child,
.doc-info-box ul:last-child {
  margin-bottom: 0;
}

/* Lưới các bước Hướng Dẫn Nạp */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0 28px;
}

.guide-step-card {
  position: relative;
  padding: 24px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.guide-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(237, 88, 11, 0.45);
}

.guide-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.guide-step-card h3 {
  font-size: 17.5px;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.guide-step-card p {
  font-size: 13.8px;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 16px 0 26px;
}

.payment-method-item {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.payment-method-item strong {
  display: block;
  font-size: 14.5px;
  color: #FF9E66;
  margin-bottom: 6px;
}

.payment-method-item span {
  display: block;
  font-size: 12.8px;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (max-width: 991px) {
  .doc-stage {
    padding: 84px 18px 44px;
  }
  .doc-glass-card {
    padding: 28px 24px;
    border-radius: 20px;
  }
  .guide-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .doc-stage {
    padding: 74px 14px 36px;
  }
  .doc-subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px;
    gap: 6px;
  }
  .doc-subnav::-webkit-scrollbar {
    display: none;
  }
  .doc-subnav-link {
    padding: 7px 12px;
    font-size: 12px;
  }
  .doc-glass-card {
    padding: 22px 16px;
    border-radius: 18px;
  }
  .doc-article {
    font-size: 13.8px;
  }
  .doc-article h2 {
    font-size: 17px;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}