/* =========================================================================
   ZEX SHOP — BỐ CỤC GỐC + NỀN XANH ĐEN + KHUNG ẢNH / BANNER TRỐNG SẴN SÀNG
   ========================================================================= */

:root {
  --bg-main: #080F1C;
  --bg-sub: #0D1929;
  --bg-card: #132238;
  --bg-card-hover: #172A44;
  --bg-input: #0A1424;
  --bg-slot: #091322;

  --accent: #3B82F6;
  --accent-hover: #60A5FA;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-border: rgba(59, 130, 246, 0.45);

  --border: #223750;
  --border-subtle: rgba(34, 55, 80, 0.72);
  --border-dashed: rgba(96, 165, 250, 0.24);

  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --success: #22C55E;
  --success-soft: rgba(34, 197, 94, 0.12);
  --danger: #EF4444;
  --danger-soft: rgba(239, 68, 68, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 4px 14px rgba(3, 8, 18, 0.3);
  --shadow-md: 0 12px 28px rgba(3, 8, 18, 0.45);
  --shadow-lg: 0 24px 56px rgba(2, 6, 14, 0.68);

  --font-sans: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  max-width: 100%;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  background-image: linear-gradient(180deg, #0A1426 0%, #080F1C 45%, #060C17 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1D314A;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.container {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================================================================
   EMPTY IMAGE / BANNER PLACEHOLDER FRAME STYLING
   ========================================================================= */
.empty-slot {
  width: 100%;
  flex: 1;
  background: var(--bg-slot);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  text-align: center;
  padding: 12px;
  user-select: none;
}

.empty-slot svg {
  width: 28px;
  height: 28px;
  opacity: 0.45;
  color: var(--accent-hover);
}

.empty-slot-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-dim);
}

.empty-slot-size {
  font-size: 0.68rem;
  color: rgba(100, 116, 139, 0.72);
}

.empty-thumb-mini {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-slot);
  border: 1px dashed var(--border-dashed);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  flex-shrink: 0;
}

.empty-thumb-mini svg {
  width: 16px;
  height: 16px;
  opacity: 0.55;
}

.empty-thumb-md {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-slot);
  border: 1px dashed var(--border-dashed);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  flex-shrink: 0;
}

.empty-thumb-md svg {
  width: 18px;
  height: 18px;
  opacity: 0.55;
}

.empty-thumb-cart {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--bg-slot);
  border: 1px dashed var(--border-dashed);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  flex-shrink: 0;
}

.empty-thumb-cart svg {
  width: 20px;
  height: 20px;
  opacity: 0.55;
}

/* =========================================================================
   NAVIGATION BAR (MẪU 3 — KHUNG KÍNH CYBER + ĐÈN GẦM NEON)
   ========================================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 16px 6px;
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.9) 0%, rgba(8, 15, 28, 0.42) 70%, transparent 100%);
  pointer-events: none;
}

.navbar-inner {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 30, 54, 0.92) 0%, rgba(9, 18, 34, 0.95) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow: 0 12px 32px rgba(2, 6, 18, 0.56), inset 0 1px 0 rgba(147, 197, 253, 0.12);
}

.navbar-inner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 16%;
  right: 16%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #3B82F6, #93C5FD, #3B82F6, transparent);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.65);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.36));
}

/* Navbar Chibi Logo — Mẫu 6: Vòng Cực Quang Pop-out */
@keyframes brandChibiRingSpin {
  to { transform: rotate(360deg); }
}

.brand-logo-chibi {
  position: relative;
  width: 52px;
  height: 52px;
}

.brand-chibi-ring {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1E3A8A, #3B82F6, #93C5FD, #38BDF8, #1E3A8A);
  padding: 2px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.55);
  animation: brandChibiRingSpin 3.4s linear infinite;
  z-index: 1;
  pointer-events: none;
  transition: box-shadow 0.28s ease, filter 0.28s ease;
}

.brand-chibi-ring::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0A1527;
}

.brand-logo-chibi img {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  transform: translateY(-2px);
  filter: drop-shadow(0 3px 8px rgba(59, 130, 246, 0.45));
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), filter 0.28s ease;
}

.brand:hover .brand-logo-chibi img {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 6px 14px rgba(56, 189, 248, 0.72));
}

.brand:hover .brand-chibi-ring {
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.82);
  filter: brightness(1.16);
}

.auth-brand-mini img {
  background: transparent !important;
  border: none !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 6px rgba(59, 130, 246, 0.34));
}

.brand-text {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text-main);
  white-space: nowrap;
}

.brand-title .accent {
  color: var(--accent);
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(59, 130, 246, 0.09);
  border-color: rgba(96, 165, 250, 0.2);
}

.nav-item.active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 16px rgba(59, 130, 246, 0.18);
}

.nav-item.active svg {
  color: #93C5FD;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 2.5px;
  background: linear-gradient(90deg, #3B82F6, #93C5FD, #3B82F6);
  border-radius: 99px;
  box-shadow: 0 0 12px #60A5FA, 0 0 5px #93C5FD;
}

/* Dropdown */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
  animation: fadeSlideDown 0.16s ease;
}

.nav-dropdown.open {
  display: flex;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  transition: background-color 0.16s ease, color 0.16s ease;
  width: 100%;
}

.dropdown-link svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.dropdown-link:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

.dropdown-link:hover svg {
  color: var(--accent-hover);
}

.dropdown-link.danger {
  color: #FCA5A5;
}
.dropdown-link.danger svg {
  color: var(--danger);
}
.dropdown-link.danger:hover {
  background: var(--danger-soft);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(15, 29, 51, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.24);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.cart-btn:hover {
  border-color: rgba(96, 165, 250, 0.58);
  color: #ffffff;
  background: rgba(30, 58, 108, 0.52);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.24);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #091222;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.55);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 5px;
  border-radius: 10px;
  background: rgba(15, 29, 51, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.28);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.user-pill:hover {
  border-color: rgba(96, 165, 250, 0.58);
  background: rgba(30, 58, 108, 0.5);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.22);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  text-transform: uppercase;
}

.user-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-balance-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  font-size: 0.78rem;
  font-weight: 600;
}

.auth-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  place-items: center;
  color: var(--text-main);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-main);
  border-color: var(--accent-border);
  background: var(--bg-sub);
}

.btn-disabled, .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 11px 20px;
  font-size: 0.92rem;
  border-radius: 10px;
}

.w-full {
  width: 100%;
}

/* =========================================================================
   VIEWS
   ========================================================================= */
.page-view {
  display: none;
  padding: 42px 0 96px;
  animation: fadeIn 0.22s ease;
}

.page-view.active {
  display: block;
}

/* =========================================================================
   HERO SECTION (BANNER TRÁI RỘNG + 4 THẺ THỐNG KÊ DỌC BÊN PHẢI — HYPERZ STYLE)
   ========================================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 58px;
}

.hero-banner-stage {
  perspective: 1050px;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 392px;
}

.hero-banner-frame {
  position: relative;
  width: 100%;
  min-height: 392px;
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-3d-shadow {
  position: absolute;
  inset: 8px;
  border-radius: 20px;
  background: rgba(2, 6, 18, 0.85);
  box-shadow: 0 22px 48px rgba(2, 6, 18, 0.78), 0 0 28px rgba(59, 130, 246, 0.22);
  transform: translateZ(-22px);
  pointer-events: none;
  z-index: 0;
  transition: box-shadow 0.28s ease;
}

.hero-banner-frame.tilting .hero-3d-shadow {
  box-shadow: 0 28px 58px rgba(2, 6, 18, 0.9), 0 0 38px rgba(59, 130, 246, 0.36);
}

.hero-3d-surface {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 392px;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px dashed rgba(59, 130, 246, 0.38);
  background:
    radial-gradient(560px 220px at 50% 0%, rgba(59, 130, 246, 0.08), transparent 72%),
    #0A1424;
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: border-color 0.24s ease;
}

.hero-banner-frame.has-image .hero-3d-surface {
  border-style: solid;
  border-color: rgba(96, 165, 250, 0.44);
}

.hero-banner-frame.tilting .hero-3d-surface {
  border-color: rgba(147, 197, 253, 0.75);
}

.hero-3d-glare {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(
    360px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(224, 242, 254, 0.28) 0%,
    rgba(96, 165, 250, 0.11) 40%,
    transparent 70%
  );
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.hero-banner-frame.tilting .hero-3d-glare {
  opacity: 1;
}

.hero-banner-frame img,
.hero-banner-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
}

.stats-stack {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 1.4px;
  background: rgba(34, 55, 80, 0.72);
  display: flex;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
}

.stat-card-spot {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(
    180px circle at var(--mx, 50%) var(--my, 30%),
    #BAE6FD 0%,
    #3B82F6 44%,
    transparent 74%
  );
  opacity: 0.42;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.22s ease;
}

.stat-card:hover {
  transform: translateX(-3px);
  box-shadow: 0 10px 24px rgba(2, 6, 18, 0.52), 0 0 20px rgba(59, 130, 246, 0.24);
}

.stat-card:hover .stat-card-spot {
  opacity: 1;
}

.stat-card-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  border-radius: 12.6px;
  background: linear-gradient(180deg, #0D192B 0%, #091220 100%);
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
}

.stat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 2;
}

.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.34);
  display: grid;
  place-items: center;
  color: #60A5FA;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stat-card:hover .stat-icon {
  background: rgba(59, 130, 246, 0.28);
  border-color: #93C5FD;
  color: #E0F2FE;
}

.stat-icon svg {
  width: 15px;
  height: 15px;
}

.stat-label {
  font-size: 0.83rem;
  color: #CBD5E1;
  font-weight: 600;
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 800;
  color: #60A5FA;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 500;
}

.stat-watermark {
  position: absolute;
  right: 10px;
  bottom: 4px;
  width: 48px;
  height: 48px;
  color: #60A5FA;
  opacity: 0.065;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.22s ease, transform 0.24s ease;
}

.stat-card:hover .stat-watermark {
  opacity: 0.13;
  transform: scale(1.06);
}

.empty-section-frame {
  background: var(--bg-sub);
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--text-muted);
}

.empty-section-frame svg {
  width: 30px;
  height: 30px;
  color: var(--accent-hover);
  opacity: 0.5;
}

.empty-section-frame strong {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.empty-section-frame span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.live-empty-msg {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-slot);
  border: 1px dashed var(--border-dashed);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

/* =========================================================================
   DISCORD COMMUNITY MARQUEE STRIP (HOME)
   ========================================================================= */
.discord-marquee-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  margin-bottom: 64px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 25, 44, 0.94) 0%, rgba(8, 15, 28, 0.98) 100%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow:
    0 12px 32px rgba(2, 6, 18, 0.55),
    inset 0 1px 0 rgba(147, 197, 253, 0.08);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.discord-marquee-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 56px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563EB, #38BDF8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.discord-marquee-bar:hover {
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow:
    0 14px 36px rgba(2, 6, 18, 0.62),
    0 0 24px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(147, 197, 253, 0.14);
}

.dmb-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.dmb-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #60A5FA;
  box-shadow: inset 0 1px 0 rgba(191, 219, 254, 0.16), 0 0 14px rgba(37, 99, 235, 0.18);
  flex-shrink: 0;
}

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

.dmb-name {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.dmb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #94A3B8;
  line-height: 1.15;
}

.dmb-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2), 0 0 8px rgba(34, 197, 94, 0.85);
  animation: dmbPulseDot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dmbPulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2), 0 0 8px rgba(34, 197, 94, 0.85);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08), 0 0 12px rgba(34, 197, 94, 1);
  }
}

.dmb-marquee-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.dmb-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: dmbMarqueeScroll 26s linear infinite;
}

.discord-marquee-bar:hover .dmb-marquee-track {
  animation-play-state: paused;
}

.dmb-marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dmb-marquee-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(90deg, #E2EEFF 0%, #7DD3FC 50%, #E2EEFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.22));
}

.dmb-marquee-sep {
  display: inline-block;
  margin: 0 28px;
  font-size: 0.78rem;
  color: #38BDF8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.85);
  flex-shrink: 0;
}

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

.dmb-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 58%, #38BDF8 100%);
  border: 1px solid rgba(147, 197, 253, 0.35);
  box-shadow:
    0 6px 20px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition: transform 0.2s ease, box-shadow 0.22s ease, filter 0.2s ease;
}

.dmb-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow:
    0 8px 26px rgba(37, 99, 235, 0.58),
    0 0 18px rgba(56, 189, 248, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.dmb-cta-btn:active {
  transform: translateY(0);
}

.dmb-cta-arrow {
  transition: transform 0.2s ease;
}

.dmb-cta-btn:hover .dmb-cta-arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .discord-marquee-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    margin-bottom: 48px;
  }

  .dmb-left {
    order: 1;
  }

  .dmb-cta-btn {
    order: 2;
    padding: 9px 14px;
    font-size: 0.8rem;
  }

  .dmb-marquee-viewport {
    order: 3;
    flex-basis: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(59, 130, 246, 0.16);
  }

  .dmb-marquee-text {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .dmb-cta-btn {
    width: 100%;
  }
}

/* =========================================================================
   LIVE RECENT PURCHASES BAR (LEGACY STYLES)
   ========================================================================= */
.live-feed-box {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px 20px;
  margin-bottom: 68px;
  overflow: hidden;
}

.live-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.live-feed-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.live-feed-title svg {
  width: 17px;
  height: 17px;
  color: var(--accent-hover);
}

.live-feed-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-hover);
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hover);
}

.live-feed-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.ticker-nav-btn:hover {
  border-color: var(--accent-hover);
  color: var(--text-main);
  background: var(--bg-card);
  transform: scale(1.06);
}

.ticker-viewport {
  overflow-x: hidden;
  position: relative;
  padding-top: 12px;
  border-top: 1px solid rgba(34, 55, 80, 0.55);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-left: 100%;
  will-change: transform;
  animation: tickerSingleLoop var(--ticker-duration, 18s) linear infinite;
  animation-delay: -3s;
}

.ticker-viewport:hover .ticker-track {
  animation-play-state: paused;
}

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

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  background: linear-gradient(145deg, #101E34 0%, #0B1526 100%);
  border: 1px solid var(--border);
  border-radius: 13px;
  width: 242px;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.22s ease;
}

.ticker-item:hover {
  border-color: rgba(96, 165, 250, 0.6);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(3, 8, 18, 0.42), 0 0 16px rgba(59, 130, 246, 0.18);
}

.ticker-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ticker-item:hover .ticker-avatar {
  border-color: var(--accent-hover);
  transform: scale(1.05);
}

.ticker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticker-avatar svg {
  width: 18px;
  height: 18px;
  opacity: 0.65;
}

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

.ticker-prod {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.ticker-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.ticker-meta-row.dim {
  color: var(--text-dim);
}

.ticker-meta-row svg {
  flex-shrink: 0;
  opacity: 0.75;
}

/* =========================================================================
   SECTION HEADERS (CLASSIC HORIZONTAL LINE STYLE)
   ========================================================================= */
.section-block {
  margin-bottom: 72px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  color: var(--accent-hover);
  flex-shrink: 0;
}

.section-icon svg {
  width: 18px;
  height: 18px;
}

.section-title-group {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
}

.section-count-pill {
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent-hover);
  font-size: 0.74rem;
  font-weight: 600;
}

.section-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, rgba(34, 55, 80, 0.25) 60%, transparent 100%);
}

/* =========================================================================
   AUTOMATED DELIVERY PROCESS (4 NUMBERED STEP CARDS — DARK NAVY BLUE)
   ========================================================================= */
.process-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.process-title {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.process-title .accent {
  color: var(--accent-hover);
  font-weight: 600;
}

.process-pill {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
}

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

.feature-card {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-sub) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.process-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent-hover);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 19px;
  height: 19px;
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.feature-card h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.58;
}

/* =========================================================================
   FEATURED CATEGORIES (2 COLUMNS SIDE-BY-SIDE MATCHING USER SAMPLE)
   ========================================================================= */
.featured-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.featured-cat-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.featured-cat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.featured-cat-label::before {
  content: '';
  width: 3px;
  height: 15px;
  border-radius: 99px;
  background: var(--accent);
  flex-shrink: 0;
}

.featured-cat-box {
  position: relative;
  height: 246px;
  border-radius: 16px;
  padding: 1.5px;
  overflow: hidden;
  background: var(--border-dashed);
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background-color 0.24s ease;
}

.featured-cat-box.has-image {
  background: var(--border);
}

.featured-cat-box::after {
  display: none !important;
}

.fcat-border-beam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220%;
  aspect-ratio: 1 / 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 245deg,
    #2563EB 295deg,
    #60A5FA 330deg,
    #BAE6FD 352deg,
    transparent 360deg
  );
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: fcatBorderSpin 2.6s linear infinite;
  transition: opacity 0.28s ease;
}

@keyframes fcatBorderSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.featured-cat-item:hover .fcat-border-beam {
  opacity: 1;
}

.featured-cat-item:hover .featured-cat-box {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(3, 8, 18, 0.58), 0 0 28px rgba(59, 130, 246, 0.34);
}

.fcat-surface {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 14.5px;
  overflow: hidden;
  background: var(--bg-slot);
  border: 1px dashed rgba(96, 165, 250, 0.22);
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: border-color 0.25s ease;
}

.featured-cat-box.has-image .fcat-surface,
.featured-cat-item:hover .fcat-surface {
  border-color: transparent;
}

.fcat-spotlight {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(96, 165, 250, 0.2),
    rgba(59, 130, 246, 0.05) 45%,
    transparent 70%
  );
  transition: opacity 0.28s ease;
}

.featured-cat-item:hover .fcat-spotlight {
  opacity: 1;
}

.fcat-media-layer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease, opacity 0.32s ease;
}

.fcat-media-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-cat-item:hover .fcat-media-layer {
  transform: scale(1.05);
  filter: blur(2.5px) brightness(0.45);
}

.featured-cat-count {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.88);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.featured-cat-item:hover .featured-cat-count {
  opacity: 0;
  transform: translateY(-4px);
}

.featured-cat-count-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.featured-cat-count-icon svg {
  width: 14px;
  height: 14px;
}

/* Darkened Hover Overlay (Icon + Title + Small Product Count Pill + Explore CTA) */
.fcat-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 20px 22px;
  background: linear-gradient(120deg, rgba(6, 12, 24, 0.84) 0%, rgba(8, 17, 34, 0.64) 60%, rgba(10, 22, 44, 0.56) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.featured-cat-item:hover .fcat-hover-overlay {
  opacity: 1;
}

.fcat-hover-left {
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(8px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-cat-item:hover .fcat-hover-left {
  transform: translateY(0);
}

.fcat-hover-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fcat-hover-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.24);
  border: 1px solid rgba(96, 165, 250, 0.55);
  color: #93C5FD;
  display: grid;
  place-items: center;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
  flex-shrink: 0;
}

.fcat-hover-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #F8FAFC;
  text-transform: uppercase;
}

.fcat-hover-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.46);
  color: #E0F2FE;
  font-size: 0.78rem;
  font-weight: 600;
}

.fcat-hover-cta {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 60%, #60A5FA 100%);
  border: 1px solid rgba(147, 197, 253, 0.55);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.5);
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  flex-shrink: 0;
}

