/* ============================================
   CR7 GAME STORE - COMPLETE STYLESHEET
   Premium Frost / Inferno Edition
   Upgraded UI/UX + Full Text Visibility + Telegram Embed Support
   ============================================ */

/* ============================================
   CSS VARIABLES - ICE THEME (DEFAULT)
   ============================================ */
:root,
[data-theme="ice"] {
  /* Primary Colors */
  --primary: #00d4ff;
  --primary-dark: #00a8cc;
  --primary-light: #66e5ff;
  --primary-glow: rgba(0, 212, 255, 0.4);
  --primary-glow-strong: rgba(0, 212, 255, 0.7);

  /* Accent */
  --accent: #7b68ee;
  --accent-dark: #5a4fcf;
  --accent-light: #9d8ff2;

  /* Backgrounds */
  --bg-primary: #0a1628;
  --bg-secondary: #0f1f3d;
  --bg-tertiary: #142850;
  --bg-card: rgba(15, 31, 61, 0.85);
  --bg-card-hover: rgba(20, 40, 80, 0.95);
  --bg-modal: rgba(10, 22, 40, 0.97);
  --bg-input: rgba(15, 31, 61, 0.7);
  --bg-glass: rgba(15, 31, 61, 0.4);
  --bg-glass-strong: rgba(15, 31, 61, 0.72);

  /* Text */
  --text-primary: #e8f4fd;
  --text-secondary: #8baac4;
  --text-muted: #5a7a96;
  --text-accent: #00d4ff;

  /* Borders */
  --border-color: rgba(0, 212, 255, 0.15);
  --border-glow: rgba(0, 212, 255, 0.3);
  --border-active: rgba(0, 212, 255, 0.6);

  /* Status Colors */
  --success: #00e676;
  --success-bg: rgba(0, 230, 118, 0.1);
  --warning: #ffab40;
  --warning-bg: rgba(255, 171, 64, 0.1);
  --error: #ff5252;
  --error-bg: rgba(255, 82, 82, 0.1);
  --info: #448aff;
  --info-bg: rgba(68, 138, 255, 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7b68ee 100%);
  --gradient-card: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(123, 104, 238, 0.07) 100%);
  --gradient-card-strong: linear-gradient(160deg, rgba(12, 32, 64, 0.98) 0%, rgba(10, 22, 40, 0.92) 100%);
  --gradient-border: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(123, 104, 238, 0.3));
  --gradient-topbar: linear-gradient(180deg, rgba(10, 22, 40, 0.96) 0%, rgba(10, 22, 40, 0.78) 100%);
  --gradient-bottomnav: linear-gradient(0deg, rgba(10, 22, 40, 0.98) 0%, rgba(10, 22, 40, 0.82) 100%);
  --gradient-mesh-1: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.12), transparent 30%);
  --gradient-mesh-2: radial-gradient(circle at 80% 10%, rgba(123, 104, 238, 0.12), transparent 28%);
  --gradient-mesh-3: radial-gradient(circle at 50% 90%, rgba(0, 212, 255, 0.08), transparent 24%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.46);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.2);
  --shadow-glow-strong: 0 0 40px rgba(0, 212, 255, 0.3);

  /* Ice Effect */
  --ice-frost: rgba(200, 230, 255, 0.08);
  --ice-crystal: rgba(0, 212, 255, 0.1);
  --ice-shimmer: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.12), transparent);

  /* Misc */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-2xl: 32px;
  --radius-full: 999px;
  --topbar-height: 64px;
  --bottomnav-height: 74px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.5s ease;

  --theme-icon: "❄️";
  --theme-effect-color: rgba(0, 212, 255, 0.6);
}

/* ============================================
   CSS VARIABLES - FIRE THEME
   ============================================ */
[data-theme="fire"] {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-light: #ff8c5a;
  --primary-glow: rgba(255, 107, 53, 0.4);
  --primary-glow-strong: rgba(255, 107, 53, 0.7);

  --accent: #ffd700;
  --accent-dark: #e6c200;
  --accent-light: #ffe44d;

  --bg-primary: #1a0a00;
  --bg-secondary: #2d1400;
  --bg-tertiary: #3d1c00;
  --bg-card: rgba(45, 20, 0, 0.86);
  --bg-card-hover: rgba(61, 28, 0, 0.96);
  --bg-modal: rgba(26, 10, 0, 0.97);
  --bg-input: rgba(45, 20, 0, 0.7);
  --bg-glass: rgba(45, 20, 0, 0.4);
  --bg-glass-strong: rgba(45, 20, 0, 0.72);

  --text-primary: #fde8d0;
  --text-secondary: #c49a6c;
  --text-muted: #96704a;
  --text-accent: #ff6b35;

  --border-color: rgba(255, 107, 53, 0.15);
  --border-glow: rgba(255, 107, 53, 0.3);
  --border-active: rgba(255, 107, 53, 0.6);

  --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #ffd700 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 215, 0, 0.08) 100%);
  --gradient-card-strong: linear-gradient(160deg, rgba(52, 20, 2, 0.98) 0%, rgba(26, 10, 0, 0.92) 100%);
  --gradient-border: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 215, 0, 0.3));
  --gradient-topbar: linear-gradient(180deg, rgba(26, 10, 0, 0.98) 0%, rgba(26, 10, 0, 0.82) 100%);
  --gradient-bottomnav: linear-gradient(0deg, rgba(26, 10, 0, 0.98) 0%, rgba(26, 10, 0, 0.82) 100%);
  --gradient-mesh-1: radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.12), transparent 30%);
  --gradient-mesh-2: radial-gradient(circle at 80% 10%, rgba(255, 215, 0, 0.12), transparent 28%);
  --gradient-mesh-3: radial-gradient(circle at 50% 90%, rgba(255, 107, 53, 0.08), transparent 24%);

  --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.2);
  --shadow-glow-strong: 0 0 40px rgba(255, 107, 53, 0.3);

  --ice-frost: rgba(255, 200, 150, 0.08);
  --ice-crystal: rgba(255, 107, 53, 0.1);
  --ice-shimmer: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.12), transparent);

  --theme-icon: "🔥";
  --theme-effect-color: rgba(255, 107, 53, 0.6);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    var(--gradient-mesh-1),
    var(--gradient-mesh-2),
    var(--gradient-mesh-3),
    var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow: hidden;
  height: 100%;
  width: 100%;
  position: fixed;
  inset: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

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

