/**
 * ====================================================================
 * KEYHACK CLASSIC THEME - COMPLETE DESIGN SYSTEM
 * Inspired by: https://keyhack.shop/classic/
 * Cyber Dark Gaming Aesthetic, Neon Accents, Mobile-First
 * ====================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Signika:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-main: #050505;
  --bg-surface: #0b0c0f;
  --bg-card: #111216;
  --bg-card-hover: #16181f;
  --bg-card-subtle: #191c24;
  --border-color: #24262c;
  --border-light: rgba(255, 255, 255, 0.08);

  /* Neon Accents */
  --neon-cyan: #35bdf5;
  --neon-cyan-glow: rgba(53, 189, 245, 0.35);
  --neon-purple: #8b5cf6;
  --neon-purple-glow: rgba(139, 92, 246, 0.35);
  --neon-pink: #f04f70;
  --neon-pink-glow: rgba(240, 79, 112, 0.35);
  --neon-green: #39d98a;
  --neon-green-glow: rgba(57, 217, 138, 0.35);
  --neon-gold: #f59e0b;
  --neon-gold-glow: rgba(245, 158, 11, 0.35);

  /* Text */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-white: #ffffff;

  /* Typography */
  --font-gaming: 'Signika', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(53, 189, 245, 0.25);

  /* Layout - Widescreen & Full Expansion */
  --header-height: 104px;
  --max-w: 1680px;
}

@media (min-width: 1720px) {
  :root {
    --max-w: 1860px;
  }
}

/* Base Reset */
body.theme-neon-contrast {
  --bg-main: #020204;
  --bg-surface: #07080c;
  --bg-card: #0e111a;
  --bg-card-hover: #161b2b;
  --border-color: #0284c7;
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.5);
  --neon-pink: #ff007f;
}

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

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

@media (min-width: 1440px) {
  html {
    font-size: 15.75px;
  }
}

@media (min-width: 1680px) {
  html {
    font-size: 16.5px;
  }
}

@media (min-width: 1920px) {
  html {
    font-size: 17px;
  }
}

body {
  font-family: var(--font-gaming);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* space for mobile bottom bar */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

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

ul, ol {
  list-style: none;
}

input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #2b2e38;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Background Atmosphere */
.cyber-bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cyber-bg-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(53, 189, 245, 0.08) 0%, transparent 70%);
  filter: blur(80px);
}

.cyber-bg-glow::after {
  content: '';
  position: absolute;
  top: 30%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
  filter: blur(90px);
}

/* Container */
.ks-container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .ks-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1440px) {
  .ks-container {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
  }
}

/* ====================================================================
   HEADER & TOP UTILITY BAR
   ==================================================================== */
.theme1-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.theme1-utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(36, 38, 44, 0.6);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .theme1-utility-bar {
    padding: 0.45rem 2rem;
  }
}

@media (min-width: 1440px) {
  .theme1-utility-bar {
    padding: 0.45rem 2.75rem;
  }
}

.theme1-utility-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.theme1-utility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}

.theme1-utility-link:hover {
  color: var(--neon-cyan);
}

.theme1-utility-link i {
  color: var(--neon-green);
  width: 14px;
  height: 14px;
}

.theme1-utility-hours {
  display: none;
}

@media (min-width: 768px) {
  .theme1-utility-hours {
    display: inline-block;
  }
}

.theme1-utility-hours strong {
  color: var(--text-primary);
}

.theme1-utility-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme1-top-action {
  color: var(--text-secondary);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.theme1-top-action:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.theme1-top-action i {
  width: 15px;
  height: 15px;
}

.theme1-top-action.has-badge b {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--neon-pink);
  color: white;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: var(--radius-full);
  line-height: 1;
}

.theme1-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  gap: 1.5rem;
}

.theme1-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .theme1-header-inner {
    padding: 0.85rem 2rem;
  }
}

@media (min-width: 1440px) {
  .theme1-header-inner {
    padding: 0.85rem 2.75rem;
  }
}

.theme1-icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  flex-shrink: 0;
}

.theme1-icon-button:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