.featured-cat-item:hover .fcat-hover-cta {
  transform: translateY(0);
}

.fcat-hover-cta svg {
  transition: transform 0.22s ease;
}

.featured-cat-item:hover .fcat-hover-cta svg {
  transform: translate(2px, -2px);
}

/* =========================================================================
   6 WIDE CATEGORY BANNER FRAMES (2 COLUMNS × 3 ROWS — EMPTY READY FOR IMAGES)
   ========================================================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.category-banner-frame {
  position: relative;
  height: 152px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px dashed var(--border-dashed);
  background: var(--bg-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.category-banner-frame.has-image {
  border-style: solid;
  border-color: var(--border);
}

.category-banner-frame:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.category-banner-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-frame-footer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  pointer-events: none;
}

.category-frame-name {
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(8, 15, 28, 0.75);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.category-frame-action {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-hover);
  background: rgba(8, 15, 28, 0.75);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* =========================================================================
   ZEX PRODUCT CARD (MATCHING USER REFERENCE — DARK NAVY BLUE STYLE)
   ========================================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 28px;
  padding-top: 10px;
}

.zex-card {
  position: relative;
  background: rgba(34, 55, 80, 0.72);
  border: none;
  border-radius: 17px;
  padding: 1.5px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
}

.zex-card-clip {
  position: absolute;
  inset: 0;
  border-radius: 17px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.zex-card-spot-out {
  position: absolute;
  inset: 0;
  border-radius: 17px;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 18%),
    #BAE6FD 0%,
    #3B82F6 44%,
    transparent 74%
  );
  opacity: 0.5;
  transition: opacity 0.22s ease;
}

.zex-card:hover:not(.out-of-stock) {
  transform: translateY(-4px);
  box-shadow:
    0 14px 32px rgba(2, 6, 18, 0.62),
    0 0 24px rgba(59, 130, 246, 0.32);
}

.zex-card:hover:not(.out-of-stock) .zex-card-spot-out {
  opacity: 1;
}

.zex-card.out-of-stock .zex-card-spot-out {
  opacity: 0;
}

.zex-card-inner {
  position: relative;
  z-index: 2;
  border-radius: 15.5px;
  background: linear-gradient(180deg, #0D192B 0%, #091220 100%);
  padding: 11px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* Mẫu 6: Tan Sương Băng + Tia Sáng Quét (Store Products Reveal) */
.zex-card.frost-pending {
  opacity: 0;
  filter: blur(11px);
  transform: translate3d(0, 18px, 0) scale(0.94);
  pointer-events: none;
  will-change: opacity, filter, transform;
}

.zex-card.frost-revealing {
  animation: zexFrostUnblur 0.66s cubic-bezier(0.22, 1, 0.36, 1) var(--frost-delay, 0ms) both;
  will-change: opacity, filter, transform;
}

.zex-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(125, 211, 252, 0.26) 50%,
    transparent 72%
  );
  transform: translateX(-135%);
  pointer-events: none;
  z-index: 6;
}

.zex-card.frost-shimmering .zex-card-inner::after {
  animation: zexFrostShimmer 0.78s ease-out calc(var(--frost-delay, 0ms) + 170ms) forwards;
}

@keyframes zexFrostUnblur {
  0% {
    opacity: 0;
    filter: blur(11px);
    transform: translate3d(0, 18px, 0) scale(0.94);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes zexFrostShimmer {
  0% {
    transform: translateX(-135%);
  }
  100% {
    transform: translateX(135%);
  }
}

.zex-badge-hot {
  position: absolute;
  top: -14px;
  left: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: #0B1526;
  border: 1px solid var(--accent-border);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(3, 8, 18, 0.55);
}

.zex-badge-hot-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
}

.zex-badge-hot-dot svg {
  width: 12px;
  height: 12px;
}

.zex-media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  padding: 1.5px;
  margin-bottom: 12px;
  background: rgba(34, 55, 80, 0.72);
  transition: box-shadow 0.24s ease;
}

.zex-media-spot-in {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: radial-gradient(
    180px circle at var(--imx, 50%) var(--imy, 24%),
    #E0F2FE 0%,
    #60A5FA 44%,
    transparent 74%
  );
  opacity: 0.48;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.22s ease;
}

.zex-card:hover:not(.out-of-stock) .zex-media-spot-in {
  opacity: 1;
}

.zex-card:hover:not(.out-of-stock) .zex-media-frame {
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.26);
}

.zex-card-media {
  position: relative;
  z-index: 2;
  aspect-ratio: 1 / 1;
  border-radius: 11.5px;
  overflow: hidden;
  background: var(--bg-slot);
  border: none;
  margin-bottom: 0;
  cursor: pointer;
  display: flex;
  align-items: stretch;
}

.zex-card-media.has-image {
  border: none;
}

.zex-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease, filter 0.32s ease;
}

.zex-card:hover:not(.out-of-stock) .zex-card-media > img,
.zex-card:hover:not(.out-of-stock) .zex-card-media .empty-slot {
  filter: blur(4px) brightness(0.42);
  transform: scale(1.05);
  transition: transform 0.38s ease, filter 0.32s ease;
}

/* Hover 3D Twin Comets Orbit (Mẫu 8) + Floating Sparkles + Chibi Overlay */
.zex-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(6, 12, 24, 0.52);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.zex-card:hover:not(.out-of-stock) .zex-hover-overlay {
  opacity: 1;
}

.zex-aurora-stage {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  perspective: 420px;
  transform-style: preserve-3d;
  transform: scale(0.84);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.zex-card:hover:not(.out-of-stock) .zex-aurora-stage {
  transform: scale(1);
}

.zex-aurora-glow {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.42) 0%, rgba(59, 130, 246, 0.14) 48%, transparent 74%);
  filter: blur(7px);
  transform: translateZ(-16px);
  animation: auroraGlowPulse 2.8s ease-in-out infinite;
}

.zex-comet-orbit {
  position: absolute;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  padding: 2.4px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 195deg,
    rgba(37, 99, 235, 0.38) 255deg,
    rgba(59, 130, 246, 0.85) 305deg,
    #60A5FA 340deg,
    #F0F9FF 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.4px), #000 calc(100% - 1.8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.4px), #000 calc(100% - 1.8px));
  filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.9)) drop-shadow(0 0 14px rgba(59, 130, 246, 0.5));
  pointer-events: none;
}

.zex-comet-orbit-1 {
  animation: zexTwinComet1 2.4s linear infinite;
}

.zex-comet-orbit-2 {
  animation: zexTwinComet2 3.0s linear infinite;
}

@keyframes zexTwinComet1 {
  0% { transform: rotateX(68deg) rotateY(24deg) rotateZ(0deg); }
  100% { transform: rotateX(68deg) rotateY(24deg) rotateZ(360deg); }
}

@keyframes zexTwinComet2 {
  0% { transform: rotateX(68deg) rotateY(-24deg) rotateZ(180deg); }
  100% { transform: rotateX(68deg) rotateY(-24deg) rotateZ(540deg); }
}

.zex-aurora-logo {
  position: relative;
  z-index: 3;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zexGentleFloat 2.8s ease-in-out infinite;
}

.zex-aurora-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(56, 189, 248, 0.55)) !important;
  transform: none !important;
}

.zex-spark {
  position: absolute;
  border-radius: 50%;
  background: #E0F2FE;
  box-shadow: 0 0 6px 1.5px rgba(147, 197, 253, 0.85);
  z-index: 4;
  animation: zexTwinkle 2.4s ease-in-out infinite;
}

.zex-spark.s1 { width: 4px; height: 4px; top: 10px; left: 16px; animation-delay: 0s; }
.zex-spark.s2 { width: 3px; height: 3px; top: 24px; left: 3px; animation-delay: 0.6s; }
.zex-spark.s3 { width: 4px; height: 4px; bottom: 12px; left: 12px; animation-delay: 1.2s; }
.zex-spark.s4 { width: 3px; height: 3px; bottom: 16px; right: 6px; animation-delay: 1.8s; }
.zex-spark.s5 { width: 3px; height: 3px; top: 14px; right: 14px; animation-delay: 0.9s; }

.zex-hover-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.42);
  transform: translateY(8px);
  transition: transform 0.28s ease;
}

.zex-card:hover:not(.out-of-stock) .zex-hover-cta {
  transform: translateY(0);
}

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

@keyframes auroraGlowPulse {
  0%, 100% { transform: scale(0.94); opacity: 0.78; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes zexGentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes zexTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.22); }
}

.zex-badge-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.zex-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.zex-card-sold-top {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.2;
  margin-bottom: 4px;
}

.zex-card-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.32;
  margin-bottom: 0;
  min-height: 2.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.16s ease;
}

.zex-card-title:hover {
  color: var(--accent-hover);
}

.zex-card-divider {
  width: 100%;
  height: 1px;
  background: rgba(96, 165, 250, 0.16);
  margin: 10px 0 11px;
}

.zex-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}

.zex-card-price-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zex-card-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.zex-card-old-price {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.zex-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(13, 25, 41, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #E2E8F0;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.zex-stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.85);
}

.zex-stock-pill.out {
  border-color: rgba(248, 113, 113, 0.35);
  color: #FCA5A5;
}

.zex-stock-pill.out .zex-stock-dot {
  background: #F87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.75);
}

.zex-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.zex-btn-order {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.36);
  transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.zex-btn-order:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.52);
  transform: translateY(-1px);
}

.btn-add-mini {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 25, 41, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.16s ease;
  flex-shrink: 0;
}

.btn-add-mini:hover {
  border-color: var(--accent-hover);
  color: #ffffff;
  background: rgba(59, 130, 246, 0.22);
  transform: translateY(-1px);
}

.zex-card.out-of-stock {
  opacity: 0.68;
}

.out-stock-cover {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 28, 0.84);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  z-index: 4;
}

.out-stock-cover svg {
  width: 32px;
  height: 32px;
}

.out-stock-cover span {
  font-size: 0.84rem;
  font-weight: 600;
}

/* =========================================================================
   STORE PAGE TOOLBAR
   ========================================================================= */
.store-toolbar {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

.input-field {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-box .input-field {
  padding-left: 38px;
}

.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.select-field {
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
  cursor: pointer;
}

.select-field:focus {
  border-color: var(--accent);
}

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

.filter-pill {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.filter-pill:hover {
  color: var(--text-main);
  border-color: var(--accent-border);
}

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.toggle-stock-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.toggle-stock-label input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}

/* =========================================================================
   ACCOUNT & TOP-UP HUB (2-COLUMN DASHBOARD — DARK NAVY BLUE THEME)
   ========================================================================= */
.hub-layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.hub-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hub-card {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.hub-user-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hub-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--accent-border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  overflow: hidden;
  flex-shrink: 0;
  text-transform: uppercase;
}

.hub-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-user-meta {
  min-width: 0;
}

.hub-user-name {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.hub-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.hub-role-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hub-uid-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 29, 51, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.34);
  color: #BAE6FD;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.hub-uid-badge:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.profile-uid-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: #081222;
  border: 1px solid #1E324B;
}

.profile-uid-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-uid-kicker {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.profile-uid-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-hover);
}

.profile-uid-hint {
  font-size: 0.77rem;
  color: var(--text-dim);
}

.profile-uid-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.co-account-uid {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #93C5FD;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.co-account-uid:hover {
  background: rgba(59, 130, 246, 0.28);
  color: #ffffff;
}

.hub-balance-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hub-balance-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hub-balance-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.hub-topup-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background-color 0.18s ease;
  flex-shrink: 0;
}

.hub-topup-pill:hover {
  background: var(--accent-hover);
}

.hub-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.hub-nav-btn-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.hub-nav-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.hub-nav-btn:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

.hub-nav-btn.active {
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.hub-nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.hub-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 4px;
}

.hub-nav-btn.logout-btn {
  color: #FCA5A5;
}
.hub-nav-btn.logout-btn:hover {
  background: var(--danger-soft);
  color: #FECACA;
}

.hub-main-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.hub-main-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.hub-main-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.hub-main-title .accent {
  color: var(--accent-hover);
}

.hub-main-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hub-panel {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.profile-avatar-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  flex-shrink: 0;
  text-transform: uppercase;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.profile-section-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 22px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.input-field[readonly] {
  opacity: 0.72;
  cursor: not-allowed;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.notif-item.unread {
  border-color: var(--accent-border);
  background: rgba(59, 130, 246, 0.06);
}

.topup-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel-card {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.wallet-hero-card {
  background: linear-gradient(145deg, #132238 0%, #0D1929 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.wallet-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.wallet-amount {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 6px 0 12px;
}

.wallet-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.pay-tab {
  padding: 12px 10px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.pay-tab svg {
  width: 20px;
  height: 20px;
}

.pay-tab:hover {
  border-color: var(--accent-border);
  color: var(--text-main);
}

.pay-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.amount-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 10px 0 14px;
}

.amount-btn {
  padding: 10px;
  border-radius: 9px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all 0.16s ease;
}

.amount-btn:hover {
  border-color: var(--accent-border);
  color: var(--text-main);
}

.amount-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.qr-checkout-box {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  align-items: center;
  margin-top: 14px;
}

.qr-frame {
  background: #fff;
  padding: 11px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.qr-frame span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0D1929;
  letter-spacing: 0.06em;
}

.bank-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

.bank-info-row .k {
  color: var(--text-muted);
}

.bank-info-row .v {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-mini-btn {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.72rem;
  font-weight: 600;
}

.copy-mini-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* =========================================================================
   PURCHASE HISTORY PAGE
   ========================================================================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.kpi-card .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.kpi-card .val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.history-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.history-tab {
  padding: 9px 15px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.history-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-main);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th {
  text-align: left;
  padding: 12px 15px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-sub);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 600;
}

.status-completed {
  background: var(--success-soft);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.order-prod-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.order-prod-cell img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* =========================================================================
   ORDER HISTORY CARDS & ORDER DETAIL MODAL (MATCHING USER SAMPLE — NAVY BLUE)
   ========================================================================= */
.history-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-order-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.history-order-card:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-1px);
}

.history-order-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.history-order-thumb {
  width: 54px;
  height: 54px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-slot);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.history-order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-order-thumb svg {
  width: 22px;
  height: 22px;
  color: var(--text-dim);
  opacity: 0.6;
}

.history-order-meta {
  min-width: 0;
}

.history-order-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 2px;
}

.history-order-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.history-order-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
}

.order-price-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  font-size: 0.72rem;
  font-weight: 700;
}

.history-order-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.order-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.order-code-pill:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.history-order-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.status-delivered-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #4ADE80;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-delivered-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
}

/* Order Detail Modal Redesign */
.order-modal-shell {
  padding: 0;
  overflow: hidden;
}

.order-modal-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sub);
}

.order-modal-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.order-modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-sec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.order-sec-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.order-sec-title svg {
  width: 17px;
  height: 17px;
  color: var(--accent-hover);
}

.order-reveal-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.order-reveal-all-btn:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.order-cred-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.order-cred-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.order-cred-row:last-child {
  border-bottom: none;
}

.order-cred-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

.order-cred-value {
  padding: 9px 13px;
  border-radius: 9px;
  background: #060D19;
  border: 1px solid rgba(34, 55, 80, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  color: var(--text-main);
  overflow-x: auto;
  white-space: nowrap;
}

.order-cred-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.order-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.order-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.order-icon-btn svg {
  width: 16px;
  height: 16px;
}

.order-guide-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 13px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.order-guide-card:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}

.order-guide-icon {
  width: 68px;
  height: 44px;
  border-radius: 10px;
  background: #060D19;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent-hover);
  flex-shrink: 0;
}

.order-guide-icon svg {
  width: 20px;
  height: 20px;
}

.order-copy-all-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.34);
  transition: filter 0.18s ease, transform 0.15s ease;
}

.order-copy-all-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 660px) {
  .history-order-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .history-order-right {
    width: 100%;
    justify-content: space-between;
  }
  .order-cred-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.credential-box {
  background: var(--bg-main);
  border: 1px dashed var(--accent-border);
  border-radius: 9px;
  padding: 11px 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  word-break: break-all;
}

/* =========================================================================
   MODALS & CART DRAWER
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 18, 0.76);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.18s ease;
}

.modal-box {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: popUp 0.2s ease;
}

.modal-box.modal-lg {
  max-width: 740px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-sub);
  z-index: 5;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
}

.modal-close:hover {
  border-color: var(--danger);
  color: #FCA5A5;
}

.modal-body {
  padding: 20px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 18, 0.72);
  backdrop-filter: blur(5px);
  z-index: 280;
  display: none;
  justify-content: flex-end;
}

.drawer-backdrop.open {
  display: flex;
  animation: fadeIn 0.18s ease;
}

.cart-drawer {
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--bg-sub);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.22s ease;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-card {
  display: flex;
  gap: 12px;
  padding: 11px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cart-item-card img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px 6px;
}

.cart-qty-ctrl button {
  width: 22px;
  height: 22px;
  color: var(--accent-hover);
  font-weight: 700;
}

.cart-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 20px;
}

.variant-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 10px 0;
}

.variant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  border-radius: 9px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
  text-align: left;
  width: 100%;
}

.variant-option:hover {
  border-color: var(--accent-border);
}

.variant-option.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.variant-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-hover);
}

/* =========================================================================
   MODERN AUTH MODAL — MẪU 8: NEO-GLASS MOUSE SPOTLIGHT (HYPERZ XSTORE)
   ========================================================================= */
.auth-modal-box {
  max-width: 454px;
  padding: 26px 28px 22px;
  border-radius: 26px;
  background:
    radial-gradient(300px circle at var(--mx, 50%) var(--my, 16%), rgba(56, 189, 248, 0.18), transparent 68%),
    radial-gradient(420px 220px at 50% -15%, rgba(37, 99, 235, 0.18), transparent 72%),
    rgba(11, 20, 36, 0.93);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(96, 165, 250, 0.24);
  box-shadow: 0 32px 80px rgba(2, 6, 18, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow-x: hidden;
  overflow-y: auto;
}

.auth-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.auth-brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.auth-brand-mini img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.auth-m8-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.auth-m8-close:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.45);
  color: #FCA5A5;
}

.auth-m8-pill-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(7, 14, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
}

.auth-m8-pill-btn {
  padding: 7px 17px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.auth-m8-pill-btn:hover:not(.active) {
  color: var(--text-main);
}

.auth-m8-pill-btn.active {
  background: rgba(56, 189, 248, 0.18);
  color: #7DD3FC;
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.16);
}

.auth-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.auth-kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.auth-heading {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}

.auth-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.auth-m8-pass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

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

.auth-input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.18s ease;
}

.auth-input-wrap:focus-within .auth-input-icon {
  color: #38BDF8;
}