input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  outline: none;
  border: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--bg-input);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
  width: 100%;
}

textarea {
  min-height: 110px;
  resize: vertical;
  white-space: pre-wrap;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px var(--primary-glow),
    0 10px 24px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

select {
  appearance: none;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238baac4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 12px center;
  padding-right: 38px;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

::selection {
  background: var(--primary);
  color: var(--bg-primary);
}

/* ============================================
   GLOBAL FULL TEXT FIX
   ============================================ */
.site-name,
.live-text,
.category-name,
.product-name,
.product-amount,
.ga-card-title,
.ga-card-desc,
.ga-detail-title,
.ga-detail-desc,
.news-title,
.news-content,
.order-game-name,
.order-product,
.tx-desc,
.receipt-value,
.receipt-label,
.fb-message,
.fb-name,
.pi-value,
.pi-label,
.os-value,
.os-label,
.dr-value,
.dr-label,
.topup-note,
.guide-text,
.profile-name,
.profile-username,
.claim-user-item,
.claim-user-item span,
.activity-item,
.admin-list-item .item-title,
.admin-list-item .item-subtitle,
.payment-info .pi-value,
.payment-info .pi-label,
.ga-contact-item,
.ga-contact-item a,
.ga-contact-item span {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: none;
}

/* ============================================
   BACKGROUND LAYER
   ============================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.48;
}
.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 26, 0.16), rgba(8, 14, 26, 0.74)),
    radial-gradient(circle at top, rgba(255,255,255,0.03), transparent 55%);
}
[data-theme="fire"] .bg-layer::after {
  background:
    linear-gradient(180deg, rgba(26, 8, 0, 0.14), rgba(26, 8, 0, 0.76)),
    radial-gradient(circle at top, rgba(255,160,90,0.04), transparent 55%);
}
.bg-layer img,
.bg-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 40%),
    var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.loading-screen.active {
  opacity: 1;
  pointer-events: all;
}
.loading-content {
  text-align: center;
  padding: 20px;
}
.loading-spinner {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  position: relative;
}
.loading-spinner img,
.loading-spinner video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.loading-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ice-spinner {
  width: 84px;
  height: 84px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner-ring {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 50%;
  animation: spinRing 1.5s linear infinite;
}
.spinner-ring:nth-child(1) {
  width: 74px;
  height: 74px;
  border-top-color: var(--primary);
  border-bottom-color: var(--primary);
}
.spinner-ring:nth-child(2) {
  width: 58px;
  height: 58px;
  border-left-color: var(--accent);
  border-right-color: var(--accent);
  animation-direction: reverse;
  animation-duration: 1.2s;
}
.spinner-ring:nth-child(3) {
  width: 42px;
  height: 42px;
  border-top-color: var(--primary-light);
  animation-duration: 0.9s;
}
.spinner-icon {
  font-size: 18px;
  color: var(--primary);
  animation: pulse 1.5s ease-in-out infinite;
  z-index: 1;
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.84; }
  50% { transform: scale(1.18); opacity: 1; }
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
  width: 100%;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-height);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gradient-topbar);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
}
.site-logo {
  height: 38px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
}
.site-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 900;
  max-width: 170px;
  line-height: 1.25;
}

.ice-text {
  background: linear-gradient(180deg, #e0f7ff 0%, #00d4ff 40%, #0080aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
  position: relative;
}
[data-theme="fire"] .ice-text {
  background: linear-gradient(180deg, #fff4e0 0%, #ff6b35 40%, #cc4400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.5));
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Balance Container */
.balance-container {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent), var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 5px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.balance-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 78px;
}
.balance-primary {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}
.balance-secondary {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.2;
}
.balance-currency {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.8;
  letter-spacing: 0.5px;
}
.balance-swap-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 10px;
  transition: all var(--transition-fast);
  background: var(--bg-glass);
  border: 1px solid transparent;
}
.balance-swap-btn:active {
  transform: rotate(180deg) scale(0.92);
  color: var(--primary);
  border-color: var(--border-glow);
}
.topup-btn-small {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-fast);
}
.topup-btn-small:active {
  transform: scale(0.9);
}

.login-btn {
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-fast);
}
.login-btn:active {
  transform: scale(0.95);
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: var(--bottomnav-height);
  background: var(--gradient-bottomnav);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -16px 32px rgba(0,0,0,0.18);
}
.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  transition: color var(--transition-fast), transform var(--transition-fast);
  position: relative;
  min-width: 0;
}
.nav-item i {
  font-size: 18px;
  transition: all var(--transition-fast);
}
.nav-item.active {
  color: var(--primary);
}
.nav-item.active i {
  filter: drop-shadow(0 0 8px var(--primary-glow));
}
.nav-item:active {
  transform: translateY(-1px);
}