@media (min-width: 1024px) {
  #theme1MenuToggle {
    display: none;
  }
}

/* Mobile Header Optimization - Absolutely No Overlaps */
@media (max-width: 768px) {
  .theme1-utility-bar {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
  }
  .theme1-utility-left {
    display: none;
  }
  .theme1-utility-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 0.4rem;
  }
  .theme1-top-action {
    padding: 0.2rem 0.4rem;
  }
  .theme1-top-action.theme1-language span {
    display: none;
  }
  
  .theme1-header-inner {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .theme1-header-left {
    gap: 0.45rem;
    min-width: 0;
    flex-shrink: 1;
  }
  .theme1-icon-button {
    width: 34px;
    height: 34px;
  }
  .theme1-brand {
    font-size: 1.05rem;
    gap: 0.45rem;
    min-width: 0;
  }
  .theme1-brand-symbol {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
  }
  .theme1-brand-symbol i {
    width: 16px;
    height: 16px;
  }
  .theme1-light-brand-copy small {
    display: none;
  }
  .theme1-header-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .theme1-user-badge {
    padding: 0.25rem 0.5rem;
    gap: 0.35rem;
    font-size: 0.76rem;
  }
  .theme1-user-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
  }
  .theme1-user-balance {
    font-size: 0.76rem;
  }
  .theme1-btn-topup-desktop span {
    display: none;
  }
  .theme1-btn-topup-desktop {
    padding: 0.35rem 0.55rem;
  }
  .theme1-btn-logout {
    padding: 0.35rem;
  }
  .theme1-btn-auth {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  .theme1-header-actions .theme1-btn-topup {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }
}

@media (max-width: 380px) {
  .theme1-brand span.theme1-light-brand-copy {
    font-size: 0.92rem;
  }
  .theme1-user-balance {
    display: none;
  }
}

/* Brand */
.theme1-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.theme1-brand-symbol {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border-radius: var(--radius-md);
  box-shadow: 0 0 15px var(--neon-cyan-glow);
  color: white;
}

.theme1-brand-symbol i {
  width: 20px;
  height: 20px;
}

.theme1-light-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--text-white);
}

.theme1-light-brand-copy small {
  font-size: 0.68rem;
  color: var(--neon-cyan);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Main Nav */
.theme1-main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .theme1-main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

.theme1-nav-link {
  padding: 0.5rem 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.theme1-nav-link:hover,
.theme1-nav-link.is-active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.theme1-nav-link.is-active {
  color: var(--neon-cyan);
  font-weight: 600;
}

.theme1-nav-link.has-badge {
  position: relative;
}

.theme1-nav-link .badge-hot {
  font-size: 0.65rem;
  background: var(--neon-pink);
  color: white;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

/* Header Actions */
.theme1-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme1-btn-topup {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(53, 189, 245, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s;
}

.theme1-btn-topup:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.theme1-btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s;
}

.theme1-btn-auth:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

/* User Profile Badge if logged in */
.theme1-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  cursor: pointer;
}

.theme1-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.theme1-user-balance {
  color: var(--neon-green);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ====================================================================
   BANNER HERO CAROUSEL
   ==================================================================== */
.ks-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(53, 189, 245, 0.08);
  border: 1px solid var(--border-color);
  aspect-ratio: 24 / 9;
  max-height: 520px;
  min-height: 380px;
}

@media (max-width: 640px) {
  .ks-hero {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    min-height: 220px;
  }
}

.ks-hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ks-hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: block;
}

.ks-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ks-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .ks-hero-overlay {
    padding: 3rem;
  }
}

.ks-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(53, 189, 245, 0.2);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  width: fit-content;
}

.ks-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .ks-hero-title {
    font-size: 2.35rem;
  }
}

.ks-hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ks-hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(17, 18, 22, 0.8);
  border: 1px solid var(--border-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.ks-hero-control:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.ks-hero-control.prev {
  left: 12px;
}

.ks-hero-control.next {
  right: 12px;
}

.ks-hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.ks-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
}