.auth-input-wrap .input-field {
  padding: 12px 40px 12px 40px;
  border-radius: 15px;
  background: rgba(7, 13, 25, 0.88);
  border: 1px solid rgba(51, 78, 114, 0.62);
  font-size: 0.88rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-input-wrap .input-field:focus {
  border-color: #38BDF8;
  background: rgba(9, 18, 34, 0.98);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.auth-eye-btn {
  position: absolute;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.auth-eye-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.auth-eye-btn svg {
  width: 16px;
  height: 16px;
}

.auth-verify-box {
  margin: 16px auto 18px;
  max-width: 100%;
  padding: 12px 15px;
  border-radius: 15px;
  background: rgba(7, 13, 25, 0.84);
  border: 1px solid rgba(51, 78, 114, 0.62);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-verify-box:hover {
  border-color: rgba(56, 189, 248, 0.55);
}

.auth-verify-left {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

.verify-circle-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #22C55E;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.verify-circle-idle,
.verify-checkbox-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #47648C;
  background: #070E1B;
  flex-shrink: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-verify-box:hover .verify-checkbox-box {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.14);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.32);
}

.verify-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px dotted #22C55E;
  animation: spinRotate 1.1s linear infinite;
  flex-shrink: 0;
}

.auth-verify-brand {
  text-align: right;
  line-height: 1.15;
}

.auth-verify-brand .title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-hover);
  letter-spacing: 0.06em;
}

.auth-verify-brand .links {
  font-size: 0.64rem;
  color: var(--text-dim);
}

@keyframes authM8Shimmer {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(260%) skewX(-18deg); }
}

.auth-submit-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 13px 20px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.auth-submit-btn.ready {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 52%, #0EA5E9 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.auth-submit-btn.ready::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: authM8Shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

.auth-submit-btn.ready:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.auth-submit-btn.pending {
  background: rgba(15, 28, 48, 0.85);
  border: 1px solid rgba(51, 78, 114, 0.55);
  color: var(--text-dim);
  cursor: not-allowed;
}

.auth-m8-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-m8-forgot-btn {
  color: #7DD3FC;
  font-weight: 600;
}

@media (max-width: 500px) {
  .auth-modal-box {
    padding: 22px 18px 18px;
    border-radius: 22px;
  }
  .auth-m8-pass-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.auth-switch-row {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-switch-row button {
  color: var(--accent-hover);
  font-weight: 600;
  margin-left: 5px;
}

.auth-switch-row button:hover {
  text-decoration: underline;
}

.auth-back-bar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.16s ease;
}

.auth-back-btn:hover {
  color: var(--text-main);
}

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

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-input);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.auth-tab {
  padding: 8px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-tab.active {
  background: var(--accent);
  color: #fff;
}

.form-group {
  margin-bottom: 13px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.demo-hint-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 15px;
  font-size: 0.81rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkout-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.checkout-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  cursor: pointer;
}

.checkout-method.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 350px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.22s ease;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent); }

/* =========================================================================
   FOOTER (DARK NAVY BLUE — 4 COLUMNS + CENTERED DISCORD ZEX SHOP CARD)
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-sub);
  padding: 46px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a, .footer-col button {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
  transition: color 0.16s ease;
}

.footer-col a:hover, .footer-col button:hover {
  color: var(--accent-hover);
}

.footer-discord-wrap {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 24px;
  display: flex;
  justify-content: center;
}

.footer-discord-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 356px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-discord-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-discord-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  color: var(--accent-hover);
  flex-shrink: 0;
}

.footer-discord-icon svg {
  width: 24px;
  height: 24px;
}

.footer-discord-text {
  flex: 1;
  min-width: 0;
}

.footer-discord-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.footer-discord-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-discord-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

.footer-discord-card:hover .footer-discord-arrow {
  color: var(--accent-hover);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 46px;
  height: 46px;
  color: var(--accent);
  opacity: 0.65;
  margin: 0 auto 12px;
}

/* =========================================================================
   PRODUCT DETAIL PAGE + WARRANTY SECTIONS + CHECKOUT CONFIRMATION PAGE
   (DARK NAVY BLUE THEME — ZEX SHOP)
   ========================================================================= */
.page-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.page-breadcrumbs button,
.page-breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.16s ease;
}

.page-breadcrumbs button:hover,
.page-breadcrumbs a:hover {
  color: var(--accent-hover);
}

.page-breadcrumbs .crumb-sep {
  color: var(--text-dim);
  font-size: 0.78rem;
  user-select: none;
}

.page-breadcrumbs .crumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.page-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.page-back-pill:hover {
  border-color: var(--accent-border);
  background: var(--bg-card);
  color: var(--text-main);
  transform: translateX(-2px);
}

/* Product Detail 2-Column Compact Sticky Layout */
.pd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 26px;
  align-items: start;
}

.pd-left-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.pd-media-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(155deg, #0E1B30 0%, #091322 100%);
  border: 1px dashed var(--border-dashed);
  min-height: 390px;
  aspect-ratio: 4 / 3.8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.pd-media-card.has-image {
  border-style: solid;
  border-color: var(--border);
}

.pd-media-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-status-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.28);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 6px 20px rgba(2, 6, 14, 0.45);
}

.pd-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.85);
}

.pd-status-pill.out .pd-status-dot {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
}

/* Product Detail Right Column (Sticky While Left Scrolls) */
.pd-info-col {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.pd-cat-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-title {
  font-family: var(--font-heading);
  font-size: 1.72rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-transform: uppercase;
  margin-top: -4px;
}

.pd-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -6px;
}

.pd-meta-row strong {
  color: var(--text-main);
}

.pd-meta-row .pd-meta-dot {
  color: var(--text-dim);
}

.pd-meta-instant {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}

.pd-meta-instant svg {
  width: 14px;
  height: 14px;
  color: var(--accent-hover);
}

.pd-price-box {
  background: linear-gradient(145deg, #101E34 0%, #0B1526 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
}

.pd-price-kicker {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pd-price-value-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-price-value {
  font-family: var(--font-heading);
  font-size: 1.82rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.pd-price-old {
  font-size: 0.92rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.pd-variants-box {
  background: linear-gradient(145deg, #101E34 0%, #0B1526 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
}

.pd-variants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}

.pd-variants-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-main);
}

.pd-variants-current {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pd-variants-current strong {
  color: var(--text-main);
}

.pd-variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
}

.pd-variant-card {
  text-align: left;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.18s ease;
}

.pd-variant-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card);
}

.pd-variant-card.active {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  border-color: #60A5FA;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.34);
}

.pd-variant-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.pd-variant-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pd-variant-card.active .pd-variant-name,
.pd-variant-card.active .pd-variant-price {
  color: #ffffff;
}

.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-qty-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pd-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
}

.pd-qty-stepper button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pd-qty-stepper button:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.pd-qty-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pd-qty-num {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.pd-stock-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pd-stock-note.out {
  color: #FCA5A5;
}

.pd-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.pd-btn-cart {
  height: 45px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.pd-btn-cart:hover:not(:disabled) {
  background: var(--bg-card);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.pd-btn-buy {
  height: 45px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 55%, #60A5FA 100%);
  border: 1px solid rgba(147, 197, 253, 0.45);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.36);
  transition: all 0.2s ease;
}

.pd-btn-buy:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.48);
}

.pd-btn-cart:disabled,
.pd-btn-buy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pd-discord-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, #101E34 0%, #0B1526 100%);
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.pd-discord-card:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-1px);
}

.pd-discord-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pd-discord-icon svg {
  width: 18px;
  height: 18px;
}

.pd-discord-body {
  flex: 1;
  min-width: 0;
}

.pd-discord-title {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1px;
}

.pd-discord-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.pd-discord-ext {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.pd-discord-card:hover .pd-discord-ext {
  color: var(--accent-hover);
  transform: translate(2px, -2px);
}

/* 3 Stacked Detail Sections (Features / Requirements / Warranty — Inside Left Col) */
.pd-sections-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-info-card {
  background: linear-gradient(155deg, #0E1B30 0%, #0A1424 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
}

.pd-info-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.pd-info-card-head svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pd-info-card-head.accent-blue svg {
  color: var(--accent-hover);
}

.pd-info-card-head.accent-amber svg {
  color: #FBBF24;
}

.pd-info-card-head h3 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
}

.pd-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.pd-checklist li svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pd-checklist.green-icons li svg {
  color: #34D399;
}

.pd-checklist.amber-icons li svg {
  color: #FBBF24;
}

/* =========================================================================
   FULL-PAGE CHECKOUT CONFIRMATION VIEW (XÁC NHẬN THANH TOÁN)
   ========================================================================= */
.co-header-block {
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border-subtle);
}

.co-page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-main);
}

.co-page-title .accent {
  color: var(--accent-hover);
}

.co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.96fr);
  gap: 24px;
  align-items: start;
}

.co-card {
  background: linear-gradient(155deg, #0E1C31 0%, #0A1424 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.co-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.co-card-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
}

.co-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.75);
}

.co-topup-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-hover);
  transition: color 0.16s ease;
}

.co-topup-link:hover {
  color: #93C5FD;
  text-decoration: underline;
}

.co-account-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.co-account-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.co-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  overflow: hidden;
  flex-shrink: 0;
}

.co-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co-account-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.co-account-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-all;
}

.co-account-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-hover);
  flex-shrink: 0;
}

.co-wallet-box {
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.co-wallet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.co-wallet-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.co-wallet-label svg {
  width: 18px;
  height: 18px;
  color: var(--accent-hover);
}

.co-wallet-amount {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.co-insufficient-bar {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.co-insufficient-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FCD34D;
}

.co-insufficient-text svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.co-topup-now-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.34);
  transition: all 0.18s ease;
}

.co-topup-now-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.co-sufficient-bar {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--success-soft);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-size: 0.84rem;
  font-weight: 500;
  color: #BBF7D0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.co-method-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.co-method-pill {
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.16s ease;
}

.co-method-pill:hover {
  border-color: var(--accent-border);
  color: var(--text-main);
}

.co-method-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.co-qr-box {
  margin-top: 14px;
  padding: 15px;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Right Column: Order Summary */
.co-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.co-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.co-item-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.co-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.co-item-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text-dim);
}

.co-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co-item-thumb svg {
  width: 20px;
  height: 20px;
}

.co-item-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.co-item-variant {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.co-item-qty {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.co-item-subtotal {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

.co-promo-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.co-promo-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-main);
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.16s ease;
}

.co-promo-input:focus {
  border-color: var(--accent);
}

.co-promo-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.16s ease;
}

.co-promo-btn:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
}

.co-totals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.co-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
}

.co-total-line strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.co-total-line.discount strong {
  color: #4ADE80;
}

.co-grand-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.co-grand-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.co-grand-val {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.co-submit-btn {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 55%, #60A5FA 100%);
  border: 1px solid rgba(147, 197, 253, 0.45);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.38);
  transition: all 0.2s ease;
}

.co-submit-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(59, 130, 246, 0.48);
}

.co-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.co-tos-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.77rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.co-tos-note button {
  color: var(--accent-hover);
  font-size: inherit;
  text-decoration: underline;
}

/* =========================================================================
   INTERACTIVE BOX HOVER EFFECTS (SPOTLIGHT + GLOW BORDER + SHIMMER)
   ========================================================================= */
.pd-media-card,
.pd-price-box,
.pd-variants-box,
.pd-info-card,
.pd-discord-card,
.co-card,
.co-account-box,
.co-wallet-box,
.stat-card,
.featured-cat-box,
.kpi-card,
.hub-card,
.hub-panel,
.history-order-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s ease,
    box-shadow 0.26s ease,
    background-color 0.24s ease;
}

/* Mouse-following soft blue spotlight layer */
.pd-media-card::after,
.pd-price-box::after,
.pd-variants-box::after,
.pd-info-card::after,
.pd-discord-card::after,
.co-card::after,
.co-account-box::after,
.co-wallet-box::after,
.stat-card::after,
.featured-cat-box::after,
.kpi-card::after,
.history-order-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(96, 165, 250, 0.14),
    rgba(59, 130, 246, 0.04) 45%,
    transparent 72%
  );
  transition: opacity 0.28s ease;
  z-index: 1;
}

.pd-media-card:hover::after,
.pd-price-box:hover::after,
.pd-variants-box:hover::after,
.pd-info-card:hover::after,
.pd-discord-card:hover::after,
.co-card:hover::after,
.co-account-box:hover::after,
.co-wallet-box:hover::after,
.stat-card:hover::after,
.featured-cat-box:hover::after,
.kpi-card:hover::after,
.history-order-card:hover::after {
  opacity: 1;
}

/* Ensure inner content sits cleanly above the spotlight overlay */
.pd-price-box > *,
.pd-variants-box > *,
.pd-info-card > *,
.pd-discord-card > *,
.co-card > *,
.co-account-box > *,
.co-wallet-box > *,
.kpi-card > * {
  position: relative;
  z-index: 2;
}

/* Product Detail Box Hovers */
.pd-media-card:hover {
  border-color: rgba(96, 165, 250, 0.62);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(3, 8, 18, 0.55), 0 0 26px rgba(59, 130, 246, 0.22);
}

.pd-media-card > img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-media-card:hover > img {
  transform: scale(1.035);
}

.pd-price-box:hover,
.pd-variants-box:hover {
  border-color: rgba(96, 165, 250, 0.52);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(3, 8, 18, 0.45), 0 0 20px rgba(59, 130, 246, 0.16);
}

.pd-variant-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.22s ease, background 0.2s ease;
}

.pd-variant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.14) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.pd-variant-card:hover::before {
  left: 140%;
}

.pd-variant-card:hover {
  transform: translateY(-2px);
  border-color: #60A5FA;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.24);
}

.pd-qty-stepper {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-qty-stepper:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.16);
}

.pd-discord-card:hover {
  border-color: rgba(96, 165, 250, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(3, 8, 18, 0.45), 0 0 22px rgba(59, 130, 246, 0.2);
}

.pd-discord-icon {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.pd-discord-card:hover .pd-discord-icon {
  transform: scale(1.08);
  background: rgba(59, 130, 246, 0.24);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.42);
}

/* 3 Stacked Detail & Warranty Cards */
.pd-info-card:hover {
  border-color: rgba(96, 165, 250, 0.54);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(3, 8, 18, 0.48), 0 0 24px rgba(59, 130, 246, 0.15);
}

.pd-checklist li {
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.pd-checklist li svg {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.pd-checklist li:hover {
  transform: translateX(6px);
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-main);
}

.pd-checklist.green-icons li:hover svg {
  transform: scale(1.16);
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.6));
}

.pd-checklist.amber-icons li:hover svg {
  transform: scale(1.16);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.65));
}

/* Checkout Confirmation Box Hovers */
.co-card:hover {
  border-color: rgba(96, 165, 250, 0.48);
  box-shadow: 0 14px 36px rgba(3, 8, 18, 0.48), 0 0 24px rgba(59, 130, 246, 0.14);
}

.co-account-box:hover,
.co-wallet-box:hover {
  border-color: rgba(96, 165, 250, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(3, 8, 18, 0.35), 0 0 18px rgba(59, 130, 246, 0.16);
}

.co-item-row {
  padding: 10px 10px 14px;
  margin: 0 -10px;
  border-radius: 12px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.co-item-row:hover {
  background: rgba(59, 130, 246, 0.07);
  transform: translateX(3px);
}

.co-item-thumb {
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.co-item-row:hover .co-item-thumb {
  transform: scale(1.06);
  border-color: var(--accent-border);
}

.co-method-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.18);
}

/* Diagonal Glossy Shimmer Sweep on Primary CTA Buttons */
.pd-btn-buy,
.co-submit-btn,
.co-topup-now-btn,
.zex-btn-order {
  position: relative;
  overflow: hidden;
}

.pd-btn-buy::after,
.co-submit-btn::after,
.co-topup-now-btn::after,
.zex-btn-order::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pd-btn-buy:hover:not(:disabled)::after,
.co-submit-btn:hover:not(:disabled)::after,
.co-topup-now-btn:hover::after,
.zex-btn-order:hover:not(:disabled)::after {
  left: 145%;
}

/* Home Stat Cards, Category Boxes, KPI & History Cards Hover Polish */
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.58);
  box-shadow: 0 10px 26px rgba(3, 8, 18, 0.45), 0 0 20px rgba(59, 130, 246, 0.18);
}

.stat-card .stat-watermark {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.stat-card:hover .stat-watermark {
  transform: scale(1.12) rotate(-6deg);
  opacity: 0.14;
}

.featured-cat-box:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 14px 32px rgba(3, 8, 18, 0.5), 0 0 24px rgba(59, 130, 246, 0.22);
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 10px 24px rgba(3, 8, 18, 0.4), 0 0 18px rgba(59, 130, 246, 0.16);
}

.history-order-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.58);
  box-shadow: 0 10px 28px rgba(3, 8, 18, 0.45), 0 0 20px rgba(59, 130, 246, 0.18);
}

/* =========================================================================
   TOP-UP & ACCOUNT HUB HOVER EFFECTS (NẠP TIỀN TỰ ĐỘNG + SIDEBAR)
   ========================================================================= */
.hub-balance-box,
.pay-tab,
.amount-btn,
.qr-checkout-box,
.bank-info-row,
.gift-split-grid > div,
.notif-item,
.panel-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    box-shadow 0.24s ease,
    background-color 0.22s ease,
    color 0.2s ease;
}

.hub-card::after,
.hub-panel::after,
.hub-balance-box::after,
.pay-tab::after,
.amount-btn::after,
.qr-checkout-box::after,
.gift-split-grid > div::after,
.notif-item::after,
.panel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(96, 165, 250, 0.14),
    rgba(59, 130, 246, 0.04) 45%,
    transparent 72%
  );
  transition: opacity 0.26s ease;
  z-index: 1;
}

.hub-card:hover::after,
.hub-panel:hover::after,
.hub-balance-box:hover::after,
.pay-tab:hover::after,
.amount-btn:hover::after,
.qr-checkout-box:hover::after,
.gift-split-grid > div:hover::after,
.notif-item:hover::after,
.panel-card:hover::after {
  opacity: 1;
}

.hub-card > *,
.hub-panel > *,
.hub-balance-box > *,
.pay-tab > *,
.amount-btn > *,
.qr-checkout-box > *,
.gift-split-grid > div > *,
.notif-item > *,
.panel-card > * {
  position: relative;
  z-index: 2;
}

.hub-card:hover,
.hub-panel:hover,
.panel-card:hover {
  border-color: rgba(96, 165, 250, 0.48);
  box-shadow: 0 12px 32px rgba(3, 8, 18, 0.45), 0 0 22px rgba(59, 130, 246, 0.14);
}

.hub-balance-box:hover {
  border-color: rgba(96, 165, 250, 0.58);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(3, 8, 18, 0.36), 0 0 18px rgba(59, 130, 246, 0.18);
}

.hub-nav-btn {
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.2s ease;
}

.hub-nav-btn:hover:not(.active) {
  transform: translateX(4px);
  background: rgba(59, 130, 246, 0.12);
  color: var(--text-main);
}

.hub-nav-btn.active:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.36);
}

/* Payment Method Tabs (VietQR / MoMo / Giftcode) */
.pay-tab::before,
.amount-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(147, 197, 253, 0.16) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.52s ease;
  pointer-events: none;
  z-index: 1;
}

.pay-tab:hover::before,
.amount-btn:hover::before {
  left: 140%;
}

.pay-tab:hover {
  transform: translateY(-3px);
  border-color: #60A5FA;
  box-shadow: 0 10px 24px rgba(3, 8, 18, 0.42), 0 0 20px rgba(59, 130, 246, 0.24);
}

.pay-tab svg {
  transition: transform 0.22s ease, color 0.22s ease;
}

.pay-tab:hover svg {
  transform: scale(1.14);
  color: var(--accent-hover);
}

/* Preset Amount Tiles */
.amount-btn:hover {
  transform: translateY(-2px);
  border-color: #60A5FA;
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.22);
}