.nav-topup {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.topup-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 21px;
  box-shadow: 0 -4px 20px var(--primary-glow);
  position: relative;
  top: -14px;
  transition: all var(--transition-fast);
  border: 3px solid var(--bg-primary);
}
.topup-circle::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  opacity: 0.28;
  z-index: -1;
  animation: topupPulse 2s ease-in-out infinite;
  filter: blur(2px);
}
@keyframes topupPulse {
  0%, 100% { transform: scale(1); opacity: 0.28; }
  50% { transform: scale(1.16); opacity: 0.1; }
}
.nav-topup:active .topup-circle {
  transform: scale(0.92);
}

/* ============================================
   PAGES CONTAINER
   ============================================ */
.pages-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottomnav-height) + 14px);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.page {
  display: none;
  padding: 14px;
  min-height: 100%;
  animation: pageIn 0.32s ease;
}
.page.active {
  display: block;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Headers */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 18px;
}
.page-inner-header {
  padding: 8px 0 18px;
}
.page-inner-header h2,
.page-header .page-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.back-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.back-btn:active {
  background: var(--primary);
  color: #fff;
  transform: scale(0.94);
}

/* ============================================
   BANNER SECTION
   ============================================ */
.banner-section {
  margin-bottom: 16px;
  position: relative;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}
.banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/8.7;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}
.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.12));
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 0 2px;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  opacity: 0.34;
  cursor: pointer;
  transition: all var(--transition-normal);
}
.banner-dot.active {
  width: 26px;
  background: var(--primary);
  opacity: 1;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* ============================================
   LIVE TEXT
   ============================================ */
.live-text-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--error);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.live-dot {
  font-size: 6px;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.live-text-wrapper {
  overflow: hidden;
  flex: 1;
}
.live-text {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  animation: scrollText 20s linear infinite;
}
@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============================================
   CATEGORY TABS
   ============================================ */
.category-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.category-tab i {
  font-size: 12px;
}
.category-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.category-tab:not(.active):active {
  background: var(--bg-glass-strong);
  transform: translateY(-1px);
}

.tab-content {
  position: relative;
}
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-pane.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.category-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255,255,255,0.05), transparent 35%),
    radial-gradient(circle at top right, rgba(255,255,255,0.04), transparent 30%);
  opacity: 0.85;
  pointer-events: none;
}
.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.45;
}
.category-card:active,
.category-card:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent), var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}
.category-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent), var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-icon i {
  font-size: 22px;
  color: var(--primary);
}
.category-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 9px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.category-sold {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.category-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--warning);
}
.category-stars i {
  font-size: 8px;
}

/* ============================================
   CATEGORY DETAIL PAGE
   ============================================ */
.category-banner {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.category-banner img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Player ID Section */
.player-id-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.player-id-section .input-group {
  margin-bottom: 12px;
}
.player-id-section .input-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.check-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-glow);
}
.check-btn:active {
  transform: scale(0.975);
}
.check-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.player-info {
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.08), rgba(0, 230, 118, 0.03));
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 12px;
}
.player-info .pi-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
}
.player-info .pi-row i {
  width: 16px;
  text-align: center;
  color: var(--success);
  font-size: 12px;
  margin-top: 1px;
}
.player-info .pi-label {
  color: var(--text-secondary);
  font-weight: 600;
  min-width: 86px;
}
.player-info .pi-value {
  color: var(--text-primary);
  font-weight: 700;
  margin-left: auto;
  text-align: right;
  flex: 1;
}

/* Custom Inputs Section */
.custom-inputs-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.custom-inputs-section .input-group {
  margin-bottom: 12px;
}
.custom-inputs-section .input-group:last-child {
  margin-bottom: 0;
}
.custom-inputs-section label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ============================================
   PRODUCTS LIST
   ============================================ */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ice-shimmer);
  transform: translateX(-100%);
  transition: transform 0.6s;
  pointer-events: none;
}
.product-card:active::after {
  transform: translateX(100%);
}
.product-card:active,
.product-card:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent), var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateY(-2px);
}
.product-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent), var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-icon i {
  font-size: 20px;
  color: var(--primary);
}
.product-info {
  flex: 1;
  min-width: 0;
}
.product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}
.product-amount {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.45;
}
.product-stock {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.product-stock .in-stock {
  color: var(--success);
}
.product-stock .out-stock {
  color: var(--error);
}
.product-right {
  text-align: right;
  flex-shrink: 0;
}
.product-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.product-price-currency {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}
.product-eta {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
}
.product-eta i {
  font-size: 8px;
}
.product-sold-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--error);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 0 0 0 var(--radius-sm);
  text-transform: uppercase;
}

/* ============================================
   GAME ACCOUNT CARDS
   ============================================ */
