/* ==========================================================================
   CÀY THUÊ CHIN WUWA - CORE STYLESHEET
   Aesthetic: Wuthering Waves (Spectro / Jinhsi Celestial Dragon Jué)
   Features: True Animated LED Borders, Glassmorphism, 100% Responsive Grid
   ========================================================================== */

/* --------------------------------------------------
   CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-dark: #070d17;
  --bg-card: rgba(14, 25, 44, 0.78);
  --bg-card-hover: rgba(20, 36, 62, 0.88);
  --card-border: rgba(0, 242, 254, 0.25);
  
  /* Spectro & Jinhsi Accents */
  --spectro-cyan: #00f2fe;
  --spectro-blue: #4facfe;
  --spectro-gold: #f6d365;
  --dragon-teal: #10e7dc;

  /* LED Neon Gradients */
  --led-blue-1: #00f2fe;
  --led-blue-2: #0072ff;
  --led-blue-3: #00c6ff;
  --led-blue-glow: rgba(0, 242, 254, 0.55);

  --led-red-1: #ff0055;
  --led-red-2: #ff3366;
  --led-red-3: #ff0033;
  --led-red-glow: rgba(255, 0, 85, 0.55);

  /* Brand Accents */
  --vcb-green: #009640;
  --vcb-light: #7bf1a8;
  --tiktok-color: #fe2c55;
  --youtube-color: #ff0000;
  --facebook-color: #1877f2;
  --zalo-color: #0068ff;
  --discord-color: #5865f2;
  --donate-color: #f7b731;

  /* Typography */
  --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  --text-white: #ffffff;
  --text-primary: #e6f1ff;
  --text-secondary: #9cb1ce;
  --text-muted: #6b829e;

  /* Sizing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;

  /* Standard Uniform Button Height */
  --btn-height: 66px;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Background Wallpaper: Jinhsi & Dragon Jué */
  background-image: 
    radial-gradient(circle at 50% 8%, rgba(0, 242, 254, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(7, 13, 23, 0.75) 0%, rgba(7, 13, 23, 0.88) 35%, rgba(4, 8, 15, 0.97) 100%),
    url('assets/bg-jinhsi-dragon.jpg'),
    url('file:///F:/web%20build%20char/assets/bg-jinhsi-dragon.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* --------------------------------------------------
   CANVAS PARTICLES & AMBIENT GLOW
   -------------------------------------------------- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-top {
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--spectro-cyan), transparent 70%);
}

.glow-bottom {
  bottom: -180px;
  right: -80px;
  background: radial-gradient(circle, var(--spectro-blue), transparent 70%);
}

/* --------------------------------------------------
   SOUND TOGGLE BUTTON
   -------------------------------------------------- */
.sound-toggle-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 25, 44, 0.88);
  border: 1px solid rgba(0, 242, 254, 0.45);
  color: var(--spectro-cyan);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}

.sound-toggle-btn:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--spectro-cyan);
  transform: scale(1.04);
}

.sound-toggle-btn.muted {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------
   PAGE LAYOUT WRAPPER
   -------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 36px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* --------------------------------------------------
   SITE HEADER
   -------------------------------------------------- */
.site-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--spectro-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 15%, #b2f1ff 55%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 242, 254, 0.45));
  text-align: center;
  line-height: 1.25;
}

.brand-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 520px;
  text-align: center;
}

/* Easter Egg Culture Pill */
.culture-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  background: rgba(246, 211, 101, 0.1);
  border: 1px solid rgba(246, 211, 101, 0.35);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: #ffdf7e;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.culture-text {
  white-space: normal;
  line-height: 1.35;
}

.culture-pill:hover {
  background: rgba(246, 211, 101, 0.22);
  border-color: #ffd043;
  transform: translateY(-2px);
}

.culture-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 290px;
  padding: 10px 14px;
  background: rgba(12, 22, 38, 0.98);
  border: 1px solid rgba(246, 211, 101, 0.6);
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  line-height: 1.45;
  color: #fff4d2;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 20;
}

.culture-pill:hover .culture-tooltip,
.culture-pill:focus .culture-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* --------------------------------------------------
   LED BORDER ANIMATION SYSTEM (TRUE RUNNING NEON)
   -------------------------------------------------- */
@property --led-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinLED {
  to {
    --led-angle: 360deg;
  }
}

/* Blue LED Container */
.led-blue-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2px; /* border thickness */
  isolation: isolate;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 242, 254, 0.25);
  width: 100%;
}

.led-blue-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 3px;
  background: conic-gradient(
    from var(--led-angle, 0deg),
    transparent 15%,
    var(--led-blue-1) 35%,
    var(--led-blue-2) 50%,
    transparent 65%,
    var(--led-blue-3) 85%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinLED 4s linear infinite;
  z-index: -1;
  filter: drop-shadow(0 0 12px var(--led-blue-1));
}

.led-blue-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from var(--led-angle, 0deg),
    transparent 20%,
    rgba(0, 242, 254, 0.35) 50%,
    transparent 70%
  );
  animation: spinLED 4s linear infinite;
  z-index: -2;
  filter: blur(14px);
}

/* Red LED Container */
.led-red-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2px;
  isolation: isolate;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 0, 85, 0.28);
  width: 100%;
}

.led-red-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 3px;
  background: conic-gradient(
    from var(--led-angle, 0deg),
    transparent 15%,
    var(--led-red-1) 35%,
    var(--led-red-2) 50%,
    transparent 65%,
    var(--led-red-3) 85%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinLED 3.5s linear infinite;
  z-index: -1;
  filter: drop-shadow(0 0 14px var(--led-red-1));
}

.led-red-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from var(--led-angle, 0deg),
    transparent 20%,
    rgba(255, 0, 85, 0.35) 50%,
    transparent 70%
  );
  animation: spinLED 3.5s linear infinite;
  z-index: -2;
  filter: blur(14px);
}

/* --------------------------------------------------
   1. BANK CARD (KHUNG THÔNG TIN NGÂN HÀNG)
   -------------------------------------------------- */
.bank-card-wrapper {
  width: 100%;
}

.bank-card {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 29, 52, 0.92) 0%, rgba(10, 19, 35, 0.96) 100%);
  border-radius: inherit;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  width: 100%;
}

.card-glow-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.08), transparent);
  pointer-events: none;
}

/* 1.1 Avatar tròn JinhSi */
.avatar-container {
  position: relative;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -4px;
}

.avatar-ring-outer {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 242, 254, 0.6);
  animation: rotateOuterRing 16s linear infinite;
}

.avatar-ring-inner {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--spectro-cyan);
  box-shadow: 0 0 18px var(--spectro-cyan);
}

@keyframes rotateOuterRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #0c1626;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.avatar-container:hover .avatar-img {
  transform: scale(1.04);
}

.avatar-status-badge {
  position: absolute;
  bottom: 0px;
  right: -4px;
  background: rgba(10, 25, 47, 0.94);
  border: 1px solid #00f2fe;
  color: #7bf1a8;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10e7dc;
  box-shadow: 0 0 8px #10e7dc;
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.character-name-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.char-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--spectro-cyan);
  font-weight: 600;
}

.char-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

/* 1.2 Mã QR chuyển khoản */
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.qr-wrapper {
  position: relative;
  width: 165px;
  height: 165px;
  padding: 8px;
  background: rgba(6, 12, 22, 0.88);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 242, 254, 0.1);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.qr-wrapper:hover {
  transform: scale(1.03);
  border-color: var(--spectro-cyan);
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2fe, #fff, #00f2fe, transparent);
  box-shadow: 0 0 10px #00f2fe;
  animation: scanLaser 2.6s ease-in-out infinite;
  z-index: 5;
}

@keyframes scanLaser {
  0% { top: 4%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 96%; opacity: 0; }
}

.qr-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--spectro-cyan);
  border-style: solid;
  pointer-events: none;
}
.corner-tl { top: 4px; left: 4px; border-width: 2px 0 0 2px; }
.corner-tr { top: 4px; right: 4px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 4px; left: 4px; border-width: 0 0 2px 2px; }
.corner-br { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; }

.qr-hint {
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

/* 1.3 & 1.4 Thông tin chi tiết */
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 460px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  gap: 8px;
  box-sizing: border-box;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.info-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  text-align: right;
  word-break: break-word;
}

.holder-name {
  font-family: var(--font-heading);
  letter-spacing: 0.6px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.bank-badge-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.vcb-icon {
  background: #009640;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.bank-title {
  color: #88fbc0;
  font-weight: 800;
}

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

/* 1.5 Khung Số Tài Khoản + Nút Copy */
.account-number-box {
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(14, 25, 44, 0.85) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.5);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.15);
}

.account-number-left {
  display: flex;
  flex-direction: column;
}

.account-number-label {
  font-size: 0.7rem;
  color: var(--spectro-cyan);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.account-number-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #04101e;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4);
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
  filter: brightness(1.1);
}

.copy-btn:active {
  transform: translateY(1px);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
  color: #ffffff;
}

.bank-card-footer {
  margin-top: 4px;
  width: 100%;
}

.security-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  text-align: center;
  line-height: 1.4;
  word-break: break-word;
  max-width: 100%;
}

/* --------------------------------------------------
   2. HERO LINKS SECTION: HỆ THỐNG NÚT BẤM ĐỀU NHAU
   -------------------------------------------------- */
.hero-links-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

/* KHUNG KÊNH LIVE (LED ĐỎ) */
.live-channel-card {
  position: relative;
  background: linear-gradient(180deg, rgba(35, 12, 22, 0.9) 0%, rgba(18, 7, 12, 0.95) 100%);
  border-radius: inherit;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
}

.live-badge-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 0, 85, 0.25);
  padding-bottom: 12px;
}

.live-indicator {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff0055;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-ping {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 0, 85, 0.4);
  animation: pingAnimation 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingAnimation {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.live-tag-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ff3366;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.live-sub-tag {
  font-size: 0.78rem;
  color: #ff99aa;
  margin-left: auto;
  text-align: right;
}

/* Section Title Separators */
.social-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  width: 100%;
}

.section-title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.35), transparent);
}