.amount-btn.active {
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.26);
}

/* Bank Filter Pills */
.filter-pill {
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.2s ease, color 0.18s ease;
}

.filter-pill:hover {
  transform: translateY(-2px);
  border-color: #60A5FA;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.22);
}

/* QR Checkout Box & Bank Info Rows */
.qr-checkout-box:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 10px 28px rgba(3, 8, 18, 0.45), 0 0 22px rgba(59, 130, 246, 0.18);
}

.qr-frame {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
}

.qr-frame:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.35);
}

.bank-info-row:hover {
  transform: translateX(4px);
  border-color: rgba(96, 165, 250, 0.55);
  background: var(--bg-card);
  box-shadow: 0 4px 14px rgba(3, 8, 18, 0.3);
}

/* Giftcode / Scratch Card Boxes & Notifications */
.gift-split-grid > div:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 10px 26px rgba(3, 8, 18, 0.42), 0 0 20px rgba(59, 130, 246, 0.16);
}

.notif-item:hover {
  transform: translateX(4px);
  border-color: rgba(96, 165, 250, 0.55);
  background: var(--bg-card);
}

/* Primary Confirm Top-up Button Shimmer */
#confirmTopupBtn,
#redeemGiftBtn,
.hub-topup-pill {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.22s ease;
}

#confirmTopupBtn::after,
#redeemGiftBtn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

#confirmTopupBtn:hover:not(:disabled)::after,
#redeemGiftBtn:hover:not(:disabled)::after {
  left: 145%;
}

#confirmTopupBtn:hover:not(:disabled),
#redeemGiftBtn:hover:not(:disabled),
.hub-topup-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.36);
}

/* =========================================================================
   TRUNG TÂM HỖ TRỢ & TICKET (DISCORD & TICKET SUPPORT — DARK NAVY BLUE)
   ========================================================================= */
.support-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.support-create-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 55%, #60A5FA 100%);
  border: 1px solid rgba(147, 197, 253, 0.45);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.36);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
}

.support-create-btn::after,
.support-discord-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.support-create-btn:hover::after,
.support-discord-btn:hover::after {
  left: 145%;
}

.support-create-btn:hover,
.support-discord-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.48);
}

.support-discord-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 26px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0F1F38 0%, #0A1527 100%);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.26s ease;
}

.support-discord-banner::after,
.support-tickets-panel::after,
.support-ticket-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(96, 165, 250, 0.14),
    rgba(59, 130, 246, 0.04) 45%,
    transparent 72%
  );
  transition: opacity 0.28s ease;
  z-index: 1;
}

.support-discord-banner:hover::after,
.support-tickets-panel:hover::after,
.support-ticket-card:hover::after {
  opacity: 1;
}

.support-discord-banner > *,
.support-tickets-panel > *,
.support-ticket-card > * {
  position: relative;
  z-index: 2;
}

.support-discord-banner:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.58);
  box-shadow: 0 14px 34px rgba(3, 8, 18, 0.48), 0 0 24px rgba(59, 130, 246, 0.18);
}

.support-discord-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.support-discord-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #60A5FA;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.support-discord-banner:hover .support-discord-badge-icon {
  transform: scale(1.06);
  background: rgba(59, 130, 246, 0.24);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.38);
}

.support-official-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.32);
  color: var(--accent-hover);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.support-discord-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.3;
}

.support-discord-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 560px;
}

.support-discord-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 55%, #60A5FA 100%);
  border: 1px solid rgba(147, 197, 253, 0.45);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.36);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.22s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.support-tickets-panel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(155deg, #0E1B30 0%, #0A1424 100%);
  border: 1px solid var(--border);
  padding: 26px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.24s ease, box-shadow 0.26s ease;
}

.support-tickets-panel.has-tickets {
  justify-content: flex-start;
}

.support-tickets-panel:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 12px 32px rgba(3, 8, 18, 0.45), 0 0 22px rgba(59, 130, 246, 0.14);
}

.support-empty-box {
  text-align: center;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.support-empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-dim);
  opacity: 0.85;
  margin-bottom: 4px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.support-tickets-panel:hover .support-empty-icon {
  transform: scale(1.08);
  color: var(--accent-hover);
}

.support-empty-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.support-empty-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.55;
}

.support-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-ticket-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-radius: 13px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.22s ease;
}

.support-ticket-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.58);
  background: var(--bg-card);
  box-shadow: 0 8px 22px rgba(3, 8, 18, 0.4), 0 0 18px rgba(59, 130, 246, 0.16);
}

.ticket-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  font-size: 0.7rem;
  font-weight: 700;
}

.ticket-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.ticket-status-pill.open {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.36);
  color: var(--accent-hover);
}

.ticket-status-pill.closed {
  background: var(--success-soft);
  border: 1px solid rgba(34, 197, 94, 0.34);
  color: #4ADE80;
}

/* =========================================================================
   ORDER DETAIL MODAL — MẪU 1: BIÊN LAI SỐ (DARK NAVY BLUE)
   ========================================================================= */
.rcpt-shell {
  padding: 0;
  overflow: hidden;
  background: #0B1526;
}

.rcpt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(95deg, #102444 0%, #0E1E38 55%, #0B1526 100%);
  border-bottom: 1px solid var(--border);
}

.rcpt-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rcpt-check-seal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.42);
  color: #4ADE80;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
}

.rcpt-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 2px;
}

.rcpt-prod-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.rcpt-prod-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.rcpt-prod-variant {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.rcpt-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rcpt-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #081120;
  border-bottom: 1px solid var(--border);
}

.rcpt-summary-cell {
  padding: 12px 10px;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.rcpt-summary-cell:last-child {
  border-right: none;
}

.rcpt-summary-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.rcpt-summary-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #93C5FD;
  transition: color 0.16s ease;
}

.rcpt-summary-code:hover {
  color: #ffffff;
  text-decoration: underline;
}

.rcpt-summary-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.rcpt-summary-val.price {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
}

.rcpt-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rcpt-success-note {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--success-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #BBF7D0;
  font-size: 0.82rem;
}

.rcpt-vault-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rcpt-vault-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.rcpt-vault-title svg {
  color: var(--accent-hover);
  flex-shrink: 0;
}

.rcpt-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.rcpt-reveal-btn:hover {
  border-color: var(--accent-hover);
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.rcpt-cred-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rcpt-cred-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  background: #070E1A;
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, box-shadow 0.2s ease;
}

.rcpt-cred-item:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.14);
}

.rcpt-cred-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.rcpt-cred-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.rcpt-cred-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #93C5FD;
  word-break: break-all;
}

.rcpt-cred-btns {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.rcpt-eye-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.rcpt-eye-btn:hover {
  border-color: var(--accent-hover);
  color: var(--text-main);
}

.rcpt-copy-pill {
  padding: 7px 13px;
  border-radius: 9px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93C5FD;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.rcpt-copy-pill:hover {
  background: var(--accent);
  color: #ffffff;
}

.rcpt-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rcpt-btn-primary {
  flex: 1;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 60%, #60A5FA 100%);
  border: 1px solid rgba(147, 197, 253, 0.45);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.35);
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.rcpt-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.45);
}

.rcpt-btn-secondary {
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.rcpt-btn-secondary:hover {
  border-color: var(--accent-hover);
  background: var(--bg-card-hover);
}

.rcpt-footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rcpt-footer-links a {
  color: var(--accent-hover);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}

.rcpt-history-link {
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 700;
}

.rcpt-history-link:hover {
  text-decoration: underline;
}

/* =========================================================================
   ORDER DETAIL MODAL — MẪU A (CHUẨN ẢNH THAM KHẢO — DARK NAVY BLUE)
   ========================================================================= */
.orda-shell {
  background: linear-gradient(165deg, #0D1B30 0%, #091323 100%);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.orda-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.orda-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.orda-order-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.02em;
  transition: color 0.16s ease;
}

.orda-order-id:hover {
  color: var(--accent-hover);
}

.orda-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.orda-close-btn:hover {
  border-color: var(--accent-hover);
  color: var(--text-main);
  background: var(--bg-card);
}

.orda-success-bar {
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--success-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #BBF7D0;
  font-size: 0.8rem;
}

.orda-card {
  background: #081120;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.orda-prod-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.orda-prod-thumb {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  flex-shrink: 0;
}

.orda-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orda-prod-thumb svg {
  width: 20px;
  height: 20px;
}

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

.orda-prod-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}

.orda-variant-pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  color: #93C5FD;
  font-size: 0.72rem;
  font-weight: 600;
}

.orda-prod-qty {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.orda-key-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.orda-key-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.orda-key-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.orda-key-label svg {
  color: var(--accent-hover);
}

.orda-eye-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.16s ease;
}

.orda-eye-toggle:hover {
  color: var(--accent-hover);
}

.orda-key-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.orda-key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px 11px 16px;
  border-radius: 12px;
  background: #050B16;
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, box-shadow 0.2s ease;
}

.orda-key-box:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.orda-key-sub {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.orda-key-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  word-break: break-all;
}

.orda-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  color: #E2E8F0;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.orda-copy-pill:hover {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.orda-dl-wrap {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.orda-dl-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.orda-dl-btn {
  position: relative;
  overflow: hidden;
  min-width: 214px;
  height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 58%, #60A5FA 100%);
  border: 1px solid rgba(147, 197, 253, 0.5);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(59, 130, 246, 0.44);
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.orda-dl-btn:hover:not(.loading) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.56);
}

.orda-dl-btn.loading {
  background: #07101F;
  border-color: #93C5FD;
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.48);
  cursor: wait;
}

.orda-dl-btn.done {
  background: linear-gradient(135deg, #059669 0%, #22C55E 100%);
  border-color: #86EFAC;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.52);
}

.orda-dl-aurora {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #1E3A8A, #2563EB, #38BDF8, #93C5FD);
  background-size: 200% 100%;
  animation: ordaAuroraSlide 1s linear infinite;
  transition: width 0.06s linear;
  pointer-events: none;
  z-index: 1;
}

@keyframes ordaAuroraSlide {
  to { background-position: -200% 0; }
}

.orda-dl-label {
  position: relative;
  z-index: 2;
}

.orda-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E0F2FE;
  box-shadow: 0 0 10px #60A5FA, 0 0 18px rgba(56, 189, 248, 0.85);
  pointer-events: none;
  opacity: 0;
  z-index: 4;
}

.orda-dl-stage.burst .orda-spark {
  animation: ordaSparkBurst 0.68s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ordaSparkBurst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

.orda-guide-box {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.orda-guide-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.orda-guide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-hover);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.75);
}

.orda-guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.orda-guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.orda-step-num {
  color: var(--accent-hover);
  font-weight: 700;
  flex-shrink: 0;
}

.orda-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.orda-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.orda-foot-lbl {
  color: var(--text-muted);
}

.orda-foot-date {
  color: var(--text-secondary);
  font-weight: 500;
}

.orda-foot-row.total {
  margin-top: 2px;
}

.orda-foot-total-lbl {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
}

.orda-foot-total-val {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
}

.orda-foot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.orda-foot-left-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.orda-text-link {
  color: var(--accent-hover);
  font-weight: 600;
}

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

.orda-close-pill {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.83rem;
  font-weight: 700;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.orda-close-pill:hover {
  border-color: var(--accent-hover);
  background: var(--bg-card);
}

/* =========================================================================
   NẠP TIỀN ZEX WALLET — 2-STEP QR FLOW + LIVE COUNTDOWN + HOVER EFFECTS
   ========================================================================= */
.tp-hero-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #10203A 0%, #0B1629 65%, #091222 100%);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  transition: border-color 0.24s ease, box-shadow 0.26s ease, transform 0.24s ease;
}

.tp-hero-banner:hover {
  border-color: rgba(96, 165, 250, 0.52);
  box-shadow: 0 12px 32px rgba(3, 8, 18, 0.48), 0 0 24px rgba(59, 130, 246, 0.16);
}

.tp-hero-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.18;
  margin-bottom: 6px;
}

.tp-hero-title .accent {
  color: var(--accent-hover);
}

.tp-hero-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.tp-hero-balance {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-radius: 16px;
  background: rgba(8, 15, 28, 0.8);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.24s ease;
}

.tp-hero-balance:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.58);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.22);
}

.tp-hero-wallet-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  flex-shrink: 0;
}

.tp-hero-bal-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-hero-bal-val {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

/* 2 Large Method Cards */
.tp-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.tp-method-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, #0E1B30 0%, #0A1424 100%);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.tp-method-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 10px 26px rgba(3, 8, 18, 0.45), 0 0 20px rgba(59, 130, 246, 0.22);
}

.tp-method-card.active {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 45%, #3B82F6 100%);
  border-color: rgba(147, 197, 253, 0.62);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.tp-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 15, 28, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.tp-method-card.active .tp-method-icon {
  background: rgba(8, 15, 28, 0.72);
  border-color: rgba(147, 197, 253, 0.45);
  color: #ffffff;
}

.tp-method-card:hover .tp-method-icon {
  transform: scale(1.08);
}

.tp-method-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 2px;
}

.tp-method-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tp-method-card.active .tp-method-title,
.tp-method-card.active .tp-method-sub {
  color: #ffffff;
}

.tp-method-card.active .tp-method-sub {
  opacity: 0.88;
}

/* Main Step 1 / Step 2 Deposit Container */
.tp-main-box {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(155deg, #0E1B30 0%, #0A1424 100%);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  transition: border-color 0.24s ease, box-shadow 0.26s ease;
}

.tp-main-box:hover {
  border-color: rgba(96, 165, 250, 0.48);
  box-shadow: 0 12px 32px rgba(3, 8, 18, 0.45), 0 0 22px rgba(59, 130, 246, 0.14);
}

.tp-step-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 12px;
}

.tp-bank-pills {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tp-amt-pills {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.tp-telco-pills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.tp-step-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tp-net-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.tp-net-badge strong {
  color: #93C5FD;
}

.tp-card-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.tp-card-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.tp-amt-pill {
  position: relative;
  overflow: hidden;
  height: 46px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, color 0.18s ease;
}

.tp-amt-pill::before,
.tp-cta-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.26) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.tp-amt-pill:hover::before,
.tp-cta-primary:hover:not(:disabled)::after {
  left: 145%;
}

.tp-amt-pill:hover {
  transform: translateY(-2px);
  border-color: #60A5FA;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.24);
}

.tp-amt-pill.active {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 60%, #60A5FA 100%);
  border-color: rgba(147, 197, 253, 0.6);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.42);
}

.tp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.tp-input-field {
  width: 100%;
  height: 52px;
  padding: 0 68px 0 18px;
  border-radius: 14px;
  background: #060D19;
  border: 1px solid var(--border);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tp-input-field:focus {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.tp-input-unit {
  position: absolute;
  right: 18px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  pointer-events: none;
}

.tp-cta-primary {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 55%, #60A5FA 100%);
  border: 1px solid rgba(147, 197, 253, 0.5);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.42);
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

.tp-cta-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(59, 130, 246, 0.54);
}

.tp-cta-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.tp-cta-secondary {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tp-cta-secondary:hover {
  border-color: var(--accent-hover);
  background: var(--bg-card);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* Step 2: Generated QR + Transfer Details Grid */
.tp-qr-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: stretch;
  animation: fadeSlideDown 0.28s ease;
}

.tp-qr-left {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #07101E;
  border: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.tp-qr-left:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 12px 30px rgba(3, 8, 18, 0.48), 0 0 22px rgba(59, 130, 246, 0.18);
}

.tp-vietqr-shell {
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(155deg, #E8F4FF 0%, #D2E8FA 100%);
  box-shadow: 0 14px 36px rgba(2, 6, 14, 0.55);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
}

.tp-vietqr-shell:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 44px rgba(59, 130, 246, 0.35);
}

.tp-vietqr-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);
}

.tp-vietqr-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tp-vietqr-matrix {
  padding: 6px;
  background: #ffffff;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.tp-qr-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tp-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #FCD34D;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tp-qr-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.tp-bank-detail-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #081222;
  border: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.tp-bank-detail-card:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 10px 28px rgba(3, 8, 18, 0.45), 0 0 20px rgba(59, 130, 246, 0.16);
}

.tp-bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(34, 55, 80, 0.48);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.tp-bank-row:last-child {
  border-bottom: none;
}

.tp-bank-row:hover {
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(4px);
}

.tp-bank-k {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.tp-bank-v {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.tp-bank-v.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tp-bank-v.amount {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--text-main);
}

.tp-memo-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.tp-copy-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.tp-copy-icon-btn:hover {
  border-color: var(--accent-hover);
  color: #ffffff;
  background: var(--accent);
}

.tp-hero-banner::after,
.tp-hero-balance::after,
.tp-method-card::after,
.tp-main-box::after,
.tp-qr-left::after,
.tp-bank-detail-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(96, 165, 250, 0.14),
    rgba(59, 130, 246, 0.04) 45%,
    transparent 72%
  );
  transition: opacity 0.26s ease;
  z-index: 1;
}

.tp-hero-banner:hover::after,
.tp-hero-balance:hover::after,
.tp-method-card:hover::after,
.tp-main-box:hover::after,
.tp-qr-left:hover::after,
.tp-bank-detail-card:hover::after {
  opacity: 1;
}

.tp-hero-banner > *,
.tp-hero-balance > *,
.tp-method-card > *,
.tp-main-box > *,
.tp-qr-left > *,
.tp-bank-detail-card > * {
  position: relative;
  z-index: 2;
}

/* =========================================================================
   PAGE TRANSITION LOADER — KIỂU 2: QUỸ ĐẠO 3D + LOGO ZEX
   ========================================================================= */
.page-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 12, 24, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.page-loader-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: scale(0.94);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-loader-overlay.active .page-loader-inner {
  transform: scale(1);
}

.gyro-stage {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
}

.gyro-glow {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.38) 0%, rgba(37, 99, 235, 0.12) 54%, transparent 74%);
  filter: blur(7px);
  pointer-events: none;
}

.gyro-orbit-wrap {
  position: absolute;
  width: 86px;
  height: 86px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  perspective: 260px;
  pointer-events: none;
}

.gyro-ring {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.gyro-ring-1 {
  border-top-color: #BAE6FD;
  border-right-color: #3B82F6;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.62);
  animation: zexGyroOrbit1 1.1s linear infinite;
}

.gyro-ring-2 {
  border-bottom-color: #60A5FA;
  border-left-color: #2563EB;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.52);
  animation: zexGyroOrbit2 1.45s linear infinite;
}

@keyframes zexGyroOrbit1 {
  0% { transform: rotateX(68deg) rotateY(18deg) rotateZ(0deg); }
  100% { transform: rotateX(68deg) rotateY(18deg) rotateZ(360deg); }
}

@keyframes zexGyroOrbit2 {
  0% { transform: rotateX(68deg) rotateY(-42deg) rotateZ(360deg); }
  100% { transform: rotateX(68deg) rotateY(-42deg) rotateZ(0deg); }
}

.gyro-logo-core {
  position: relative;
  z-index: 4;
  width: 54px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  animation: zexChibiFloat 1.8s ease-in-out infinite;
}

.gyro-logo-core img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.45)) drop-shadow(0 10px 22px rgba(2, 6, 14, 0.65));
}

@keyframes zexChibiFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-5px) scale(1.02); }
}