.game-accounts-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.game-account-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.game-account-card:active,
.game-account-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateY(-3px);
}
.ga-card-images {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-glass);
}
.ga-card-images img,
.ga-card-images video,
.ga-card-images iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ga-card-images .ga-img-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.ga-card-body {
  padding: 14px;
}
.ga-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.ga-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}
.ga-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ga-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.ga-card-platforms {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ga-platform-tag {
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.ga-see-more {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--border-color);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.ga-see-more:active {
  background: var(--bg-glass);
}

.game-account-detail {
  padding-bottom: 20px;
}
.ga-detail-gallery {
  margin-bottom: 16px;
  position: relative;
}
.ga-detail-gallery .gallery-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  padding: 4px;
  scrollbar-width: none;
}
.ga-detail-gallery .gallery-slider::-webkit-scrollbar { display: none; }
.ga-detail-gallery .gallery-slide {
  min-width: 88%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-glass);
  box-shadow: var(--shadow-md);
}
.ga-detail-gallery .gallery-slide img,
.ga-detail-gallery .gallery-slide video,
.ga-detail-gallery .gallery-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ga-detail-info {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.ga-detail-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.ga-detail-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 12px;
  white-space: pre-wrap;
}
.ga-detail-row {
  display: flex;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-color);
  gap: 10px;
}
.ga-detail-row:last-child {
  border-bottom: none;
}
.ga-detail-row .dr-label {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.ga-detail-row .dr-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.ga-detail-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.ga-detail-price {
  font-size: 25px;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  box-shadow: var(--shadow-glow);
}
.ga-detail-contacts {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
}
.ga-detail-contacts h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.ga-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.ga-contact-item:last-child {
  border-bottom: none;
}
.ga-contact-item a {
  font-weight: 700;
  color: var(--primary);
}
.ga-contact-item .contact-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 12px;
  flex-shrink: 0;
}
.ga-buy-btn {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-glow-strong);
  transition: all var(--transition-fast);
}
.ga-buy-btn:active {
  transform: scale(0.975);
}
.ga-buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   FEEDBACK SECTION
   ============================================ */
.feedback-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}
.feedback-section h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feedback-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.feedback-avg {
  text-align: center;
  min-width: 64px;
}
.feedback-avg-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--warning);
}
.feedback-avg-stars {
  display: flex;
  gap: 2px;
  justify-content: center;
  color: var(--warning);
  font-size: 11px;
  margin-top: 2px;
}
.feedback-avg-count {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.feedback-bars {
  flex: 1;
}
.fb-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.fb-bar-label {
  font-size: 10px;
  color: var(--text-muted);
  min-width: 12px;
  text-align: right;
}
.fb-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-glass-strong);
  border-radius: 999px;
  overflow: hidden;
}
.fb-bar-fill {
  height: 100%;
  background: var(--warning);
  border-radius: 999px;
  transition: width var(--transition-normal);
}
.fb-bar-count {
  font-size: 10px;
  color: var(--text-muted);
  min-width: 20px;
}
.feedback-list {
  max-height: 320px;
  overflow-y: auto;
}
.feedback-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.feedback-item:last-child {
  border-bottom: none;
}
.fb-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.fb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fb-avatar i {
  font-size: 14px;
  color: var(--text-muted);
}
.fb-body {
  flex: 1;
  min-width: 0;
}
.fb-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.fb-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.fb-stars {
  display: flex;
  gap: 1px;
  color: var(--warning);
  font-size: 9px;
}
.fb-stars i.empty {
  color: var(--text-muted);
  opacity: 0.3;
}
.fb-message {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.fb-date {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
}
.write-feedback-btn {
  width: 100%;
  padding: 11px;
  margin-top: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.write-feedback-btn:active {
  background: var(--primary);
  color: #fff;
}
.stars-input {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}
.stars-input i {
  font-size: 28px;
  color: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.stars-input i.active {
  color: var(--warning);
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 171, 64, 0.5));
}

/* ============================================
   CATEGORY GUIDE
   ============================================ */
.category-guide {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}
.category-guide h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.guide-video {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-glass);
  min-height: 220px;
}
.guide-video video,
.guide-video iframe,
.guide-video img {
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  object-fit: cover;
  border: none;
  display: block;
}
.guide-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.72;
  white-space: pre-wrap;
}

/* ============================================
   HISTORY / ORDERS
   ============================================ */
.history-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.htab {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-fast);
}
.htab.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.order-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.order-card:active,
.order-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-1px);
}
.order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}
.order-game {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.order-game-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-glass);
  flex-shrink: 0;
}
.order-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-game-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.order-status {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.order-status.completed {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(0, 230, 118, 0.2);
}
.order-status.pending,
.order-status.processing {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(255, 171, 64, 0.2);
}
.order-status.failed,
.order-status.canceled,
.order-status.refunded {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(255, 82, 82, 0.2);
}
.order-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}
.order-product {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.order-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.order-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
}
.order-id {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'Rajdhani', monospace;
  margin-top: 2px;
  word-break: break-all;
}

