/* ==========================================================================
   LANDING PAGE CỔNG NẠP GAME QUỐC DÂN - PHONG CÁCH VOUCHER / TOP-UP HUB
   Thiết kế chuẩn UI/UX thực tế, hiện đại, giàu tính chuyển đổi (CRO)
   ========================================================================== */

:root {
  --bg-page: #080c16;
  --bg-nav: rgba(11, 16, 28, 0.85);
  --bg-card: #101726;
  --bg-card-hover: #141e32;
  --bg-card-sub: #0b111e;
  
  --primary: #e11d48;
  --primary-gradient: linear-gradient(135deg, #ff2a5f 0%, #e11d48 50%, #be123c 100%);
  --primary-glow: rgba(225, 29, 72, 0.4);

  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --green: #10b981;
  --blue: #38bdf8;
  
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(255, 255, 255, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Montserrat', var(--font-main);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(225, 29, 72, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 80% 50%, rgba(56, 189, 248, 0.08), transparent);
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Ambient 3D Depth Lighting Orbs --- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(110px);
  opacity: 0.18;
}

.glow-top {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #e11d48, transparent 70%);
  top: -60px;
  right: -80px;
  animation: orbDrift 10s ease-in-out infinite alternate;
}

.glow-middle {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #0284c7, transparent 70%);
  top: 40%;
  left: -100px;
  animation: orbDrift 12s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ==========================================================================
   1. TOP NAVIGATION BAR (CỔNG NẠP CHÍNH HÃNG)
   ========================================================================== */
.top-nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.65rem 1rem;
}

.nav-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: default;
  user-select: none;
}

.brand-logo-img-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(225, 29, 72, 0.45));
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-logo:hover .brand-logo-img-wrap {
  transform: scale(1.1) rotate(-4deg);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1.1;
  color: #ffffff;
}

.brand-title span {
  color: var(--gold-light);
}

.brand-badge {
  font-size: 0.64rem;
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  color: #34d399;
}

.pulse-green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: dotBlink 1.5s infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ==========================================================================
   MAIN PAGE CONTAINER
   ========================================================================== */
.page-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ==========================================================================
   2. HERO BANNER CAROUSEL (SỰ KIỆN X5: KIM CƯƠNG -> QUÂN HUY -> FV)
   ========================================================================== */
.hero-banner-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #090d16;
  border: 1.5px solid rgba(225, 29, 72, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 
              0 0 25px rgba(225, 29, 72, 0.25),
              inset 0 0 15px rgba(0, 0, 0, 0.6);
  user-select: none;
}

/* Shimmer animated top border */
.hero-slider-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #e11d48, #38bdf8, #f59e0b);
  background-size: 300% 100%;
  animation: shimmerBorder 4s linear infinite;
  z-index: 10;
}