.section-title-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--spectro-cyan);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.services-title .section-title-text {
  color: var(--spectro-gold);
}

.services-title .section-title-line {
  background: linear-gradient(90deg, transparent, rgba(246, 211, 101, 0.35), transparent);
}

/* --------------------------------------------------
   UNIFORM BUTTONS GRID (ĐIỀU KIỆN 9-10 NÚT PHẢI ĐỀU NHAU)
   -------------------------------------------------- */
.uniform-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
}

/* Base Uniform Button Styling */
.uniform-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--btn-height);
  padding: 12px 16px;
  background: rgba(14, 25, 44, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
}

.uniform-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-25deg);
  transition: 0.6s ease;
  pointer-events: none;
}

.uniform-btn:hover::before {
  left: 140%;
}

.uniform-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 242, 254, 0.4);
}

.uniform-btn:active {
  transform: translateY(-1px);
}

/* Icon Wrapper */
.btn-icon-wrapper {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease;
}

.uniform-btn:hover .btn-icon-wrapper {
  transform: scale(1.1);
}

/* Button Content */
.btn-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.btn-main-label {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-sub-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.uniform-btn:hover .btn-arrow {
  transform: translateX(3px);
  color: var(--spectro-cyan);
}

/* Specific Button Color Styles */
/* Nút 1: TikTok */
.btn-tiktok {
  border-color: rgba(254, 44, 85, 0.3);
}
.btn-tiktok .tiktok-icon {
  background: rgba(254, 44, 85, 0.15);
  color: #fe2c55;
  border-color: rgba(254, 44, 85, 0.4);
}
.btn-tiktok:hover {
  border-color: #fe2c55;
  box-shadow: 0 8px 24px rgba(254, 44, 85, 0.25);
}

/* Nút 2: YouTube */
.btn-youtube {
  border-color: rgba(255, 0, 0, 0.3);
}
.btn-youtube .youtube-icon {
  background: rgba(255, 0, 0, 0.15);
  color: #ff3333;
  border-color: rgba(255, 0, 0, 0.4);
}
.btn-youtube:hover {
  border-color: #ff0000;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.25);
}

/* Nút 3: Facebook */
.btn-facebook .facebook-icon {
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.35);
}
.btn-facebook:hover {
  border-color: #1877f2;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.25);
}

/* Nút 4: Zalo */
.btn-zalo .zalo-icon {
  background: rgba(0, 104, 255, 0.15);
  border-color: rgba(0, 104, 255, 0.35);
}
.zalo-text-badge {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  color: #268aff;
  letter-spacing: -0.5px;
}
.btn-zalo:hover {
  border-color: #0068ff;
  box-shadow: 0 8px 24px rgba(0, 104, 255, 0.25);
}

/* Nút 5: Discord */
.btn-discord .discord-icon {
  background: rgba(88, 101, 242, 0.15);
  color: #5865f2;
  border-color: rgba(88, 101, 242, 0.35);
}
.btn-discord:hover {
  border-color: #5865f2;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.25);
}

/* Nút 6: Donate Zypage */
.btn-donate .donate-icon {
  background: rgba(247, 183, 49, 0.15);
  color: #f7b731;
  border-color: rgba(247, 183, 49, 0.35);
}
.btn-donate:hover {
  border-color: #f7b731;
  box-shadow: 0 8px 24px rgba(247, 183, 49, 0.25);
}

/* --------------------------------------------------
   SERVICE BUTTONS (NÚT 7, 8, 9, 10 - CÀY THUÊ)
   -------------------------------------------------- */
.btn-service {
  background: linear-gradient(135deg, rgba(20, 36, 62, 0.9) 0%, rgba(12, 23, 41, 0.95) 100%);
  border: 1px solid rgba(0, 242, 254, 0.22);
}

.btn-tag-action {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.12);
  color: var(--spectro-cyan);
  border: 1px solid rgba(0, 242, 254, 0.35);
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.uniform-btn:hover .btn-tag-action {
  background: var(--spectro-cyan);
  color: #04101e;
  box-shadow: 0 0 10px var(--spectro-cyan);
}

/* Nút 7: Cày Map */
.btn-service-map .map-icon {
  background: rgba(16, 231, 220, 0.15);
  color: #10e7dc;
  border-color: rgba(16, 231, 220, 0.35);
}

/* Nút 8: Cứu Endgame */
.btn-service-endgame .endgame-icon {
  background: rgba(255, 99, 132, 0.15);
  color: #ff6384;
  border-color: rgba(255, 99, 132, 0.35);
}

/* Nút 9: Cày Event */
.btn-service-event .event-icon {
  background: rgba(255, 206, 86, 0.15);
  color: #ffce56;
  border-color: rgba(255, 206, 86, 0.35);
}

/* Nút 10: Build Resonator */
.btn-service-build .build-icon {
  background: rgba(153, 102, 255, 0.15);
  color: #bb86fc;
  border-color: rgba(153, 102, 255, 0.35);
}

/* --------------------------------------------------
   TRUST FEATURES
   -------------------------------------------------- */
.trust-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.feature-item {
  background: rgba(10, 19, 35, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  backdrop-filter: blur(10px);
}

.feat-icon {
  font-size: 1.5rem;
}

.feat-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.feat-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* --------------------------------------------------
   SITE FOOTER
   -------------------------------------------------- */
.site-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  width: 100%;
}

.footer-credit {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

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

/* --------------------------------------------------
   MODAL DIALOG (ORDER BOOKING & QR ZOOM)
   -------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-dialog {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #101d33 0%, #0a1323 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.modal-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--spectro-cyan);
  letter-spacing: 1px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 0, 85, 0.2);
  border-color: #ff0055;
  color: #ffffff;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(6, 12, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--spectro-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 70px;
}

.modal-bank-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 242, 254, 0.08);
  border: 1px dashed rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-primary);
}

.modal-copy-mini {
  background: var(--spectro-cyan);
  color: #04101e;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.74rem;
  cursor: pointer;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.btn-action-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #00a2ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.4);
}

.btn-submit-fb {
  background: linear-gradient(135deg, #1877f2 0%, #3b5998 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

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

/* Modal QR Zoom Body */
.modal-dialog-qr {
  max-width: 360px;
  text-align: center;
}

.modal-qr-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.modal-qr-big {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-md);
  border: 2px solid var(--spectro-cyan);
  background: #0b1728;
  padding: 10px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.modal-qr-details {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.btn-modal-copy-full {
  width: 100%;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #04101e;
}

/* --------------------------------------------------
   TOAST NOTIFICATION (COPY SUCCESS)
   -------------------------------------------------- */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10, 20, 36, 0.95);
  border: 1.5px solid var(--spectro-cyan);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.4);
  backdrop-filter: blur(15px);
  z-index: 2000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  max-width: 90vw;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.toast-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.toast-msg {
  font-size: 0.76rem;
  color: var(--spectro-cyan);
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------
   RESPONSIVE DESIGN (MOBILE-FIRST OPTIMIZATION)
   -------------------------------------------------- */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 20px 12px 50px;
    gap: 18px;
    max-width: 100%;
  }

  .sound-toggle-btn {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .brand-title {
    font-size: 1.55rem;
    letter-spacing: 0.8px;
  }

  .brand-subtitle {
    font-size: 0.82rem;
  }

  .culture-pill {
    font-size: 0.72rem;
    padding: 5px 10px;
    width: 100%;
  }

  /* 1-Column Layout for Mobile so all buttons are equal and touch-friendly */
  .uniform-buttons-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .uniform-btn {
    min-height: 58px;
    padding: 10px 14px;
    gap: 12px;
  }

  .btn-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  .btn-main-label {
    font-size: 0.88rem;
  }

  .btn-sub-label {
    font-size: 0.7rem;
  }

  .bank-card {
    padding: 20px 12px 18px;
    gap: 13px;
  }

  .avatar-container {
    width: 90px;
    height: 90px;
  }

  .qr-wrapper {
    width: 140px;
    height: 140px;
  }

  .bank-sub {
    display: none;
  }

  .info-row {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .holder-name {
    font-size: 0.84rem;
  }

  .info-label {
    font-size: 0.76rem;
  }

  .info-value {
    font-size: 0.84rem;
  }

  .account-number-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .account-number-left {
    align-items: center;
  }

  .account-number-text {
    font-size: 1.25rem;
  }

  .copy-btn {
    justify-content: center;
    width: 100%;
    padding: 10px;
  }

  .live-channel-card {
    padding: 16px 12px 14px;
  }

  .live-tag-title {
    font-size: 1.05rem;
  }

  .live-sub-tag {
    display: none; /* keep clean on tiny screens */
  }

  .trust-features {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 768px) {
  .page-wrapper {
    padding: 28px 16px 50px;
  }
  .brand-title {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   VIEW 2: CÀY THUÊ MAP 100% (HARMONIZED WITH FILE 2 SPECTRO CYAN AESTHETIC)
   ========================================================================== */
.page-wrapper {
  transition: max-width 0.3s ease;
}

.page-wrapper.map-view-active {
  max-width: 1160px;
}

.view-section,
.map-service-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInView 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeInView {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Top Navigation Bar + Back Button */
.map-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.map-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.16) 0%, rgba(14, 25, 44, 0.92) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.55);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.2), 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-back-btn svg {
  color: var(--spectro-cyan);
  transition: transform 0.22s ease;
}

.map-back-btn:hover {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border-color: #ffffff;
  color: #04101e;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.48);
}

.map-back-btn:hover svg {
  color: #04101e;
  transform: translateX(-3px);
}

.map-back-btn:active {
  transform: translateY(0);
}

.map-breadcrumb-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(14, 25, 44, 0.82);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--spectro-cyan);
  backdrop-filter: blur(10px);
}

/* Hero Announcement & Info Card */
.map-hero-card {
  width: 100%;
}