.empty-state {
  text-align: center;
  padding: 42px 20px;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.3;
}
.empty-state p {
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================
   NEWS LIST
   ============================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.news-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.news-card:active,
.news-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.news-media {
  overflow: hidden;
  background: var(--bg-glass);
}
.news-media img,
.news-media video,
.news-media iframe {
  width: 100%;
  max-width: 100%;
  display: block;
  border: none;
}
.news-body {
  padding: 14px;
}
.news-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.45;
}
.news-content {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.news-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.news-social-btn {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}
.news-social-btn:active {
  background: var(--primary);
  color: #fff;
}
.news-social-btn.verified {
  background: var(--success-bg);
  border-color: rgba(0, 230, 118, 0.3);
  color: var(--success);
}
.news-social-btn.failed-verify {
  background: var(--error-bg);
  border-color: rgba(255, 82, 82, 0.3);
  color: var(--error);
}
.news-claim-section {
  padding: 12px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.claim-btn {
  padding: 11px 24px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-fast);
}
.claim-btn:active {
  transform: scale(0.95);
}
.claim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.claim-btn.claimed {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(0, 230, 118, 0.3);
  box-shadow: none;
}
.claim-choose {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.claim-choose-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.claim-choose-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-glass);
}
.news-date {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
}
.news-claim-history {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}
.news-claim-history h5 {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.claim-user-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  font-size: 11px;
  color: var(--text-secondary);
}
.claim-user-item .claim-amount {
  margin-left: auto;
  color: var(--success);
  font-weight: 700;
  text-align: right;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-header {
  text-align: center;
  padding: 22px 0;
}
.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar i {
  font-size: 28px;
  color: var(--text-muted);
}
.profile-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}
.profile-username {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card i {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 6px;
}
.stat-value {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.profile-menu-item i:first-child {
  width: 20px;
  text-align: center;
  color: var(--primary);
}
.profile-menu-item span {
  flex: 1;
}
.profile-menu-item i:last-child {
  color: var(--text-muted);
  font-size: 12px;
}
.profile-menu-item:active {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}
.profile-menu-item.logout-item {
  border-color: rgba(255, 82, 82, 0.2);
}
.profile-menu-item.logout-item i:first-child {
  color: var(--error);
}
.profile-menu-item.logout-item:active {
  background: var(--error-bg);
}

/* ============================================
   LEADERBOARD
   ============================================ */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.lb-card.top-1 {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), transparent), var(--gradient-card-strong);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
}
.lb-card.top-2 {
  border-color: #c0c0c0;
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.08), transparent), var(--gradient-card-strong);
}
.lb-card.top-3 {
  border-color: #cd7f32;
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.08), transparent), var(--gradient-card-strong);
}
.lb-rank {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-color);
}
.lb-rank.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: none;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  font-size: 14px;
}
.lb-rank.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  border: none;
}
.lb-rank.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #a0632e);
  border: none;
}
.lb-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-glass);
  flex-shrink: 0;
}
.lb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lb-info {
  flex: 1;
  min-width: 0;
}
.lb-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.lb-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lb-title.crown { color: #ffd700; }
.lb-title.ace-diamond { color: #00bfff; }
.lb-title.ace-master { color: #9370db; }
.lb-title.ace { color: #ff6347; }
.lb-title.diamond { color: #00ced1; }
.lb-title.platinum { color: #87ceeb; }
.lb-title.gold { color: #ffd700; }
.lb-title.silver { color: #c0c0c0; }
.lb-title.bronze { color: #cd7f32; }
.lb-title.default-rank { color: var(--text-muted); }
.lb-amount {
  text-align: right;
  flex-shrink: 0;
}
.lb-spent {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}
.lb-currency {
  font-size: 9px;
  color: var(--text-muted);
}

/* ============================================
   TRANSACTIONS
   ============================================ */
.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tx-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.tx-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.tx-icon.deposit {
  background: var(--success-bg);
  color: var(--success);
}
.tx-icon.purchase {
  background: var(--error-bg);
  color: var(--error);
}
.tx-icon.refund {
  background: var(--info-bg);
  color: var(--info);
}
.tx-icon.admin {
  background: var(--warning-bg);
  color: var(--warning);
}
.tx-icon.claim {
  background: rgba(123, 104, 238, 0.1);
  color: var(--accent);
}
.tx-info {
  flex: 1;
  min-width: 0;
}
.tx-desc {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}
.tx-date {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
}
.tx-amount {
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  white-space: nowrap;
}
.tx-amount.positive {
  color: var(--success);
}
.tx-amount.negative {
  color: var(--error);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.modal.active {
  opacity: 1;
  pointer-events: all;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-xl);
}
.modal.active .modal-content {
  transform: translateY(0);
}
.modal-content.modal-sm { max-height: 70vh; }
.modal-content.modal-md { max-height: 82vh; }
.modal-content.modal-lg { max-height: 92vh; }
.modal-content.modal-center {
  border-radius: var(--radius-xl);
  max-height: 88vh;
  margin: auto;
  max-width: 430px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
}
.modal-header h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-header h3 i {
  color: var(--primary);
}
.modal-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.modal-close:active {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
  transform: scale(0.94);
}
.modal-body {
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* ============================================
   LOGIN MODAL
   ============================================ */
.login-desc {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.7;
}
.telegram-widget-container {
  display: flex;
  justify-content: center;
  padding: 16px 0;
  min-height: 60px;
}
.login-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.login-features .feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
}
.login-features .feature i {
  color: var(--primary);
  width: 18px;
  text-align: center;
}

/* ============================================
   TOPUP MODAL
   ============================================ */
.topup-currency-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.tcur-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-fast);
}
.tcur-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.topup-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.72;
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  white-space: pre-wrap;
}
.topup-limits {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: var(--info-bg);
  border: 1px solid rgba(68, 138, 255, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--info);
  flex-wrap: wrap;
}
.topup-form .input-group {
  margin-bottom: 12px;
}
.topup-form .input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.input-error {
  display: block;
  font-size: 11px;
  color: var(--error);
  margin-top: 4px;
  min-height: 16px;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.payment-method-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.payment-method-card:active,
.payment-method-card.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}
.payment-method-card .pm-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-glass);
}
.payment-method-card .pm-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.payment-method-card .pm-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.selected-payment {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.payment-info {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
}
.payment-info .pi-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
}
.payment-info .pi-row:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}
.payment-info .pi-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.payment-info .pi-value {
  color: var(--text-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.copy-btn {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 10px;
  transition: all var(--transition-fast);
}
.copy-btn:active {
  background: var(--primary);
  color: #fff;
}

.file-upload {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(255,255,255,0.01);
}
.file-upload:hover,
.file-upload.dragover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-glass);
}
.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-upload i {
  font-size: 24px;
}
.receipt-preview {
  margin-top: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 220px;
}
.receipt-preview img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-fast);
  margin-top: 12px;
}
.submit-btn:active {
  transform: scale(0.97);
}
.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.submit-btn.loading {
  pointer-events: none;
}
.submit-btn.loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinRing 0.6s linear infinite;
  margin-left: 6px;
}