@keyframes shimmerBorder {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.55s;
  display: block;
  text-decoration: none;
  cursor: default;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.hero-slide:hover .hero-banner-img {
  transform: scale(1.02);
}

/* Slider Nav Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(7, 11, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  z-index: 6;
  transition: all 0.25s ease;
  opacity: 0.75;
}

.slider-arrow:hover {
  opacity: 1;
  background: rgba(225, 29, 72, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.6);
}

.prev-arrow {
  left: 8px;
}

.next-arrow {
  right: 8px;
}

/* Slider Pagination Dots */
.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 6;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot-btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

.dot-btn.active {
  width: 22px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f59e0b, #e11d48);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

/* ==========================================================================
   LIVE REALTIME TRANSACTION CARD (NOTIFICATION TOAST STYLE)
   ========================================================================== */
.live-tx-card {
  position: relative;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(10, 15, 29, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 
              0 0 16px rgba(225, 29, 72, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Dynamic Left Accent Glow Indicator */
.live-tx-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3.5px;
  background: linear-gradient(180deg, #10b981, #f59e0b);
  border-radius: 4px 0 0 4px;
}

/* Light Sweep effect across the card on each transaction update */
.live-tx-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.live-tx-card.shimmer-active::after {
  animation: txCardSweep 0.75s ease-out;
}

@keyframes txCardSweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

.tx-card-left {
  flex-shrink: 0;
}

.tx-avatar-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
  transition: all 0.3s ease;
}

.tx-game-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tx-live-pulse {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0b101b;
  box-shadow: 0 0 8px #10b981;
  animation: dotBlink 1.4s infinite;
}

.tx-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tx-card-body.transitioning {
  opacity: 0;
  transform: translateY(-4px);
}

.tx-row-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  line-height: 1.25;
}

.tx-user-name {
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.tx-action-text {
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
}

.tx-time-ago {
  font-size: 0.66rem;
  color: #94a3b8;
  margin-left: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.tx-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.tx-reward-badge {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Themed reward badges for each game */
.tx-reward-badge.badge-kc {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.25));
  border-color: rgba(56, 189, 248, 0.6);
  color: #7dd3fc;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.tx-reward-badge.badge-qh {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.25));
  border-color: rgba(168, 85, 247, 0.6);
  color: #c084fc;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.tx-reward-badge.badge-fv {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(34, 197, 94, 0.25));
  border-color: rgba(234, 179, 8, 0.6);
  color: #fde047;
  text-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

.tx-status-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

/* Section Title */
.section-divider-title {
  text-align: center;
  position: relative;
  margin: 0.2rem 0;
}

.section-divider-title span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  background: var(--bg-page);
  padding: 0 0.85rem;
  position: relative;
  z-index: 1;
}

.section-divider-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
  z-index: 0;
}

/* ==========================================================================
   3. GAME VOUCHER TICKETS (CỰC KỲ BẮT MẮT, ĐẬM CHẤT GAMING, HIỆU ỨNG 3D ĐỈNH CAO)
   ========================================================================== */
.game-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.game-ticket-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

/* Shimmer metallic edge on top */
.game-ticket-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: 3;
}

/* Light sweep reflex across the card on hover */
.game-ticket-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 2;
}

.game-ticket-card:hover::after {
  left: 200%;
}

/* DEDICATED BLURRED ARTWORK LAYER (LÀM MỜ NỀN NGHỆ THUẬT, NỔI BẬT NỘI DUNG) */
.card-bg-art {
  position: absolute;
  inset: -15px;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  filter: blur(10px) brightness(0.35) saturate(1.1);
  opacity: 0.42;
  pointer-events: none;
  z-index: 1;
  transition: all 0.4s ease;
}

.game-ticket-card:hover .card-bg-art {
  filter: blur(8px) brightness(0.42) saturate(1.2);
  opacity: 0.52;
  transform: scale(1.02);
}

.bg-art-lq { background-image: url('assets/bg-card-lien-quan.jpg'); }
.bg-art-fc { background-image: url('assets/bg-card-fc-mobile.jpg'); }
.bg-art-ff { background-image: url('assets/bg-card-free-fire.jpg'); }

/* CARD 1: LIÊN QUÂN MOBILE */
.card-lq {
  background: linear-gradient(135deg, #090e1c 0%, #060914 100%);
  border-color: rgba(217, 70, 239, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(217, 70, 239, 0.15);
}
.card-lq:hover {
  border-color: rgba(217, 70, 239, 0.75);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75), 0 0 32px rgba(217, 70, 239, 0.35);
  transform: translateY(-4px);
}

/* CARD 2: FC MOBILE */
.card-fc {
  background: linear-gradient(135deg, #071510 0%, #040d0a 100%);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(16, 185, 129, 0.15);
}
.card-fc:hover {
  border-color: rgba(16, 185, 129, 0.75);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75), 0 0 32px rgba(16, 185, 129, 0.35);
  transform: translateY(-4px);
}

/* CARD 3: FREE FIRE */
.card-ff {
  background: linear-gradient(135deg, #160c0f 0%, #0d0709 100%);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(245, 158, 11, 0.15);
}
.card-ff:hover {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75), 0 0 32px rgba(245, 158, 11, 0.35);
  transform: translateY(-4px);
}

/* CARD 4: OTHER GAMES */
.card-other {
  background: linear-gradient(145deg, #131428 0%, #0e0e1c 100%);
  border-color: rgba(165, 180, 252, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.12);
}
.card-other:hover {
  border-color: rgba(165, 180, 252, 0.6);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75), 0 0 28px rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

/* Floating App Icon 3D Animation */
.animate-float {
  animation: iconBobbing 3.2s ease-in-out infinite;
}
.delay-1 { animation-delay: 1.1s; }
.delay-2 { animation-delay: 2.2s; }

@keyframes iconBobbing {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  }
  50% {
    transform: translateY(-4px);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.65));
  }
}

