/* ============================================================================
   CR7 GAME SHOP — css/index.css (Users Dashboard)
   Cyberpunk Gaming Theme — Angular Buttons · Neon Glow · Dark Base
   ========================================================================= */
:root {
  --bg-base: #050508;
  --bg-elev-1: #0a0a12;
  --bg-elev-2: #0f0f1a;
  --primary: #b44dff;
  --primary-deep: #8b00ff;
  --accent: #ff2d78;
  --accent-deep: #cc0055;
  --success: #00ff88;
  --warning: #ffcc00;
  --danger: #ff2222;
  --text-1: #ffffff;
  --text-2: #cc88ff;
  --text-3: #6633aa;
  --glass: rgba(10, 5, 20, 0.82);
  --glass-strong: rgba(15, 8, 30, 0.93);
  --glass-border: rgba(160, 80, 255, 0.28);
  --grad-primary: linear-gradient(135deg, #b44dff 0%, #1a0033 100%);
  --grad-success: linear-gradient(135deg, #00ff88 0%, #003322 100%);
  --grad-danger: linear-gradient(135deg, #ff2222 0%, #330000 100%);
  --grad-gold: linear-gradient(135deg, #ffcc00 0%, #ff6600 100%);
  --glow-btn: 0 0 20px rgba(180, 77, 255, 0.75), 0 4px 16px rgba(0, 0, 0, 0.8);
  --glow-red: 0 0 16px rgba(255, 34, 34, 0.7);
  --glow-green: 0 0 16px rgba(0, 255, 136, 0.6);
  --glow-gold: 0 0 16px rgba(255, 204, 0, 0.65);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.9);
  --radius-lg: 4px;
  --radius-md: 3px;
  --radius-sm: 2px;
  --font: 'AppEnglish', 'AppMyanmar', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; height: 100dvh; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-1);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
input, textarea, select { user-select: auto; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: rgba(180, 77, 255, 0.5); border-radius: 0; }
::-webkit-scrollbar-track { background: transparent; }

/* ─── Glass card — Cyberpunk HUD Frame ───────────────────────────────────── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: var(--shadow-dark),
              inset 0 1px 0 rgba(180, 77, 255, 0.12);
  position: relative;
}

/* Cyberpunk corner cuts on glass cards */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-top: 2px solid #b44dff;
  border-left: 2px solid #b44dff;
  pointer-events: none;
  z-index: 1;
}
.glass-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 12px; height: 12px;
  border-bottom: 2px solid #b44dff;
  border-right: 2px solid #b44dff;
  pointer-events: none;
  z-index: 1;
}

/* ─── SVG Icon System ────────────────────────────────────────────────────── */
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit; line-height: 0; flex: 0 0 auto;
}
.icon svg { width: 100%; height: 100%; display: block; }
.iconSm  { width: 18px; height: 18px; }
.iconMd  { width: 26px; height: 26px; }
.iconLg  { width: 38px; height: 38px; }
.iconXl  { width: 60px; height: 60px; }
.iconHero { width: 90px; height: 90px; }
.intro-logo-icon { width: 120px; height: 120px; display: inline-flex; }
.hot-fire { width: 11px; height: 11px; display: inline-flex; }
.cat-meta-icon, .order-ic, .status-ic, .badge-ic,
.prod-stock-icon, .rs-star, .chip-icon, .review-star-ic {
  width: 13px; height: 13px; display: inline-flex;
}
.pw-check-icon { width: 16px; height: 16px; display: inline-flex; }