/* ============================================
   ORDER CONFIRMATION MODAL
   ============================================ */
.order-confirm {
  text-align: center;
}
.order-confirm-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.order-confirm-icon.cart {
  background: var(--primary-glow);
  color: var(--primary);
}
.order-confirm h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
}
.order-summary {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 16px;
  text-align: left;
}
.order-summary .os-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}
.order-summary .os-row:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}
.order-summary .os-label {
  color: var(--text-muted);
  font-weight: 700;
}
.order-summary .os-value {
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  flex: 1;
}
.order-summary .os-total {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
}
.order-balance-warning {
  font-size: 12px;
  color: var(--error);
  padding: 9px 10px;
  background: var(--error-bg);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}
.confirm-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-glow-strong);
  transition: all var(--transition-fast);
}
.confirm-btn:active {
  transform: scale(0.97);
}
.confirm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   RECEIPT MODAL / ORDER RESULT
   ============================================ */
.receipt-container {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow-md);
}
.receipt-top {
  text-align: center;
  padding: 20px 16px 16px;
  background: var(--gradient-card);
  border-bottom: 1px dashed var(--border-color);
  position: relative;
}
.receipt-logo {
  width: 50px;
  height: 50px;
  margin: 0 auto 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.receipt-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.receipt-site-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.4;
}
.receipt-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  margin-top: 8px;
}
.receipt-status.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(0, 230, 118, 0.3);
}
.receipt-status.processing {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(255, 171, 64, 0.3);
}
.receipt-status.failed {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(255, 82, 82, 0.3);
}
.receipt-status i {
  font-size: 14px;
}
.receipt-body {
  padding: 16px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}