.gyro-loader-text {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-main);
  margin-top: 2px;
}

.gyro-loader-text span {
  color: var(--accent-hover);
}

.gyro-loader-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.sound-toggle-btn.muted {
  opacity: 0.55;
  color: var(--text-dim);
}

.sound-toggle-btn:not(.muted) {
  color: var(--accent-hover);
  border-color: rgba(59, 130, 246, 0.32);
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popUp {
  from { opacity: 0; transform: scale(0.97) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .navbar {
    padding: 8px 10px 4px;
  }
  .navbar-inner {
    padding: 0 12px;
    border-radius: 14px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(11, 22, 40, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(2, 6, 18, 0.65);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .nav-item.active::after {
    display: none;
  }
  .mobile-menu-btn {
    display: grid;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-banner-stage,
  .hero-banner-frame,
  .hero-3d-surface {
    min-height: 220px;
  }
  .stats-stack {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topup-layout,
  .hub-layout,
  .pd-hero-grid,
  .co-grid,
  .tp-qr-result-grid {
    grid-template-columns: 1fr;
  }
  .tp-amt-pills,
  .tp-telco-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pd-media-card {
    min-height: 300px;
    aspect-ratio: 16 / 11;
  }
  .pd-info-col {
    position: static;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 660px) {
  .categories-grid,
  .featured-cats-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid,
  .qr-checkout-box,
  .checkout-split,
  .gift-split-grid,
  .profile-form-grid,
  .pd-actions-row,
  .co-method-switcher,
  .tp-method-grid {
    grid-template-columns: 1fr !important;
  }
  .tp-amt-pills,
  .tp-telco-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tp-card-inputs {
    grid-template-columns: 1fr;
  }
  .co-qr-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .pd-title,
  .co-page-title {
    font-size: 1.55rem;
  }
  .user-name {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   CUSTOM CURSOR — MẪU 21: NGÔI SAO BĂNG (SHOOTING STAR COMET)
   ========================================================================= */
html.hz-custom-cursor,
html.hz-custom-cursor * {
  cursor: none !important;
}

.hz-cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99998;
}

.hz-star-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.16s ease;
  will-change: transform;
}

.hz-star-cursor.visible {
  opacity: 1;
}

.hz-star-svg {
  display: block;
  filter: drop-shadow(0 0 9px #BAE6FD) drop-shadow(0 0 16px rgba(59, 130, 246, 0.72));
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), filter 0.16s ease;
}

.hz-star-cursor.hovering .hz-star-svg {
  transform: scale(1.26) rotate(45deg);
  filter: drop-shadow(0 0 12px #E0F2FE) drop-shadow(0 0 22px rgba(56, 189, 248, 0.92));
}

.hz-star-cursor.pressing .hz-star-svg {
  transform: scale(0.72) rotate(45deg);
}

/* =========================================================================
   FLOATING SUPPORT BUTTON — MẪU 9: QUẢ CẦU QUỸ ĐẠO 3D (DISCORD)
   ========================================================================= */
@keyframes supportGyroSpin1 {
  0% { transform: rotateX(70deg) rotateY(22deg) rotateZ(0deg); }
  100% { transform: rotateX(70deg) rotateY(22deg) rotateZ(360deg); }
}

@keyframes supportGyroSpin2 {
  0% { transform: rotateX(66deg) rotateY(-28deg) rotateZ(360deg); }
  100% { transform: rotateX(66deg) rotateY(-28deg) rotateZ(0deg); }
}

@keyframes supportGyroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes supportGyroDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.support-gyro-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 880;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.support-gyro-stage {
  position: relative;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 520px;
  transform-style: preserve-3d;
  animation: supportGyroFloat 3.6s ease-in-out infinite;
}

.support-gyro-aura {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.42) 0%, rgba(37, 99, 235, 0.14) 52%, transparent 74%);
  filter: blur(6px);
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.support-gyro-orb {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #93C5FD 0%, #3B82F6 38%, #1D4ED8 74%, #0B1730 100%);
  border: 1px solid rgba(191, 219, 254, 0.48);
  box-shadow:
    0 0 24px rgba(59, 130, 246, 0.72),
    0 10px 24px rgba(8, 15, 28, 0.7),
    inset -5px -7px 12px rgba(8, 15, 28, 0.65),
    inset 3px 3px 8px rgba(255, 255, 255, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.support-gyro-orb svg {
  filter: drop-shadow(0 2px 6px rgba(8, 15, 28, 0.55));
}

.support-gyro-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
}

.support-gyro-ring-1 {
  width: 74px;
  height: 74px;
  border-top-color: #93C5FD;
  border-right-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
  animation: supportGyroSpin1 3.4s linear infinite;
}

.support-gyro-ring-2 {
  width: 64px;
  height: 64px;
  border-top-color: #38BDF8;
  border-left-color: rgba(96, 165, 250, 0.62);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.32);
  animation: supportGyroSpin2 2.7s linear infinite;
}

.support-gyro-tooltip {
  position: absolute;
  right: 86px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 11px;
  background: rgba(13, 25, 41, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.52), 0 0 18px rgba(59, 130, 246, 0.24);
  color: #F1F5F9;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.support-gyro-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
  animation: supportGyroDotPulse 1.8s ease-in-out infinite;
}

.support-gyro-fab:hover .support-gyro-stage {
  animation-play-state: paused;
}

.support-gyro-fab:hover .support-gyro-orb {
  transform: scale(1.12);
  box-shadow:
    0 0 32px rgba(96, 165, 250, 0.95),
    0 12px 28px rgba(8, 15, 28, 0.75),
    inset -4px -6px 10px rgba(8, 15, 28, 0.55),
    inset 3px 3px 10px rgba(255, 255, 255, 0.45);
}

.support-gyro-fab:hover .support-gyro-aura {
  transform: scale(1.18);
  opacity: 1;
}

.support-gyro-fab:hover .support-gyro-tooltip,
.support-gyro-fab:focus-visible .support-gyro-tooltip {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.support-gyro-fab:active .support-gyro-orb {
  transform: scale(0.96);
}

@media (max-width: 640px) {
  .support-gyro-fab {
    right: 14px;
    bottom: 16px;
  }
  .support-gyro-stage {
    width: 68px;
    height: 68px;
  }
  .support-gyro-orb {
    width: 44px;
    height: 44px;
  }
  .support-gyro-ring-1 {
    width: 64px;
    height: 64px;
  }
  .support-gyro-ring-2 {
    width: 56px;
    height: 56px;
  }
  .support-gyro-tooltip {
    display: none;
  }
}

/* =========================================================================
   MINIMALIST PRODUCT DETAIL PAGE (MATCHING USER REFERENCE — DARK NAVY BLUE)
   ========================================================================= */
.pdm-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 6px 0 36px;
}

.pdm-crumb-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.pdm-crumb-back,
.pdm-crumb-link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.16s ease;
}

.pdm-crumb-back:hover,
.pdm-crumb-link:hover {
  color: #60A5FA;
}

.pdm-crumb-sep {
  opacity: 0.4;
}

.pdm-crumb-current {
  color: var(--text-main);
  font-weight: 700;
}

.pdm-grid {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 38px;
  align-items: stretch;
}

.pdm-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-slot);
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 0 18px 42px rgba(3, 8, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pdm-media .empty-slot {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pdm-media:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 22px 48px rgba(3, 8, 18, 0.65), 0 0 26px rgba(59, 130, 246, 0.18);
}

.pdm-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdm-media:hover img {
  transform: scale(1.03);
}

.pdm-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 2px;
}

.pdm-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pdm-cat-tag svg {
  color: #60A5FA;
}

.pdm-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.pdm-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pdm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.85);
}

.pdm-status-dot.out {
  background: #F87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.75);
}

.pdm-status-sep {
  opacity: 0.45;
}

.pdm-variants-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.pdm-variants-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #F8FAFC;
}

.pdm-variants-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pdm-radio-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
}

.pdm-radio-list.compact {
  gap: 8px;
  margin-bottom: 18px;
}

.pdm-radio-list.compact .pdm-radio-item {
  padding: 11px 16px;
}

.pdm-radio-item.out {
  opacity: 0.6;
}

/* Variant Selector — Mẫu 6: 2x2 Phím Cơ 3D Nhấn Lún (Tactile 3D Keycaps) */
.pdm-key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  padding-top: 3px;
}

.pdm-key-grid.single {
  grid-template-columns: 1fr;
}

.pdm-key-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  padding: 13px 15px;
  border-radius: 12px;
  background: linear-gradient(180deg, #142642 0%, #0C182B 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow:
    0 5px 0 #060D1A,
    0 9px 18px rgba(2, 6, 14, 0.52),
    inset 0 1px 0 rgba(191, 219, 254, 0.2);
  color: #F8FAFC;
  text-align: left;
  cursor: pointer;
  transform: translateY(-2px);
  transition: transform 0.13s ease, box-shadow 0.14s ease, border-color 0.18s ease, background 0.18s ease;
  user-select: none;
}

.pdm-key-item:hover:not(.active) {
  border-color: rgba(96, 165, 250, 0.72);
  transform: translateY(-4px);
  box-shadow:
    0 7px 0 #060D1A,
    0 12px 22px rgba(3, 8, 18, 0.6),
    0 0 16px rgba(59, 130, 246, 0.22),
    inset 0 1px 0 rgba(224, 242, 254, 0.28);
}

.pdm-key-item:active {
  transform: translateY(3px) !important;
  box-shadow:
    0 1px 0 #060D1A,
    0 3px 8px rgba(2, 6, 14, 0.45),
    inset 0 2px 4px rgba(2, 6, 14, 0.35) !important;
}

.pdm-key-item.active {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%);
  border-color: #93C5FD;
  box-shadow:
    0 5px 0 #1E3A8A,
    0 10px 24px rgba(37, 99, 235, 0.45),
    0 0 20px rgba(59, 130, 246, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.pdm-key-item.active:hover {
  transform: translateY(-4px);
  box-shadow:
    0 7px 0 #1E3A8A,
    0 14px 28px rgba(59, 130, 246, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.42);
}

.pdm-key-item.active:active {
  box-shadow:
    0 1px 0 #1E3A8A,
    0 4px 12px rgba(37, 99, 235, 0.4),
    inset 0 2px 4px rgba(15, 23, 42, 0.35) !important;
}

.pdm-key-item.out {
  opacity: 0.55;
}

.pdm-key-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pdm-key-name {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}

.pdm-key-check {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.16s ease, transform 0.16s ease;
  flex-shrink: 0;
}

.pdm-key-item.active .pdm-key-check {
  opacity: 1;
  transform: scale(1);
}

.pdm-key-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pdm-key-price {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: #7DD3FC;
}

.pdm-key-item.active .pdm-key-price {
  color: #FFFFFF;
}

.pdm-key-stock {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.pdm-key-item.active .pdm-key-stock {
  color: rgba(224, 242, 254, 0.88);
}

.pdm-key-stock.out {
  color: #FCA5A5;
}

@media (max-width: 520px) {
  .pdm-key-grid {
    grid-template-columns: 1fr;
  }
}

.pdm-radio-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 12px;
  background: rgba(13, 25, 41, 0.58);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.22s ease, transform 0.16s ease;
}

.pdm-radio-item:hover {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(19, 34, 56, 0.78);
}

.pdm-radio-item.active {
  border-color: #3B82F6;
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 0 24px rgba(59, 130, 246, 0.18);
}

.pdm-radio-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.pdm-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdm-radio-item.active .pdm-radio-dot {
  border-color: #60A5FA;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

.pdm-radio-item.active .pdm-radio-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #93C5FD;
}

.pdm-radio-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pdm-radio-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #F8FAFC;
}

.pdm-radio-stock {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pdm-radio-stock.out {
  color: #F87171;
}

.pdm-radio-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #F8FAFC;
  white-space: nowrap;
  flex-shrink: 0;
}

.pdm-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(96, 165, 250, 0.14);
}

.pdm-total-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdm-total-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pdm-qty-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(13, 25, 41, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.24);
}

.pdm-qty-mini button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(30, 58, 138, 0.3);
  color: #E2E8F0;
  font-size: 0.9rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease;
}

.pdm-qty-mini button:hover:not(:disabled) {
  background: #2563EB;
  color: #fff;
}

.pdm-qty-mini button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pdm-qty-mini span {
  min-width: 18px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: #F8FAFC;
}

.pdm-total-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.pdm-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdm-buy-btn {
  flex: 1;
  height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 55%, #38BDF8 100%);
  border: 1px solid rgba(147, 197, 253, 0.45);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.42);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.pdm-buy-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.52);
}

.pdm-buy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pdm-cart-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(13, 25, 41, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.16s ease;
}

.pdm-cart-btn:hover:not(:disabled) {
  border-color: #60A5FA;
  color: #FFFFFF;
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.pdm-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 28px;
}

.pdm-details-grid .pd-info-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .pdm-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .pdm-media {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    max-width: 420px;
    margin: 0 auto;
  }
  .pdm-title {
    font-size: 1.65rem;
  }
}

/* Product Detail Entrance Animation — Mẫu 1: Lướt Nối Tiếp Mượt (Smooth Cascade) */
@keyframes pdmCascadeRise {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pdm-shell.pdm-enter-ready .pdm-rise {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}

.pdm-shell.pdm-enter-play .pdm-rise {
  animation: pdmCascadeRise 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pdm-shell.pdm-enter-play .pdm-d1 { animation-delay: 0.02s; }
.pdm-shell.pdm-enter-play .pdm-d2 { animation-delay: 0.08s; }
.pdm-shell.pdm-enter-play .pdm-d3 { animation-delay: 0.14s; }
.pdm-shell.pdm-enter-play .pdm-d4 { animation-delay: 0.20s; }
.pdm-shell.pdm-enter-play .pdm-d5 { animation-delay: 0.26s; }
.pdm-shell.pdm-enter-play .pdm-d6 { animation-delay: 0.32s; }
.pdm-shell.pdm-enter-play .pdm-d7 { animation-delay: 0.38s; }
.pdm-shell.pdm-enter-play .pdm-d8 { animation-delay: 0.44s; }

/* Product Detail YouTube Video Guide Card */
.pdm-yt-card {
  width: 100%;
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(13, 25, 41, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.22);
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

.pdm-yt-card:hover {
  border-color: rgba(96, 165, 250, 0.62);
  background: rgba(19, 34, 56, 0.88);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(3, 8, 18, 0.45), 0 0 20px rgba(59, 130, 246, 0.18);
}

.pdm-yt-icon {
  width: 44px;
  height: 36px;
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.7);
  border: 1px solid rgba(255, 46, 77, 0.24);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.pdm-yt-svg {
  display: block;
  filter: drop-shadow(0 3px 10px rgba(255, 0, 43, 0.48));
  transition: transform 0.22s ease, filter 0.22s ease;
}

.pdm-yt-card:hover .pdm-yt-icon {
  transform: scale(1.06);
  border-color: rgba(255, 46, 77, 0.55);
  box-shadow: 0 0 18px rgba(255, 0, 43, 0.3);
}

.pdm-yt-card:hover .pdm-yt-svg {
  filter: drop-shadow(0 4px 14px rgba(255, 46, 77, 0.72));
}

.pdm-yt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.pdm-yt-title {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.25;
}

.pdm-yt-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdm-yt-arrow {
  color: #60A5FA;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pdm-yt-card:hover .pdm-yt-arrow {
  transform: translate(2px, -2px);
}

/* Single Centered Checkout Order Card */
.co-header-centered {
  text-align: center;
}

.co-grid.co-grid-single {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================================================
   IN-PLACE CHECKOUT POPUP MODAL (MẪU 9 — VIỀN SÁNG ĐUỔI CHUỘT + TRỒI MƯỢT)
   ========================================================================= */
@keyframes coPopRise3D {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.co-pop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(4, 9, 18, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.co-pop-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.co-pop-stage {
  width: 100%;
  max-width: 540px;
}

.co-pop-card {
  position: relative;
  width: 100%;
  border-radius: 21px;
  padding: 1.8px;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 12%),
    #E0F2FE 0%,
    #60A5FA 32%,
    #2563EB 56%,
    rgba(59, 130, 246, 0.24) 84%
  );
  box-shadow:
    0 24px 64px rgba(2, 6, 14, 0.78),
    0 0 34px rgba(59, 130, 246, 0.24);
  overflow: hidden;
  transition: box-shadow 0.24s ease;
  will-change: transform, opacity;
}

.co-pop-card:hover {
  box-shadow:
    0 28px 72px rgba(2, 6, 14, 0.84),
    0 0 42px rgba(56, 189, 248, 0.34);
}

.co-pop-card.co-pop-animate {
  animation: coPopRise3D 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.co-pop-glare {
  position: absolute;
  inset: 2px;
  border-radius: 19px;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 12%),
    rgba(96, 165, 250, 0.14),
    rgba(59, 130, 246, 0.04) 44%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.24s ease;
}

.co-pop-card:hover .co-pop-glare {
  opacity: 1;
}

.co-pop-content {
  position: relative;
  z-index: 2;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border-radius: 19.2px;
  background: linear-gradient(155deg, rgba(13, 25, 44, 0.98) 0%, rgba(8, 15, 28, 0.99) 100%);
  padding: 24px 26px 22px;
}

.co-pop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
}

.co-pop-kicker {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.co-pop-kicker .accent {
  color: var(--accent-hover);
}

.co-pop-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: 0.02em;
}

.co-pop-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(19, 34, 56, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.co-pop-close:hover {
  background: rgba(59, 130, 246, 0.24);
  border-color: #60A5FA;
  color: #ffffff;
  transform: rotate(90deg);
}

@media (max-width: 560px) {
  .co-pop-card {
    border-radius: 17px;
  }
  .co-pop-content {
    padding: 18px 16px;
    border-radius: 15.2px;
  }
}

/* =========================================================================
   ORDER DETAIL MODAL — MẪU 3: KÉT MÃ GỌN + TAB CHUYỂN (COMPACT GLASS VAULT)
   ========================================================================= */
.orda-v3-shell {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.orda-v3-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.orda-v3-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.orda-v3-paid-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7DD3FC;
  font-size: 0.68rem;
  font-weight: 700;
}

.orda-v3-paid-pill.subtle {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.34);
  color: #93C5FD;
}

.orda-v3-prod-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(13, 25, 41, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.orda-v3-prod-info {
  min-width: 0;
  flex: 1;
}

.orda-v3-prod-name {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.orda-v3-prod-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.orda-v3-qty {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.orda-v3-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #60A5FA;
  white-space: nowrap;
  flex-shrink: 0;
}

.orda-v3-vault {
  padding: 12px 14px;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(14, 28, 50, 0.86), rgba(8, 16, 30, 0.92));
  border: 1px solid rgba(59, 130, 246, 0.34);
  box-shadow: inset 0 0 22px rgba(59, 130, 246, 0.08);
}

.orda-v3-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(7, 14, 27, 0.92);
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.orda-v3-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.orda-v3-tab:hover {
  color: #E2E8F0;
}

.orda-v3-tab.active {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.38);
}

.orda-v3-panel {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(11, 22, 40, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.15);
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.orda-v3-meta-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.orda-v3-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.orda-v3-meta-row strong {
  color: #E2E8F0;
  font-weight: 600;
}

.orda-v3-meta-row.total {
  padding-top: 9px;
  margin-top: 2px;
  border-top: 1px solid rgba(96, 165, 250, 0.14);
}

.orda-v3-meta-row.total span {
  color: #F8FAFC;
  font-weight: 700;
}

.orda-v3-total-num {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800 !important;
  color: #60A5FA !important;
}

.orda-v3-guide-list {
  margin: 0;
  gap: 7px;
  font-size: 0.81rem;
}

.orda-v3-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 2px;
}

.orda-v3-dl-wrap {
  margin: 0;
}

.orda-v3-foot-links {
  padding-top: 10px;
  border-top: 1px solid rgba(96, 165, 250, 0.14);
}

.orda-yt-guide-btn .orda-dl-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.orda-yt-btn-svg {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

/* Code Retrieval Links Card (Product Detail + Order Guide Tab) */
.pdm-codelinks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdm-codelink-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(8, 16, 30, 0.82);
  border: 1px solid rgba(96, 165, 250, 0.24);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
}

.pdm-codelink-item:hover {
  border-color: #60A5FA;
  background: rgba(19, 34, 56, 0.9);
  transform: translateX(3px);
  box-shadow: 0 8px 20px rgba(3, 8, 18, 0.4), 0 0 16px rgba(59, 130, 246, 0.18);
}

.pdm-codelink-badge {
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.38);
  color: #93C5FD;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.pdm-codelink-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: #F1F5F9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.pdm-codelink-ext {
  color: #60A5FA;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.pdm-codelink-item:hover .pdm-codelink-ext {
  transform: translate(2px, -2px);
}

.orda-codelinks-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(96, 165, 250, 0.14);
}

.orda-codelink-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.42);
  color: #BAE6FD;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.orda-codelink-pill:hover {
  background: rgba(59, 130, 246, 0.34);
  border-color: #93C5FD;
  color: #FFFFFF;
}