.map-hero-inner {
  background: linear-gradient(180deg, rgba(16, 29, 52, 0.94) 0%, rgba(10, 19, 35, 0.96) 100%);
  border-radius: inherit;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.map-announcement-banner {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.14), rgba(79, 172, 254, 0.22), rgba(0, 242, 254, 0.14));
  border: 1px solid rgba(0, 242, 254, 0.45);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  box-shadow: inset 0 0 18px rgba(0, 242, 254, 0.12), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.map-announcement-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.map-sparkle {
  font-size: 1.15rem;
  animation: mapSparklePulse 2s infinite ease-in-out;
}

@keyframes mapSparklePulse {
  0%, 100% { transform: scale(0.92) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.2) rotate(12deg); opacity: 1; }
}

.map-announcement-heading {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, #ffffff 10%, #b2f1ff 55%, #f6d365 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.map-announcement-sub {
  font-size: 0.84rem;
  color: var(--text-primary);
  margin-top: 4px;
  opacity: 0.9;
}

.map-profile-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.map-avatar-mini {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-profile-details {
  flex: 1;
  min-width: 0;
}

.map-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.map-badge-verified {
  background: rgba(16, 231, 220, 0.14);
  color: #7bf1a8;
  border: 1px solid rgba(123, 241, 168, 0.35);
}

.map-badge-wuwa {
  background: rgba(0, 242, 254, 0.14);
  color: var(--spectro-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
}

.map-badge-speed {
  background: rgba(246, 211, 101, 0.14);
  color: var(--spectro-gold);
  border: 1px solid rgba(246, 211, 101, 0.4);
}

.map-shop-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.map-shop-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.map-contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.map-contact-pill:hover {
  transform: translateY(-1px);
  border-color: var(--spectro-cyan);
  background: rgba(0, 242, 254, 0.15);
  color: #ffffff;
}

.map-pill-zalo {
  background: rgba(0, 104, 255, 0.15);
  border-color: rgba(0, 104, 255, 0.45);
  color: #79b8ff;
}

.map-pill-bank {
  background: rgba(246, 211, 101, 0.12);
  border-color: rgba(246, 211, 101, 0.4);
  color: var(--spectro-gold);
}

/* Search & Quick Batch Filter Bar */
.map-filter-bar {
  background: rgba(14, 25, 44, 0.86);
  border: 1px solid rgba(0, 242, 254, 0.32);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.map-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.map-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--spectro-cyan);
  opacity: 0.8;
  pointer-events: none;
}

#mapSearchInput {
  width: 100%;
  padding: 10px 36px 10px 40px;
  background: rgba(6, 12, 22, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

#mapSearchInput::placeholder {
  color: var(--text-muted);
}

#mapSearchInput:focus {
  border-color: var(--spectro-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

.map-clear-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: none;
}

.map-clear-search-btn:hover {
  color: #ffffff;
}

.map-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-btn-batch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.map-btn-select-all {
  background: rgba(0, 242, 254, 0.16);
  border-color: rgba(0, 242, 254, 0.48);
  color: var(--spectro-cyan);
}

.map-btn-select-all:hover {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #04101e;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.42);
}

.map-btn-deselect-all {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
}

.map-btn-deselect-all:hover {
  background: rgba(255, 0, 85, 0.18);
  border-color: rgba(255, 0, 85, 0.5);
  color: #ffffff;
}

/* 2-Column Layout */
.map-content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  width: 100%;
}

.maps-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

/* CẤP 1: KHUNG ĐẠI DIỆN NHÓM (REGION FRAME) */
.region-frame {
  background: linear-gradient(180deg, rgba(14, 25, 44, 0.88) 0%, rgba(9, 17, 32, 0.93) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 242, 254, 0.34);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.52), inset 0 0 18px rgba(0, 242, 254, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.region-frame:hover {
  border-color: rgba(0, 242, 254, 0.58);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 242, 254, 0.15);
}

.region-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0, 242, 254, 0.22);
}

.region-title-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
}

.region-order-badge {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 900;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #04101e;
  border-radius: 9px;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.45);
}

.region-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

.region-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.region-badge-count {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}

.btn-region-select {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid rgba(0, 242, 254, 0.42);
  color: var(--spectro-cyan);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-region-select:hover {
  background: var(--spectro-cyan);
  color: #04101e;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

/* CẤP 2: KHUNG TAG LỚN (MAJOR TAG FRAME) */
.major-tag-frame {
  margin-bottom: 16px;
  background: rgba(8, 15, 28, 0.72);
  border: 1px solid rgba(79, 172, 254, 0.26);
  border-radius: var(--radius-lg);
  padding: 14px;
  transition: border-color 0.22s ease;
}

.major-tag-frame:last-child {
  margin-bottom: 0;
}

.major-tag-frame:hover {
  border-color: rgba(0, 242, 254, 0.48);
}

.major-tag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.major-tag-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.major-tag-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 242, 254, 0.65);
  border-radius: 6px;
  background: rgba(4, 10, 20, 0.75);
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.major-tag-checkbox:checked {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.major-tag-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #04101e;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.major-tag-checkbox:indeterminate {
  background: rgba(0, 242, 254, 0.35);
  border-color: var(--spectro-cyan);
}

.major-tag-checkbox:indeterminate::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 2px;
  background: #ffffff;
}

.major-tag-name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
}

.major-tag-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.major-tag-count {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}

.major-tag-subtotal {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--spectro-gold);
}

/* CẤP 3: DANH SÁCH TAG NHỎ (MINOR TAG CARDS) */
.minor-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px;
}

.minor-tag-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(14, 25, 44, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.minor-tag-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  transition: background 0.2s ease;
}

.minor-tag-card:hover {
  background: rgba(22, 40, 68, 0.9);
  border-color: rgba(0, 242, 254, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
}

.minor-tag-card.is-selected {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.16) 0%, rgba(16, 36, 64, 0.94) 100%);
  border-color: var(--spectro-cyan);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.28), inset 0 0 10px rgba(0, 242, 254, 0.1);
}

.minor-tag-card.is-selected::before {
  background: var(--spectro-cyan);
  box-shadow: 0 0 8px var(--spectro-cyan);
}

.minor-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(0, 242, 254, 0.55);
  border-radius: 5px;
  background: rgba(4, 10, 20, 0.65);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.minor-checkbox:checked {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.65);
}

.minor-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #04101e;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

.minor-tag-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.minor-tag-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.minor-tag-price {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--spectro-gold);
  margin-top: 2px;
}

.minor-tag-card.is-selected .minor-tag-price {
  color: #88fbc0;
}

/* RIGHT COLUMN: STICKY SUMMARY & AUTO VIETQR */
.map-summary-sidebar {
  position: sticky;
  top: 20px;
  z-index: 10;
}

.map-summary-led-wrap {
  width: 100%;
}

.map-summary-card {
  background: linear-gradient(180deg, rgba(16, 29, 52, 0.95) 0%, rgba(10, 19, 35, 0.97) 100%);
  border-radius: inherit;
  padding: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 242, 254, 0.25);
}

.summary-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-cart {
  color: var(--spectro-cyan);
  display: flex;
}

.summary-header h3 {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.btn-reset-order {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 0, 85, 0.14);
  border: 1px solid rgba(255, 0, 85, 0.4);
  color: #ff8aa8;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-reset-order:hover {
  background: rgba(255, 0, 85, 0.3);
  color: #ffffff;
}

.selection-count-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.count-value b {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--spectro-cyan);
}

.selected-tags-preview {
  max-height: 118px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(6, 12, 22, 0.75);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-tags-preview::-webkit-scrollbar {
  width: 5px;
}

.selected-tags-preview::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.4);
  border-radius: 4px;
}

.empty-hint {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.78rem;
  padding: 6px;
  text-align: center;
  width: 100%;
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #e6f9ff;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 600;
}

.selected-chip .chip-remove {
  cursor: pointer;
  color: #ff8aa8;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
}

.selected-chip .chip-remove:hover {
  color: #ffffff;
}

.total-price-box {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(10, 22, 42, 0.92) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.55);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.18), inset 0 0 10px rgba(0, 242, 254, 0.08);
  margin-bottom: 14px;
}

.price-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--spectro-cyan);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.price-number-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 242, 254, 0.55);
}

.price-currency {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--spectro-gold);
}

.price-note {
  font-size: 0.73rem;
  color: #7bf1a8;
  margin-top: 5px;
  font-weight: 600;
}

.summary-actions {
  margin-bottom: 16px;
}

.btn-main-order {
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #04101e;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.42);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-main-order:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.62);
}

/* Auto VietQR Card */
.bank-qr-card {
  background: rgba(6, 12, 22, 0.82);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
}

.qr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.qr-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
}

.auto-update-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(16, 231, 220, 0.14);
  color: #7bf1a8;
  border: 1px solid rgba(123, 241, 168, 0.3);
}

.qr-image-container {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1.5px solid rgba(0, 242, 254, 0.5);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.25);
  overflow: hidden;
}

.viet-qr-code {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.qr-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 19, 35, 0.88);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.78rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 242, 254, 0.2);
  border-top-color: var(--spectro-cyan);
  border-radius: 50%;
  animation: mapQrSpin 0.8s linear infinite;
}

@keyframes mapQrSpin {
  to { transform: rotate(360deg); }
}

.qr-zero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 23, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.78rem;
  gap: 8px;
}

.qr-zero-overlay svg {
  color: var(--spectro-cyan);
  opacity: 0.8;
}

.bank-info-table {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.79rem;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.b-label {
  color: var(--text-secondary);
}

.b-val {
  color: #ffffff;
  font-weight: 600;
}

.b-copy-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-text {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
}

.text-accent {
  color: var(--spectro-gold) !important;
}

.highlight-bold {
  font-weight: 800;
  color: #ffffff;
}

.highlight-cyan {
  font-weight: 800;
  color: var(--spectro-cyan);
}

.btn-copy-chip {
  background: rgba(0, 242, 254, 0.16);
  border: 1px solid rgba(0, 242, 254, 0.42);
  color: var(--spectro-cyan);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-copy-chip:hover {
  background: var(--spectro-cyan);
  color: #04101e;
}

.qr-guide-footer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* Bottom Back Bar */
.map-bottom-nav {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.map-back-btn-wide {
  padding: 12px 24px;
}

/* Map Bill Modal Enhancements */
.modal-dialog-bill {
  max-width: 620px;
}

.bill-modal-subtitle {
  font-size: 0.78rem;
  color: #7bf1a8;
  margin-top: 3px;
}

.bill-info-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bill-table-wrap {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(0, 242, 254, 0.22);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.bill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.bill-table th {
  background: rgba(0, 242, 254, 0.14);
  color: var(--spectro-cyan);
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 242, 254, 0.25);
}

.bill-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.text-right {
  text-align: right;
}

.bill-grand-total {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--spectro-gold) !important;
}

.modal-qr-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 242, 254, 0.06);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(0, 242, 254, 0.35);
  margin-bottom: 16px;
}