.icon[data-accent="purple"] svg { color: #cc44ff; }
.icon[data-accent="blue"]   svg { color: #44aaff; }
.icon[data-accent="green"]  svg { color: #00ff88; }
.icon[data-accent="red"]    svg { color: #ff3344; }
.icon[data-accent="gold"]   svg { color: #ffcc00; }

/* NO glow on icons — only solid color */
.icon[data-glow="true"] svg { filter: none; }

/* ─── BUTTONS — Angular Cyberpunk Style ──────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.12s ease;
  white-space: nowrap;
  position: relative;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  border-radius: 0;
}

/* Angular corner decoration */
.btn-primary::before, .btn-secondary::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-left: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-primary::after, .btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 8px; height: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  border-right: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, #b44dff 0%, #5500aa 60%, #1a0033 100%);
  color: #fff;
  border: 1px solid rgba(180, 77, 255, 0.6);
  box-shadow: var(--glow-btn);
}
.btn-primary:hover {
  box-shadow: 0 0 28px rgba(180, 77, 255, 0.9), 0 0 60px rgba(180, 77, 255, 0.3);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.35; box-shadow: none; transform: none; cursor: not-allowed;
}

.btn-success {
  background: linear-gradient(135deg, #00ff88 0%, #00aa55 60%, #003322 100%);
  color: #000; border: 1px solid rgba(0, 255, 136, 0.5);
  box-shadow: var(--glow-green);
}
.btn-danger {
  background: linear-gradient(135deg, #ff2222 0%, #aa0000 60%, #330000 100%);
  color: #fff; border: 1px solid rgba(255, 34, 34, 0.5);
  box-shadow: var(--glow-red);
}
.btn-secondary {
  background: linear-gradient(135deg, #1a0033 0%, #0a0015 100%);
  color: var(--text-1);
  border: 1px solid rgba(160, 80, 255, 0.35);
}
.btn-secondary:hover {
  border-color: rgba(180, 77, 255, 0.65);
  box-shadow: 0 0 14px rgba(180, 77, 255, 0.35);
}
.btn-ghost {
  background: transparent; color: var(--text-2); height: 40px;
  clip-path: none; border-radius: 0;
}
.btn-ghost::before, .btn-ghost::after { display: none; }
.btn-ghost:hover { color: var(--text-1); }
.btn-52 { height: 52px; width: 100%; font-size: 15px; }
.btn-compact { height: 36px; padding: 0 14px; font-size: 12px; }
.btn-icon {
  width: 34px; height: 34px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a0033 0%, #0a0015 100%);
  border: 1px solid rgba(160, 80, 255, 0.3);
  color: var(--text-2);
  transition: all 0.15s ease;
}
.btn-icon:hover {
  color: var(--danger);
  border-color: rgba(255, 34, 34, 0.5);
  box-shadow: var(--glow-red);
}

/* ─── Form Fields ────────────────────────────────────────────────────────── */
.field-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; color: var(--text-2);
  margin: 10px 0 5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.field-input {
  width: 100%; height: 46px; padding: 0 14px;
  border-radius: 0;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(160, 80, 255, 0.35);
  border-left: 3px solid #b44dff;
  color: var(--text-1); font-family: var(--font); font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.field-input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.field-input { appearance: none; }
.field-input::placeholder { color: rgba(180, 77, 255, 0.35); }
.field-input:focus {
  border-color: rgba(180, 77, 255, 0.8);
  border-left-color: #ff44cc;
  box-shadow: 0 0 0 2px rgba(180, 77, 255, 0.15),
              inset 0 0 8px rgba(180, 77, 255, 0.05);
}
.field-input.good {
  border-color: rgba(0, 255, 136, 0.7);
  border-left-color: #00ff88;
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
}
.field-input.bad {
  border-color: rgba(255, 34, 34, 0.7);
  border-left-color: #ff2222;
  box-shadow: 0 0 0 2px rgba(255, 34, 34, 0.1);
}
.field-msg { display: block; min-height: 16px; font-size: 11px; margin-top: 4px; color: var(--text-2); }
.field-msg.good { color: var(--success); }
.field-msg.bad  { color: var(--danger); }
.form-error { min-height: 18px; font-size: 12px; color: var(--danger); margin: 6px 0; text-align: center; }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row .field-input { flex: 1; margin: 0; }
.at-prefix {
  height: 46px; padding: 0 4px 0 12px;
  display: inline-flex; align-items: center;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(160, 80, 255, 0.35);
  border-right: none; border-left: 3px solid #b44dff;
  color: var(--text-2); font-weight: 800;
}
.input-status { width: 26px; display: inline-flex; justify-content: center; }
.check-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2); margin: 10px 0; cursor: pointer;
}
.check-row input, .check-inline input {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}

/* ─── Site Background ────────────────────────────────────────────────────── */
.site-background { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.site-background[data-mode="css"] {
  background:
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(100, 0, 200, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 85%, rgba(180, 0, 100, 0.18) 0%, transparent 60%),
    #050508;
}
.site-background img, .site-background video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.45;
}

/* ─── Intro Screen ───────────────────────────────────────────────────────── */
.intro-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  background: #050508;
  transition: transform 0.45s cubic-bezier(0.85, 0, 0.15, 1),
              opacity 0.45s ease, filter 0.45s ease;
  filter: blur(0);
}
.intro-screen.intro-outro { transform: scale(1.2) rotate(1deg); opacity: 0; filter: blur(10px); }

.intro-logo-icon {
  width: 130px; height: 130px; display: inline-flex;
}
.intro-logo-icon path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawStroke 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.intro-logo-icon text {
  opacity: 0;
  animation: fadeInText 1s ease-out 1.2s forwards;
  font-weight: 900;
}

@keyframes drawStroke {
  0%   { stroke-dashoffset: 200; stroke: #8b00ff; }
  50%  { stroke-dashoffset: 0;   stroke: #ff2d78; }
  100% { stroke-dashoffset: 0;   fill: url(#cr7-blue-purple); stroke: rgba(255,255,255,0.3); }
}
@keyframes fadeInText {
  0%   { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.intro-rings { position: absolute; width: 250px; height: 250px; pointer-events: none; }
.intro-rings span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(180, 77, 255, 0.4);
  animation: ringPulse 2.8s ease-out infinite;
}
.intro-rings span:nth-child(2) { border-color: rgba(255, 45, 120, 0.3); animation-delay: 0.9s; }
.intro-rings span:nth-child(3) { border-color: rgba(100, 0, 200, 0.25); animation-delay: 1.8s; }
@keyframes ringPulse {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.intro-media {
  position: relative; z-index: 1;
  max-width: 70vw; max-height: 45vh;
  display: flex; align-items: center; justify-content: center;
}
.intro-media img, .intro-media video {
  max-width: min(400px, 70vw); max-height: 45vh; object-fit: contain;
}
.intro-shield .icon svg { animation: shieldPulse 2.2s ease-in-out infinite; }
@keyframes shieldPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
.intro-name { display: flex; font-size: 28px; font-weight: 800; letter-spacing: 0.08em; }
.intro-letter {
  opacity: 0; display: inline-block;
  color: #cc44ff;
  animation: letterDraw 0.5s cubic-bezier(0.4, 0, 0.2, 1.3) forwards;
}
@keyframes letterDraw {
  0%   { opacity: 0; transform: translateY(12px) scale(0.7); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Loading Overlay ────────────────────────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
}
.loading-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loading-media {
  position: relative; width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.loading-media img, .loading-media video { max-width: 80px; max-height: 80px; object-fit: contain; }
.spinner-ring {
  position: relative; width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
}
.spinner-ring .iconLg {
  position: absolute; inset: 0; width: 68px; height: 68px;
  animation: spin 1s linear infinite;
}
.spinner-logo { position: relative; z-index: 1; }
.spinner-orbit { position: absolute; inset: -8px; }
.spinner-orbit span {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: #b44dff; top: 50%; left: 50%;
  animation: orbit 1.8s linear infinite;
}
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(48px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(48px) rotate(-360deg); }
}
.loading-text { font-size: 12px; color: var(--text-2); letter-spacing: 0.06em; text-transform: uppercase; }

/* ─── Location Gate ──────────────────────────────────────────────────────── */
.location-gate {
  position: fixed; inset: 0; z-index: 8500;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(6px);
}
.gate-card {
  max-width: 360px; width: 100%; padding: 30px 24px; text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 3px solid #b44dff;
  border-radius: var(--radius-lg);
}
.gate-icon { display: flex; justify-content: center; margin-bottom: 14px; }
.gate-title { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.gate-body { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 8px 0 20px; }
.gate-card .btn-primary { width: 100%; }
.gate-status { min-height: 18px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.gate-status.good { color: var(--success); }
.gate-status.bad  { color: var(--danger); }

/* ─── Top Bar ────────────────────────────────────────────────────────────── */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 58px; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px;
  background: rgba(5, 3, 12, 0.92);
  border-bottom: 1px solid rgba(180, 77, 255, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}
.tb-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-logo { display: flex; align-items: center; }
.tb-logo img { height: 42px; width: auto; object-fit: contain; }
.tb-logo img.logo-wide { height: 36px; }
.tb-name { display: none !important; }
.tb-right {
  display: flex; align-items: center; gap: 5px;
  background: rgba(10, 5, 20, 0.85);
  border: 1px solid rgba(160, 80, 255, 0.25);
  border-radius: 0;
  padding: 4px 7px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.tb-btn {
  position: relative; width: 32px; height: 32px; border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all 0.15s ease;
}
.tb-btn:hover { color: #fff; }
.badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 0; background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 34, 34, 0.7); }
  50%       { box-shadow: 0 0 0 5px rgba(255, 34, 34, 0); }
}
.tb-balance {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 7px; transition: box-shadow 0.15s ease;
}
.tb-balance:hover { box-shadow: 0 0 10px rgba(255, 204, 0, 0.25); }
.tb-amounts { display: flex; flex-direction: column; line-height: 1.15; }
.amt { font-size: 10px; font-weight: 700; white-space: nowrap; }
.amt-mmk { color: var(--success); }
.amt-usd { color: #44aaff; }
.tb-topup {
  width: 32px; height: 32px;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  background: linear-gradient(135deg, #b44dff, #5500aa);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.tb-topup:hover {
  box-shadow: 0 0 18px rgba(180, 77, 255, 0.7);
  transform: scale(1.05);
}

/* ─── App Main Area ──────────────────────────────────────────────────────── */
.app-main {
  position: fixed; inset: 0;
  top: 58px; bottom: calc(62px + env(safe-area-inset-bottom));
  z-index: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 12px calc(32px + env(safe-area-inset-bottom));
}
.app-main::after { content: ''; display: block; height: 2px; }
.page {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
  animation: pageIn 0.22s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.page-head { display: flex; align-items: center; gap: 10px; }
.page-title { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Banner Carousel ────────────────────────────────────────────────────── */
.banner-carousel {
  position: relative; height: 210px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(180, 77, 255, 0.3);
  border-left: 3px solid #b44dff;
}
.banner-track { position: relative; width: 100%; height: 100%; }
.banner-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.banner-slide.active { opacity: 1; transform: scale(1); }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; gap: 5px; justify-content: center; z-index: 2;
}
.banner-dot {
  width: 6px; height: 6px;
  background: rgba(255, 255, 255, 0.3);
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
  transition: all 0.2s ease; cursor: pointer;
}
.banner-dot.active { width: 20px; background: #b44dff; }
.banner-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.empty-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.empty-sub { font-size: 12px; color: var(--text-3); }
.empty-state {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  padding: 32px 16px; text-align: center;
}

/* ─── Live Text Marquee ──────────────────────────────────────────────────── */
.live-strip {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(180, 77, 255, 0.3);
  border-left: 3px solid #ff2d78;
  overflow: hidden;
}
.live-badge {
  flex: 0 0 auto; padding: 2px 8px;
  background: linear-gradient(135deg, #ff2d78, #aa0044);
  font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
.live-viewport {
  flex: 1; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.live-track {
  display: inline-flex; gap: 60px; white-space: nowrap;
  animation: marquee 18s linear infinite;
}
.live-text { font-size: 12.5px; color: var(--text-2); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 30px)); }
}

/* ─── Home Segment Buttons ───────────────────────────────────────────────── */
.home-segment {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px;
  background: rgba(10, 5, 20, 0.7);
  border: 1px solid var(--glass-border);
}
.seg-btn {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px;
  font-size: 13px; font-weight: 800; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  position: relative;
}
.seg-btn .iconLg { width: 38px; height: 38px; }
.seg-btn.active {
  background: linear-gradient(135deg, rgba(180, 77, 255, 0.25) 0%, rgba(85, 0, 170, 0.15) 100%);
  color: #fff;
  border: 1px solid rgba(180, 77, 255, 0.5);
  border-left: 3px solid #b44dff;
}
.seg-label { flex: 1; text-align: left; }
.seg-arrow { opacity: 0.5; }

/* ─── Category Grids ─────────────────────────────────────────────────────── */
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  contain: layout paint; will-change: transform;
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (min-width: 980px) { .category-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }

/* ─── Category Card — Cyberpunk Angular ──────────────────────────────────── */
.g2-cat-card {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0; overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(120, 40, 200, 0.4);
  background: linear-gradient(180deg, #0d0020 0%, #050010 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  content-visibility: auto;
  contain-intrinsic-size: auto 150px;
  border-radius: 0;
}

/* Remove old glass card corners for category cards */
.g2-cat-card::before,
.g2-cat-card::after { display: none; }

/* Cyberpunk diagonal stripe top-left corner */
.g2-cat-card > .card-corner-tl {
  position: absolute; top: 0; left: 0; z-index: 3;
  width: 0; height: 0;
  border-style: solid;
  border-width: 20px 20px 0 0;
  border-color: #b44dff transparent transparent transparent;
  pointer-events: none;
}

.g2-cat-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(180, 77, 255, 0.7);
  box-shadow: 0 0 20px rgba(180, 77, 255, 0.4), 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hot-badge {
  position: absolute; top: 6px; left: 6px; z-index: 4;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px 6px;
  background: linear-gradient(135deg, #ff2222, #aa0000);
  font-size: 8px; font-weight: 800; letter-spacing: 0.08em; color: #fff;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}

.cat-icon {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: auto; aspect-ratio: 1; overflow: hidden;
}
.cat-icon-img { width: 100%; height: 100%; object-fit: cover; }
.cat-initial {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2a0055, #0d0020);
  font-size: 26px; font-weight: 800; color: #cc44ff;
}
.cat-initial.small {
  width: 32px; height: 32px; font-size: 14px;
  background: linear-gradient(135deg, #2a0055, #0d0020);
}

/* Category title bar — cyberpunk gradient */
.cat-title {
  width: 100%; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #fff; text-align: center;
  padding: 5px 4px;
  background: linear-gradient(90deg, #b44dff 0%, #1a0033 100%);
  border-top: 1px solid rgba(180, 77, 255, 0.4);
}
.g2-cat-card:nth-child(3n+1) .cat-title {
  background: linear-gradient(90deg, #b44dff 0%, #1a0033 100%);
}
.g2-cat-card:nth-child(3n+2) .cat-title {
  background: linear-gradient(90deg, #ff2d78 0%, #330011 100%);
}
.g2-cat-card:nth-child(3n+3) .cat-title {
  background: linear-gradient(90deg, #00ccff 0%, #002233 100%);
  color: #fff;
}

.cat-meta {
  display: flex; align-items: center;
  justify-content: space-between; width: 100%;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.7);
  border-top: 1px solid rgba(180, 77, 255, 0.15);
  gap: 4px;
}
.cat-sold {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9px; color: #00ff88; font-weight: 800; letter-spacing: 0.04em;
}
.pin-btn {
  width: 22px; height: 22px;
  background: rgba(180, 77, 255, 0.1);
  border: 1px solid rgba(180, 77, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all 0.15s ease;
}
.pin-btn:hover {
  color: #b44dff;
  background: rgba(180, 77, 255, 0.2);
  border-color: rgba(180, 77, 255, 0.5);
}

.link-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 14px;
  border-left: 3px solid rgba(180, 77, 255, 0.3);
  transition: all 0.15s ease; text-align: left;
}
.link-row:hover {
  border-left-color: #b44dff;
  background: rgba(180, 77, 255, 0.06);
}
.link-row-label { flex: 1; font-size: 14px; font-weight: 600; }
.link-row.danger .link-row-label { color: var(--danger); }

/* ─── Pill Tabs ──────────────────────────────────────────────────────────── */
.pill-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.pill-tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  font-size: 11px; font-weight: 800; color: var(--text-2);
  background: rgba(10, 5, 20, 0.85);
  border: 1px solid rgba(160, 80, 255, 0.25);
  white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: all 0.15s ease;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}
.pill-tab.active {
  background: linear-gradient(135deg, #b44dff 0%, #5500aa 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 0 16px rgba(180, 77, 255, 0.5);
}
.tab-count {
  font-size: 9px; background: var(--danger); color: #fff;
  padding: 1px 5px; font-weight: 800;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}
.tab-count:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9.5px; font-weight: 700; padding: 2px 8px;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(160, 80, 255, 0.3);
  color: var(--text-2);
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}
.badge-green {
  display: inline-block; padding: 2px 8px; font-size: 10px; font-weight: 700;
  background: rgba(0, 255, 136, 0.12); color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.35);
}
.badge-blue {
  display: inline-block; padding: 2px 8px; font-size: 10px; font-weight: 700;
  background: rgba(0, 170, 255, 0.12); color: #44aaff;
  border: 1px solid rgba(0, 170, 255, 0.35);
}
.badge-red {
  display: inline-block; padding: 2px 8px; font-size: 10px; font-weight: 700;
  background: rgba(255, 34, 34, 0.12); color: #ff3344;
  border: 1px solid rgba(255, 34, 34, 0.35);
}
.section-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 5px 0 2px;
}

/* ─── Accounts List ──────────────────────────────────────────────────────── */
.accounts-list { display: flex; flex-direction: column; gap: 10px; }
.account-card {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  cursor: pointer;
  border-left: 3px solid rgba(180, 77, 255, 0.4);
  transition: all 0.18s ease;
}
.account-card:hover {
  border-left-color: #b44dff;
  box-shadow: 0 0 20px rgba(180, 77, 255, 0.2);
}
.account-thumb {
  width: 88px; height: 64px; overflow: hidden; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elev-2);
  border: 1px solid var(--glass-border);
}
.account-thumb img { width: 100%; height: 100%; object-fit: cover; }
.account-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.account-name { font-size: 14px; font-weight: 700; }
.account-desc { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-price {
  font-size: 13px; font-weight: 800;
  color: #b44dff;
}
.account-go { color: var(--text-3); }

/* ─── Orders ─────────────────────────────────────────────────────────────── */
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-card {
  padding: 13px 14px; display: flex; flex-direction: column; gap: 7px;
  border-left: 3px solid rgba(180, 77, 255, 0.4);
}
.order-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.order-name { flex: 1; min-width: 100px; font-size: 13.5px; font-weight: 700; }
.type-badge {
  font-size: 9px; font-weight: 800; padding: 2px 8px;
  background: rgba(10, 5, 20, 0.9);
  color: #cc44ff; border: 1px solid rgba(100, 40, 200, 0.4);
  letter-spacing: 0.06em; text-transform: uppercase;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 800; padding: 2px 9px;
  letter-spacing: 0.05em; text-transform: uppercase;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.st-pending    { background: rgba(255, 200, 0, 0.15); color: #ffcc00; border: 1px solid rgba(255, 200, 0, 0.4); }
.st-processing { background: rgba(0, 150, 255, 0.15); color: #44aaff; border: 1px solid rgba(0, 150, 255, 0.4); }
.st-done       { background: rgba(0, 255, 136, 0.12); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.4); }
.st-failed     { background: rgba(255, 34, 34, 0.12); color: #ff3344; border: 1px solid rgba(255, 34, 34, 0.4); }
.order-mid {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; font-weight: 600;
}
.order-time {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: var(--text-3);
}
.order-tag code {
  font-size: 10px; color: var(--text-3);
  background: rgba(10, 5, 20, 0.9); padding: 2px 7px;
  font-family: var(--font); border: 1px solid var(--glass-border);
}
.order-msg {
  display: flex; align-items: flex-start; gap: 5px;
  font-size: 11.5px; color: var(--text-2);
  background: rgba(180, 77, 255, 0.05);
  border-left: 2px solid rgba(180, 77, 255, 0.3);
  padding: 6px 8px;
}
.order-msg.mono { font-size: 10.5px; letter-spacing: 0.02em; }
.order-refund {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--success); font-weight: 600;
}
.view-codes { align-self: flex-start; }

/* ─── Videos / Articles ──────────────────────────────────────────────────── */
.videos-list, .articles-list { display: flex; flex-direction: column; gap: 12px; }
.video-card {
  overflow: hidden; cursor: pointer;
  border: 1px solid var(--glass-border);
  border-left: 3px solid #b44dff;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.video-card:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 77, 255, 0.6);
}
.video-thumb-wrap { position: relative; height: 185px; overflow: hidden; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0; transition: opacity 0.2s ease;
}
.video-card:hover .video-play { opacity: 1; }
.short-badge {
  position: absolute; top: 7px; left: 7px; padding: 2px 7px;
  background: linear-gradient(135deg, #b44dff, #5500aa);
  font-size: 8.5px; font-weight: 800; text-transform: uppercase; color: #fff;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}
.video-dur {
  position: absolute; bottom: 7px; right: 7px; padding: 2px 6px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 10px; font-weight: 600;
}
.video-info { padding: 10px 13px; display: flex; flex-direction: column; gap: 4px; }
.video-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.video-meta { font-size: 10.5px; color: var(--text-3); }
.article-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  cursor: pointer;
  border-left: 3px solid rgba(180, 77, 255, 0.35);
  transition: all 0.18s ease;
}
.article-card:hover { border-left-color: #b44dff; }
.article-thumb {
  width: 80px; height: 58px; overflow: hidden; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elev-2); border: 1px solid var(--glass-border);
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-info { flex: 1; min-width: 0; }
.article-title { font-size: 13.5px; font-weight: 600; }
.article-meta { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.article-go { color: var(--text-3); }

/* ─── Profile ────────────────────────────────────────────────────────────── */
.profile-hero {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 14px;
}
.profile-avatar {
  position: relative; width: 90px; height: 90px;
  overflow: visible;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-strong);
  border: 2px solid rgba(180, 77, 255, 0.6);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit {
  position: absolute; bottom: -2px; right: -2px;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #b44dff, #5500aa);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.profile-hero-name { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.profile-hero-user { font-size: 12px; color: var(--text-2); }
.hidden-file-input { position: absolute; width: 0; height: 0; opacity: 0; }
.profile-fields { display: flex; flex-direction: column; gap: 8px; }
.profile-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-left: 3px solid rgba(180, 77, 255, 0.35);
}
.profile-row-icon { color: #b44dff; }
.profile-row-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-row-label {
  font-size: 9.5px; color: var(--text-3); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.profile-row-value {
  font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-links { display: flex; flex-direction: column; gap: 8px; }

/* ─── Overlay Pages ──────────────────────────────────────────────────────── */
.overlay-page {
  position: fixed; inset: 0; z-index: 700;
  display: flex; flex-direction: column;
  background: #050508;
  transform: translateY(12px); opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  padding: 10px 12px calc(22px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.overlay-page.slide-in { transform: none; opacity: 1; }
.op-head {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0 10px;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.op-back {
  width: 38px; height: 38px; flex: 0 0 auto;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(180, 77, 255, 0.35);
  border-left: 3px solid #b44dff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.op-back:hover { box-shadow: 0 0 12px rgba(180, 77, 255, 0.4); }
.op-title { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.op-head-cat { display: flex; align-items: center; gap: 10px; min-width: 0; }
.head-cat-img { width: 36px; height: 36px; object-fit: contain; border: 1px solid var(--glass-border); }

/* ─── Search ─────────────────────────────────────────────────────────────── */
.op-body {
  flex: 1; overflow-y: auto;
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; gap: 12px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
/* Flex-column scrollers must never SQUASH their children — every card keeps
   its natural height and the container scrolls instead. Without this, when
   the content is taller than the fixed .overlay-page, the default
   flex-shrink:1 compresses every child and artwork with overflow:hidden
   (e.g. the Refer page hero) gets clipped to a sliver. */
.op-body > *, .page > * { flex-shrink: 0; }
.search-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(180, 77, 255, 0.35);
  border-left: 3px solid #b44dff;
}
.search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-1); font-family: var(--font); font-size: 14px;
}
.search-input::placeholder { color: rgba(180, 77, 255, 0.35); }
.search-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 13px;
  border-left: 3px solid rgba(180, 77, 255, 0.3);
  text-align: left; transition: all 0.15s ease;
}
.search-row:hover { border-left-color: #b44dff; }
.search-row + .search-row { margin-top: 6px; }
.search-row-img { width: 34px; height: 34px; object-fit: contain; border: 1px solid var(--glass-border); }
.search-row-title { flex: 1; font-size: 13.5px; font-weight: 600; }

/* ─── Notifications / Gift Boxes ─────────────────────────────────────────── */
.notif-card {
  display: flex; gap: 11px; padding: 12px 14px;
  cursor: pointer;
  border-left: 3px solid rgba(180, 77, 255, 0.2);
  transition: all 0.15s ease;
}
.notif-card + .notif-card { margin-top: 8px; }
.notif-card.unread {
  border-left-color: #44aaff;
  background: rgba(0, 100, 255, 0.06);
}
.notif-ic { flex: 0 0 auto; margin-top: 2px; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13.5px; font-weight: 700; }
.notif-text { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }
.notif-time { font-size: 10px; color: var(--text-3); margin-top: 4px; }
.box-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 7px; padding: 20px 14px; text-align: center;
  border-left: 3px solid rgba(180, 77, 255, 0.35);
}
.box-card + .box-card { margin-top: 10px; }
.box-card.dimmed { opacity: 0.5; }
.box-title { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.box-text { font-size: 12px; color: var(--text-2); }
.box-claims { font-size: 10.5px; color: var(--text-3); }
.box-msg { font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.box-msg.ok { color: var(--success); font-weight: 700; }
.box-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* ─── Top-up / Deposit ───────────────────────────────────────────────────── */
.payment-methods { display: flex; flex-direction: column; gap: 8px; }
.pm-card {
  cursor: pointer; overflow: hidden;
  border-left: 3px solid rgba(180, 77, 255, 0.3);
  transition: all 0.18s ease;
}
.pm-card.selected {
  border-left-color: #b44dff;
  background: rgba(180, 77, 255, 0.06);
  box-shadow: 0 0 16px rgba(180, 77, 255, 0.2);
}
.pm-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pm-icon img { width: 38px; height: 38px; object-fit: contain; border: 1px solid var(--glass-border); }
.pm-name-wrap { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pm-name { font-size: 14px; font-weight: 700; }
.pm-limits { font-size: 10px; color: var(--text-3); }
.pm-chev { color: var(--text-3); transition: transform 0.2s ease; }
.pm-card.selected .pm-chev { transform: rotate(180deg); }
.pm-details { display: none; padding: 0 14px 12px; font-size: 12px; color: var(--text-2); }
.pm-details.open { display: block; }
.pm-details p { margin: 4px 0; }
.deposit-form { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.deposit-method-info {
  font-size: 12.5px; line-height: 1.7; color: var(--text-2);
  background: rgba(180, 77, 255, 0.06);
  border-left: 3px solid rgba(180, 77, 255, 0.4);
  padding: 10px 12px; margin-bottom: 8px;
}
.deposit-history-title { font-size: 13px; font-weight: 800; text-transform: uppercase; margin: 14px 0 6px; letter-spacing: 0.04em; }
.dep-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; font-size: 12px; padding: 8px 0;
  border-bottom: 1px solid rgba(180, 77, 255, 0.1);
}
.dep-row:last-child { border-bottom: none; }

/* ─── Product Grid / Cards ───────────────────────────────────────────────── */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid rgba(120, 40, 200, 0.35);
  border-left: 3px solid rgba(180, 77, 255, 0.4);
  background: linear-gradient(180deg, #0d0020 0%, #050010 100%);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-left-color: #b44dff;
  box-shadow: 0 0 20px rgba(180, 77, 255, 0.25), 0 8px 28px rgba(0, 0, 0, 0.7);
}
.product-card.oos { opacity: 0.45; }
.discount-badge {
  position: absolute; top: 7px; right: 7px; padding: 2px 7px;
  background: linear-gradient(135deg, #00ff88, #00aa55);
  font-size: 9px; font-weight: 800; color: #000;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}
.prod-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.prod-icon img { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--glass-border); }
.prod-icon.big { width: 78px; height: 78px; flex: 0 0 auto; }
.prod-icon.big img { width: 78px; height: 78px; }
.prod-title { font-size: 12.5px; font-weight: 700; min-height: 32px; display: flex; align-items: center; text-align: center; }
.prod-amount { font-size: 11px; color: var(--text-2); }
.prod-stock { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--text-3); }
.prod-price {
  font-size: 14px; font-weight: 800;
  color: #cc44ff;
  text-shadow: none;
}
.prod-buy { width: 100%; margin-top: 4px; }

/* Skeleton */
.skeleton-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 9px; padding: 16px 10px;
  border: 1px solid rgba(120, 40, 200, 0.2);
}
.sk {
  display: block;
  background: linear-gradient(100deg,
    rgba(180, 77, 255, 0.04) 30%,
    rgba(180, 77, 255, 0.12) 50%,
    rgba(180, 77, 255, 0.04) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.sk-icon { width: 52px; height: 52px; }
.sk-line { width: 78%; height: 12px; }
.sk-line.short { width: 48%; }
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ─── Detail Pages ───────────────────────────────────────────────────────── */
.detail-card { display: flex; gap: 14px; align-items: center; padding: 16px; }
.detail-name { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.detail-amount { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.detail-price {
  font-size: 16px; font-weight: 800; color: #cc44ff;
  margin-top: 6px; display: flex; align-items: center; gap: 7px;
}
.detail-price.big { font-size: 20px; }
.detail-body-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.detail-sub { font-size: 12px; color: var(--text-2); }
.detail-desc { font-size: 13px; line-height: 1.7; color: var(--text-2); }
.platform-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.contact-block h4 { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-bottom: 7px; }
.contact-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; margin-bottom: 5px;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid var(--glass-border);
  border-left: 3px solid rgba(180, 77, 255, 0.35);
  text-decoration: none; font-size: 13px;
  transition: all 0.15s ease;
}
.contact-row:hover { border-left-color: #b44dff; }
.contact-row span { flex: 1; }
.form-card { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.form-card-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}

/* ─── Gallery Slider ─────────────────────────────────────────────────────── */
.gallery {
  position: relative; overflow: hidden;
  background: var(--bg-elev-1);
  border: 1px solid var(--glass-border);
}
.gallery-track { position: relative; width: 100%; height: 100%; }
.gallery-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0;
  transition: opacity 0.35s ease; background: #000;
}
.gallery-slide.active { opacity: 1; }
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px;
  background: rgba(10, 5, 20, 0.8);
  border: 1px solid rgba(180, 77, 255, 0.35);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.gallery-btn.prev { left: 8px; }
.gallery-btn.next { right: 8px; }
.gallery-dots { position: absolute; bottom: 7px; left: 0; right: 0; display: flex; gap: 4px; justify-content: center; z-index: 2; }
.gal-dot { width: 6px; height: 6px; background: rgba(255,255,255,0.3); transition: all 0.2s ease; }
.gal-dot.active { width: 16px; background: #b44dff; }
.gallery-empty {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

/* ─── Reviews ────────────────────────────────────────────────────────────── */
.reviews-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
}
.rs-left { display: flex; align-items: center; gap: 9px; }
.rs-avg { font-size: 24px; font-weight: 800; color: #ffcc00; }
.rs-stars { display: flex; gap: 2px; }
.rs-count { font-size: 11.5px; color: var(--text-2); }
.reviews-block { display: flex; flex-direction: column; gap: 10px; }
.review-form { padding: 13px; display: flex; flex-direction: column; gap: 9px; }
.star-picker { display: flex; gap: 5px; }
.star-pick { width: 32px; height: 32px; display: inline-flex; transition: transform 0.12s ease; }
.star-pick:hover { transform: scale(1.15); }
.review-card { display: flex; gap: 10px; padding: 12px 13px; margin-bottom: 8px; }
.review-avatar {
  width: 36px; height: 36px; overflow: hidden; flex: 0 0 auto;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-body { flex: 1; min-width: 0; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.review-stars { display: inline-flex; align-items: center; gap: 3px; color: #ffcc00; font-size: 11px; font-weight: 700; }
.review-text { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.review-time { font-size: 10px; color: var(--text-3); }

/* ─── Top Spenders ───────────────────────────────────────────────────────── */
.spenders-list { display: flex; flex-direction: column; gap: 10px; }
.spender-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border: 1px solid rgba(120, 40, 200, 0.35);
  border-left: 3px solid rgba(180, 77, 255, 0.5);
  background: linear-gradient(135deg, #0d0020 0%, #050010 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease;
}
.rank-badge {
  width: 80px; height: 80px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.rank-badge svg, .rank-badge img { width: 100%; height: 100%; object-fit: contain; }
.rank-badge .spender-rank-text {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  background: rgba(180, 77, 255, 0.1);
  border: 1px solid var(--glass-border);
}
.spender-row.rank-1 {
  border-left: 3px solid #ffcc00;
  background: linear-gradient(135deg, #1a1200 0%, #050503 100%);
  box-shadow: 0 0 18px rgba(255, 204, 0, 0.3), 0 6px 24px rgba(0, 0, 0, 0.8);
}
.spender-row.rank-2 {
  border-left: 3px solid #cccccc;
  background: linear-gradient(135deg, #141414 0%, #050505 100%);
  box-shadow: 0 0 14px rgba(200, 200, 200, 0.2), 0 6px 24px rgba(0, 0, 0, 0.8);
}
.spender-row.rank-3 {
  border-left: 3px solid #cc6600;
  background: linear-gradient(135deg, #150800 0%, #050302 100%);
  box-shadow: 0 0 14px rgba(180, 80, 0, 0.25), 0 6px 24px rgba(0, 0, 0, 0.8);
}
.spender-avatar {
  width: 40px; height: 40px; overflow: hidden; flex: 0 0 auto;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
}
.spender-avatar img { width: 100%; height: 100%; object-fit: cover; }
.spender-name { flex: 1; font-size: 13.5px; font-weight: 700; }
.spender-total { font-size: 13.5px; font-weight: 800; color: #cc44ff; }

/* ─── Auth Overlay ───────────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed; inset: 0; z-index: 8000; overflow-y: auto;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 14px 24px;
  background: rgba(2, 0, 8, 0.93);
  backdrop-filter: blur(8px);
}
.auth-card {
  max-width: 400px; width: 100%;
  padding: 28px 22px 24px;
  display: flex; flex-direction: column; gap: 13px;
  border: 1px solid rgba(180, 77, 255, 0.35);
  border-left: 3px solid #b44dff;
  background: rgba(8, 3, 18, 0.97);
  box-shadow: 0 0 40px rgba(180, 77, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.9);
}
.auth-logo { display: flex; justify-content: center; }
.auth-logo-img { max-height: 68px; max-width: 200px; object-fit: contain; }
.auth-name {
  text-align: center; font-size: 22px; font-weight: 800;
  color: #cc44ff;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
  padding: 4px; background: rgba(10, 5, 20, 0.8);
  border: 1px solid var(--glass-border);
}
.auth-tab {
  height: 38px; font-size: 12px; font-weight: 800; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: all 0.15s ease;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.auth-tab.active {
  background: linear-gradient(135deg, #b44dff, #5500aa);
  color: #fff;
}
.auth-panel { display: flex; flex-direction: column; }
.step-dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 13px; }
.step-dot {
  width: 7px; height: 4px;
  background: rgba(180, 77, 255, 0.2);
  clip-path: polygon(2px 0%, 100% 0%, calc(100% - 2px) 100%, 0% 100%);
  transition: all 0.22s ease;
}
.step-dot.active { width: 22px; background: #b44dff; }
.step-dot.done { background: var(--success); }
.signup-step { display: flex; flex-direction: column; animation: pageIn 0.22s ease; }
.step-title { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.step-hint { font-size: 12px; color: var(--text-2); margin: 4px 0 10px; }
.step-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.step-nav:has(> :only-child) { grid-template-columns: 1fr; }
.signup-step > .btn-primary { margin-top: 10px; }
.pw-rules { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.pw-rules li {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--text-2); transition: color 0.2s ease;
}
.pw-rules li.passed { color: var(--success); }
.pw-dot {
  width: 16px; height: 16px;
  border: 1px solid var(--glass-border);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; transition: all 0.2s ease;
  background: rgba(10, 5, 20, 0.8);
}
.pw-rules li.passed .pw-dot { border-color: var(--success); background: rgba(0, 255, 136, 0.1); }
.verified-wrap { display: flex; justify-content: center; margin-bottom: 5px; }

/* ─── CAPTCHA ────────────────────────────────────────────────────────────── */
.captcha-card {
  padding: 16px;
  border-left: 3px solid #b44dff;
  display: flex; flex-direction: column; gap: 12px;
}
.captcha-instruction { font-size: 13px; color: var(--text-2); text-align: center; }
.captcha-instruction b { color: #cc44ff; font-size: 15px; }
.captcha-track {
  position: relative; height: 44px;
  background: rgba(20, 10, 40, 0.9);
  border: 1px solid rgba(180, 77, 255, 0.3);
  overflow: hidden; touch-action: none;
}
.captcha-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, #b44dff, #5500aa);
  transition: background 0.2s ease;
}
.captcha-marker {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: #00aaff;
}
.captcha-handle {
  position: absolute; top: 3px; left: 0;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #2a0055, #0d0020);
  border: 2px solid #b44dff;
  display: flex; align-items: center; justify-content: center;
  color: #cc44ff; cursor: grab;
  touch-action: none; transition: box-shadow 0.15s ease;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.captcha-handle:active { cursor: grabbing; box-shadow: 0 0 0 4px rgba(180, 77, 255, 0.2); }
.captcha-track.captcha-success {
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow: inset 0 0 8px rgba(0, 255, 136, 0.1);
}
.captcha-track.captcha-success .captcha-fill {
  background: linear-gradient(90deg, #00ff88, #00aa55) !important;
}
.captcha-track.captcha-fail {
  animation: shake 0.4s ease;
  border-color: rgba(255, 34, 34, 0.6);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}
.captcha-bottom-row { display: flex; justify-content: space-between; align-items: center; }
.captcha-pos { font-size: 13px; font-weight: 800; color: var(--text-2); }
.captcha-msg { font-size: 12.5px; font-weight: 700; }
.captcha-msg.ok  { color: var(--success); }
.captcha-msg.bad { color: var(--danger); }

/* ─── Welcome Toast / Toasts ─────────────────────────────────────────────── */
.welcome-toast {
  position: fixed; left: 50%; bottom: 86px;
  transform: translateX(-50%) translateY(18px);
  z-index: 8600;
  display: flex; align-items: center; gap: 9px;
  max-width: min(460px, 92vw); padding: 12px 18px;
  background: rgba(10, 5, 20, 0.97);
  border: 1px solid rgba(180, 77, 255, 0.5);
  border-left: 3px solid #b44dff;
  box-shadow: 0 0 24px rgba(180, 77, 255, 0.3), 0 8px 32px rgba(0, 0, 0, 0.8);
  font-size: 13.5px; font-weight: 600; opacity: 0;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.25s ease;
}
.welcome-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-root {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 82px; z-index: 9500;
  display: flex; flex-direction: column; gap: 7px;
  width: min(440px, 92vw); pointer-events: none;
}
.toast {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  background: rgba(8, 3, 18, 0.97);
  border: 1px solid var(--glass-border);
  border-left: 3px solid rgba(180, 77, 255, 0.5);
  font-size: 12.5px; font-weight: 500;
  opacity: 0; transform: translateY(10px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}
.toast.show { opacity: 1; transform: none; }
.toast-success { border-left-color: #00ff88; }
.toast-error   { border-left-color: #ff2222; }
.toast-warning { border-left-color: #ffcc00; }
.toast-info    { border-left-color: #44aaff; }
.toast-text { flex: 1; line-height: 1.4; }
.toast-bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, #b44dff, #ff2d78);
  animation: toastbar linear forwards;
}
@keyframes toastbar { from { width: 100%; } to { width: 0%; } }

/* ─── Modal Root ─────────────────────────────────────────────────────────── */
.modal-root {
  position: fixed; inset: 0; z-index: 9200;
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 640px) { .modal-root { align-items: center; } }
.modal-veil {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.22s ease;
}
.modal-box {
  position: relative; z-index: 1;
  width: min(440px, 94vw); max-height: 86vh; overflow-y: auto;
  padding: 22px 18px;
  background: rgba(8, 3, 18, 0.98);
  border: 1px solid rgba(180, 77, 255, 0.4);
  border-left: 3px solid #b44dff;
  border-top: 2px solid rgba(180, 77, 255, 0.3);
  transform: translateY(28px); opacity: 0;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  display: flex; flex-direction: column; gap: 11px;
  box-shadow: 0 0 40px rgba(180, 77, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.9);
}
@media (min-width: 640px) { .modal-box { border-radius: 0; } }
.modal-root.open .modal-veil { opacity: 1; }
.modal-root.open .modal-box  { transform: none; opacity: 1; }
.modal-title {
  font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.modal-body-text { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.modal-body-refund {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--success); font-weight: 700;
}

/* ─── Quantity Selector / Codes / Order Status ───────────────────────────── */
.qty-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 5px 0; }
.qty-btn {
  width: 42px; height: 42px;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(180, 77, 255, 0.4);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}
.qty-btn:hover { border-color: #b44dff; box-shadow: 0 0 10px rgba(180, 77, 255, 0.35); }
.qty-display { font-size: 24px; font-weight: 800; min-width: 48px; text-align: center; color: #cc44ff; }
.qty-total { text-align: center; font-size: 13.5px; color: var(--text-2); }
.qty-total b { font-size: 18px; font-weight: 800; color: #cc44ff; }
.codes-list { display: flex; flex-direction: column; gap: 7px; }
.code-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid var(--glass-border);
  border-left: 2px solid rgba(180, 77, 255, 0.4);
}
.code-row code {
  flex: 1; font-size: 11.5px; word-break: break-all;
  color: var(--text-1); font-family: var(--font);
}
.order-status-icon { display: flex; justify-content: center; }
.order-status-icon.working { animation: shieldPulse 1.5s ease-in-out infinite; }
.osm-pulse { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
.osm-pulse span {
  width: 8px; height: 8px;
  background: #b44dff;
  animation: osmDot 1.1s ease-in-out infinite;
}
.osm-pulse span:nth-child(2) { animation-delay: 0.18s; }
.osm-pulse span:nth-child(3) { animation-delay: 0.36s; }
@keyframes osmDot {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

/* ─── Video Modal ────────────────────────────────────────────────────────── */
.video-modal {
  position: fixed; inset: 0; z-index: 9400;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.video-modal-veil {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}
.video-modal-box { position: relative; z-index: 1; width: min(840px, 96vw); }
.video-close {
  position: absolute; top: -44px; right: 0;
  width: 38px; height: 38px;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(180, 77, 255, 0.35);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.video-frame { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: none; }

/* ─── Bottom Navigation — Cyberpunk HUD Bar ──────────────────────────────── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  height: calc(62px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(3, 1, 8, 0.96);
  border-top: 1px solid rgba(180, 77, 255, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.8);
}
.bn-tab {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: rgba(160, 100, 220, 0.5);
  transition: color 0.18s ease;
}
.bn-tab .bn-icon { width: 24px; height: 24px; display: inline-flex; }
.bn-tab .bn-icon svg { width: 100%; height: 100%; }
.bn-tab.active { color: #cc44ff; }

/* Active tab — angular top indicator */
.bn-tab.active::before {
  content: '';
  position: absolute; top: 0; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, #b44dff, #ff2d78);
  clip-path: polygon(2px 0%, 100% 0%, calc(100% - 2px) 100%, 0% 100%);
}
.bn-label { font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

/* ─── Reduced Motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   COMPONENT EXTENSIONS — Balance · Badges · Game Inputs · Order Form
   ════════════════════════════════════════════════════════════════════════════ */

/* ─── Balance Display ────────────────────────────────────────────────────── */
.tb-balance { position: relative; }
.tb-amounts { align-items: flex-start; gap: 0; }
.amt-big {
  font-size: 13.5px; font-weight: 800; letter-spacing: 0.01em; line-height: 1.2;
  color: #ffcc00;
}
.amt-big.cur-usd { color: #44aaff; }
.amt-small { font-size: 9.5px; font-weight: 600; color: var(--text-3); line-height: 1.3; }
.tb-switch {
  width: 22px; height: 22px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(180, 77, 255, 0.3);
  color: var(--text-2); cursor: pointer;
  transition: all 0.18s ease;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}
.tb-switch svg { width: 13px; height: 13px; }
.tb-switch:hover {
  color: #ffcc00; border-color: rgba(255, 204, 0, 0.5);
  transform: rotate(180deg);
}

/* ─── Source Badges ──────────────────────────────────────────────────────── */
.src-badge {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  padding: 2px 6px;
  font-size: 8px; font-weight: 800; letter-spacing: 0.08em; color: #fff;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}
.src-v1   { background: linear-gradient(135deg, #7700cc, #2200aa); border: 1px solid rgba(180, 77, 255, 0.4); }
.src-v2   { background: linear-gradient(135deg, #00cc66, #006633); border: 1px solid rgba(0, 200, 100, 0.4); }
.src-gift { background: linear-gradient(135deg, #ffaa00, #cc5500); border: 1px solid rgba(255, 170, 0, 0.4); }

/* ─── Game Top-up Page ───────────────────────────────────────────────────── */
.game-notes {
  display: flex; align-items: flex-start; gap: 7px;
  padding: 9px 12px; font-size: 11px; color: var(--text-2);
  border-left: 3px solid rgba(0, 170, 255, 0.4);
  background: rgba(0, 100, 200, 0.06);
}
.game-notes .icon { color: #44aaff; margin-top: 1px; }
.prod-face {
  font-size: 10px; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 3px;
}
.game-inputs { display: flex; flex-direction: column; gap: 2px; }
.game-inputs .field-label { margin: 7px 0 5px; }
.game-inputs .req { color: var(--danger); }
#g2-validate-btn { margin-top: 9px; align-self: flex-start; }
.game-notes-inline {
  display: flex; align-items: flex-start; gap: 5px;
  margin: 7px 0 0; font-size: 10.5px; line-height: 1.45;
  color: var(--text-2); padding: 6px 9px;
  background: rgba(0, 100, 200, 0.06);
  border-left: 2px solid rgba(0, 170, 255, 0.3);
}
.game-notes-inline .icon { color: #44aaff; margin-top: 1px; }

/* ─── G2/GC Product Cards (Overlay pages) ───────────────────────────────── */
.g2-product, .gc-product {
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between;
  gap: 10px; padding: 16px 10px; cursor: pointer; text-align: center;
  border: 1px solid rgba(120, 40, 200, 0.35);
  border-left: 3px solid rgba(180, 77, 255, 0.5);
  background: linear-gradient(180deg, #0d0020 0%, #050010 100%);
  min-height: 190px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  transform: translate3d(0, 0, 0); will-change: transform;
}
.g2-product .prod-icon, .gc-product .prod-icon {
  width: 60px; height: 60px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.g2-product .prod-icon img, .gc-product .prod-icon img {
  width: 100%; height: 100%; object-fit: contain;
  border: 1px solid rgba(120, 40, 200, 0.3);
}
.prod-info {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; width: 100%; flex: 1; justify-content: center;
}
.prod-right {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%;
}
.prod-unit {
  font-size: 8.5px; color: var(--text-3);
  text-transform: uppercase; font-weight: 800; letter-spacing: 0.06em;
}
.g2-product:hover, .gc-product:hover {
  transform: translateY(-3px) scale(1.02);
  border-left-color: #b44dff;
  box-shadow: 0 0 18px rgba(180, 77, 255, 0.3), 0 10px 28px rgba(0, 0, 0, 0.7);
}

/* ─── Order Form (Place Order) ───────────────────────────────────────────── */
.order-summary-card { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.order-summary-top { display: flex; align-items: center; gap: 11px; }
.order-summary-ic .head-cat-img { width: 48px; height: 48px; border: 1px solid var(--glass-border); }
.order-summary-name { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.order-summary-product { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.os-row {
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  font-size: 12.5px; padding: 4px 0;
  border-bottom: 1px solid rgba(180, 77, 255, 0.08);
}
.os-row:last-child { border-bottom: none; }
.os-label { color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.os-value { font-weight: 700; text-align: right; }
.os-price { font-size: 15px; font-weight: 800; color: #cc44ff; }
.game-notes-card {
  display: flex; align-items: flex-start; gap: 7px; padding: 10px 12px;
  font-size: 11px; color: var(--text-2);
  border-left: 3px solid rgba(255, 204, 0, 0.4);
  background: rgba(255, 150, 0, 0.04);
}
.game-notes-card .icon { color: #ffcc00; margin-top: 1px; flex: 0 0 auto; }
.order-safe-note {
  display: flex; align-items: flex-start; gap: 5px; margin-top: 9px;
  font-size: 10.5px; color: var(--text-3); line-height: 1.5;
}
.order-safe-note .icon { color: var(--text-3); flex: 0 0 auto; }
#go-check-btn { margin-top: 10px; align-self: flex-start; }
#go-place-btn { margin-top: 12px; }

/* ─── Catalogue Header ───────────────────────────────────────────────────── */
.catalogue-head { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.ch-title-row {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.ch-title { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.ch-count {
  font-size: 10.5px; font-weight: 800; color: var(--text-2);
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(180, 77, 255, 0.3);
  padding: 2px 9px; white-space: nowrap;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}
.ch-sub { font-size: 11.5px; color: var(--text-2); }
.ch-search { height: 40px; }
.ch-search .search-input {
  border: none; background: transparent; outline: none;
  color: var(--text-1); font-family: var(--font); font-size: 13.5px; width: 100%;
}

/* ─── Transaction / Deposit History ─────────────────────────────────────── */
.tx-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.dep-row.glass-card, .tx-row.glass-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--glass-border);
  border-left: 3px solid rgba(180, 77, 255, 0.4);
  background: var(--glass);
}
.dep-details, .tx-details { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dep-bank, .tx-type {
  font-size: 13px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.dep-ref, .tx-note {
  font-size: 10.5px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dep-date, .tx-date { font-size: 9.5px; color: var(--text-3); }
.dep-amount-status, .tx-amount-col {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.dep-amount, .tx-amount { font-size: 13px; font-weight: 800; color: #fff; }
.tx-amount.negative { color: #ff3344; }
.tx-amount.positive { color: #00ff88; }

/* ─── Source / Type Specific Card Details ────────────────────────────────── */
.detail-price {
  font-size: 15px; font-weight: 800; color: #cc44ff;
  display: flex; align-items: center; gap: 7px;
}
.field-msg.good { color: var(--success); display: flex; align-items: center; gap: 4px; }
.field-msg.bad  { color: var(--danger); }

/* ──────────────────────────────────────────────────────────────────────────
   PART 1.3 — Game V1 / V2 split sections (Game Topup home page)
   ────────────────────────────────────────────────────────────────────────── */
.vg-section { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.vg-head {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px;
  border-left: 3px solid rgba(180, 77, 255, 0.55);
}
.vg-head .icon svg { width: 22px; height: 22px; }
.vg-title {
  margin: 0; font-size: 15px; font-weight: 900; letter-spacing: 0.04em;
  color: #fff; text-transform: uppercase;
}
.vg-count { margin-left: auto; font-size: 10.5px; color: var(--text-3); font-weight: 700; }
.vg-grid { gap: 10px; }
.vg-empty { padding: 18px; }

/* ──────────────────────────────────────────────────────────────────────────
   PART 2.1 / 3.6 / 3.7 — RESELLER + HISTORY tabs (Categories page)
   ────────────────────────────────────────────────────────────────────────── */
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: #4dc3ff; background: rgba(0, 150, 255, 0.12);
  border: 1px solid rgba(0, 150, 255, 0.45);
  padding: 2px 7px; border-radius: 999px; vertical-align: middle;
  box-shadow: 0 0 10px rgba(0, 150, 255, 0.25);
}
.verified-badge.big { font-size: 10px; padding: 4px 11px; }
.vb-ic svg { width: 12px; height: 12px; display: block; }
.verified-badge.big .vb-ic svg { width: 15px; height: 15px; }

.reseller-card { cursor: pointer; }
.reseller-avatar { overflow: hidden; border-radius: 12px; }
.reseller-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.reseller-meta { justify-content: center; }
.reseller-view { width: 100%; justify-content: center; }

.reseller-hero { align-items: center; text-align: center; }
.reseller-avatar-lg { cursor: default; }
.reseller-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 13px 10px; margin-top: 12px;
}
.rs-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rs-num { font-size: 17px; font-weight: 900; color: #fff; }
.rs-lbl { font-size: 9.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; text-align: center; }

.reseller-feedback { margin-top: 12px; padding: 13px; display: flex; flex-direction: column; gap: 7px; }
.rf-top { display: flex; align-items: center; gap: 10px; }
.rf-score { font-size: 13px; font-weight: 800; color: #ffcc44; }

.stars-row { display: inline-flex; align-items: center; gap: 2px; }
.star-ic svg { width: 16px; height: 16px; display: block; }
.star-btn {
  background: none; border: none; padding: 2px; cursor: pointer;
}
.star-btn svg { width: 22px; height: 22px; display: block; transition: transform 0.15s ease; }
.star-btn:hover svg { transform: scale(1.2); }

.menu-tabs {
  display: flex; gap: 9px; overflow-x: auto; padding: 4px 1px 9px;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 9px 15px; font-family: var(--font);
  font-size: 12.5px; font-weight: 700; color: var(--text-2);
  cursor: pointer; transition: all 0.18s ease;
  border: 1px solid var(--glass-border);
}
.menu-tab img { width: 26px; height: 26px; object-fit: contain; }
.menu-tab.active {
  color: #fff; border-color: rgba(204, 68, 255, 0.7);
  box-shadow: 0 0 16px rgba(180, 77, 255, 0.3);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(59, 130, 246, 0.25));
}

.rp-title-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rp-title-row svg { width: 17px; height: 17px; flex: 0 0 auto; }
.cat-desc {
  font-size: 10px; color: var(--text-3); line-height: 1.35;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.op-head-flex { display: flex; align-items: center; gap: 9px; min-width: 0; }

.price-old { text-decoration: line-through; color: var(--text-3); font-size: 10.5px; font-weight: 500; }
.price-dc {
  display: inline-block; padding: 1px 6px; font-size: 9.5px; font-weight: 900;
  color: #00ff88; background: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.35);
}
.price-new { color: #cc44ff; font-weight: 900; }

/* ── Buy-from-reseller page ──────────────────────────────────────────────── */
.rb-product { display: flex; gap: 12px; padding: 13px; align-items: flex-start; }
.rb-product .prod-icon { width: 74px; height: 74px; flex: 0 0 auto; }
.rb-product .prod-icon img { width: 100%; height: 100%; object-fit: cover; }
.rb-product-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rb-desc {
  margin: 2px 0 0; font-size: 11.5px; color: var(--text-2); line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.rb-fields { margin-top: 12px; padding: 13px; display: flex; flex-direction: column; gap: 6px; }
.rb-pay { margin-top: 12px; padding: 13px; display: flex; flex-direction: column; gap: 8px; }
.rb-methods { display: flex; flex-direction: column; gap: 8px; }
.rb-method {
  display: flex; align-items: center; gap: 10px; padding: 11px;
  cursor: pointer; transition: all 0.18s ease; position: relative;
}
.rb-method input[type="radio"] { accent-color: #cc44ff; }
.rb-method img { width: 34px; height: 34px; object-fit: contain; }
.rb-method.active {
  border-color: rgba(204, 68, 255, 0.75);
  box-shadow: 0 0 16px rgba(180, 77, 255, 0.28);
}
.rbm-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rbm-price { font-size: 13px; font-weight: 900; color: #ffcc44; margin-top: 2px; }
#rb-progress { margin-top: 4px; }
.field-input.error { border-color: rgba(255, 34, 68, 0.8) !important; box-shadow: 0 0 10px rgba(255, 34, 68, 0.25); }

.feedback-box {
  margin-top: 6px; padding: 10px;
  border: 1px dashed rgba(204, 68, 255, 0.35);
  display: flex; flex-direction: column; gap: 7px;
}
.feedback-box .fb-submit { align-self: flex-start; }

/* ══════════════════════════════════════════════════════════════════════════
   RESELLER CONTACT CHIPS (buyer view) — link chips open the app on one tap
   ══════════════════════════════════════════════════════════════════════════ */
.rp-actions-row {
  display: flex; gap: 10px; margin-bottom: 12px;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.rp-actions-row .rp-report-btn { flex: 1; color: #ff7a8a; }
.rp-actions-row .rp-contacts-view { flex: 1; }
.rp-contact-panel { margin-bottom: 12px; padding: 12px; }
.rp-contact-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-3, #8b90b8);
  margin: 0 0 10px;
}
.ct-chip-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(19, 19, 40, 0.72);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #E5E7F6;
  text-decoration: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.ct-chip-ic { width: 26px; height: 26px; display: inline-flex; }
.ct-chip-ic .icon, .ct-chip-ic svg { width: 26px; height: 26px; }
.ct-chip-name { font-weight: 600; font-size: 13px; letter-spacing: 0.2px; }
.ct-chip-val { font-size: 12px; color: #9CA3C8; user-select: all; }
.ct-chip-open { display: inline-flex; width: 16px; height: 16px; }
.ct-chip-open .icon, .ct-chip-open svg { width: 16px; height: 16px; }
.ct-chip.is-link {
  border-color: rgba(59, 130, 246, 0.65);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(19, 19, 40, 0.85));
  color: #7DB4FF;
  cursor: pointer;
}
.ct-chip.is-link:active { transform: scale(0.97); }
.ct-chip.is-link .ct-chip-name { color: #7DB4FF; }

/* ══════════════════════════════════════════════════════════════════════════
   RESELLER REPORT PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.rep-target { display: flex; gap: 12px; align-items: center; padding: 14px; margin-bottom: 12px; }
.rep-target-avatar {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: flex; align-items: center; justify-content: center;
  background: rgba(19, 19, 40, 0.6);
}
.rep-target-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rep-target-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rep-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3, #8b90b8); }
.rep-target-name { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.rep-form { padding: 14px; margin-bottom: 14px; }
.rep-details { resize: vertical; min-height: 110px; font-family: inherit; }
.rep-pin-hint { font-size: 11px; color: var(--text-3, #8b90b8); margin: 4px 0 8px; }
.rep-pin-boxes { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.rep-pin-cell {
  width: 40px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  background: rgba(19, 19, 40, 0.72);
  border: 1.6px solid rgba(139, 92, 246, 0.35);
  border-radius: 4px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  color: #fff;
}
.rep-pin-cell.filled { border-color: rgba(59, 130, 246, 0.7); color: #7DB4FF; }
.rep-pin-boxes.pin-ok .rep-pin-cell { border-color: #10B981; color: #34D399; box-shadow: 0 0 12px rgba(16, 185, 129, 0.25); }
.rep-keypad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-width: 260px; margin: 0 auto 8px;
}
.rep-key {
  height: 46px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
  color: #E5E7F6; font-size: 17px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.rep-key:active { transform: scale(0.94); background: rgba(59, 130, 246, 0.25); }
.rep-pin-msg { text-align: center; font-size: 12px; min-height: 16px; margin: 2px 0 0; }
.rep-pin-msg.checking { color: #7DB4FF; }
.rep-pin-msg.ok { color: #34D399; font-weight: 700; }
.rep-pin-msg.bad { color: #F87171; font-weight: 600; }

.rep-receipt {
  border: 1.6px dashed rgba(139, 92, 246, 0.45);
  border-radius: 4px;
  min-height: 110px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; overflow: hidden;
  background: rgba(19, 19, 40, 0.5);
  margin-bottom: 14px;
}
#rep-receipt-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3, #8b90b8); font-size: 12px; padding: 18px; }
#rep-receipt-preview { max-width: 100%; max-height: 260px; display: block; border-radius: 3px; }
.rep-progress {
  position: relative; width: min(280px, 72%); height: 26px;
  background: rgba(5, 5, 8, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 3px; overflow: hidden;
}
.rep-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #7C3AED, #3B82F6);
  transition: width 0.15s linear;
}
.rep-progress-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.rep-submit { width: 100%; }
.rep-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.rep-item { padding: 12px; margin-bottom: 10px; }
.rep-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.rep-item-title { font-size: 14px; font-weight: 700; }
.rep-item-details { font-size: 12.5px; color: #B9BEDB; line-height: 1.55; margin: 0 0 8px; white-space: pre-wrap; }
.rep-item-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--text-3, #8b90b8); }
.rep-item-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rep-receipt-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: #7DB4FF; margin-top: 8px;
  text-decoration: none;
}
.rep-admin-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 10px; padding: 9px 11px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 4px;
  font-size: 12px; color: #A7F3D0;
}

/* ══════════════════════════════════════════════════════════════════════════
   LIVE CHAT
   ══════════════════════════════════════════════════════════════════════════ */
.chat-page { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.chat-live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #64748B; margin-left: auto; flex: 0 0 9px;
  box-shadow: 0 0 8px rgba(100, 116, 139, 0.5);
  transition: background 0.3s ease;
}
.chat-live-dot.on { background: #10B981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); }
.chat-messages {
  flex: 1; overflow-y: auto;
  width: 100%; max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 8px;
  padding: 6px 2px 12px;
  -webkit-overflow-scrolling: touch;
}
.chat-empty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 16px; }
.msg-row { display: flex; flex-direction: column; max-width: 78%; }
.msg-row.me { align-self: flex-end; align-items: flex-end; }
.msg-row.them { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
  padding: 10px 13px;
  font-size: 13.5px; line-height: 1.55;
  word-break: break-word; white-space: pre-wrap;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.msg-row.me .msg-bubble {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(124, 58, 237, 0.24));
  border: 1px solid rgba(59, 130, 246, 0.55);
  color: #EAF2FF;
}
.msg-row.them .msg-bubble {
  background: rgba(25, 25, 48, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #D9DCEF;
}
.msg-time { font-size: 9.5px; color: var(--text-3, #8b90b8); margin-top: 3px; }
.msg-voice {
  display: flex; align-items: center; gap: 8px; min-width: 230px;
}
.msg-voice audio { height: 34px; max-width: 200px; outline: none; }
.voice-secs { font-size: 10.5px; color: #9CA3C8; }

.chat-inputbar {
  display: flex; gap: 8px; align-items: center;
  width: 100%; max-width: 1100px; margin: 0 auto;
  padding-top: 8px;
}
.chat-tool-btn, .chat-send-btn {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(19, 19, 40, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 4px; cursor: pointer;
  transition: transform 0.08s ease;
}
.chat-send-btn { border-color: rgba(59, 130, 246, 0.6); background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(124, 58, 237, 0.16)); }
.chat-tool-btn:active, .chat-send-btn:active { transform: scale(0.92); }
.chat-input {
  flex: 1; height: 46px;
  background: rgba(19, 19, 40, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 4px;
  color: #fff; font-size: 13.5px; font-family: inherit;
  padding: 0 14px; outline: none;
}
.chat-input:focus { border-color: rgba(59, 130, 246, 0.7); }

.chat-recbar {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 4px;
}
.rec-pulse {
  width: 12px; height: 12px; border-radius: 50%;
  background: #EF4444;
  animation: recPulse 1s ease-in-out infinite;
}
@keyframes recPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.75); } }
.rec-time { font-size: 14px; font-weight: 800; color: #F87171; min-width: 38px; }
.rec-hint { font-size: 12px; color: #FCA5A5; flex: 1; }
.rec-cancel, .rec-stop {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 8, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 4px; cursor: pointer;
}
.chat-unread-badge {
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EF4444, #F97316);
  border-radius: 10px;
  font-size: 10.5px; font-weight: 800; color: #fff;
  margin-left: auto;
}

/* ══════════════════════════════════════════════════════════════════════════
   REFER PAGE — hero / refer wallet / tiers / lists
   ══════════════════════════════════════════════════════════════════════════ */
.ref-hero {
  position: relative; overflow: hidden;
  padding: 20px 16px; margin-bottom: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  background: linear-gradient(140deg, rgba(19,19,40,0.9), rgba(30,12,54,0.85));
}
.ref-hero-glow {
  position: absolute; border-radius: 50%; filter: blur(38px);
  pointer-events: none; opacity: 0.55;
}
.ref-hero-glow.g1 { width: 190px; height: 190px; top: -70px; right: -50px; background: rgba(251,191,36,0.32); }
.ref-hero-glow.g2 { width: 160px; height: 160px; bottom: -70px; left: -50px; background: rgba(124,58,237,0.45); }
.ref-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 2px;
  color: #FBBF24;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.45);
  padding: 5px 12px; border-radius: 3px;
  margin-bottom: 10px;
}
.ref-hero-title {
  position: relative;
  font-size: 21px; font-weight: 800; line-height: 1.3;
  background: linear-gradient(120deg, #FFE9B3, #FBBF24 45%, #C4B5FD);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px;
}
.ref-hero-title b { -webkit-text-fill-color: #34D399; }
.ref-hero-sub { position: relative; font-size: 12.5px; color: #B9BEDB; line-height: 1.6; margin: 0 0 14px; }
.ref-apk-btn {
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  font-size: 12.5px; font-weight: 700;
  color: #7DB4FF; text-decoration: none;
  background: linear-gradient(135deg, rgba(59,130,246,0.22), rgba(124,58,237,0.16));
  border: 1px solid rgba(59,130,246,0.6);
  padding: 10px 16px; border-radius: 4px;
  margin-bottom: 14px;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.ref-apk-btn:active { transform: scale(0.97); }
.ref-code-panel {
  position: relative;
  background: rgba(5,5,8,0.55);
  border: 1px dashed rgba(251,191,36,0.55);
  border-radius: 4px;
  padding: 12px 14px;
}
.ref-code-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; color: #FBBF24; margin-bottom: 8px; }
.ref-code-row { display: flex; align-items: center; gap: 10px; }
.ref-code {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 25px; font-weight: 800; letter-spacing: 5px;
  color: #fff;
  text-shadow: 0 0 14px rgba(251,191,36,0.5);
  user-select: all;
}
.ref-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  border: none; border-radius: 4px;
  padding: 9px 13px; cursor: pointer;
}
.ref-copy-btn:active { transform: scale(0.94); }

.ref-referrer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; }
.ref-rava {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(16,185,129,0.5);
  display: flex; align-items: center; justify-content: center;
  background: rgba(19,19,40,0.6);
}
.ref-rava img { width: 100%; height: 100%; object-fit: cover; }
.ref-rinfo { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ref-rlabel { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3, #8b90b8); }
.ref-rname { font-size: 14.5px; font-weight: 700; }
.ref-apply { padding: 14px; margin-bottom: 12px; }
.ref-apply-row { display: flex; gap: 8px; }
.ref-apply-input {
  flex: 1; text-transform: uppercase;
  font-family: 'Courier New', monospace; letter-spacing: 3px; font-weight: 700;
}

.ref-wallet { padding: 14px; margin-bottom: 12px; }
.ref-bal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ref-bal {
  background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(19,19,40,0.7));
  border: 1px solid rgba(59,130,246,0.4);
  border-radius: 4px; padding: 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.ref-bal.alt {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(19,19,40,0.7));
  border-color: rgba(16,185,129,0.4);
}
.ref-bal-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3, #8b90b8); }
.ref-bal-num { font-size: 22px; font-weight: 800; color: #fff; }
.ref-bal.alt .ref-bal-num { color: #6EE7B7; }
.ref-bal-cur { font-size: 10.5px; color: var(--text-3, #8b90b8); }
.ref-wallet-actions { display: flex; gap: 8px; }
.ref-wallet-actions .btn-primary, .ref-wallet-actions .btn-secondary { flex: 1; }
.ref-wallet-note { font-size: 10.5px; color: var(--text-3, #8b90b8); margin: 10px 0 0; line-height: 1.6; }

.ref-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ref-stat { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.ref-stat.win { border-color: rgba(16,185,129,0.4) !important; }
.ref-stat-num { font-size: 17px; font-weight: 800; }
.ref-stat-lbl { font-size: 10px; color: var(--text-3, #8b90b8); display: inline-flex; align-items: center; gap: 4px; }

.ref-rules { padding: 14px; margin-bottom: 12px; }
.ref-rules-list { margin: 0 0 12px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ref-rules-list li {
  font-size: 12px; color: #B9BEDB; line-height: 1.6;
  padding: 8px 10px;
  background: rgba(19,19,40,0.55);
  border-left: 2px solid rgba(139,92,246,0.6);
  border-radius: 3px;
}
.ref-rules-list li.warn { border-left-color: #EF4444; color: #FCA5A5; }
.ref-tier-table { border: 1px solid rgba(139,92,246,0.25); border-radius: 4px; overflow: hidden; }
.ref-tier-head {
  display: grid; grid-template-columns: 1.6fr 1.6fr;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(59,130,246,0.2));
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: #C4B5FD;
}
.ref-tier-row {
  display: grid; grid-template-columns: 1.4fr 0.5fr 1.5fr; gap: 6px;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  border-top: 1px solid rgba(139,92,246,0.12);
}
.ref-tier-row:nth-child(odd) { background: rgba(19,19,40,0.35); }
.ref-tier-dep { font-weight: 700; }
.ref-tier-dep i, .ref-tier-bonus i { color: var(--text-3, #8b90b8); font-style: normal; padding: 0 3px; }
.ref-tier-pct {
  display: inline-flex; justify-content: center;
  font-weight: 800; font-size: 11px; color: #34D399;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: 3px; padding: 3px 4px;
}
.ref-tier-bonus { text-align: right; color: #FDE68A; font-weight: 600; }

.ref-tabs { margin-bottom: 10px; }
.ref-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; margin-bottom: 8px; }
.ref-row-ava {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(139,92,246,0.4);
  display: flex; align-items: center; justify-content: center;
  background: rgba(19,19,40,0.6);
}
.ref-row-ava img { width: 100%; height: 100%; object-fit: cover; }
.ref-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ref-row-title { font-size: 13.5px; font-weight: 700; }
.ref-row-sub { font-size: 11px; color: var(--text-3, #8b90b8); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ref-row-sub.adm { color: #A7F3D0; }
.ref-row-sub.ref { color: #FCA5A5; }
.ref-row-bonus { font-size: 13px; font-weight: 800; color: #34D399; white-space: nowrap; }

.ref-pay-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-pay-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: rgba(19,19,40,0.7);
  border: 1.5px solid rgba(139,92,246,0.3);
  border-radius: 4px; color: #E5E7F6;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
}
.ref-pay-chip img { width: 26px; height: 26px; object-fit: contain; border-radius: 3px; }
.ref-pay-chip.active {
  border-color: #3B82F6;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(124,58,237,0.18));
  box-shadow: 0 0 12px rgba(59,130,246,0.25);
}
.ref-min-note { font-size: 10.5px; color: #FDE68A; align-self: center; }
.ref-wd-cur.cur-on, .ref-tf-cur.cur-on {
  border-color: rgba(59,130,246,0.7) !important;
  background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(124,58,237,0.2)) !important;
}

/* ============================================================================
   UI COMPLETENESS PACK — every control themed, every page fully scrollable
   ========================================================================= */
:root { color-scheme: dark; }

/* ─ Main scroll container + overlay pages: content never hides under bars ─ */
.app-main { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
.app-main::after { height: 10px; }
.page-overlay { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.page { gap: 14px; }

/* ─ Selects — custom cyberpunk chevron + themed option list ─ */
select.field-input {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23b44dff' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 15px;
}
select.field-input[multiple] { background-image: none; padding: 6px; height: auto; min-height: 88px; cursor: default; }
select.field-input option, select.field-input optgroup { background: #14051f; color: var(--text-1); }
select.field-input[multiple] option { padding: 7px 10px; margin: 1px 0; border-radius: 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

/* ─ File pickers (visible ones) — angular button + dashed zone ─ */
input[type="file"].field-input {
  height: auto; min-height: 44px; padding: 7px 10px; cursor: pointer;
  border: 1px dashed rgba(180, 77, 255, 0.45); border-radius: 3px;
  background: rgba(180, 77, 255, 0.07); font-size: 12px; color: var(--text-2);
}
input[type="file"]::file-selector-button {
  margin-right: 10px; padding: 7px 14px; cursor: pointer;
  background: var(--grad-primary); color: #fff; border: none; border-radius: 2px;
  font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  transition: filter 0.15s ease;
}
input[type="file"]::file-selector-button:hover { filter: brightness(1.2); }

/* ─ Full-visibility guards: long values wrap instead of clipping ─ */
.detail-sub, .kv-val, .notif-body, .news-body, .reseller-desc, .spender-name,
.field-msg, .order-cell, .tx-note, .chat-bubble p, .pm-addr, .pm-note,
.ref-code, .contact-value, .review-comment, .acc-desc, .gift-body { overflow-wrap: anywhere; word-break: break-word; }

/* ─ Form rows never collapse on narrow screens ─ */
.form-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
input[type="number"].field-input, input[type="date"].field-input { height: 46px; }
.field-input:disabled, select.field-input:disabled { opacity: 0.55; cursor: not-allowed; }

/* ─ Chat page: bubbles never exceed the thread width ─ */
.chat-msg, .chat-bubble { max-width: 100%; }
.chat-bubble audio { max-width: 100%; }

/* ─ Refer page tables/lists scroll horizontally only when truly needed ─ */
.ref-tier-table, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