/* Reserved Admin Extra Slot underneath Activation Key */
.orda-admin-slot {
  margin-top: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(6, 13, 26, 0.65);
  border: 1px dashed rgba(96, 165, 250, 0.28);
  color: #E2E8F0;
  font-size: 0.82rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.orda-admin-slot.filled {
  border-style: solid;
  border-color: rgba(96, 165, 250, 0.36);
  white-space: pre-wrap;
}

/* =========================================================================
   FLOATING RECENT PURCHASE POPUP (BOTTOM-LEFT)
   ========================================================================= */
.rp-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 260;
  width: 318px;
  max-width: calc(100vw - 40px);
  padding: 11px 12px 13px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 25, 44, 0.96) 0%, rgba(8, 15, 28, 0.98) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow:
    0 18px 42px rgba(2, 6, 18, 0.72),
    0 0 24px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(147, 197, 253, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease;
}

.rp-popup.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.rp-popup:hover {
  border-color: rgba(96, 165, 250, 0.48);
}

.rp-progress-track {
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.14);
  overflow: hidden;
}

.rp-progress-bar {
  width: 100%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563EB 0%, #38BDF8 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.85);
  transform-origin: left center;
  transform: scaleX(0);
}

@keyframes rpProgressRun {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

.rp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.rp-head-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.rp-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2), 0 0 8px rgba(34, 197, 94, 0.9);
  animation: dmbPulseDot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

.rp-head-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #F1F5F9;
  letter-spacing: 0.01em;
}

.rp-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(30, 58, 95, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.22);
  font-size: 0.68rem;
  font-weight: 700;
  color: #93C5FD;
}

.rp-head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rp-icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #7C92B0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.22s ease;
}

.rp-icon-btn:hover {
  color: #F8FAFC;
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(96, 165, 250, 0.26);
}

.rp-popup.is-expanded #rpExpandBtn svg {
  transform: rotate(180deg);
}

#rpExpandBtn svg {
  transition: transform 0.22s ease;
}

.rp-stack {
  position: relative;
  padding-bottom: 4px;
}

.rp-stack-depth {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 12px;
  border-radius: 0 0 11px 11px;
  background: rgba(11, 22, 40, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-top: none;
  z-index: 0;
}

.rp-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(16, 31, 56, 0.94) 0%, rgba(10, 21, 39, 0.96) 100%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rp-card:hover {
  border-color: rgba(96, 165, 250, 0.56);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2, 8, 22, 0.46), 0 0 14px rgba(59, 130, 246, 0.16);
}

.rp-thumb-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.rp-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(9, 18, 34, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.24);
  display: grid;
  place-items: center;
  color: #64748B;
}

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

.rp-thumb svg {
  width: 17px;
  height: 17px;
  opacity: 0.72;
}

.rp-verified-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #22C55E;
  color: #052E16;
  border: 2px solid #0B1629;
  display: grid;
  place-items: center;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.rp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rp-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rp-title {
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.rp-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.69rem;
  font-weight: 500;
  color: #7C92B0;
  white-space: nowrap;
  flex-shrink: 0;
}

.rp-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #94A3B8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-user-check {
  color: #22C55E;
  flex-shrink: 0;
}

.rp-buyer {
  color: #E2E8F0;
  font-weight: 700;
}

.rp-qty {
  color: #94A3B8;
}

/* Jackpot Win Highlight inside Floating Bottom-Left Popup */
.rp-popup.is-jackpot-active {
  border-color: rgba(251, 191, 36, 0.52);
  box-shadow:
    0 18px 42px rgba(2, 6, 18, 0.74),
    0 0 26px rgba(245, 158, 11, 0.2),
    inset 0 1px 0 rgba(254, 240, 138, 0.18);
}

.rp-popup.is-jackpot-active .rp-progress-bar {
  background: linear-gradient(90deg, #F59E0B 0%, #FDE047 100%);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.85);
}

.rp-popup.is-jackpot-active .rp-live-dot {
  background: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25), 0 0 9px rgba(251, 191, 36, 0.95);
}

.rp-popup.is-jackpot-active .rp-head-title {
  color: #FDE047;
}

.rp-card.is-jackpot {
  background: linear-gradient(145deg, rgba(44, 30, 12, 0.92) 0%, rgba(14, 21, 38, 0.96) 100%);
  border-color: rgba(251, 191, 36, 0.45);
}

.rp-card.is-jackpot:hover {
  border-color: rgba(253, 224, 71, 0.78);
  box-shadow: 0 8px 20px rgba(2, 8, 22, 0.5), 0 0 16px rgba(245, 158, 11, 0.24);
}

.rp-thumb.is-jackpot {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(9, 18, 34, 0.94) 76%);
  border-color: rgba(251, 191, 36, 0.48);
  padding: 2px;
}

.rp-thumb.is-jackpot img {
  object-fit: contain;
}

.rp-verified-badge.is-jackpot {
  background: #F59E0B;
  color: #080F1C;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.75);
}

.rp-title.is-jackpot {
  color: #FDE047;
}

.rp-user-trophy {
  color: #FBBF24;
  flex-shrink: 0;
}

.rp-qty.is-jackpot {
  color: #FCD34D;
  font-weight: 700;
}

.rp-expanded-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 258px;
  overflow-y: auto;
  padding-right: 2px;
}

.rp-expanded-list::-webkit-scrollbar {
  width: 4px;
}

.rp-expanded-list::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.3);
  border-radius: 99px;
}

@media (max-width: 640px) {
  .rp-popup {
    left: 12px;
    bottom: 14px;
    width: min(292px, calc(100vw - 92px));
    padding: 10px 10px 11px;
  }
}

/* =========================================================================
   AMBIENT BACKGROUND: MẪU 2 — BẦU TRỜI SAO & MƯA SAO BĂNG
   ========================================================================= */
.ambient-starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* =========================================================================
   ADMIN NAVBAR ENTRY BUTTON & MAINTENANCE GUARD
   ========================================================================= */
.btn-admin-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #E0F2FE;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(14, 165, 233, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.24);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
  margin-right: 4px;
}

.btn-admin-nav:hover,
.btn-admin-nav.active {
  background: linear-gradient(135deg, #2563EB, #38BDF8);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.admin-drop-link {
  color: #7DD3FC !important;
  font-weight: 700 !important;
}

.admin-maint-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 270;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.94);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #FEF3C7;
  font-size: 0.82rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.maint-overlay {
  position: fixed;
  inset: 0;
  z-index: 980;
  background: radial-gradient(circle at 50% 20%, rgba(16, 36, 70, 0.96), rgba(4, 9, 20, 0.99));
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.maint-overlay.open {
  display: flex;
}

.maint-card {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 34px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 25, 44, 0.96), rgba(8, 15, 28, 0.99));
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
}

.maint-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #FCD34D;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.maint-card h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.maint-card h2 span {
  color: #38BDF8;
}

.maint-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.maint-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================================
   FULL 8-TAB ADMIN DASHBOARD — MẪU 3: SAAS TỐI GIẢN PRO (LINEAR / RAYCAST)
   ========================================================================= */
.adm-layout.adm-saas-m3 {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-radius: 16px;
  background: rgba(7, 12, 22, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 22px 56px rgba(2, 6, 18, 0.62);
  backdrop-filter: blur(12px);
  overflow: hidden;
  min-height: 680px;
}

.adm-saas-m3 .adm-sidebar {
  position: static;
  border-radius: 0;
  padding: 20px 12px 16px;
  background: rgba(6, 10, 19, 0.92);
  border: none;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.adm-saas-m3 .adm-side-head {
  padding: 2px 10px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.adm-side-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.adm-saas-m3 .adm-side-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #93C5FD;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.adm-saas-m3 .adm-side-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: 0.02em;
}

.adm-saas-m3 .adm-side-title span {
  color: #38BDF8;
}

.adm-saas-m3 .adm-side-sub {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 3px;
}

.adm-saas-m3 .adm-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.adm-nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.adm-nav-group-lbl {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748B;
  padding: 0 10px 5px;
}

.adm-saas-m3 .adm-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: #94A3B8;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.adm-saas-m3 .adm-nav-btn:hover {
  background: rgba(148, 163, 184, 0.08);
  color: #E2E8F0;
}

.adm-saas-m3 .adm-nav-btn.active {
  background: rgba(59, 130, 246, 0.14);
  color: #F8FAFC;
  font-weight: 600;
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: none;
}

.adm-saas-m3 .adm-nav-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2.5px;
  border-radius: 99px;
  background: #38BDF8;
}

.adm-saas-m3 .adm-nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #64748B;
  flex-shrink: 0;
}

.adm-saas-m3 .adm-nav-btn.active .adm-nav-ico,
.adm-saas-m3 .adm-nav-btn:hover .adm-nav-ico {
  color: #60A5FA;
}

.adm-svg-ico {
  width: 16px;
  height: 16px;
}

.adm-saas-m3 .adm-nav-lbl {
  flex: 1;
  min-width: 0;
}

.adm-saas-m3 .adm-nav-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #FCD34D;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.adm-saas-m3 .adm-side-foot {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.adm-back-store-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.adm-back-store-btn:hover {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.3);
  color: #F8FAFC;
}

.adm-saas-m3 .adm-main {
  min-width: 0;
  padding: 24px 28px 30px;
}

.adm-saas-m3 .adm-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.adm-saas-m3 .adm-page-title {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.adm-saas-m3 .adm-page-sub {
  font-size: 0.8rem;
  color: #64748B;
}

/* Unified 4-Cell Stat Strip (Mẫu 3) */
.adm-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  background: rgba(11, 18, 32, 0.72);
}