.modal-qr-code {
  width: 86px;
  height: 86px;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.modal-qr-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.bill-modal-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bill-modal-footer a {
  text-decoration: none;
}

.btn-copy-bill {
  background: rgba(0, 242, 254, 0.16);
  border: 1px solid rgba(0, 242, 254, 0.45);
  color: var(--spectro-cyan);
}

.btn-copy-bill:hover {
  background: var(--spectro-cyan);
  color: #04101e;
}

/* Mobile Sticky Bottom Bar (Only active when in map view on smaller viewports) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(10, 19, 35, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid var(--spectro-cyan);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.75), 0 -2px 12px rgba(0, 242, 254, 0.25);
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-bar-info {
  display: flex;
  flex-direction: column;
}

.mobile-bar-count {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.mobile-bar-total {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--spectro-cyan);
}

.mobile-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-btn-clear {
  padding: 8px 11px;
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.mobile-btn-pay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #04101e;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4);
}

/* Responsive Map View */
@media (max-width: 960px) {
  .map-content-columns {
    grid-template-columns: 1fr;
  }

  .map-summary-sidebar {
    position: static;
  }

  body.in-map-view .mobile-sticky-bar {
    display: flex;
  }

  body.in-map-view .page-wrapper {
    padding-bottom: 92px;
  }

  body.in-map-view .toast-notification {
    bottom: 84px;
  }
}

@media (max-width: 640px) {
  .map-profile-row {
    flex-direction: column;
    text-align: center;
  }

  .map-badges-row,
  .map-contact-pills {
    justify-content: center;
  }

  .map-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .map-batch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .minor-tags-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 8px;
  }

  .region-frame {
    padding: 14px;
    border-radius: var(--radius-lg);
  }

  .major-tag-frame {
    padding: 12px;
  }

  .bill-modal-footer {
    grid-template-columns: 1fr;
  }

  .modal-qr-preview {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   VIEW 3: BẢNG BUILD RESONATOR (CHUẨN PHÂN BỐ PSD + HÀO QUANG NGUYÊN TỐ)
   ========================================================================== */
.page-wrapper.build-view-active {
  max-width: 1320px;
}

.build-service-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInView 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.build-content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  width: 100%;
}

/* Quick Element Filter Pills */
.build-element-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 242, 254, 0.2);
}

.el-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(6, 12, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.el-filter-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.el-filter-pill:hover {
  border-color: rgba(0, 242, 254, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.el-filter-pill.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.22) 0%, rgba(16, 36, 64, 0.95) 100%);
  border-color: var(--spectro-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

/* Guide Note Banner inside Build Board */
.build-aura-guide-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 16px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.1), rgba(246, 211, 101, 0.12), rgba(0, 242, 254, 0.1));
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-primary);
}

.aura-guide-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.aura-guide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--spectro-gold);
  box-shadow: 0 0 10px var(--spectro-gold), 0 0 18px #00f2fe;
  animation: pulseGreen 1.5s infinite;
}

.aura-legend-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.73rem;
  font-weight: 700;
}

.aura-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.aura-legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Main PSD Build Board Container */
.psd-build-board {
  background: linear-gradient(180deg, rgba(6, 11, 20, 0.94) 0%, rgba(3, 6, 13, 0.98) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), inset 0 0 28px rgba(0, 242, 254, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Elemental Themes for the 7 PSD Rows & Resonator Auras */
.el-theme-spectro,
[data-aura="spectro"] {
  --aura-color: #ffdd44;
  --aura-secondary: #ffaa00;
  --aura-glow: rgba(255, 221, 68, 0.75);
  --aura-soft: rgba(255, 221, 68, 0.15);
  --aura-text: #ffe875;
}

.el-theme-aero,
[data-aura="aero"] {
  --aura-color: #10e7dc;
  --aura-secondary: #00ff95;
  --aura-glow: rgba(16, 231, 220, 0.75);
  --aura-soft: rgba(16, 231, 220, 0.15);
  --aura-text: #64ffda;
}

.el-theme-glacio,
[data-aura="glacio"] {
  --aura-color: #00f2fe;
  --aura-secondary: #38b6ff;
  --aura-glow: rgba(0, 242, 254, 0.8);
  --aura-soft: rgba(0, 242, 254, 0.15);
  --aura-text: #80f8ff;
}

.el-theme-electro,
[data-aura="electro"] {
  --aura-color: #c850ff;
  --aura-secondary: #7928ca;
  --aura-glow: rgba(200, 80, 255, 0.8);
  --aura-soft: rgba(200, 80, 255, 0.15);
  --aura-text: #e29eff;
}

.el-theme-fusion,
[data-aura="fusion"] {
  --aura-color: #ff6b2b;
  --aura-secondary: #ff1e00;
  --aura-glow: rgba(255, 107, 43, 0.8);
  --aura-soft: rgba(255, 107, 43, 0.15);
  --aura-text: #ff9e6d;
}

.el-theme-havoc,
[data-aura="havoc"] {
  --aura-color: #ff2a85;
  --aura-secondary: #b81d6c;
  --aura-glow: rgba(255, 42, 133, 0.8);
  --aura-soft: rgba(255, 42, 133, 0.15);
  --aura-text: #ff85b8;
}

.el-theme-support,
[data-aura="support"] {
  --aura-color: #7bf1a8;
  --aura-secondary: #10e7dc;
  --aura-glow: rgba(123, 241, 168, 0.78);
  --aura-soft: rgba(123, 241, 168, 0.15);
  --aura-text: #a8ffcb;
}

/* Individual PSD Row (1 of 7 Rows) */
.psd-element-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  background: linear-gradient(90deg, var(--aura-soft) 0%, rgba(10, 18, 32, 0.82) 18%, rgba(7, 13, 24, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 4px solid var(--aura-color);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.25s ease;
}

.psd-element-row:hover {
  border-color: var(--aura-color);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), 0 0 20px var(--aura-soft);
}

.psd-element-row.row-has-selection {
  border-color: var(--aura-color);
  box-shadow: 0 0 24px var(--aura-soft), inset 0 0 18px var(--aura-soft);
}

/* Left Column: Element Icon from PSD */
.psd-element-emblem-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  flex-shrink: 0;
  gap: 5px;
  padding-right: 14px;
  border-right: 1px dashed rgba(255, 255, 255, 0.12);
}

.psd-element-emblem-btn {
  background: radial-gradient(circle, var(--aura-soft) 0%, rgba(6, 12, 22, 0.85) 75%);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 7px;
}

.psd-element-emblem-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--aura-glow));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.psd-element-emblem-btn:hover {
  border-color: var(--aura-color);
  transform: scale(1.08);
  box-shadow: 0 0 18px var(--aura-glow);
}

.psd-element-row.row-has-selection .psd-element-emblem-btn {
  border-color: var(--aura-color);
  box-shadow: 0 0 20px var(--aura-glow), inset 0 0 10px var(--aura-soft);
}

.psd-element-name {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--aura-text);
  text-align: center;
}

.psd-element-count-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.psd-element-row.row-has-selection .psd-element-count-badge {
  background: var(--aura-color);
  color: #04101e;
  font-weight: 800;
}

/* Right Area: Horizontal Price Clusters matching PSD layout */
.psd-row-clusters {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  min-width: 0;
}

/* Each Price Cluster: [Avatar] [Avatar] ... + 250k */
.psd-price-cluster {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 10px;
  background: rgba(4, 9, 18, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  transition: all 0.25s ease;
  position: relative;
}

.psd-price-cluster:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(10, 20, 38, 0.78);
}

.psd-price-cluster.cluster-has-selection {
  background: linear-gradient(135deg, var(--aura-soft) 0%, rgba(8, 16, 30, 0.92) 100%);
  border-color: var(--aura-color);
  box-shadow: 0 0 18px var(--aura-soft);
}

.psd-cluster-avatars {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   RESONATOR AVATAR BUTTON & ELEMENTAL HALO AURA (NO CHECKBOX!)
   ========================================================================== */
@keyframes auraPulseGlow {
  0% {
    transform: scale(0.96);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
  100% {
    transform: scale(0.98);
    opacity: 0.82;
  }
}

@keyframes auraRingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.resonator-avatar-btn {
  position: relative;
  width: 66px;
  height: 66px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.26s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  isolation: isolate;
  outline: none;
}

/* 1. Radial Elemental Backlight Halo (Hidden until hover/selected) */
.resonator-avatar-btn .avatar-aura-backdrop {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--aura-color) 0%, var(--aura-glow) 42%, transparent 72%);
  filter: blur(9px);
  opacity: 0;
  z-index: -2;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

/* 2. Spinning Elemental Energy Ring (Halo) */
.resonator-avatar-btn .avatar-aura-ring {
  position: absolute;
  inset: -4px;
  border-radius: 17px;
  background: conic-gradient(
    from 0deg,
    var(--aura-color) 0deg,
    #ffffff 70deg,
    var(--aura-secondary) 150deg,
    var(--aura-color) 240deg,
    #ffffff 310deg,
    var(--aura-color) 360deg
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.resonator-avatar-btn .avatar-aura-ring::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: inherit;
  filter: blur(6px);
  opacity: 0.85;
}

/* 3. Avatar Portrait Frame */
.resonator-avatar-btn .avatar-portrait-box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  background: #08111f;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
  transition: all 0.25s ease;
  z-index: 1;
}

.resonator-avatar-btn .resonator-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease, filter 0.28s ease;
  filter: brightness(0.92) saturate(0.95);
}