.receipt-row:last-child {
  border-bottom: none;
}
.receipt-label {
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.receipt-label i {
  width: 14px;
  text-align: center;
  font-size: 11px;
}
.receipt-value {
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  flex: 1;
}
.receipt-total-row {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid var(--border-color);
}
.receipt-total-row .receipt-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}
.receipt-delivery {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.receipt-delivery h5 {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.receipt-delivery-item {
  font-size: 12px;
  color: var(--text-primary);
  padding: 4px 0;
  font-family: 'Rajdhani', monospace;
  word-break: break-all;
}
.receipt-footer {
  text-align: center;
  padding: 12px 16px 16px;
  border-top: 1px dashed var(--border-color);
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.6;
}
.receipt-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.save-receipt-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.save-receipt-btn:active {
  transform: scale(0.97);
}
.close-receipt-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.close-receipt-btn:active {
  background: var(--bg-card-hover);
}

/* ============================================
   CLAIM BOX ANIMATION
   ============================================ */
.claim-box-container {
  text-align: center;
  padding: 16px;
}
.claim-box-animation {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  position: relative;
}
.claim-box-animation .box-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  animation: boxShake 0.8s ease-in-out;
}
@keyframes boxShake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-8deg); }
  30% { transform: rotate(8deg); }
  45% { transform: rotate(-5deg); }
  60% { transform: rotate(5deg); }
  75% { transform: rotate(-2deg); }
  90% { transform: rotate(2deg); }
}
.claim-box-opened {
  animation: boxOpen 0.6s ease forwards;
}
@keyframes boxOpen {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(0.9); opacity: 0.5; }
}
.claim-reward-reveal {
  animation: rewardReveal 0.8s ease forwards;
}
@keyframes rewardReveal {
  0% { opacity: 0; transform: scale(0.5) translateY(20px); }
  50% { transform: scale(1.1) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.claim-reward-amount {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}
.claim-reward-text {
  font-size: 14px;
  color: var(--text-secondary);
}
.claim-countdown {
  font-size: 12px;
  color: var(--warning);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: calc(var(--topbar-height) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 0 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: toastIn 0.4s ease, toastOut 0.4s ease 3.6s forwards;
  pointer-events: all;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  line-height: 1.5;
}
.toast i {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.toast.success {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--success);
}
.toast.error {
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: var(--error);
}
.toast.warning {
  background: rgba(255, 171, 64, 0.15);
  border: 1px solid rgba(255, 171, 64, 0.3);
  color: var(--warning);
}
.toast.info {
  background: rgba(68, 138, 255, 0.15);
  border: 1px solid rgba(68, 138, 255, 0.3);
  color: var(--info);
}
.toast.deposit-toast {
  background: rgba(0, 230, 118, 0.2);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--success);
  animation: toastIn 0.4s ease, toastOut 0.4s ease 5.6s forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

/* ============================================
   TELEGRAM EMBED / SMART MEDIA SUPPORT
   ============================================ */
.telegram-embed-wrap,
.telegram-smart-media,
.news-social-embed {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.telegram-embed-wrap iframe,
.telegram-smart-media iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  background: transparent;
}
.telegram-smart-media img,
.telegram-smart-media video,
.news-social-embed img,
.news-social-embed video,
.news-social-embed iframe {
  width: 100%;
  max-width: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}
.ga-card-images .telegram-smart-media,
.ga-card-images .telegram-embed-wrap,
.ga-detail-gallery .telegram-smart-media,
.ga-detail-gallery .telegram-embed-wrap,
.news-media .telegram-smart-media,
.news-media .telegram-embed-wrap,
.guide-video .telegram-smart-media,
.guide-video .telegram-embed-wrap {
  height: 100%;
}
.ga-card-images .telegram-smart-media img,
.ga-card-images .telegram-smart-media video,
.ga-card-images .telegram-smart-media iframe,
.ga-detail-gallery .telegram-smart-media img,
.ga-detail-gallery .telegram-smart-media video,
.ga-detail-gallery .telegram-smart-media iframe,
.news-media .telegram-smart-media img,
.news-media .telegram-smart-media video,
.news-media .telegram-smart-media iframe {
  height: 100%;
  min-height: inherit;
}
.guide-video .telegram-smart-media iframe,
.guide-video .telegram-embed-wrap iframe {
  min-height: 260px;
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-auth-gate:not(.active) {
  display: none;
}
.auth-gate-content {
  text-align: center;
}
.auth-gate-content p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.not-found-page {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}
.not-found-content {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.not-found-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.not-found-content p {
  font-size: 16px;
  color: #888;
  margin-bottom: 24px;
}
.not-found-link {
  color: #0070f3;
  font-size: 14px;
  text-decoration: underline;
}

.admin-body {
  /* keep body fixed */
}

.admin-dashboard {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-top-bar {
  position: relative;
  z-index: 100;
  height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-topbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.admin-menu-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 16px;
}
.admin-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-title i {
  color: var(--warning);
}
.admin-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.admin-api-balance {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--success);
}

.admin-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.admin-sidebar {
  width: 230px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}
@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    top: 58px;
    left: 0;
    bottom: 0;
    z-index: 99;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
}
.admin-nav {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
  position: relative;
}
.admin-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}
.admin-nav-item:hover,
.admin-nav-item:active {
  background: var(--bg-glass);
  color: var(--text-primary);
}
.admin-nav-item.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.admin-nav-item .badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--error);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y pan-x;
  padding: 20px;
  min-width: 0;
}
@media (max-width: 768px) {
  .admin-content {
    padding: 12px;
  }
}

.admin-section {
  display: none;
  animation: fadeIn 0.3s ease;
}
.admin-section.active {
  display: block;
}
.admin-section h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-section h2 i {
  color: var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gradient-primary);
}
.stat-box i {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
}
.stat-lbl {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.form-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.form-grid .full-width {
  grid-column: 1 / -1;
}
.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.form-inline .input-group {
  flex: 1;
  min-width: 180px;
}
.input-group {
  display: flex;
  flex-direction: column;
}
.input-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.input-group label input[type="checkbox"] {
  width: auto;
  margin-right: 4px;
}

.admin-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.admin-btn.primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.admin-btn.primary:active {
  transform: scale(0.97);
}
.admin-btn.success {
  background: var(--success);
  color: #fff;
}
.admin-btn.danger {
  background: var(--error);
  color: #fff;
}
.admin-btn.warning {
  background: var(--warning);
  color: #000;
}
.admin-btn.small {
  padding: 6px 12px;
  font-size: 11px;
}
.admin-btn.large {
  padding: 14px 28px;
  font-size: 15px;
  width: 100%;
  justify-content: center;
}
.admin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-upload {
  padding: 14px;
  font-size: 12px;
}
.admin-upload i {
  font-size: 18px;
}

.sub-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
}
.sub-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.banners-list,
.cat-banners-list,
.pages-list,
.categories-list-admin,
.products-list-admin,
.game-accounts-list,
.input-tables-list,
.news-list-admin,
.payments-list-admin,
.deposits-list,
.users-list,
.orders-list-admin {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}
.admin-list-item:hover {
  border-color: var(--border-glow);
}
.admin-list-item .item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-glass);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-list-item .item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-list-item .item-icon i {
  font-size: 16px;
  color: var(--primary);
}
.admin-list-item .item-info {
  flex: 1;
  min-width: 0;
}
.admin-list-item .item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}
.admin-list-item .item-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.5;
}
.admin-list-item .item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-list-item .item-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.item-badge.pending {
  background: var(--warning-bg);
  color: var(--warning);
}
.item-badge.approved {
  background: var(--success-bg);
  color: var(--success);
}
.item-badge.rejected {
  background: var(--error-bg);
  color: var(--error);
}

.deposit-admin-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 8px;
}
.deposit-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}
.deposit-admin-user {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.deposit-admin-amount {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
  white-space: nowrap;
}
.deposit-admin-details {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}
.deposit-admin-receipt {
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 220px;
}
.deposit-admin-receipt img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  cursor: pointer;
}
.deposit-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.deposit-tabs,
.payment-type-tabs,
.products-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.dtab, .ptype-tab, .ptab {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-fast);
}
.dtab.active, .ptype-tab.active, .ptab.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.search-bar input {
  flex: 1;
}
.search-bar .search-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-detail-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 16px;
  animation: slideDown 0.3s ease;
}
.user-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.user-detail-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.user-detail-body {
  margin-bottom: 16px;
}
.user-detail-body .ud-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}
.user-detail-body .ud-row:last-child {
  border-bottom: none;
}
.user-detail-body .ud-label {
  color: var(--text-muted);
  font-weight: 700;
}
.user-detail-body .ud-value {
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}
.user-actions {
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.balance-action-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
  flex-wrap: wrap;
}
.balance-action-row select {
  width: 84px;
  flex-shrink: 0;
}
.balance-action-row input {
  flex: 1;
  min-width: 100px;
}

.orders-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.orders-filter select {
  flex: 1;
}