.adm-stat-cell {
  padding: 14px 16px;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.adm-stat-cell:last-child {
  border-right: none;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.adm-saas-m3 .adm-kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748B;
  text-transform: none;
  letter-spacing: 0.01em;
}

.adm-saas-m3 .adm-kpi-val {
  font-family: var(--font-heading);
  font-size: 1.26rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 5px 0 3px;
}

.adm-saas-m3 .adm-kpi-meta {
  font-size: 0.72rem;
  color: #64748B;
}

.adm-saas-m3 .adm-panel {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.adm-saas-m3 .adm-panel-head {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.adm-saas-m3 .adm-panel-head h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #E2E8F0;
}

.adm-saas-m3 .adm-table-wrap {
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.adm-saas-m3 .adm-table th {
  padding: 10px 14px;
  font-size: 0.69rem;
  font-weight: 700;
  color: #64748B;
  background: rgba(8, 14, 26, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.adm-saas-m3 .adm-table td {
  padding: 10px 14px;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.adm-saas-m3 .adm-table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.045);
}

.adm-saas-m3 .adm-mini-row {
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(8, 14, 26, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.adm-saas-m3 .adm-mini-row:hover {
  border-color: rgba(148, 163, 184, 0.22);
}

.adm-saas-m3 .adm-mini-btn {
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 0.73rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 1040px) {
  .adm-layout.adm-saas-m3 { grid-template-columns: 1fr; }
  .adm-saas-m3 .adm-sidebar { border-right: none; border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
  .adm-saas-m3 .adm-nav { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .adm-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-stat-cell { border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
}

@media (max-width: 640px) {
  .adm-saas-m3 .adm-main { padding: 16px; }
  .adm-stat-strip { grid-template-columns: 1fr; }
  .adm-stat-cell { border-right: none; }
}

/* VIP Badge & Progress Bar */
.vip-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FEF3C7;
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  border: 1px solid rgba(253, 224, 71, 0.55);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
  line-height: 1.2;
}

.hub-role-badge.is-vip {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.28), rgba(245, 158, 11, 0.22));
  border-color: rgba(251, 191, 36, 0.55);
  color: #FDE68A;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.hub-vip-box {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(10, 20, 38, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.18);
  font-size: 0.73rem;
  color: #94A3B8;
}

.hub-vip-box.is-vip {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(251, 191, 36, 0.38);
  color: #FDE68A;
}

.hub-vip-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.hub-vip-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.6);
  overflow: hidden;
  margin-bottom: 6px;
}

.hub-vip-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #F59E0B, #FDE047);
}

.hub-vip-sub {
  font-size: 0.7rem;
  color: #7C92B0;
}

/* Base Admin Helper Styles (Legacy + Shared) */
.adm-layout {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.adm-sidebar {
  position: sticky;
  top: 90px;
  border-radius: 18px;
  padding: 18px 14px;
  background: linear-gradient(180deg, rgba(13, 25, 44, 0.95) 0%, rgba(8, 15, 28, 0.98) 100%);
  border: 1px solid rgba(59, 130, 246, 0.24);
  box-shadow: 0 14px 36px rgba(2, 6, 18, 0.52);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adm-side-head {
  padding: 4px 6px 12px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.adm-side-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93C5FD;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.adm-side-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: #F8FAFC;
}

.adm-side-title span {
  color: #38BDF8;
}

.adm-side-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.adm-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.adm-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  color: #94A3B8;
  text-align: left;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.adm-nav-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #F8FAFC;
}

.adm-nav-btn.active {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #FFFFFF;
  border-color: rgba(147, 197, 253, 0.35);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.36);
}

.adm-nav-ico {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.adm-nav-lbl {
  flex: 1;
  min-width: 0;
}

.adm-nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.adm-side-foot {
  padding-top: 12px;
  border-top: 1px solid rgba(59, 130, 246, 0.14);
}

.adm-main {
  min-width: 0;
}

.adm-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.adm-page-title {
  font-family: var(--font-heading);
  font-size: 1.38rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 4px;
}

.adm-page-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.adm-head-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.adm-kpi-card {
  padding: 16px 18px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(13, 25, 44, 0.95), rgba(8, 16, 30, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.adm-kpi-card.accent {
  border-color: rgba(56, 189, 248, 0.44);
  background: linear-gradient(145deg, rgba(22, 47, 86, 0.92), rgba(9, 18, 34, 0.98));
}

.adm-kpi-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adm-kpi-val {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 6px 0 4px;
}

.adm-kpi-val small {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94A3B8;
}

.adm-kpi-meta {
  font-size: 0.74rem;
  color: #7C92B0;
}

.adm-panel {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 25, 44, 0.94), rgba(8, 15, 28, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.adm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.adm-panel-head h3 {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: #F1F5F9;
}

.adm-link-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: #60A5FA;
}

.adm-link-btn:hover {
  color: #93C5FD;
}

.adm-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.adm-alert-panel {
  border-color: rgba(245, 158, 11, 0.42);
  margin-bottom: 18px;
}

.adm-alert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.24);
  font-size: 0.84rem;
}

.adm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.adm-search {
  flex: 1;
  min-width: 240px;
}

.adm-table-wrap {
  border-radius: 16px;
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(13, 25, 44, 0.94), rgba(8, 15, 28, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.adm-table th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93C5FD;
  background: rgba(15, 31, 56, 0.72);
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.adm-table td {
  padding: 12px 14px;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  vertical-align: middle;
}

.adm-table tr:last-child td {
  border-bottom: none;
}

.adm-table tr.adm-row-dim {
  opacity: 0.58;
}

.adm-cell-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-cell-sub {
  font-size: 0.74rem;
  color: #7C92B0;
  margin-top: 2px;
}

.adm-code-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(30, 58, 95, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: #BAE6FD;
}

.adm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.adm-badge.success { background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(52, 211, 153, 0.36); color: #6EE7B7; }
.adm-badge.warn    { background: rgba(245, 158, 11, 0.16); border: 1px solid rgba(251, 191, 36, 0.36); color: #FCD34D; }
.adm-badge.danger  { background: rgba(239, 68, 68, 0.16); border: 1px solid rgba(248, 113, 113, 0.36); color: #FCA5A5; }
.adm-badge.info    { background: rgba(59, 130, 246, 0.18); border: 1px solid rgba(96, 165, 250, 0.38); color: #93C5FD; }
.adm-badge.purple  { background: rgba(139, 92, 246, 0.18); border: 1px solid rgba(167, 139, 250, 0.38); color: #DDD6FE; }

.adm-act-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.adm-mini-btn {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #CBD5E1;
  background: rgba(15, 29, 52, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.24);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.adm-mini-btn:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.24);
  border-color: rgba(96, 165, 250, 0.55);
  color: #FFFFFF;
}

.adm-mini-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.adm-mini-btn.primary {
  background: rgba(37, 99, 235, 0.24);
  border-color: rgba(96, 165, 250, 0.45);
  color: #BAE6FD;
}

.adm-mini-btn.ok {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6EE7B7;
}

.adm-mini-btn.danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.35);
  color: #FCA5A5;
}

.adm-toggle-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(100, 116, 139, 0.35);
  color: #94A3B8;
  transition: all 0.18s ease;
}

.adm-toggle-pill.on {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6EE7B7;
}

.adm-toggle-pill.star {
  background: rgba(37, 99, 235, 0.26);
  border-color: rgba(56, 189, 248, 0.55);
  color: #BAE6FD;
}

.adm-prod-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-prod-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: #081223;
  border: 1px solid rgba(59, 130, 246, 0.24);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #64748B;
}

.adm-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-cat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adm-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(9, 18, 34, 0.78);
  border: 1px solid rgba(59, 130, 246, 0.16);
}

.adm-cat-thumb {
  width: 78px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: #081223;
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.adm-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-cat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-cat-info span {
  font-size: 0.75rem;
  color: #7C92B0;
}

.adm-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(9, 18, 34, 0.76);
  border: 1px solid rgba(59, 130, 246, 0.14);
}

.adm-mini-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-mini-main strong {
  font-size: 0.84rem;
  color: #F1F5F9;
}

.adm-mini-main span {
  font-size: 0.74rem;
  color: #7C92B0;
}

.adm-mini-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.adm-inv-selectors {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.adm-hint {
  font-size: 0.78rem;
  color: #94A3B8;
  margin-bottom: 10px;
  line-height: 1.5;
}

.adm-mono-ta {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.adm-inv-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.adm-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #CBD5E1;
  cursor: pointer;
}

.adm-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.adm-divider {
  height: 1px;
  background: rgba(59, 130, 246, 0.16);
  margin: 16px 0;
}

.adm-inv-ov-row {
  transition: background-color 0.16s ease;
}

.adm-inv-ov-row:hover {
  background: rgba(37, 99, 235, 0.12) !important;
}

.adm-inv-ov-row.active {
  background: rgba(37, 99, 235, 0.2) !important;
  box-shadow: inset 3px 0 0 #3B82F6;
}

.adm-pool-search-bar {
  margin-bottom: 10px;
}

.adm-pool-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 360px;
  overflow-y: auto;
}

.adm-pool-list-tall {
  max-height: 460px;
}

.adm-pool-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(7, 14, 28, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.18);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.adm-pool-item:hover {
  border-color: rgba(96, 165, 250, 0.42);
}

.adm-pool-item.has-warn {
  border-color: rgba(245, 158, 11, 0.48);
  background: rgba(245, 158, 11, 0.06);
}

.adm-pool-item.editing {
  border-color: #3B82F6;
  background: rgba(37, 99, 235, 0.12);
  flex-wrap: wrap;
}

.adm-pool-idx {
  font-size: 0.72rem;
  color: #64748B;
  min-width: 26px;
  flex-shrink: 0;
}

.adm-pool-code-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adm-pool-code {
  font-size: 0.79rem;
  color: #BAE6FD;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.4;
}

.adm-pool-warn-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  font-size: 0.69rem;
  font-weight: 600;
}

.adm-pool-edit-input {
  flex: 1;
  min-width: 180px;
  padding: 6px 10px !important;
  font-size: 0.8rem !important;
}

.adm-quick-acc-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(14, 30, 56, 0.52);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.adm-quick-acc-preview {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(5, 11, 22, 0.85);
  border: 1px dashed rgba(96, 165, 250, 0.28);
  font-size: 0.76rem;
  color: #94A3B8;
  word-break: break-all;
}

.adm-quick-acc-preview span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #7DD3FC;
  font-weight: 600;
}

.adm-inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.adm-inline-form button[type="submit"] {
  grid-column: 1 / -1;
}

.adm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.adm-span-2 {
  grid-column: 1 / -1;
}

.adm-menu-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-menu-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 88px;
  gap: 8px;
  align-items: center;
}

.adm-var-edit-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1fr auto;
  gap: 6px;
  align-items: center;
}

.adm-info-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(14, 30, 56, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.24);
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.adm-deliver-block {
  margin-bottom: 10px;
}

.adm-log-scroll {
  max-height: 290px;
  overflow-y: auto;
}

.adm-empty {
  text-align: center;
  padding: 26px 14px;
  font-size: 0.84rem;
  color: #7C92B0;
}

.text-cyan { color: #38BDF8; }
.text-ok { color: #4ADE80; }
.text-danger { color: #F87171; }

.btn-danger {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: #FFFFFF;
  border: 1px solid rgba(252, 165, 165, 0.35);
}

@media (max-width: 1040px) {
  .adm-layout { grid-template-columns: 1fr; }
  .adm-sidebar { position: static; }
  .adm-nav { flex-direction: row; flex-wrap: wrap; }
  .adm-nav-btn { width: auto; }
  .adm-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .adm-kpi-grid { grid-template-columns: 1fr; }
  .adm-var-edit-row { grid-template-columns: 1fr 1fr; }
  .adm-form-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   UNIVERSAL MOBILE SYMMETRY & ADAPTIVE LAYOUT (320px -> 960px ALL PHONES)
   - Zero cropped banners (100% original aspect ratio on every screen)
   - Zero navbar overlaps (logged out, logged in, & Admin)
   - Zero CSS Grid 1fr clipping on Account Overview / Topup / Orders / Admin
   - Horizontal scrollable tab bar so Tổng quan & content are always visible
   ========================================================================= */
@media (hover: none), (max-width: 960px) {
  /* Prevent sticky touch :hover blur/overlay on Category & Gacha cards */
  .zex-gacha-card:hover .zex-hover-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .featured-cat-item:hover .fcat-media-layer {
    transform: none !important;
    filter: none !important;
  }

  .featured-cat-item:hover .fcat-hover-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .featured-cat-item:hover .featured-cat-count {
    opacity: 1 !important;
    transform: none !important;
  }
}

.mobile-only-nav-item {
  display: none;
}

/* =========================================================================
   GLOBAL IN-APP BACK ARROW BAR (PC & MOBILE)
   ========================================================================= */
.nav-back-strip {
  display: none;
  padding: 14px 0 0;
}

.nav-back-strip.visible {
  display: block;
}

body.has-nav-back-strip .page-view {
  padding-top: 18px;
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 30, 54, 0.9) 0%, rgba(10, 20, 38, 0.94) 100%);
  border: 1px solid rgba(59, 130, 246, 0.34);
  color: #E2E8F0;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(2, 6, 18, 0.42), inset 0 1px 0 rgba(147, 197, 253, 0.12);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
  max-width: 100%;
}

.nav-back-btn:hover {
  border-color: rgba(96, 165, 250, 0.72);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(191, 219, 254, 0.22);
  transform: translateY(-1px);
}

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

.nav-back-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.36);
  color: #60A5FA;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav-back-btn:hover .nav-back-arrow {
  transform: translateX(-2px);
  background: rgba(59, 130, 246, 0.32);
  color: #E0F2FE;
}

.nav-back-text {
  white-space: nowrap;
}

.nav-back-prev {
  font-size: 0.78rem;
  font-weight: 500;
  color: #93C5FD;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

@media (max-width: 660px) {
  .nav-back-strip {
    padding: 10px 0 0;
  }

  body.has-nav-back-strip .page-view {
    padding-top: 12px;
  }

  .nav-back-btn {
    padding: 6px 12px 6px 8px;
    font-size: 0.8rem;
    gap: 7px;
  }

  .nav-back-arrow {
    width: 22px;
    height: 22px;
  }

  .nav-back-prev {
    font-size: 0.74rem;
    max-width: 150px;
  }
}

@media (max-width: 960px) {
  .mobile-only-nav-item {
    display: flex;
  }

  /* Prevent ANY CSS Grid 1fr child from stretching past viewport & getting clipped */
  .hero-grid,
  .hub-layout,
  .topup-layout,
  .pd-hero-grid,
  .co-grid,
  .tp-qr-result-grid,
  .adm-layout,
  .adm-two-col {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-grid > *,
  .hub-layout > *,
  .topup-layout > *,
  .pd-hero-grid > *,
  .co-grid > *,
  .tp-qr-result-grid > *,
  .adm-layout > *,
  .adm-main,
  #hubMainPanel {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Tables & wide lists scroll smoothly inside their box instead of clipping */
  .table-wrap,
  .adm-table-wrap,
  #topupRecentTable {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px 4px;
  }

  .navbar-inner {
    width: 100%;
    max-width: 100%;
    height: 58px;
    padding: 0 12px;
    gap: 8px;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    min-width: 0;
  }

  .nav-dropdown {
    right: 0;
    left: auto;
    max-width: calc(100vw - 24px);
  }

  /* HERO BANNER: Preserve 100% natural wide aspect ratio — NEVER crop on any phone! */
  .hero-banner-stage,
  .hero-banner-frame,
  .hero-3d-surface {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
    display: block !important;
  }

  .hero-banner-frame img,
  .hero-banner-frame video {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* CATEGORY BANNERS: Preserve 100% natural ultra-wide artwork — ZERO cropped text! */
  .featured-cat-box {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    display: block !important;
  }

  .fcat-surface {
    height: auto !important;
    display: block !important;
  }

  .fcat-media-layer {
    height: auto !important;
    display: block !important;
  }

  .fcat-media-layer img {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .featured-cat-count {
    top: 8px;
    left: 8px;
    padding: 3px 9px 3px 5px;
    font-size: 0.7rem;
    gap: 6px;
  }

  .featured-cat-count-icon {
    width: 20px;
    height: 20px;
  }

  /* ACCOUNT HUB (Tổng quan, Hồ sơ, Nạp tiền, Đơn hàng): Compact horizontal tab bar */
  .hub-sidebar {
    gap: 10px;
  }

  .hub-card {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .hub-user-head {
    margin-bottom: 10px;
    gap: 10px;
  }

  .hub-avatar-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .hub-balance-box {
    padding: 9px 12px;
  }

  .hub-balance-val {
    font-size: 0.96rem;
  }

  .hub-nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 6px !important;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hub-nav-list::-webkit-scrollbar {
    display: none;
  }

  .hub-nav-divider {
    display: none;
  }

  .hub-nav-btn {
    width: auto !important;
    flex-shrink: 0 !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
    background: rgba(15, 29, 51, 0.65);
    border: 1px solid rgba(59, 130, 246, 0.16);
  }

  .hub-nav-btn.active {
    border-color: transparent;
  }

  .hub-nav-btn-left {
    gap: 6px;
  }

  .hub-nav-btn svg {
    width: 15px;
    height: 15px;
  }

  .hub-main-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .hub-main-title {
    font-size: 1.24rem;
  }

  .hub-panel,
  .panel-card {
    padding: 15px;
    border-radius: 14px;
  }

  /* ADMIN PANEL MOBILE: Sleek scrollable tab strip & readable cards */
  .adm-sidebar {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .adm-nav-group-label {
    display: none !important;
  }

  .adm-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 6px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .adm-nav::-webkit-scrollbar {
    display: none;
  }

  .adm-nav-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 11px !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 660px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
  }

  .page-view {
    padding: 14px 0 72px;
  }

  /* ZERO-OVERLAP NAVBAR ON EVERY PHONE (320px -> 660px) */
  .navbar {
    padding: 8px 10px 4px;
  }

  .navbar-inner {
    height: 54px;
    padding: 0 10px;
    gap: 6px;
    border-radius: 14px;
  }

  .brand {
    gap: 7px;
    flex-shrink: 0;
  }

  .brand-logo,
  .brand-logo-chibi {
    width: 34px;
    height: 34px;
  }

  .brand-chibi-ring {
    width: 31px;
    height: 31px;
  }

  .brand-logo-chibi img {
    width: 34px;
    height: 34px;
    transform: translateY(-1px);
  }

  .brand-title {
    font-size: clamp(0.8rem, 3.6vw, 0.94rem);
    letter-spacing: 0.02em;
    gap: 4px;
  }

  .nav-actions {
    gap: 5px;
    flex-shrink: 0;
  }

  /* Hide desktop SFX toggle on mobile to prevent header crowding */
  .sound-toggle-btn {
    display: none !important;
  }

  /* Logged-out: keep single crisp primary Login button (Register is 1 tap inside) */
  #openRegisterBtn {
    display: none !important;
  }

  #openLoginBtn {
    padding: 6px 11px;
    font-size: 0.76rem;
    border-radius: 9px;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    border: 1px solid rgba(147, 197, 253, 0.45);
    color: #ffffff;
  }

  /* Admin shortcut button: icon-only compact square on phones */
  .btn-admin-nav {
    width: 33px !important;
    height: 33px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 9px !important;
  }

  .btn-admin-nav span {
    display: none !important;
  }

  .cart-btn,
  .mobile-menu-btn {
    width: 33px;
    height: 33px;
    border-radius: 9px;
    flex-shrink: 0;
  }

  .cart-btn svg,
  .mobile-menu-btn svg {
    width: 16px;
    height: 16px;
  }

  .user-avatar {
    display: none !important;
  }

  .user-pill {
    gap: 4px;
    padding: 3px 4px;
    border-radius: 9px;
  }

  .user-balance-tag {
    padding: 4px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  /* Balanced Home Hero + 2x2 Stats + Discord Bar */
  .hero-grid {
    gap: 12px;
    margin-bottom: 20px;
  }

  .hero-banner-frame,
  .hero-3d-surface {
    border-radius: 14px;
  }

  .stats-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .stat-card-inner {
    padding: 11px 12px;
    gap: 5px;
  }

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

  .stat-number {
    font-size: clamp(1.08rem, 4.5vw, 1.28rem);
  }

  .stat-watermark {
    width: 36px;
    height: 36px;
  }

  .discord-marquee-bar {
    padding: 12px;
    margin-bottom: 26px;
    gap: 10px;
    border-radius: 14px;
  }

  /* Featured Categories */
  .section-header {
    margin-bottom: 14px;
    gap: 9px;
  }

  .section-title {
    font-size: 0.98rem;
  }

  .featured-cats-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .featured-cat-box {
    border-radius: 14px;
  }

  /* 4-Step Process -> Clean 2x2 Symmetric Grid */
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px;
  }

  .feature-card {
    padding: 13px;
    border-radius: 13px;
  }

  .process-card-top {
    margin-bottom: 8px;
  }

  .feature-icon {
    width: 34px;
    height: 34px;
  }

  .feature-card h3 {
    font-size: 0.84rem;
    margin-bottom: 4px;
  }

  .feature-card p {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  /* KPI Cards inside Account Overview & Admin Overview */
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .kpi-card {
    padding: 12px 13px !important;
    min-width: 0;
  }

  .kpi-card .label {
    font-size: 0.72rem;
  }

  .kpi-card .val {
    font-size: clamp(0.9rem, 3.8vw, 1.15rem) !important;
    word-break: break-word;
  }

  /* Store Toolbar & 2-Column Product Cards */
  .store-toolbar {
    padding: 13px;
    margin-bottom: 18px;
    gap: 10px;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .zex-card-body {
    padding: 10px !important;
  }

  .zex-card-title {
    font-size: 0.84rem !important;
  }

  .zex-price-now {
    font-size: 0.92rem !important;
  }

  .zex-btn-order {
    height: 34px;
    font-size: 0.72rem;
    padding: 0 8px;
  }

  .btn-add-mini {
    width: 34px;
    height: 34px;
  }

  /* Top-Up & VietQR Mobile Layout */
  .tp-hero-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }

  .tp-hero-title {
    font-size: 1.18rem;
  }

  .tp-main-box {
    padding: 14px;
  }

  .tp-qr-left {
    padding: 16px 12px;
  }

  .tp-vietqr-shell {
    padding: 8px;
    max-width: 100%;
  }

  .tp-vietqr-card {
    padding: 12px 14px;
  }

  .tp-vietqr-matrix img {
    width: min(184px, 60vw) !important;
    height: min(184px, 60vw) !important;
  }

  .tp-bank-detail-card {
    padding: 12px 14px;
  }

  .tp-bank-row {
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 4px;
    margin: 0 -4px;
  }

  .tp-bank-k {
    font-size: 0.78rem;
  }

  .tp-bank-v {
    font-size: 0.82rem;
    word-break: break-word;
  }

  /* Modals & Cart Drawer fit every phone cleanly */
  .modal-box {
    width: calc(100vw - 20px) !important;
    max-width: 100% !important;
    padding: 18px 16px !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .cart-drawer {
    width: min(100vw, 380px) !important;
  }

  /* Floating Widgets Compact & Non-Overlapping */
  .support-gyro-fab {
    right: 12px;
    bottom: 14px;
    transform: scale(0.84);
    transform-origin: bottom right;
  }

  .recent-purchase-popup,
  .rp-popup {
    left: 10px;
    bottom: 14px;
    max-width: calc(100vw - 88px);
  }
}

@media (max-width: 375px) {
  .brand-logo,
  .brand-logo-chibi {
    width: 30px;
    height: 30px;
  }

  .brand-chibi-ring {
    width: 28px;
    height: 28px;
  }

  .brand-logo-chibi img {
    width: 30px;
    height: 30px;
  }

  .brand-title {
    font-size: 0.76rem;
  }

  .cart-btn,
  .mobile-menu-btn,
  .btn-admin-nav {
    width: 30px !important;
    height: 30px !important;
  }

  .user-balance-tag {
    padding: 3px 6px;
    font-size: 0.68rem;
  }
}

/* =========================================================================
   TOPUP VIETQR — MẪU 1 (15-MINUTE PROGRESS BAR + AUTO-CHECK + 3M CANCEL)
   ========================================================================= */
.tp-m1-progress-wrap {
  width: 100%;
  max-width: 224px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.tp-m1-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tp-m1-progress-head strong {
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.tp-m1-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.95);
  border: 1px solid rgba(34, 55, 80, 0.8);
  overflow: hidden;
}

.tp-m1-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563EB 0%, #38BDF8 100%);
  transition: width 0.6s linear;
}

.tp-m1-status-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.32);
}

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

.tp-m1-spin {
  flex-shrink: 0;
  color: #4ADE80;
  animation: tpM1Spin 2.1s linear infinite;
}

.tp-m1-status-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.tp-m1-status-text strong {
  color: #86EFAC;
  display: block;
  font-size: 0.82rem;
}

.tp-m1-cancel-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.44);
  color: #FCA5A5;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tp-m1-cancel-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(248, 113, 113, 0.72);
  color: #FEE2E2;
}

.tp-m1-cancel-btn:disabled {
  background: rgba(19, 34, 56, 0.72);
  border-color: var(--border);
  color: var(--text-dim);
  cursor: not-allowed;
}

.tp-m1-cancel-btn:disabled strong {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.tp-m1-cancel-confirm {
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.11);
  border: 1px solid rgba(239, 68, 68, 0.42);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-m1-cancel-confirm-msg {
  font-size: 0.8rem;
  line-height: 1.48;
  color: #FECACA;
}

.tp-m1-cancel-confirm-actions {
  display: flex;
  gap: 8px;
}

.tp-m1-expired-card {
  padding: 28px 20px;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px dashed rgba(248, 113, 113, 0.42);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tp-m1-expired-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  display: grid;
  place-items: center;
}

.tp-m1-expired-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.tp-m1-expired-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 460px;
}

.tp-m1-expired-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

/* =========================================================================
   SKIN GACHA SYSTEM — HỘP NGẪU NHIÊN STAR COMMUNITY (DARK NAVY THEME)
   ========================================================================= */
.zex-badge-gacha {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(14, 165, 233, 0.94)) !important;
  border-color: rgba(125, 211, 252, 0.55) !important;
}

.gc-box-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.34), transparent 64%),
    linear-gradient(160deg, #0E2244 0%, #081226 100%);
  padding: 16px;
  text-align: center;
}

.gc-box-fb-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 70%);
  pointer-events: none;
}

.gc-box-fb-emblem {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #1D4ED8 0%, #38BDF8 100%);
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gc-box-fb-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.gc-box-fb-sub {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38BDF8;
  letter-spacing: 0.1em;
}

.gc-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: rgba(13, 25, 45, 0.9);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gc-wallet-pill strong {
  color: #7DD3FC;
  font-weight: 800;
}

.gc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.gc-stage-card,
.gc-info-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px;
  background:
    radial-gradient(280px circle at var(--mx, 50%) var(--my, 15%), rgba(56, 189, 248, 0.11), transparent 68%),
    linear-gradient(160deg, #0F1D34 0%, #091323 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.gc-side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.gc-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.gc-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #38BDF8;
  margin-bottom: 4px;
}

.gc-title {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.gc-infinity-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.36);
  color: #BAE6FD;
  font-size: 0.76rem;
  font-weight: 700;
  flex-shrink: 0;
}