/* Name Strip at Bottom of Avatar */
.resonator-avatar-btn .resonator-mini-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 3px 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 7, 15, 0.88) 45%, rgba(3, 7, 15, 0.96) 100%);
  color: #e6f1ff;
  font-family: var(--font-heading);
  font-size: 0.61rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
  z-index: 2;
  transition: all 0.22s ease;
}

/* Hover State */
.resonator-avatar-btn:hover {
  transform: translateY(-4px) scale(1.06);
  z-index: 5;
}

.resonator-avatar-btn:hover .avatar-aura-backdrop {
  opacity: 0.45;
}

.resonator-avatar-btn:hover .avatar-portrait-box {
  border-color: var(--aura-color);
  box-shadow: 0 0 14px var(--aura-glow);
}

.resonator-avatar-btn:hover .resonator-img {
  filter: brightness(1.06) saturate(1.08);
  transform: scale(1.05);
}

/* ==========================================================================
   SELECTED STATE (.is-selected): RADIANT ELEMENTAL HALO AURA!
   ========================================================================== */
.resonator-avatar-btn.is-selected {
  transform: translateY(-5px) scale(1.09);
  z-index: 6;
}

.resonator-avatar-btn.is-selected .avatar-aura-backdrop {
  opacity: 1;
  animation: auraPulseGlow 1.8s ease-in-out infinite;
}

.resonator-avatar-btn.is-selected .avatar-aura-ring {
  opacity: 1;
}

.resonator-avatar-btn.is-selected .avatar-portrait-box {
  border: 2px solid #ffffff;
  box-shadow:
    0 0 12px #ffffff,
    0 0 22px var(--aura-color),
    0 0 38px var(--aura-glow),
    inset 0 0 16px var(--aura-color);
}

.resonator-avatar-btn.is-selected .resonator-img {
  filter: brightness(1.18) contrast(1.08) saturate(1.18) drop-shadow(0 0 8px var(--aura-color));
  transform: scale(1.06);
}

.resonator-avatar-btn.is-selected .resonator-mini-name {
  background: linear-gradient(90deg, var(--aura-secondary), var(--aura-color));
  color: #04101e;
  font-weight: 900;
  text-shadow: none;
}

/* Elemental Aura Star Crown Badge on Selected Avatar */
.resonator-avatar-btn .avatar-aura-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ffffff 0%, var(--aura-color) 100%);
  color: #04101e;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 900;
  box-shadow: 0 0 10px var(--aura-color), 0 2px 6px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 4;
  pointer-events: none;
}

.resonator-avatar-btn.is-selected .avatar-aura-badge {
  opacity: 1;
  transform: scale(1);
}

/* Price Number Block beside Avatars (e.g. 150k, 200k, 250k, 300k, 100k) */
.psd-cluster-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 4px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
}

.psd-cluster-price:hover {
  transform: scale(1.04);
}

.psd-price-main {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  transition: all 0.25s ease;
}

.psd-price-vnd {
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
  transition: color 0.25s ease;
}

.psd-price-cluster.cluster-has-selection .psd-price-main {
  color: var(--aura-text);
  text-shadow: 0 0 14px var(--aura-glow), 0 0 26px var(--aura-color);
}

.psd-price-cluster.cluster-has-selection .psd-price-vnd {
  color: #ffffff;
}

/* Selected Chip with Mini Avatar in Sidebar */
.selected-chip-resonator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 28, 50, 0.9);
  border: 1px solid var(--aura-color, #00f2fe);
  box-shadow: 0 0 8px var(--aura-soft, rgba(0, 242, 254, 0.2));
  color: #ffffff;
  padding: 3px 9px 3px 4px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
}

.selected-chip-resonator img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--aura-color, #00f2fe);
}

/* Bill Modal Avatar Cell */
.bill-char-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bill-char-cell img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(0, 242, 254, 0.5);
}

/* Responsive adjustments for Build Resonator View */
@media (max-width: 1024px) {
  .build-content-columns {
    grid-template-columns: 1fr;
  }

  body.in-build-view .mobile-sticky-bar {
    display: flex;
  }

  body.in-build-view .page-wrapper {
    padding-bottom: 92px;
  }

  body.in-build-view .toast-notification {
    bottom: 84px;
  }
}

@media (max-width: 680px) {
  .psd-build-board {
    padding: 12px;
    gap: 12px;
  }

  .psd-element-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
  }

  .psd-element-emblem-col {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    padding-right: 0;
    padding-bottom: 8px;
    border-right: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    gap: 10px;
  }

  .psd-element-emblem-btn {
    width: 46px;
    height: 46px;
  }

  .psd-row-clusters {
    width: 100%;
    gap: 12px;
  }

  .psd-price-cluster {
    width: 100%;
    justify-content: space-between;
  }

  .resonator-avatar-btn {
    width: 58px;
    height: 58px;
  }

  .psd-price-main {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   VIEW 4: BẢNG CÀY THUÊ EVENT (CHUẨN PHÂN BỐ PSD + TÍCH V & BỘ THANH TOÁN)
   ========================================================================== */
.page-wrapper.event-view-active {
  max-width: 1520px;
  width: 96%;
}

.event-service-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInView 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: start;
  width: 100%;
}

.events-board-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

#eventSearchInput {
  width: 100%;
  padding: 10px 36px 10px 40px;
  background: rgba(6, 12, 22, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

#eventSearchInput::placeholder {
  color: var(--text-muted);
}

#eventSearchInput:focus {
  border-color: var(--spectro-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

/* Khung Nhóm Event (Event Hiện Tại & Event Vĩnh Viễn) */
.event-group-frame {
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.92) 0%, rgba(7, 13, 24, 0.96) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6), inset 0 0 22px rgba(0, 242, 254, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.event-group-frame:hover {
  border-color: rgba(0, 242, 254, 0.58);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.68), 0 0 24px rgba(0, 242, 254, 0.14);
}

.event-group-frame.group-current {
  border-color: rgba(246, 211, 101, 0.48);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6), 0 0 22px rgba(246, 211, 101, 0.12);
}

.event-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0, 242, 254, 0.22);
}

.event-group-title-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.event-group-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.event-group-order-badge {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 900;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #04101e;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.45);
}

.event-group-frame.group-current .event-group-order-badge {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  box-shadow: 0 0 12px rgba(246, 211, 101, 0.5);
}

.event-group-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

.event-group-sub-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--spectro-cyan);
}

.event-group-frame.group-current .event-group-sub-pill {
  background: rgba(246, 211, 101, 0.15);
  border-color: rgba(246, 211, 101, 0.4);
  color: var(--spectro-gold);
}

.event-group-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.event-group-subtotal {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--spectro-gold);
  background: rgba(246, 211, 101, 0.1);
  border: 1px solid rgba(246, 211, 101, 0.3);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

/* Lưới 4 Cột Chuẩn Bố Cục File event.psd */
.psd-events-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.psd-event-empty-slot {
  pointer-events: none;
  min-height: 1px;
}

/* Từng Ô Event: [Tích v] + [Hình Banner PSD] + [Con Số Giá Tiền VNĐ Bên Cạnh] */
.psd-event-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 9px;
  background: rgba(14, 25, 44, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.42);
}

.psd-event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5px;
  height: 100%;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.psd-event-card:hover {
  background: rgba(20, 36, 62, 0.92);
  border-color: rgba(0, 242, 254, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 14px rgba(0, 242, 254, 0.2);
}

.psd-event-card.is-selected {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.18) 0%, rgba(14, 32, 58, 0.96) 100%);
  border-color: var(--spectro-cyan);
  box-shadow:
    0 0 16px rgba(0, 242, 254, 0.35),
    inset 0 0 12px rgba(0, 242, 254, 0.12);
}

.psd-event-card.is-selected::before {
  background: var(--spectro-cyan);
  box-shadow: 0 0 10px var(--spectro-cyan);
}

/* Ô Checkbox Tích [v] Bên Trái */
.psd-event-check-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-item-checkbox {
  width: 19px;
  height: 19px;
}

/* Khung Hình Ảnh Banner Event Gốc Từ PSD */
.psd-event-banner-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.psd-event-banner-img-wrap {
  width: 100%;
  aspect-ratio: 243 / 74;
  border-radius: 6px 26px 26px 6px;
  overflow: hidden;
  background: rgba(6, 12, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.psd-event-card:hover .psd-event-banner-img-wrap {
  border-color: rgba(0, 242, 254, 0.6);
}

.psd-event-card.is-selected .psd-event-banner-img-wrap {
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.45);
}

.psd-event-banner-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.psd-event-card:hover .psd-event-banner-img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.psd-event-card.is-selected .psd-event-banner-img {
  filter: brightness(1.08) contrast(1.04);
}

.psd-event-full-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 2px;
  line-height: 1.2;
}

.psd-event-card.is-selected .psd-event-full-title {
  color: #e6f9ff;
}

/* Con Số Giá Tiền VNĐ Nằm Ngay Bên Cạnh Phải Banner (Chuẩn PSD) */
.psd-event-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  min-width: 62px;
  padding-left: 4px;
  border-left: 1px dashed rgba(255, 255, 255, 0.12);
}

.psd-event-price-k {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  transition: all 0.2s ease;
}

.psd-event-price-vnd {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--spectro-gold);
  margin-top: 2px;
  white-space: nowrap;
}

.psd-event-card.is-selected .psd-event-price-k {
  color: var(--spectro-cyan);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.65);
}

.psd-event-card.is-selected .psd-event-price-vnd {
  color: #88fbc0;
}

/* Chip đã chọn trong Sidebar có ảnh thu nhỏ Banner Event */
.selected-chip-event {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 28, 50, 0.92);
  border: 1px solid rgba(0, 242, 254, 0.45);
  color: #ffffff;
  padding: 3px 9px 3px 5px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 700;
}