/* Avatar Frame 3D Glow */
.avatar-frame {
  flex-shrink: 0;
  position: relative;
}

.game-icon-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: block;
}

.icon-fallback {
  background: linear-gradient(135deg, #3730a3, #4f46e5);
  color: #c7d2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Game Meta */
.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.ticket-game-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.ticket-game-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.game-heading {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.game-meta-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.meta-tag-item {
  font-size: 0.68rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.meta-tag-item.tag-garena {
  border-color: rgba(225, 29, 72, 0.35);
  background: rgba(225, 29, 72, 0.12);
}

.meta-tag-item.tag-ea {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

/* Badge "ƯU ĐÃI" Phát Sáng */
.ticket-badge-box {
  flex-shrink: 0;
}

.badge-uudai {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.26rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: badgeBreath 2.6s infinite ease-in-out;
}

@keyframes badgeBreath {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.06);
    filter: brightness(1.15);
  }
}

.badge-red {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
}

.badge-green {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.badge-gold {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   LIVE REALTIME TOP-UP COUNTER STRIP (ĐANG CÓ XXX NGƯỜI NẠP TRỰC TIẾP - THU NHỎ VỪA VẶN)
   ========================================================================== */
.ticket-live-counter-strip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.live-strip-lq {
  border-color: rgba(217, 70, 239, 0.3);
  background: linear-gradient(90deg, rgba(20, 15, 35, 0.85) 0%, rgba(7, 11, 20, 0.82) 100%);
}

.live-strip-fc {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(90deg, rgba(8, 28, 20, 0.85) 0%, rgba(7, 11, 20, 0.82) 100%);
}

.live-strip-ff {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(90deg, rgba(30, 18, 12, 0.85) 0%, rgba(7, 11, 20, 0.82) 100%);
}

.counter-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: dotBlink 1.2s infinite;
  flex-shrink: 0;
}

.counter-text-wrap {
  flex: 1;
  font-size: 0.67rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.live-count-val {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0 0.22rem;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

.live-count-val.count-pop {
  transform: scale(1.16);
  color: #34d399;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.live-fire-tag {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  color: #fca5a5;
  background: rgba(225, 29, 72, 0.18);
  border: 1px solid rgba(225, 29, 72, 0.35);
  padding: 0.1rem 0.38rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  letter-spacing: 0.3px;
}

/* Voucher Ticket Divider with Cutout Notches */
.ticket-divider {
  position: relative;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 6px, transparent 6px, transparent 12px);
  margin: 0.1rem 0;
  z-index: 2;
}

/* ==========================================================================
   TẦNG 2: REWARD PILL + NÚT NẠP NGAY (HOÀN HẢO TỪNG CHI TIẾT)
   ========================================================================== */
.ticket-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.ticket-reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  flex: 1;
  min-width: 0;
  background: rgba(7, 11, 20, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.pill-lq {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(14, 26, 50, 0.9) 0%, rgba(7, 11, 20, 0.9) 100%);
}

.pill-fc {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(135deg, rgba(8, 30, 22, 0.9) 0%, rgba(7, 11, 20, 0.9) 100%);
}

.pill-ff {
  border-color: rgba(96, 165, 250, 0.4);
  background: linear-gradient(135deg, rgba(20, 25, 45, 0.9) 0%, rgba(7, 11, 20, 0.9) 100%);
}

.pill-other {
  border-color: rgba(165, 180, 252, 0.3);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(7, 11, 20, 0.9) 100%);
}

.currency-icon {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  animation: pulseCurrency 2s ease-in-out infinite;
}

@keyframes pulseCurrency {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.4)); }
}

.reward-txt {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-qh {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.text-fv {
  color: #34d399;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.text-kc {
  color: #60a5fa;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

/* NÚT CTA: NẠP NGAY (RỰC RỠ, HÀO QUANG NHỊP THỞ, TIA SÁNG QUÉT) */
.ticket-cta-btn {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 40px;
  min-width: 98px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary-glow {
  background: linear-gradient(135deg, #e11d48 0%, #ff2d55 50%, #be123c 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.5), 0 0 12px rgba(225, 29, 72, 0.6);
  animation: ctaHaloPulse 2s infinite;
}

/* White gleam sweep across NẠP NGAY button */
.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-25deg);
  animation: btnLightSweep 2.5s infinite;
}

@keyframes btnLightSweep {
  0% { left: -120%; }
  35%, 100% { left: 220%; }
}

.btn-primary-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.7), 0 0 20px rgba(225, 29, 72, 0.8);
  border-color: #ffffff;
}

.btn-primary-glow:active {
  transform: scale(0.96);
}

.arrow-shift {
  display: inline-block;
  animation: arrowBounce 1.4s infinite ease-in-out;
}

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

.btn-secondary-glow {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}
.btn-secondary-glow:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

@keyframes ctaHaloPulse {
  0% {
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.45), 0 0 0 0 rgba(225, 29, 72, 0.6);
  }
  70% {
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.45), 0 0 0 8px rgba(225, 29, 72, 0);
  }
  100% {
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.45), 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

/* Tia sáng quét lướt qua nút */
.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: buttonLightSweep 2.8s ease-in-out infinite;
}