.gc-inf-sym {
  font-size: 1.15rem;
  line-height: 1;
  color: #38BDF8;
}

/* === MẪU 10: HONEST EXPRESS CONVEYOR + CHIBI STICKERS === */
.gc-conv-shell {
  margin-bottom: 18px;
}

.gc-conv-pointer-row {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.gc-conv-pointer {
  font-size: 0.78rem;
  line-height: 1;
  color: #38BDF8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.85);
}

.gc-conv-window {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 0;
  background:
    radial-gradient(280px 140px at 50% 50%, rgba(37, 99, 235, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(5, 11, 24, 0.96) 0%, rgba(9, 19, 38, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: inset 0 0 36px rgba(2, 6, 18, 0.78);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
}

.gc-conv-shell.is-rolling .gc-conv-window {
  border-color: rgba(125, 211, 252, 0.58);
  box-shadow: inset 0 0 36px rgba(2, 6, 18, 0.8), 0 0 26px rgba(56, 189, 248, 0.18);
}

.gc-conv-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.85) 0%, rgba(56, 189, 248, 0.22) 50%, rgba(56, 189, 248, 0.85) 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.65);
  z-index: 4;
  pointer-events: none;
}

.gc-conv-track {
  display: flex;
  align-items: center;
  gap: 12px;
  will-change: transform;
  transform: translateX(0px);
}

.gc-conv-capsule {
  flex: 0 0 124px;
  height: 132px;
  border-radius: 16px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  position: relative;
  z-index: 2;
  transition: transform 0.26s cubic-bezier(.22, 1, .36, 1), border-color 0.26s ease, box-shadow 0.26s ease;
}

.gc-conv-capsule.sealed {
  background: linear-gradient(160deg, rgba(15, 31, 58, 0.92) 0%, rgba(8, 16, 31, 0.96) 100%);
  border: 1px solid rgba(56, 189, 248, 0.24);
}

.gc-conv-box-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.36);
  background: #0A1830;
  box-shadow: 0 6px 16px rgba(2, 8, 24, 0.65);
  flex-shrink: 0;
}

.gc-conv-box-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gc-conv-box-fb {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1D4ED8, #38BDF8);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
}

.gc-conv-sealed-lbl {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #7DD3FC;
  margin-top: 2px;
}

.gc-conv-sealed-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
}

@keyframes gcWinPop {
  0% { transform: scale(0.92); opacity: 0.7; }
  65% { transform: scale(1.09); opacity: 1; }
  100% { transform: scale(1.06); opacity: 1; }
}

.gc-conv-capsule.is-winner {
  transform: scale(1.06);
  z-index: 5;
}

.gc-conv-capsule.is-winner.just-pop {
  animation: gcWinPop 0.36s cubic-bezier(.22, 1, .36, 1) forwards;
}

.gc-conv-capsule.is-winner.gold {
  background: radial-gradient(circle at 50% 35%, rgba(245, 158, 11, 0.28), rgba(15, 23, 42, 0.96) 78%);
  border: 1.5px solid rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.36);
  color: #FDE047;
}

.gc-conv-capsule.is-winner.green {
  background: radial-gradient(circle at 50% 35%, rgba(34, 197, 94, 0.24), rgba(15, 23, 42, 0.96) 78%);
  border: 1.5px solid rgba(74, 222, 128, 0.72);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.28);
  color: #86EFAC;
}

.gc-conv-capsule.is-winner.grey {
  background: radial-gradient(circle at 50% 35%, rgba(148, 163, 184, 0.18), rgba(15, 23, 42, 0.96) 78%);
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 0 18px rgba(148, 163, 184, 0.16);
  color: #CBD5E1;
}

.gc-conv-chibi-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
}

.gc-conv-win-lbl {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gc-conv-win-sub {
  font-size: 0.64rem;
  font-family: monospace;
  opacity: 0.92;
}

.gc-conv-caption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.gc-conv-live-txt {
  color: #7DD3FC;
  font-weight: 700;
}

/* Chibi Sticker Universal Styling */
.gc-chibi-img {
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 6px 12px rgba(2, 6, 20, 0.55));
}

.gc-chibi-fallback {
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gc-chibi-img.size-conv { width: 68px; height: 68px; }
.gc-chibi-fallback.size-conv { font-size: 2rem; }

.gc-chibi-img.size-lg {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 8px 18px rgba(245, 158, 11, 0.45));
  animation: gcChibiFloat 3.2s ease-in-out infinite;
}
.gc-chibi-fallback.size-lg { font-size: 2.8rem; }

.gc-chibi-img.size-md { width: 78px; height: 78px; }
.gc-chibi-fallback.size-md { font-size: 2.3rem; }

.gc-chibi-img.size-sm { width: 54px; height: 54px; }
.gc-chibi-fallback.size-sm { font-size: 1.7rem; }

.gc-chibi-img.size-rate { width: 42px; height: 42px; }
.gc-chibi-fallback.size-rate { font-size: 1.35rem; }

.gc-chibi-img.size-xs { width: 30px; height: 30px; }
.gc-chibi-fallback.size-xs { font-size: 1rem; }

@keyframes gcChibiFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes gcRevealUp {
  0% { opacity: 0; transform: translateY(8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.gc-reveal-anim {
  animation: gcRevealUp 0.28s cubic-bezier(.22, 1, .36, 1) both;
}

.gc-result-placeholder {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(7, 13, 25, 0.56);
  border: 1px dashed rgba(59, 130, 246, 0.24);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gc-result-placeholder.rolling {
  color: #7DD3FC;
  border-color: rgba(56, 189, 248, 0.42);
  font-weight: 600;
}

.gc-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gc-open-btn {
  position: relative;
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.gc-open-btn.single {
  background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
  border: 1px solid rgba(147, 197, 253, 0.42);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.gc-open-btn.ten {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 60%, #4F46E5 100%);
  border: 1px solid rgba(125, 211, 252, 0.5);
  color: #fff;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.32);
}

.gc-open-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.gc-open-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gc-btn-main {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
}

.gc-btn-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: #E0F2FE;
}

.gc-save-tag {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #F59E0B;
  color: #080F1C;
  font-size: 0.67rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}

.gc-disabled-notice {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  font-size: 0.82rem;
  text-align: center;
}

/* Result reveal cards (Gold = Jackpot, Green = Refund, Grey = Miss) */
.gc-result-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gc-jackpot-banner {
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(280px 160px at 14% 40%, rgba(245, 158, 11, 0.24), transparent 72%),
    linear-gradient(145deg, rgba(245, 158, 11, 0.16) 0%, rgba(120, 53, 15, 0.14) 100%);
  border: 1px solid rgba(251, 191, 36, 0.65);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gc-jp-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gc-jp-chibi-box {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.24) 0%, rgba(8, 15, 28, 0.65) 75%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gc-jp-copy {
  min-width: 0;
}

.gc-jp-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #FCD34D;
  margin-bottom: 3px;
}

.gc-jp-title {
  font-family: var(--font-heading);
  font-size: 1.06rem;
  font-weight: 800;
  color: #FDE047;
  margin-bottom: 4px;
}

.gc-jp-notice {
  font-size: 0.84rem;
  font-weight: 600;
  color: #FEF3C7;
  line-height: 1.48;
}

.gc-jp-codes-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.gc-jp-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.44);
  font-size: 0.8rem;
  color: #FDE68A;
}

.gc-jp-code-chip strong {
  font-family: monospace;
  font-size: 0.92rem;
  color: #FEF08A;
}

.gc-jp-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #F59E0B;
  color: #080F1C;
  font-size: 0.8rem;
  font-weight: 800;
  transition: filter 0.16s ease;
}

.gc-jp-discord-btn:hover {
  filter: brightness(1.08);
}

.gc-single-result {
  padding: 16px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.gc-single-result.gold {
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(251, 191, 36, 0.55);
}

.gc-single-result.green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(10, 24, 34, 0.86) 100%);
  border: 1px solid rgba(74, 222, 128, 0.48);
}

.gc-single-result.grey {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.1) 0%, rgba(10, 18, 32, 0.86) 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.gc-single-chibi {
  width: 86px;
  height: 86px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gc-single-chibi.green {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.22) 0%, rgba(7, 13, 25, 0.7) 75%);
  border: 1px solid rgba(74, 222, 128, 0.36);
}

.gc-single-chibi.grey {
  background: radial-gradient(circle, rgba(148, 163, 184, 0.18) 0%, rgba(7, 13, 25, 0.7) 75%);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.gc-single-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.gc-res-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.gc-res-badge.gold { background: rgba(245, 158, 11, 0.24); color: #FDE047; }
.gc-res-badge.green { background: rgba(34, 197, 94, 0.22); color: #86EFAC; }
.gc-res-badge.grey { background: rgba(148, 163, 184, 0.2); color: #CBD5E1; }

.gc-res-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.gc-single-result.gold .gc-res-title { color: #FDE047; }
.gc-single-result.green .gc-res-title { color: #86EFAC; }
.gc-single-result.grey .gc-res-title { color: #CBD5E1; }

.gc-res-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gc-multi-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gc-sum-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.gc-sum-pill.gold { background: rgba(245, 158, 11, 0.16); border: 1px solid rgba(251, 191, 36, 0.42); color: #FDE047; }
.gc-sum-pill.green { background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(74, 222, 128, 0.36); color: #86EFAC; }
.gc-sum-pill.grey { background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.26); color: #CBD5E1; }

.gc-multi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.gc-multi-cell {
  padding: 10px 7px;
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.gc-multi-chibi {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.gc-multi-cell.gold {
  background: radial-gradient(circle at 50% 35%, rgba(245, 158, 11, 0.22), rgba(14, 22, 38, 0.9) 80%);
  border: 1px solid rgba(251, 191, 36, 0.62);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.16);
  color: #FDE047;
}

.gc-multi-cell.green {
  background: radial-gradient(circle at 50% 35%, rgba(34, 197, 94, 0.18), rgba(14, 22, 38, 0.9) 80%);
  border: 1px solid rgba(74, 222, 128, 0.46);
  color: #86EFAC;
}

.gc-multi-cell.grey {
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #94A3B8;
}

.gc-multi-idx {
  font-size: 0.66rem;
  opacity: 0.72;
  font-weight: 700;
}

.gc-multi-lbl {
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.22;
}

.gc-multi-meta {
  font-size: 0.68rem;
  font-family: monospace;
  opacity: 0.9;
}

/* Right Info Panel: Rates & History */
.gc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.gc-card-head h3 {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
}

.gc-inf-mini {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7DD3FC;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.gc-rates-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gc-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 13, 25, 0.8);
  border: 1px solid var(--border-subtle);
}

.gc-rate-row.gold { border-color: rgba(251, 191, 36, 0.4); }
.gc-rate-row.green { border-color: rgba(74, 222, 128, 0.34); }
.gc-rate-row.grey { border-color: rgba(148, 163, 184, 0.26); }

.gc-rate-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.gc-rate-chibi {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gc-rate-chibi.gold {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.42);
}

.gc-rate-chibi.green {
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(74, 222, 128, 0.36);
}

.gc-rate-chibi.grey {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.gc-rate-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.gc-rate-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.gc-rate-pct {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.gc-rate-pct.gold { color: #FDE047; }
.gc-rate-pct.green { color: #86EFAC; }
.gc-rate-pct.grey { color: #CBD5E1; }

.gc-fair-foot {
  margin-top: 12px;
  font-size: 0.74rem;
  color: var(--text-dim);
  text-align: center;
}

.gc-hist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.gc-hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(7, 13, 25, 0.74);
  border: 1px solid var(--border-subtle);
}

.gc-hist-row.gold { border-color: rgba(251, 191, 36, 0.38); }
.gc-hist-row.green { border-color: rgba(74, 222, 128, 0.3); }

.gc-hist-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gc-hist-chibi {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gc-hist-chibi.gold { background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(251, 191, 36, 0.38); }
.gc-hist-chibi.green { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(74, 222, 128, 0.32); }
.gc-hist-chibi.grey { background: rgba(148, 163, 184, 0.08); border: 1px solid rgba(148, 163, 184, 0.22); }

.gc-hist-meta {
  min-width: 0;
}

.gc-hist-name {
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--text-main);
}

.gc-hist-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.gc-tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.gc-tag.gold { background: rgba(245, 158, 11, 0.2); color: #FDE047; }
.gc-tag.green { background: rgba(34, 197, 94, 0.18); color: #86EFAC; }
.gc-tag.grey { background: rgba(148, 163, 184, 0.14); color: #94A3B8; }

.gc-empty-box {
  padding: 24px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (max-width: 960px) {
  .gc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .gc-side-col {
    gap: 14px;
  }
  .gc-conv-shell,
  .gc-conv-window {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 660px) {
  /* Gacha Store Card inside 2-column mobile grid */
  .zex-gacha-card .zex-badge-gacha {
    font-size: 0.6rem !important;
    padding: 3px 7px !important;
    gap: 4px !important;
  }
  .zex-gacha-card .zex-card-price-row {
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
  }
  .zex-gacha-card .zex-card-price {
    font-size: 0.78rem !important;
    white-space: nowrap;
  }
  .zex-gacha-card .zex-stock-pill {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
  .zex-gacha-card .zex-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
  }

  /* Gacha Page Mobile Layout (320px -> 660px) */
  #view-gacha {
    padding-bottom: 92px;
  }
  #view-gacha .page-breadcrumb-bar {
    margin-bottom: 12px;
  }
  #view-gacha .page-breadcrumbs {
    font-size: 0.74rem;
    gap: 5px;
    flex-wrap: wrap;
  }
  .gc-stage-card,
  .gc-info-card {
    padding: 14px;
    border-radius: 16px;
  }
  .gc-stage-head {
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
  }
  .gc-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
  }
  .gc-title {
    font-size: clamp(1.02rem, 4.5vw, 1.24rem);
    line-height: 1.2;
  }
  .gc-infinity-pill {
    padding: 4px 10px;
    font-size: 0.68rem;
    gap: 5px;
  }
  .gc-inf-sym {
    font-size: 1rem;
  }

  /* Conveyor Rail tuned cleanly for mobile viewports */
  .gc-conv-shell {
    margin-bottom: 14px;
  }
  .gc-conv-window {
    padding: 14px 0;
    border-radius: 14px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  }
  .gc-conv-track {
    gap: 10px;
  }
  .gc-conv-capsule {
    flex: 0 0 98px;
    height: 112px;
    border-radius: 13px;
    padding: 7px 6px;
    gap: 3px;
  }
  .gc-conv-box-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }
  .gc-conv-sealed-lbl {
    font-size: 0.63rem;
  }
  .gc-conv-sealed-sub {
    font-size: 0.6rem;
  }
  .gc-conv-chibi-wrap {
    height: 54px;
  }
  .gc-chibi-img.size-conv {
    width: 54px;
    height: 54px;
  }
  .gc-conv-win-lbl {
    font-size: 0.66rem;
  }
  .gc-conv-win-sub {
    font-size: 0.6rem;
  }

  /* Keep Mở 1 Hộp & Mở 10 Hộp side-by-side so results stay above the fold */
  .gc-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .gc-open-btn {
    padding: 11px 8px;
    border-radius: 13px;
    min-height: 58px;
  }
  .gc-btn-main {
    font-size: 0.84rem;
  }
  .gc-btn-price {
    font-size: 0.72rem;
  }
  .gc-save-tag {
    top: -8px;
    right: 6px;
    padding: 2px 6px;
    font-size: 0.6rem;
  }

  /* Result Cards & Jackpot Banner on Mobile */
  .gc-result-wrap {
    margin-top: 14px;
    gap: 10px;
  }
  .gc-jackpot-banner {
    padding: 14px;
    border-radius: 15px;
    gap: 12px;
  }
  .gc-jp-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .gc-jp-chibi-box {
    width: 84px;
    height: 84px;
  }
  .gc-chibi-img.size-lg {
    width: 76px;
    height: 76px;
  }
  .gc-jp-title {
    font-size: 0.96rem;
  }
  .gc-jp-notice {
    font-size: 0.8rem;
  }
  .gc-jp-codes-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .gc-jp-code-chip {
    justify-content: center;
    flex-wrap: wrap;
    padding: 7px 10px;
  }
  .gc-jp-discord-btn {
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.82rem;
  }
  .gc-single-result {
    flex-direction: column;
    text-align: center;
    padding: 14px;
    gap: 10px;
  }
  .gc-single-chibi {
    width: 76px;
    height: 76px;
  }
  .gc-chibi-img.size-md {
    width: 68px;
    height: 68px;
  }
  .gc-single-body {
    align-items: center;
  }
  .gc-res-title {
    font-size: 1.04rem;
  }
  .gc-res-sub {
    font-size: 0.78rem;
  }
  .gc-multi-summary {
    gap: 6px;
    justify-content: center;
  }
  .gc-sum-pill {
    font-size: 0.7rem;
    padding: 4px 9px;
  }
  .gc-multi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .gc-multi-cell {
    padding: 9px 6px;
    border-radius: 12px;
    gap: 3px;
  }
  .gc-multi-chibi {
    height: 48px;
  }
  .gc-chibi-img.size-sm {
    width: 46px;
    height: 46px;
  }
  .gc-multi-lbl {
    font-size: 0.71rem;
  }
  .gc-multi-meta {
    font-size: 0.65rem;
  }

  /* Rates & Personal History Cards on Mobile */
  .gc-card-head {
    margin-bottom: 11px;
  }
  .gc-card-head h3 {
    font-size: 0.9rem;
  }
  .gc-inf-mini {
    font-size: 0.7rem;
    padding: 2px 8px;
  }
  .gc-rates-list {
    gap: 8px;
  }
  .gc-rate-row {
    padding: 9px 10px;
    gap: 9px;
    border-radius: 12px;
  }
  .gc-rate-left {
    gap: 9px;
  }
  .gc-rate-chibi {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .gc-chibi-img.size-rate {
    width: 36px;
    height: 36px;
  }
  .gc-rate-name {
    font-size: 0.8rem;
  }
  .gc-rate-desc {
    font-size: 0.69rem;
    line-height: 1.32;
  }
  .gc-rate-pct {
    font-size: 0.82rem;
  }
  .gc-fair-foot {
    margin-top: 10px;
    font-size: 0.72rem;
  }
  .gc-hist-list {
    max-height: 300px;
    -webkit-overflow-scrolling: touch;
  }
  .gc-hist-row {
    padding: 8px 9px;
    gap: 8px;
  }
  .gc-hist-chibi {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .gc-chibi-img.size-xs {
    width: 26px;
    height: 26px;
  }
  .gc-hist-name {
    font-size: 0.76rem;
  }
  .gc-hist-date {
    font-size: 0.67rem;
    word-break: break-word;
  }
  .gc-tag {
    font-size: 0.66rem;
    padding: 2px 7px;
  }
}

@media (max-width: 340px) {
  .gc-actions-grid {
    grid-template-columns: 1fr;
  }
  .gc-conv-capsule {
    flex: 0 0 88px;
    height: 104px;
  }
}