.selected-chip-event img {
  width: 38px;
  height: 14px;
  border-radius: 3px 7px 7px 3px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Ô hiển thị Event trong Bảng Hóa Đơn Modal */
.bill-event-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bill-event-cell img {
  width: 78px;
  height: 24px;
  border-radius: 3px 10px 10px 3px;
  object-fit: cover;
  border: 1px solid rgba(0, 242, 254, 0.45);
  flex-shrink: 0;
}

/* Responsive cho Bảng Cày Thuê Event */
@media (max-width: 1340px) {
  .psd-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .psd-event-empty-slot {
    display: none;
  }
}

@media (max-width: 1024px) {
  .event-content-columns {
    grid-template-columns: 1fr;
  }

  body.in-event-view #eventMobileStickyBar {
    display: flex;
  }

  body.in-event-view .page-wrapper {
    padding-bottom: 92px;
  }

  body.in-event-view .toast-notification {
    bottom: 84px;
  }
}

@media (max-width: 680px) {
  .page-wrapper.event-view-active {
    width: 100%;
  }

  .event-group-frame {
    padding: 14px;
    border-radius: var(--radius-lg);
  }

  .psd-events-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .psd-event-price-k {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   MỤC LÀM DAILY & WEEKLY (CƠ CHẾ ORDER SỐ LƯỢNG TRONG CÀY THUÊ MAP)
   ========================================================================== */
.daily-region-frame {
  border-color: rgba(246, 211, 101, 0.48);
  background: linear-gradient(180deg, rgba(18, 30, 54, 0.92) 0%, rgba(10, 18, 34, 0.96) 100%);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.52), 0 0 20px rgba(246, 211, 101, 0.12), inset 0 0 18px rgba(0, 242, 254, 0.05);
}

.daily-region-frame:hover {
  border-color: rgba(246, 211, 101, 0.72);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 26px rgba(246, 211, 101, 0.2);
}

.daily-order-badge {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%) !important;
  color: #0b1322 !important;
  box-shadow: 0 0 14px rgba(246, 211, 101, 0.55) !important;
}

.daily-major-frame {
  border-color: rgba(246, 211, 101, 0.3);
}

.daily-major-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-qty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.daily-qty-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(14, 25, 44, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.daily-qty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  transition: background 0.2s ease;
}

.daily-qty-card:hover {
  background: rgba(22, 40, 68, 0.92);
  border-color: rgba(0, 242, 254, 0.45);
  transform: translateY(-2px);
}

.daily-qty-card.is-selected {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.16) 0%, rgba(16, 36, 64, 0.95) 100%);
  border-color: var(--spectro-cyan);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.28), inset 0 0 10px rgba(0, 242, 254, 0.1);
}

.daily-qty-card.is-selected::before {
  background: var(--spectro-cyan);
  box-shadow: 0 0 8px var(--spectro-cyan);
}

.daily-card-top {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.daily-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.daily-card-name {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
}

.daily-card-unit-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(246, 211, 101, 0.14);
  border: 1px solid rgba(246, 211, 101, 0.38);
  color: var(--spectro-gold);
  white-space: nowrap;
}

.daily-card-price {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--spectro-gold);
}

.daily-card-line-total {
  font-size: 0.74rem;
  font-weight: 700;
  color: #7bf1a8;
  min-height: 17px;
}

/* Quantity Stepper Controls */
.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(5, 11, 22, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.16);
  color: var(--spectro-cyan);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.qty-btn:hover {
  background: var(--spectro-cyan);
  color: #04101e;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.55);
}

.qty-btn:active {
  transform: scale(0.94);
}

.qty-input {
  width: 44px;
  text-align: center;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Weekly Add-on Box */
.daily-weekly-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 13px 15px;
  background: linear-gradient(135deg, rgba(16, 28, 52, 0.88) 0%, rgba(10, 18, 34, 0.94) 100%);
  border: 1.5px dashed rgba(246, 211, 101, 0.42);
  border-radius: var(--radius-md);
  transition: all 0.22s ease;
}

.daily-weekly-box.is-selected {
  background: linear-gradient(135deg, rgba(246, 211, 101, 0.14) 0%, rgba(0, 242, 254, 0.12) 100%);
  border-style: solid;
  border-color: var(--spectro-gold);
  box-shadow: 0 0 16px rgba(246, 211, 101, 0.22);
}

.daily-weekly-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 220px;
}

.weekly-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.weekly-switch-input {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.weekly-switch-input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.weekly-switch-input:checked {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  border-color: #ffe38f;
  box-shadow: 0 0 12px rgba(246, 211, 101, 0.5);
}

.weekly-switch-input:checked::after {
  transform: translateX(20px);
  background: #0b1322;
}

.weekly-title-text {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.weekly-price-pill {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--spectro-gold);
  background: rgba(246, 211, 101, 0.14);
  border: 1px solid rgba(246, 211, 101, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.weekly-auto-hint {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.daily-weekly-box.is-selected .weekly-auto-hint {
  color: #9bf7c4;
}

.daily-weekly-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weekly-qty-unit {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.daily-count-inline {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--spectro-gold);
  margin-left: 4px;
}

.selected-chip-daily {
  background: rgba(246, 211, 101, 0.16);
  border-color: rgba(246, 211, 101, 0.5);
  color: #fff2c2;
}

@media (max-width: 720px) {
  .daily-qty-grid {
    grid-template-columns: 1fr;
  }

  .daily-weekly-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   HỆ THỐNG XÁC NHẬN ĐÃ NHẬN TIỀN TỰ ĐỘNG (AUTO PAYMENT VERIFICATION)
   ========================================================================== */
.sidebar-pay-verify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.sidebar-pay-verify.is-paid {
  background: rgba(16, 231, 160, 0.16);
  border-color: #38ef7d;
  box-shadow: 0 0 14px rgba(56, 239, 125, 0.3);
}

.sidebar-pay-text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  line-height: 1.3;
}

.btn-verify-mini {
  background: rgba(0, 242, 254, 0.18);
  border: 1px solid rgba(0, 242, 254, 0.5);
  color: var(--spectro-cyan);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.btn-verify-mini:hover {
  background: var(--spectro-cyan);
  color: #04101e;
}

.payment-status-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(10, 22, 42, 0.92) 100%);
  transition: all 0.3s ease;
}

.payment-status-box.is-paid {
  border-color: #38ef7d;
  background: linear-gradient(135deg, rgba(56, 239, 125, 0.18) 0%, rgba(10, 38, 34, 0.94) 100%);
  box-shadow: 0 0 22px rgba(56, 239, 125, 0.28), inset 0 0 12px rgba(56, 239, 125, 0.1);
}

.payment-status-box.is-unconfigured {
  border-color: rgba(246, 211, 101, 0.45);
  background: linear-gradient(135deg, rgba(246, 211, 101, 0.1) 0%, rgba(14, 24, 42, 0.92) 100%);
}

.payment-status-main {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 220px;
}

.pay-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--spectro-cyan);
  box-shadow: 0 0 10px var(--spectro-cyan);
  flex-shrink: 0;
  animation: payDotPulse 1.5s infinite ease-in-out;
}

.is-paid .pay-status-dot {
  background: #38ef7d;
  box-shadow: 0 0 14px #38ef7d;
  animation: none;
}

.is-unconfigured .pay-status-dot {
  background: var(--spectro-gold);
  box-shadow: 0 0 10px var(--spectro-gold);
}

@keyframes payDotPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.65; }
  50% { transform: scale(1.25); opacity: 1; }
}

.payment-status-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-status-title {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
}

.is-paid .payment-status-title {
  color: #7bf1a8;
  font-size: 0.94rem;
}

.payment-status-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.is-paid .payment-status-sub {
  color: #d8ffe6;
}

.btn-verify-now {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(79, 172, 254, 0.28) 100%);
  border: 1px solid rgba(0, 242, 254, 0.55);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-verify-now:hover:not(:disabled) {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #04101e;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.45);
}

.btn-verify-now:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.is-paid .btn-verify-now {
  background: rgba(56, 239, 125, 0.2);
  border-color: #38ef7d;
  color: #7bf1a8;
}

/* ==========================================================================
   KHUNG NHẬP TÀI KHOẢN / MẬT KHẨU / TÊN SERVER TRONG HÓA ĐƠN
   ========================================================================== */