.api-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.api-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.api-card h4 {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.api-balance {
  font-size: 24px;
  font-weight: 900;
  color: var(--success);
  font-family: 'Rajdhani', sans-serif;
}
.api-status {
  font-size: 14px;
  font-weight: 700;
}
.api-status.online {
  color: var(--success);
}
.api-status.offline {
  color: var(--error);
}
.api-categories-list {
  margin-top: 12px;
}

.settings-group {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}
.settings-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.current-file {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}
.current-file img {
  max-width: 120px;
  max-height: 80px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.dynamic-inputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dynamic-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.dynamic-input-row input {
  flex: 1;
}
.dynamic-input-row.contact-row .contact-name {
  width: 35%;
  flex: none;
}
.dynamic-input-row.contact-row .contact-value {
  flex: 1;
}
.remove-row-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--error-bg);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: var(--error);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.remove-row-btn:active {
  background: var(--error);
  color: #fff;
}
.add-row-btn {
  padding: 8px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px dashed var(--border-color);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
  transition: all var(--transition-fast);
}
.add-row-btn:active {
  background: var(--bg-card);
  border-style: solid;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.checkbox-item:has(input:checked) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-card);
}
.checkbox-item input {
  width: auto;
  accent-color: var(--primary);
}

.claim-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  animation: slideDown 0.3s ease;
}

.recent-activity h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gradient-card-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
}
.activity-item i {
  color: var(--primary);
  width: 16px;
  text-align: center;
  margin-top: 1px;
}
.activity-item .activity-time {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================
   ICE & FIRE THEME EFFECTS
   ============================================ */
[data-theme="ice"] .category-card::selection,
[data-theme="ice"] .product-card::selection {
  background: rgba(0, 212, 255, 0.22);
}

[data-theme="ice"] .category-card::after,
[data-theme="ice"] .product-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(200, 230, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="fire"] .category-card {
  box-shadow: inset 0 0 30px rgba(255, 107, 53, 0.03), var(--shadow-sm);
}
[data-theme="fire"] .nav-item.active i {
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
}
[data-theme="fire"] .topup-circle {
  box-shadow: 0 -4px 20px rgba(255, 107, 53, 0.4);
}
[data-theme="fire"] .topup-circle::before {
  animation-name: fireTopupPulse;
}
@keyframes fireTopupPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.15; }
}

[data-theme="ice"] .submit-btn,
[data-theme="ice"] .confirm-btn,
[data-theme="ice"] .claim-btn,
[data-theme="ice"] .ga-buy-btn {
  position: relative;
  overflow: hidden;
}
[data-theme="ice"] .submit-btn::before,
[data-theme="ice"] .confirm-btn::before,
[data-theme="ice"] .claim-btn::before,
[data-theme="ice"] .ga-buy-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -100%;
  width: 60%;
  height: calc(100% + 4px);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: iceShine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes iceShine {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

[data-theme="fire"] .submit-btn::before,
[data-theme="fire"] .confirm-btn::before,
[data-theme="fire"] .claim-btn::before,
[data-theme="fire"] .ga-buy-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.6), transparent);
  animation: fireGlow 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fireGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

[data-theme="ice"] .check-btn,
[data-theme="ice"] .submit-btn,
[data-theme="ice"] .confirm-btn,
[data-theme="ice"] .admin-btn.primary,
[data-theme="ice"] .claim-btn {
  clip-path: polygon(
    8px 0%, calc(100% - 8px) 0%,
    100% 8px, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 8px 100%,
    0% calc(100% - 8px), 0% 8px
  );
}

[data-theme="fire"] .check-btn,
[data-theme="fire"] .submit-btn,
[data-theme="fire"] .confirm-btn,
[data-theme="fire"] .admin-btn.primary,
[data-theme="fire"] .claim-btn {
  clip-path: polygon(
    0% 4px, 4px 0%,
    calc(100% - 4px) 0%, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) 100%,
    4px 100%, 0% calc(100% - 4px)
  );
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 501px) {
  .app-container {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 32px 80px rgba(0,0,0,0.25);
  }
}

@media (max-width: 420px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .category-card {
    padding: 12px 8px 10px;
  }
}

@media (max-width: 380px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .balance-container {
    padding: 3px 6px;
  }
  .balance-primary {
    font-size: 11px;
  }
  .site-name {
    font-size: 12px;
    max-width: 100px;
  }
  .profile-stats {
    grid-template-columns: 1fr 1fr;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .top-bar {
    padding: 0 10px;
  }
  .page {
    padding: 10px;
  }
  .modal-body {
    padding: 14px;
  }
}

/* ============================================
   TELEGRAM WEB APP ADJUSTMENTS
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(var(--bottomnav-height) + env(safe-area-inset-bottom));
  }
  .pages-container {
    padding-bottom: calc(var(--bottomnav-height) + env(safe-area-inset-bottom) + 10px);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden { display: none !important; }
.visible { display: block !important; }
.flex { display: flex !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary-color { color: var(--primary); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius-md); }
.border { border: 1px solid var(--border-color); }
.bg-card { background: var(--bg-card); }
.overflow-hidden { overflow: hidden; }
.allow-full-text,
.allow-full-text * {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  max-height: none !important;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-strong) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text {
  height: 12px;
  margin-bottom: 6px;
}
.skeleton-text.short {
  width: 60%;
}
.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}
.skeleton-card {
  height: 80px;
  border-radius: var(--radius-md);
}
.skeleton-banner {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  body {
    background: #fff;
    color: #000;
    position: static;
    overflow: visible;
  }
  .top-bar,
  .bottom-nav,
  .modal-close,
  .receipt-actions,
  .back-btn {
    display: none !important;
  }
  .receipt-container {
    border: 1px solid #ddd;
    box-shadow: none;
    background: #fff;
  }
}

.region-check-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,.08);
}