@keyframes buttonLightSweep {
  0% { left: -120%; }
  35% { left: 180%; }
  100% { left: 180%; }
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, #ff416c 0%, #ff2a5f 100%);
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.65);
}

.btn-outline-clean {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-sub);
}

.btn-outline-clean:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

/* Mũi tên nhúc nhích */
.arrow-shift {
  transition: transform 0.2s ease;
  animation: arrowShiftNudge 1.3s ease-in-out infinite;
}

@keyframes arrowShiftNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ==========================================================================
   4. TRUST & SECURITY HIGHLIGHTS (CAM KẾT & THANH TOÁN CHÍNH HÃNG)
   ========================================================================== */
.trust-security-section {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.5rem 0.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.trust-icon {
  font-size: 1.15rem;
}

.trust-info strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

.trust-info span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.payment-methods-strip {
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-title {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.payment-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pay-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   5. SITE FOOTER
   ========================================================================== */
.site-footer {
  text-align: center;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-copy {
  font-size: 0.74rem;
  color: var(--text-sub);
}

.footer-copy strong {
  color: #ffffff;
}

.footer-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* Utility Colors & Animations */
.text-yellow { color: var(--gold-light); }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }

.animate-spin-slow {
  animation: slowSpin 8s linear infinite;
}

@keyframes slowSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Tweaks */
@media (max-width: 480px) {
  .page-container {
    padding: 0.85rem 0.75rem 2rem;
  }

  .hero-headline {
    font-size: 1.3rem;
  }

  .game-heading {
    font-size: 0.94rem;
  }

  .ticket-cta-btn {
    min-width: 96px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .trust-info strong {
    font-size: 0.7rem;
  }

  .trust-info span {
    font-size: 0.62rem;
  }
}