.bill-account-section {
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

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

.bill-account-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--spectro-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bill-account-safe {
  font-size: 0.68rem;
  font-weight: 700;
  color: #7bf1a8;
  background: rgba(123, 241, 168, 0.12);
  border: 1px solid rgba(123, 241, 168, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.bill-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 130px;
  gap: 10px;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .form-control {
  width: 100%;
  padding-right: 36px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.btn-toggle-pwd:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 640px) {
  .bill-account-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODAL CẢM ƠN THANH TOÁN THÀNH CÔNG (JINHSI & JUÉ)
   ========================================================================== */
.modal-dialog-thanks {
  max-width: 540px;
  padding: 2px;
  overflow: visible;
  background: transparent;
  border: none;
}

.thanks-modal-inner {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #101f3a 0%, #091324 100%);
  border-radius: calc(var(--radius-xl) - 2px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thanks-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;
  background: rgba(7, 13, 23, 0.72);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.thanks-hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #070d17;
  overflow: visible;
}

.thanks-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.thanks-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 23, 0.15) 0%, rgba(7, 13, 23, 0.2) 55%, rgba(16, 31, 58, 0.98) 100%);
  pointer-events: none;
}

.thanks-char-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(7, 13, 23, 0.78);
  border: 1px solid rgba(0, 242, 254, 0.45);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--spectro-cyan);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.thanks-check-circle {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38ef7d 0%, #00f2fe 100%);
  border: 4px solid #101f3a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(56, 239, 125, 0.65), 0 6px 18px rgba(0, 0, 0, 0.5);
  z-index: 6;
  animation: thanksPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes thanksPopIn {
  0% { transform: translateX(-50%) scale(0.3); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.thanks-content {
  padding: 34px 22px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.thanks-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(56, 239, 125, 0.14);
  border: 1px solid rgba(56, 239, 125, 0.45);
  color: #7bf1a8;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.thanks-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.18rem, 3.2vw, 1.42rem);
  font-weight: 900;
  line-height: 1.3;
  background: linear-gradient(135deg, #ffffff 15%, #b2f1ff 55%, #f6d365 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.thanks-message {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 440px;
}

.thanks-receipt-card {
  width: 100%;
  background: rgba(6, 12, 22, 0.78);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.thanks-receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.thanks-receipt-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.thanks-receipt-row .t-label {
  color: var(--text-secondary);
}

.thanks-receipt-row .t-val {
  color: #ffffff;
  font-weight: 700;
  text-align: right;
}

.thanks-amount-val {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 900 !important;
  color: #7bf1a8 !important;
  text-shadow: 0 0 10px rgba(56, 239, 125, 0.4);
}

.thanks-tx-meta {
  font-size: 0.74rem;
  color: var(--spectro-gold) !important;
}

.thanks-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
}

.thanks-actions a {
  text-decoration: none;
  padding: 11px 8px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.btn-submit-tiktok {
  background: linear-gradient(135deg, #161823 0%, #2b1530 50%, #fe2c55 100%);
  color: #ffffff;
  border: 1px solid rgba(37, 244, 238, 0.5);
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.35), -2px 0 10px rgba(37, 244, 238, 0.2);
}

.btn-submit-tiktok:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  border-color: #25f4ee;
  box-shadow: 0 6px 20px rgba(254, 44, 85, 0.5), 0 0 12px rgba(37, 244, 238, 0.35);
}

.thanks-done-btn {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thanks-done-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--spectro-cyan);
  color: #ffffff;
}

@media (max-width: 520px) {
  .thanks-content {
    padding: 32px 14px 16px;
  }

  .thanks-actions {
    grid-template-columns: 1fr;
  }
}

/* Khung nhập Tài khoản / Mật khẩu / Server ngay trên mục QR thanh toán */
.sidebar-account-box {
  background: rgba(6, 12, 22, 0.78);
  border: 1px solid rgba(0, 242, 254, 0.34);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: inset 0 0 12px rgba(0, 242, 254, 0.06);
}

.sidebar-account-fields {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sidebar-account-box .form-group {
  gap: 4px;
}

.sidebar-account-box .form-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sidebar-account-box .form-control {
  padding: 8px 11px;
  font-size: 0.82rem;
  background: rgba(12, 22, 40, 0.9);
  border-color: rgba(0, 242, 254, 0.25);
}

.sidebar-account-box .password-input-wrap .form-control {
  padding-right: 34px;
}

.sidebar-account-box .form-control:focus {
  border-color: var(--spectro-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.32);
}

.btn-confirm-account {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #00f2fe 0%, #38ef7d 50%, #ffd166 100%);
  background-size: 200% 200%;
  color: #04101e;
  font-family: var(--font-heading);
  font-size: 0.81rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.5);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-account-box:not(.is-locked) .btn-confirm-account {
  animation: confirmAccBounceGlow 1.75s ease-in-out infinite;
}

.sidebar-account-box:not(.is-locked) .btn-confirm-account::after {
  content: '';
  position: absolute;
  top: 0;
  left: -85%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
  transform: skewX(-22deg);
  animation: confirmAccShine 2.3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes confirmAccBounceGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.45), 0 0 0 0 rgba(0, 242, 254, 0.55);
    filter: brightness(1);
    background-position: 0% 50%;
  }
  45% {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(56, 239, 125, 0.72), 0 0 0 7px rgba(0, 242, 254, 0);
    filter: brightness(1.1);
    background-position: 100% 50%;
  }
  65% {
    transform: translateY(-1px) scale(1.005);
  }
}

@keyframes confirmAccShine {
  0%, 35% {
    left: -85%;
  }
  75%, 100% {
    left: 145%;
  }
}

.btn-confirm-account.shake-remind {
  animation: thanksShake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}

.sidebar-account-box.needs-confirm:not(.is-locked) {
  border-color: rgba(255, 209, 102, 0.78);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.28), inset 0 0 14px rgba(255, 209, 102, 0.12);
}

.btn-confirm-account:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.12);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.7);
}

.sidebar-account-box.is-locked {
  border-color: rgba(56, 239, 125, 0.55);
  background: linear-gradient(180deg, rgba(10, 32, 34, 0.86) 0%, rgba(6, 15, 24, 0.92) 100%);
  box-shadow: 0 0 14px rgba(56, 239, 125, 0.16);
}

.sidebar-account-box.is-locked .form-control:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background: rgba(5, 11, 20, 0.75);
  border-color: rgba(56, 239, 125, 0.25);
  color: #d7f7e6;
}

.sidebar-account-box.is-locked .btn-confirm-account {
  background: rgba(56, 239, 125, 0.16);
  border: 1px solid rgba(56, 239, 125, 0.5);
  color: #7bf1a8;
  box-shadow: none;
  cursor: not-allowed;
  animation: none;
}

.sidebar-account-box.is-locked .btn-confirm-account::after {
  display: none;
}

/* Khóa khung mã QR cho tới khi khách bấm "Xác nhận thông tin tài khoản" */
.bank-qr-card {
  position: relative;
  overflow: hidden;
}

.bank-qr-card.is-account-locked > *:not(.qr-account-lock-overlay) {
  filter: blur(6px);
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
}

.qr-account-lock-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 6;
  padding: 20px 16px;
  background: radial-gradient(circle at 50% 25%, rgba(12, 28, 52, 0.92) 0%, rgba(5, 11, 22, 0.96) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.bank-qr-card.is-account-locked .qr-account-lock-overlay {
  display: flex;
}

.qr-lock-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.18), rgba(255, 209, 102, 0.2));
  border: 1.5px solid rgba(0, 242, 254, 0.55);
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.35);
  animation: confirmAccBounceGlow 2s ease-in-out infinite;
}

.qr-lock-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.qr-lock-desc {
  font-size: 0.77rem;
  line-height: 1.5;
  color: #b8d2ec;
  max-width: 280px;
}

.qr-lock-desc strong {
  color: #ffd166;
}

.btn-focus-confirm-acc {
  margin-top: 4px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 242, 254, 0.65);
  background: rgba(0, 242, 254, 0.15);
  color: #8ef7ff;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-focus-confirm-acc:hover {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #04101e;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.55);
  transform: translateY(-1px);
}

/* Nút bắt buộc tải ảnh xác nhận đơn hàng trước khi đóng */
.btn-download-thanks {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border: 1.5px solid #ffe48a;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #0b1322;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(246, 211, 101, 0.45);
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: downloadPulseGlow 2s infinite ease-in-out;
}

@keyframes downloadPulseGlow {
  0%, 100% { box-shadow: 0 4px 18px rgba(246, 211, 101, 0.4); }
  50% { box-shadow: 0 6px 28px rgba(246, 211, 101, 0.78); }
}

.btn-download-thanks:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-download-thanks.is-downloaded {
  background: linear-gradient(135deg, rgba(56, 239, 125, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
  border-color: #38ef7d;
  color: #8affba;
  box-shadow: 0 0 14px rgba(56, 239, 125, 0.28);
  animation: none;
}

.btn-download-thanks.shake-remind {
  animation: thanksShake 0.42s ease-in-out;
}

@keyframes thanksShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.thanks-download-hint {
  font-size: 0.74rem;
  font-weight: 600;
  color: #ffdf7e;
  line-height: 1.4;
  margin-top: -4px;
}

.thanks-download-hint.is-done {
  color: #7bf1a8;
}

.thanks-close-btn.is-locked,
.thanks-done-btn.is-locked {
  opacity: 0.42;
  cursor: not-allowed;
}

.thanks-close-btn.is-locked:hover,
.thanks-done-btn.is-locked:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
}

/* ==========================================================================
   VIEW 5: BẢNG CỨU CONTENT ENDGAME (THÁP • THUYỀN • MATRIX)
   ========================================================================== */
.page-wrapper.endgame-view-active {
  max-width: 1380px;
  width: 96%;
}

.endgame-service-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInView 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.endgame-content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  width: 100%;
}

.endgame-board-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

#endgameSearchInput {
  width: 100%;
  padding: 10px 36px 10px 40px;
  background: rgba(6, 12, 22, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

#endgameSearchInput::placeholder {
  color: var(--text-muted);
}

#endgameSearchInput:focus {
  border-color: var(--spectro-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

/* ==========================================================================
   MỤC HỎI KHÁCH CÓ MẤY TEAM (1, 2, 3, 4 TEAM)
   ========================================================================== */
.endgame-team-selector-card {
  background: linear-gradient(135deg, rgba(16, 30, 56, 0.94) 0%, rgba(9, 17, 32, 0.97) 100%);
  border: 1.5px solid rgba(246, 211, 101, 0.55);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.62), 0 0 24px rgba(246, 211, 101, 0.14), inset 0 0 20px rgba(0, 242, 254, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
}

.endgame-team-selector-card.remind-pulse {
  animation: thanksShake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: #00f2fe;
  box-shadow: 0 0 32px rgba(0, 242, 254, 0.55), 0 0 22px rgba(246, 211, 101, 0.45);
}

.team-selector-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.team-selector-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 240px;
}

.team-selector-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(246, 211, 101, 0.2) 0%, rgba(0, 242, 254, 0.16) 100%);
  border: 1px solid rgba(246, 211, 101, 0.55);
  color: var(--spectro-gold);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.team-selector-heading {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.4px;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.team-selector-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.team-selector-desc strong {
  color: #e6f9ff;
}

.team-selector-desc em {
  color: var(--spectro-gold);
  font-style: normal;
  font-weight: 700;
}

.btn-reset-team {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-reset-team:hover {
  background: rgba(255, 0, 85, 0.2);
  border-color: rgba(255, 0, 85, 0.5);
  color: #ffffff;
}

.team-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.team-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 13px 15px;
  background: rgba(8, 16, 30, 0.85);
  border: 1.5px solid rgba(0, 242, 254, 0.26);
  border-radius: var(--radius-md);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.team-choice-btn:hover {
  transform: translateY(-3px);
  border-color: var(--spectro-cyan);
  background: rgba(16, 32, 58, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 14px rgba(0, 242, 254, 0.28);
}

.team-choice-btn.is-active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.22) 0%, rgba(246, 211, 101, 0.16) 55%, rgba(12, 28, 52, 0.96) 100%);
  border-color: var(--spectro-gold);
  box-shadow: 0 0 22px rgba(246, 211, 101, 0.38), 0 0 14px rgba(0, 242, 254, 0.35), inset 0 0 14px rgba(0, 242, 254, 0.14);
  transform: translateY(-3px);
}