.ks-hero-dot.is-active {
  width: 26px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* ====================================================================
   SHORTCUTS GRID (8 ICON PHÍM TẮT TRÒN NEON)
   ==================================================================== */
.ks-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .ks-shortcuts {
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1440px) {
  .ks-shortcuts {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }
  .ks-shortcut {
    padding: 1.15rem 0.6rem;
  }
  .ks-shortcut-icon {
    width: 52px;
    height: 52px;
  }
  .ks-shortcut-icon i {
    width: 26px;
    height: 26px;
  }
  .ks-shortcut span:last-child {
    font-size: 0.88rem;
  }
}

.ks-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.85rem 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}

.ks-shortcut:hover {
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
  box-shadow: 0 6px 18px rgba(53, 189, 245, 0.15);
  background: var(--bg-card-hover);
}

.ks-shortcut-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.25s ease;
  position: relative;
}

.ks-shortcut-icon i {
  width: 22px;
  height: 22px;
}

/* 8 shortcut distinct colors */
.ks-shortcut:nth-child(1) .ks-shortcut-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.ks-shortcut:nth-child(2) .ks-shortcut-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.ks-shortcut:nth-child(3) .ks-shortcut-icon { background: linear-gradient(135deg, #10b981, #047857); }
.ks-shortcut:nth-child(4) .ks-shortcut-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ks-shortcut:nth-child(5) .ks-shortcut-icon { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.ks-shortcut:nth-child(6) .ks-shortcut-icon { background: linear-gradient(135deg, #ec4899, #be185d); }
.ks-shortcut:nth-child(7) .ks-shortcut-icon { background: linear-gradient(135deg, #6366f1, #4338ca); }
.ks-shortcut:nth-child(8) .ks-shortcut-icon { background: linear-gradient(135deg, #14b8a6, #0f766e); }

.ks-shortcut:hover .ks-shortcut-icon {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.ks-shortcut span:last-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

/* ====================================================================
   NOTICE TICKER (LOA PHÁT THANH MARQUEE)
   ==================================================================== */
.ks-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.ks-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-pink);
  flex-shrink: 0;
  animation: pulse-speaker 1.5s infinite;
}

@keyframes pulse-speaker {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.ks-notice-window {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ks-notice-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}

.ks-notice:hover .ks-notice-track {
  animation-play-state: paused;
}

.ks-notice-item {
  display: inline-block;
  margin-right: 2.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.ks-notice-item strong {
  color: var(--neon-cyan);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ====================================================================
   CATALOG / CATEGORY BLOCKS & PRODUCTS
   ==================================================================== */
.ks-catalog {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.ks-category-block {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.ks-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.ks-category-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ks-category-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.ks-category-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  display: block;
}

.ks-category-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ks-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--neon-cyan);
  font-size: 0.88rem;
  font-weight: 600;
}

.ks-link:hover {
  text-decoration: underline;
}

.ks-link i {
  width: 14px;
  height: 14px;
}

/* Products Grid */
.ks-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .ks-products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .ks-products {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 1440px) {
  .ks-products {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
  }
  .ks-product-body {
    padding: 1.15rem;
  }
  .ks-product-name {
    font-size: 1.05rem;
  }
  .ks-product-price {
    font-size: 1.18rem;
  }
}

@media (min-width: 1720px) {
  .ks-products {
    gap: 1.85rem;
  }
}

/* Product Card */
.ks-product {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.ks-product:hover {
  transform: translateY(-5px);
  border-color: rgba(53, 189, 245, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(53, 189, 245, 0.15);
  background: var(--bg-card-hover);
}

.ks-product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(circle at center, #1b202e 0%, #0d0f14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ks-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ks-product:hover .ks-product-media img {
  transform: scale(1.06);
}

.ks-product-status {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  letter-spacing: 0.3px;
}

.ks-product-status.is-instock {
  background: rgba(57, 217, 138, 0.85);
  color: #032b16;
}

.ks-product-status.is-outstock {
  background: rgba(239, 68, 68, 0.85);
  color: white;
}

.ks-product-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.ks-product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.ks-product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.ks-product-price small {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.ks-product-buy {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.ks-product:hover .ks-product-buy {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.ks-product-buy i {
  width: 14px;
  height: 14px;
}

/* ====================================================================
   TOP DEPOSIT & RECENT ACTIVITY
   ==================================================================== */
.ks-stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .ks-stats-row {
    grid-template-columns: 1.2fr 1fr;
    gap: 1.75rem;
  }
}

@media (min-width: 1440px) {
  .ks-stats-row {
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
  }
  .ks-stats-card {
    padding: 1.75rem;
  }
}

.ks-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ks-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.ks-stats-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.ks-stats-title i {
  color: var(--neon-gold);
}

/* Top 3 Podium */
.ks-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  margin-bottom: 1rem;
}

.ks-podium-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.ks-podium-crown {
  font-size: 1.25rem;
  margin-bottom: -6px;
  z-index: 2;
}

.ks-podium-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: #1f2330;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.ks-podium-item.rank-1 .ks-podium-avatar {
  width: 66px;
  height: 66px;
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.ks-podium-item.rank-2 .ks-podium-avatar {
  border-color: #94a3b8;
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.3);
}

.ks-podium-item.rank-3 .ks-podium-avatar {
  border-color: #d97706;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.3);
}

.ks-podium-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ks-podium-amount {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-green);
  font-family: var(--font-mono);
}

/* Rank table list */
.ks-rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ks-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.ks-rank-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ks-rank-num {
  font-weight: 700;
  color: var(--text-muted);
  width: 20px;
}

.ks-rank-user {
  font-weight: 600;
  color: var(--text-primary);
}

.ks-rank-val {
  font-weight: 700;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

/* Recent Transactions Feed */
.ks-tx-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 340px;
  overflow-y: auto;
}

.ks-tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.ks-tx-item:hover {
  border-color: rgba(53, 189, 245, 0.3);
  transform: translateX(3px);
}

.ks-tx-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ks-tx-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(53, 189, 245, 0.15);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ks-tx-icon i {
  width: 15px;
  height: 15px;
}

.ks-tx-meta {
  display: flex;
  flex-direction: column;
}

.ks-tx-user {
  font-weight: 700;
  color: var(--text-white);
}

.ks-tx-item-name {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ks-tx-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ks-tx-price {
  font-weight: 700;
  color: var(--neon-green);
  font-family: var(--font-mono);
}

.ks-tx-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}



/* ====================================================================
   PRODUCT DETAIL PAGE SPECIFIC (REF KEYHACK BUY PANEL & BROWSER BAR)
   ==================================================================== */
.ks-ref-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .ks-ref-product-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1440px) {
  .ks-ref-product-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
  }
}

.ks-ref-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ks-browser-bar {
  background: #0d0e12;
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ks-browser-dots {
  display: flex;
  gap: 6px;
}

.ks-browser-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.ks-browser-dots i:nth-child(1) { background: #ef4444; }
.ks-browser-dots i:nth-child(2) { background: #f59e0b; }
.ks-browser-dots i:nth-child(3) { background: #10b981; }

.ks-browser-url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #15171d;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ks-browser-url i {
  width: 12px;
  height: 12px;
  color: var(--neon-green);
}

.ks-browser-actions {
  display: flex;
  gap: 0.5rem;
  color: var(--text-muted);
}

.ks-browser-actions button:hover {
  color: var(--neon-pink);
}

.ks-ref-visual-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
}

.ks-ref-visual-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-ref-visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.3) 60%, transparent 100%);
}

.ks-ref-visual-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ks-ref-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ks-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ks-detail-badge-active {
  background: rgba(57, 217, 138, 0.2);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
}

.ks-detail-badge-auto {
  background: rgba(53, 189, 245, 0.2);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.ks-detail-badge-warranty {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid var(--neon-purple);
  color: var(--neon-purple);
}

.ks-ref-visual-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
}

/* Buy Panel */
.ks-ref-buy-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ks-ref-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.ks-ref-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ks-ref-panel-heading h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-top: 0.15rem;
}

.ks-ref-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-green);
}

.ks-ref-live-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green-glow);
  display: inline-block;
}

.ks-ref-package-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ks-ref-package-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.ks-ref-package-option:hover:not(:disabled) {
  border-color: rgba(53, 189, 245, 0.5);
  background: var(--bg-card-hover);
}

.ks-ref-package-option.is-selected {
  border-color: var(--neon-cyan);
  background: rgba(53, 189, 245, 0.08);
  box-shadow: 0 0 15px rgba(53, 189, 245, 0.15);
}

.ks-ref-package-option.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ks-ref-package-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ks-ref-package-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s;
}

.ks-ref-package-option.is-selected .ks-ref-package-check {
  border-color: var(--neon-cyan);
  background: var(--neon-cyan);
  color: #000;
}

.ks-ref-package-check i {
  width: 13px;
  height: 13px;
}

.ks-ref-package-copy {
  display: flex;
  flex-direction: column;
}

.ks-ref-package-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
}

.ks-ref-package-copy small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ks-ref-package-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ks-ref-package-price del {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ks-ref-package-price b {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

.ks-ref-package-stock {
  font-size: 0.7rem;
  color: var(--neon-green);
}

.ks-ref-package-option.is-disabled .ks-ref-package-stock {
  color: var(--neon-pink);
}

/* Quantity selector */
.ks-ref-form-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ks-ref-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ks-ref-quantity-row {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ks-ref-quantity-row button {
  width: 44px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: all 0.2s;
}

.ks-ref-quantity-row button:hover {
  background: var(--neon-cyan);
  color: #000;
}

.ks-ref-quantity-row input {
  flex: 1;
  height: 40px;
  background: transparent;
  border: none;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.ks-ref-quick-qty {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.ks-ref-quick-qty button {
  flex: 1;
  padding: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.ks-ref-quick-qty button:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* Coupon */
.ks-ref-coupon-row {
  display: flex;
  gap: 0.5rem;
}

.ks-ref-coupon-input {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 0.75rem;
  gap: 0.45rem;
}

.ks-ref-coupon-input i {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.ks-ref-coupon-input input {
  flex: 1;
  height: 38px;
  background: transparent;
  border: none;
  font-size: 0.85rem;
  outline: none;
}

.ks-ref-coupon-row button {
  padding: 0 1rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s;
}

.ks-ref-coupon-row button:hover {
  background: var(--neon-purple);
  color: white;
  border-color: var(--neon-purple);
}

/* Order Summary */
.ks-ref-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.ks-ref-summary > div {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.ks-ref-summary strong {
  color: var(--text-white);
  font-family: var(--font-mono);
}

.ks-ref-summary-total {
  border-top: 1px dashed var(--border-color);
  padding-top: 0.4rem;
  margin-top: 0.2rem;
  font-size: 0.98rem;
}

.ks-ref-summary-total strong {
  color: var(--neon-green) !important;
  font-size: 1.15rem;
}

.ks-ref-balance-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0 0.2rem;
}

.ks-ref-balance-note a {
  color: var(--neon-cyan);
  font-weight: 700;
}

.ks-ref-buy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--neon-cyan), #0284c7);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
  transition: all 0.25s ease;
  cursor: pointer;
}

.ks-ref-buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--neon-cyan-glow);
  filter: brightness(1.1);
}

.ks-ref-buy-trust {
  display: flex;
  justify-content: space-around;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
}

.ks-ref-buy-trust span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ks-ref-buy-trust i {
  color: var(--neon-cyan);
  width: 14px;
  height: 14px;
}

/* Specs & Details */
.ks-ref-spec-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.ks-ref-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .ks-ref-spec-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ks-ref-spec-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.ks-ref-spec-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(53, 189, 245, 0.15);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ks-ref-spec-icon.is-purple { background: rgba(139, 92, 246, 0.15); color: var(--neon-purple); }
.ks-ref-spec-icon.is-green { background: rgba(57, 217, 138, 0.15); color: var(--neon-green); }
.ks-ref-spec-icon.is-gold { background: rgba(245, 158, 11, 0.15); color: var(--neon-gold); }

.ks-ref-spec-card small {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.ks-ref-spec-card strong {
  font-size: 0.9rem;
  color: var(--text-white);
}

/* ====================================================================
   BANK / VIETQR & CARD TOP-UP STYLES
   ==================================================================== */
.ks-topup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .ks-topup-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 1.75rem;
  }
}

@media (min-width: 1440px) {
  .ks-topup-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 2.25rem;
  }
}

.ks-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: #ffffff;
  color: #000000;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
  text-align: center;
}

.ks-qr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 1rem 0;
  border: 1px solid #e5e7eb;
  padding: 6px;
  border-radius: 8px;
}