.team-choice-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-choice-num {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #ffffff;
}

.team-choice-btn.is-active .team-choice-num {
  color: var(--spectro-gold);
  text-shadow: 0 0 10px rgba(246, 211, 101, 0.55);
}

.team-choice-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 242, 254, 0.55);
  background: rgba(4, 10, 20, 0.75);
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.team-choice-btn.is-active .team-choice-dot {
  background: linear-gradient(135deg, #00f2fe 0%, #38ef7d 100%);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.75);
}

.team-choice-btn.is-active .team-choice-dot::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #04101e;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

.team-choice-unlock-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #d8f6ff;
  line-height: 1.35;
}

.team-choice-sub-note {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

.team-choice-sub-note.unlocked-boat {
  color: #7bf1a8;
}

.team-choice-sub-note.unlocked-max {
  color: var(--spectro-gold);
}

.team-selector-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(6, 12, 24, 0.85);
  border: 1px dashed rgba(0, 242, 254, 0.38);
  font-size: 0.81rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.team-selector-status-bar.has-team {
  background: linear-gradient(90deg, rgba(16, 231, 160, 0.14), rgba(0, 242, 254, 0.14));
  border-style: solid;
  border-color: rgba(56, 239, 125, 0.55);
}

.team-status-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   3 MỤC LỚN: THÁP • THUYỀN • MATRIX
   ========================================================================== */
.endgame-group-frame {
  --eg-accent: #00f2fe;
  --eg-soft: rgba(0, 242, 254, 0.14);
  --eg-border: rgba(0, 242, 254, 0.38);
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.92) 0%, rgba(7, 13, 24, 0.96) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--eg-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6), inset 0 0 22px var(--eg-soft);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.endgame-group-frame.group-thap {
  --eg-accent: #f6d365;
  --eg-soft: rgba(246, 211, 101, 0.12);
  --eg-border: rgba(246, 211, 101, 0.45);
}

.endgame-group-frame.group-thuyen {
  --eg-accent: #10e7dc;
  --eg-soft: rgba(16, 231, 220, 0.12);
  --eg-border: rgba(16, 231, 220, 0.45);
}

.endgame-group-frame.group-matrix {
  --eg-accent: #00f2fe;
  --eg-soft: rgba(0, 242, 254, 0.12);
  --eg-border: rgba(0, 242, 254, 0.45);
}

.endgame-group-frame:hover {
  border-color: var(--eg-accent);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.68), 0 0 24px var(--eg-soft);
}

.endgame-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.endgame-group-title-left {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.endgame-group-order-badge {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 900;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eg-accent);
  color: #04101e;
  border-radius: 9px;
  box-shadow: 0 0 12px var(--eg-soft);
}

.endgame-group-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 0 12px var(--eg-soft);
}

.endgame-group-rule-pill {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--eg-soft);
  border: 1px solid var(--eg-border);
  color: var(--eg-accent);
}

.endgame-group-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.endgame-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.endgame-option-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  background: rgba(14, 25, 44, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.42);
}

.endgame-option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.endgame-option-card:not(.is-team-locked):hover {
  background: rgba(20, 38, 66, 0.94);
  border-color: var(--eg-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 14px var(--eg-soft);
}

.endgame-option-card.is-tier-match:not(.is-selected):not(.is-team-locked) {
  border-color: rgba(246, 211, 101, 0.65);
  background: linear-gradient(135deg, rgba(246, 211, 101, 0.1) 0%, rgba(14, 26, 46, 0.9) 100%);
}

.endgame-option-card.is-selected {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(14, 34, 60, 0.96) 100%);
  border-color: var(--spectro-cyan);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.38), inset 0 0 12px rgba(0, 242, 254, 0.14);
}

.endgame-option-card.is-selected::before {
  background: var(--spectro-cyan);
  box-shadow: 0 0 10px var(--spectro-cyan);
}

/* Trạng thái khóa khi chưa đủ số Team */
.endgame-option-card.is-team-locked {
  background: rgba(7, 13, 24, 0.65);
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  opacity: 0.62;
  cursor: not-allowed;
}

.endgame-option-card.is-team-locked:hover {
  border-color: rgba(255, 107, 129, 0.48);
  opacity: 0.78;
}

.endgame-check-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Radio indicator cho Tháp & Thuyền (chỉ chọn 1) */
.endgame-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0, 242, 254, 0.58);
  background: rgba(4, 10, 20, 0.75);
  position: relative;
  transition: all 0.18s ease;
}

.endgame-option-card.is-selected .endgame-radio-indicator {
  background: linear-gradient(135deg, #00f2fe 0%, #38ef7d 100%);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.75);
}

.endgame-option-card.is-selected .endgame-radio-indicator::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #04101e;
  border-width: 0 2.3px 2.3px 0;
  transform: rotate(45deg);
}

.endgame-option-card.is-team-locked .endgame-radio-indicator {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.endgame-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.endgame-card-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.endgame-card-icon {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

.endgame-card-name {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.endgame-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.eg-req-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
}

.eg-req-pill.is-unlocked {
  background: rgba(56, 239, 125, 0.14);
  border-color: rgba(56, 239, 125, 0.42);
  color: #7bf1a8;
}

.eg-req-pill.is-locked {
  background: rgba(255, 99, 132, 0.14);
  border-color: rgba(255, 99, 132, 0.4);
  color: #ff99ac;
}

.eg-req-pill.is-free {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.35);
  color: var(--spectro-cyan);
}

.endgame-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  min-width: 66px;
  padding-left: 8px;
  border-left: 1px dashed rgba(255, 255, 255, 0.14);
}

.endgame-price-k {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.endgame-price-vnd {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--spectro-gold);
  margin-top: 2px;
  white-space: nowrap;
}

.endgame-option-card.is-selected .endgame-price-k {
  color: var(--spectro-cyan);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.65);
}

.endgame-option-card.is-selected .endgame-price-vnd {
  color: #88fbc0;
}

.selected-chip-endgame {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 28, 50, 0.92);
  border: 1px solid rgba(0, 242, 254, 0.48);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
}

.selected-chip-endgame .chip-boss-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 242, 254, 0.65);
  background: #081224;
  flex-shrink: 0;
}

/* ==========================================================================
   MỤC LỚN 4: HOLOGRAM 6 (10K / CON) — 4 MỤC NHỎ & AVATAR BOSS TÍCH [V]
   ========================================================================== */
.endgame-group-frame.group-hologram {
  --eg-accent: #ff477e;
  --eg-soft: rgba(255, 71, 126, 0.14);
  --eg-border: rgba(255, 71, 126, 0.48);
}

.hologram-subgroups-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.hologram-major-frame {
  background: rgba(8, 15, 28, 0.78);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: var(--radius-lg);
  padding: 15px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.hologram-major-frame:hover {
  border-color: rgba(0, 242, 254, 0.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 0 14px rgba(0, 242, 254, 0.05);
}

.hologram-major-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 11px;
  margin-bottom: 13px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

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

.hologram-region-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.32);
  color: var(--spectro-cyan);
}

.hologram-boss-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.hologram-boss-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(14, 25, 44, 0.84);
  border: 1.5px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.42);
}

.hologram-boss-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5px;
  height: 100%;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hologram-boss-card:hover {
  background: rgba(22, 40, 68, 0.94);
  border-color: rgba(0, 242, 254, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), 0 0 14px rgba(0, 242, 254, 0.22);
}

.hologram-boss-card.is-selected {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(16, 36, 64, 0.96) 100%);
  border-color: var(--spectro-cyan);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.35), inset 0 0 12px rgba(0, 242, 254, 0.12);
}

.hologram-boss-card.is-selected::before {
  background: var(--spectro-cyan);
  box-shadow: 0 0 10px var(--spectro-cyan);
}

.hologram-boss-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 35%, rgba(0, 242, 254, 0.22), #07101f 75%);
  border: 1.5px solid rgba(0, 242, 254, 0.42);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  transition: all 0.22s ease;
}

.hologram-boss-card:hover .hologram-boss-avatar-wrap {
  transform: scale(1.06);
  border-color: var(--spectro-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.45);
}

.hologram-boss-card.is-selected .hologram-boss-avatar-wrap {
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.75);
}

.hologram-boss-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hologram-boss-lvl-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, #ff0055 0%, #ff5e62 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.54rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 5px 0 0 0;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.hologram-boss-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hologram-boss-name {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hologram-boss-sub {
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hologram-boss-card.is-selected .hologram-boss-sub {
  color: #9bf7c4;
}

.hologram-boss-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  min-width: 54px;
  padding-left: 6px;
  border-left: 1px dashed rgba(255, 255, 255, 0.14);
}

.hologram-boss-price-k {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.hologram-boss-price-vnd {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--spectro-gold);
  margin-top: 2px;
}

.hologram-boss-card.is-selected .hologram-boss-price-k {
  color: var(--spectro-cyan);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.65);
}

.hologram-boss-card.is-selected .hologram-boss-price-vnd {
  color: #88fbc0;
}

/* Responsive cho Bảng Cứu Content Endgame */
@media (max-width: 1180px) {
  .endgame-cards-grid,
  .hologram-boss-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .endgame-content-columns {
    grid-template-columns: 1fr;
  }

  body.in-endgame-view #endgameMobileStickyBar {
    display: flex;
  }

  body.in-endgame-view .page-wrapper {
    padding-bottom: 92px;
  }

  body.in-endgame-view .toast-notification {
    bottom: 84px;
  }
}

@media (max-width: 640px) {
  .page-wrapper.endgame-view-active {
    width: 100%;
  }

  .endgame-team-selector-card,
  .endgame-group-frame {
    padding: 14px;
    border-radius: var(--radius-lg);
  }

  .hologram-major-frame {
    padding: 12px;
  }

  .team-selector-grid,
  .endgame-cards-grid,
  .hologram-boss-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