.ks-qr-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  text-align: left;
}

.ks-qr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e5e7eb;
}

.ks-qr-copy {
  color: #0284c7;
  font-weight: 700;
  cursor: pointer;
  margin-left: 0.5rem;
}

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

.ks-amount-btn {
  padding: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  transition: all 0.2s;
  cursor: pointer;
}

.ks-amount-btn:hover,
.ks-amount-btn.is-active {
  border-color: var(--neon-cyan);
  background: rgba(53, 189, 245, 0.1);
  color: var(--neon-cyan);
}

/* ====================================================================
   MODALS & POPUPS
   ==================================================================== */
.ks-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.ks-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.ks-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(53, 189, 245, 0.2);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.ks-modal.is-open .ks-modal-card {
  transform: scale(1);
}

.ks-modal-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
}

.ks-modal-body {
  padding: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 70vh;
  overflow-y: auto;
}

.ks-modal-actions {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-surface);
}

.ks-modal-actions button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}

.ks-modal-actions button:first-child {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.ks-modal-actions button:last-child {
  background: var(--neon-cyan);
  color: #000;
  font-weight: 700;
}

/* ====================================================================
   MOBILE NAVIGATION DRAWER & BACKDROP
   ==================================================================== */
#theme1DrawerBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

#theme1DrawerBackdrop.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#theme1MobileDrawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 290px;
  max-width: 85vw;
  height: 100%;
  background: #0b0c0f;
  border-right: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.85);
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  overflow-y: auto;
}

#theme1MobileDrawer.is-open {
  left: 0 !important;
  transform: translateX(0) !important;
}

.theme1-drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.theme1-drawer-nav-link:hover,
.theme1-drawer-nav-link.is-active {
  background: rgba(53, 189, 245, 0.1);
  color: var(--neon-cyan);
}

/* ====================================================================
   MOBILE BOTTOM NAVIGATION BAR (FIXED DƯỚI ĐÁY MÀN HÌNH ĐIỆN THOẠI)
   ==================================================================== */
.theme1-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(11, 12, 15, 0.95);
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0.25rem;
}

@media (min-width: 1024px) {
  .theme1-mobile-bar {
    display: none;
  }
}

.theme1-mobile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
  padding: 0.2rem 0.5rem;
}

.theme1-mobile-link i {
  width: 20px;
  height: 20px;
}

.theme1-mobile-link.is-active,
.theme1-mobile-link:hover {
  color: var(--neon-cyan);
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.theme1-footer {
  background: #08090b;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.theme1-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .theme1-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.theme1-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.theme1-footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.theme1-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--neon-green);
  font-weight: 600;
  font-size: 0.82rem;
}

.theme1-footer-status i {
  width: 16px;
  height: 16px;
}

.theme1-socials {
  display: flex;
  gap: 0.6rem;
}

.theme1-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme1-social-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

.theme1-footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.theme1-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.theme1-footer-links a:hover {
  color: var(--neon-cyan);
  padding-left: 4px;
}

.theme1-newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.theme1-newsletter input {
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.85rem;
}

.theme1-newsletter button {
  padding: 0.65rem;
  background: var(--neon-cyan);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.theme1-newsletter button:hover {
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.theme1-footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .theme1-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Toast Notification */
.ks-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.ks-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--neon-cyan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  color: white;
  animation: slide-in 0.3s ease forwards;
}

.ks-toast.is-success { border-left-color: var(--neon-green); }
.ks-toast.is-error { border-left-color: var(--neon-pink); }
.ks-toast.is-info { border-left-color: var(--neon-cyan); }

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
