/* ================================================================
   RESALL631 SHOP — Dark Cyber Mecha Theme
   Exact Match with User Provided Screenshot (5th screenshot)
   ================================================================ */

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

:root {
  --bg: #070709;
  --bg-2: #0d0d11;
  --bg-3: #14141a;
  --bg-4: #1b1b24;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-glow: rgba(255, 255, 255, 0.5);
  
  --text: #f0f0f5;
  --text-2: #9292a0;
  --text-3: #585866;
  --white: #ffffff;
  --black: #000000;
  
  /* Role Colors */
  --gold-glow: rgba(255, 215, 0, 0.4);
  --resell-blue: #38bdf8;
  --resell-glow: rgba(56, 189, 248, 0.35);

  --success: #34d399;
  --error: #f87171;
  --warning: #fbbf24;
  
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  --sidebar-w: 230px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  width: 100%;
  max-width: 100%;
  font-family: 'Prompt', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
}

svg {
  box-sizing: content-box;
  max-width: 100%;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
}

.view {
  display: none !important;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.view.active {
  display: flex !important;
}

#view-dashboard:not(.active),
#view-dashboard:not(.active) .sidebar {
  display: none !important;
}

/* ─── ROLE STYLING ─── */
.role-admin,
.role-name-admin {
  background: linear-gradient(135deg, #fff3a8 0%, #ffd700 35%, #ff9e00 70%, #ffd700 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  display: inline-block;
  animation: goldShimmer 3s ease infinite, adminFloat 2.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.35));
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes adminFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-1px); }
}

.role-resell,
.role-name-resell {
  color: var(--resell-blue);
  font-weight: 600;
  text-shadow: 0 0 10px var(--resell-glow);
  display: inline-block;
}

.role-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.role-pill.admin {
  background: rgba(255, 215, 0, 0.12);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.role-pill.resell {
  background: rgba(56, 189, 248, 0.12);
  color: var(--resell-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ─── AUTH VIEWS ─── */
#view-login.active, #view-pin.active {
  min-height: 100vh;
  width: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: slideUp 0.35s ease;
}

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

.brand-logo.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.custom-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.brand-img-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; color: var(--white); }
.brand-sub { font-size: 10px; color: var(--text-2); letter-spacing: 0.12em; font-weight: 600; }

.auth-title { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.auth-desc { font-size: 12.5px; color: var(--text-2); margin-bottom: 20px; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.input-group { display: flex; flex-direction: column; gap: 5px; }
.input-group label { font-size: 12px; color: var(--text-2); font-weight: 500; }

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

.input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: var(--transition);
}

.input-wrap input:focus {
  border-color: var(--border-hover);
  background: var(--bg-4);
}

.input-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  pointer-events: none;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  display: flex;
  align-items: center;
}
.toggle-pw svg { width: 16px; height: 16px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary:hover { background: #e4e4e7; transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary.full { width: 100%; }

.error-msg {
  font-size: 12px;
  color: var(--error);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.hidden { display: none !important; }

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
}
.auth-footer code {
  color: var(--text);
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

/* ─── PIN VIEW ─── */
.pin-card { max-width: 340px; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 20px 0 14px; }
.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  background: transparent;
  transition: var(--transition);
}
.pin-dot.filled { background: var(--white); border-color: var(--white); transform: scale(1.15); }
.pin-dot.error { border-color: var(--error); background: var(--error); }

.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.num-btn {
  height: 50px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.num-btn:hover { background: var(--bg-4); border-color: var(--border-hover); }
.num-btn svg { width: 18px; height: 18px; }
.num-back { background: transparent; color: var(--text-2); }

/* ─── DASHBOARD LAYOUT ─── */
#view-dashboard.active {
  display: flex !important;
  flex-direction: row;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.brand-meta { display: flex; flex-direction: column; }
.brand-title { font-size: 14px; font-weight: 800; color: var(--white); letter-spacing: 0.05em; }

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-item.active { color: var(--black); background: var(--white); font-weight: 600; }

.nav-divider {
  padding: 12px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--white);
  color: var(--black);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12.5px; font-weight: 700; }
.user-role-text { font-size: 10.5px; color: var(--text-3); display: block; }

.logout-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
}
.logout-btn:hover { color: var(--error); }
.logout-btn svg { width: 16px; height: 16px; }

/* ─── MAIN CONTENT ─── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background: rgba(7, 7, 9, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-title { flex: 1; font-size: 15px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-badge-top { display: flex; align-items: center; gap: 6px; }
.username-top { font-size: 12.5px; font-weight: 600; }

.balance-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
}
.balance-chip:hover { border-color: var(--border-hover); }

.balance-add-btn {
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }

/* ─── SECTIONS ─── */
.section {
  display: none;
  padding: 22px 24px;
  flex-direction: column;
  gap: 16px;
}
.section.active { display: flex; }

.section-page-header { margin-bottom: 4px; }
.section-page-header h2 { font-size: 20px; font-weight: 700; color: var(--white); }
.section-subtitle { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ════════════════════════════════════════════════════════════════
   EXACT MECHA CYBER THEME (SCREENSHOT 5)
   ════════════════════════════════════════════════════════════════ */
.panel-two-cols {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: flex-start;
}

/* LEFT: MECHA CYBER KEY PANEL */
.cyber-key-panel {
  background: #09090c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

/* Mecha glowing neon borders */
.cyber-key-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.cyber-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cyber-brand-title {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.resall-italic {
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  color: var(--white);
  text-transform: lowercase;
}

.shop-italic {
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-2);
}

.cyber-pill-tag {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text-2);
}

.cyber-sub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 14px;
}

.cyber-header-icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.cyber-header-icon svg { width: 18px; height: 18px; }

.cyber-header-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.cyber-header-text p {
  font-size: 11.5px;
  color: var(--text-3);
}

/* Mecha Carousel Box (3D Cover Flow Showcase - Enlarged & Proportional) */
.cyber-carousel-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 6px 0 24px;
  position: relative;
  perspective: 1200px;
  padding: 10px 0;
}

/* Side Preview Cards (Previous & Next Products) */
.carousel-side-card {
  width: 140px;
  height: 360px;
  background: #080a0f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0.52;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
  user-select: none;
}

.carousel-side-card.side-left {
  transform: perspective(1000px) rotateY(18deg) scale(0.92);
  transform-origin: right center;
}
.carousel-side-card.side-right {
  transform: perspective(1000px) rotateY(-18deg) scale(0.92);
  transform-origin: left center;
}

.carousel-side-card:hover {
  opacity: 0.95;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 162, 255, 0.25);
}
.carousel-side-card.side-left:hover {
  transform: perspective(1000px) rotateY(8deg) scale(0.97);
}
.carousel-side-card.side-right:hover {
  transform: perspective(1000px) rotateY(-8deg) scale(0.97);
}

.side-anim-pulse {
  transform: scale(0.88) !important;
  opacity: 0.25 !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.side-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.carousel-side-card:hover .side-card-img {
  transform: scale(1.06);
}

.side-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.92) 100%);
  transition: opacity 0.3s ease;
}
.carousel-side-card:hover .side-card-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.85) 100%);
}

.side-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 10px;
  z-index: 2;
  pointer-events: none;
}
.side-tag-nav {
  align-self: center;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.side-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-card-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  margin-top: 2px;
}

/* Main Active Carousel Card (Enlarged & Proportional - Hero Frame) */
.carousel-main-card {
  position: relative;
  width: 325px;
  height: 430px;
  background: #000000;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(0, 162, 255, 0.28), inset 0 0 20px rgba(255, 255, 255, 0.06);
  z-index: 5;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.carousel-main-card:hover {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.98), 0 0 55px rgba(0, 162, 255, 0.38), inset 0 0 25px rgba(255, 255, 255, 0.1);
}

/* Inner Navigation Arrows (Directly matching User Screenshot) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(10, 12, 18, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-arrow:hover {
  background: #ffffff;
  color: #0b0d13;
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.8);
}
.carousel-arrow:active { transform: translateY(-50%) scale(0.94); }
.carousel-arrow.left { left: 14px; }
.carousel-arrow.right { right: 14px; }

.main-card-display {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
}

.main-card-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.96;
  filter: contrast(1.05) brightness(1.02);
  transition: transform 0.35s ease;
}

.product-glow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 35%, transparent 60%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

/* Top Floating Title */
.product-badge-name {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.02em;
  background: rgba(8, 10, 15, 0.8);
  padding: 6px 12px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  z-index: 5;
  pointer-events: none;
}

/* Bottom Glass Pill (Matching User Screenshot "55") */
.carousel-bottom-pill-bar {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  z-index: 6;
  pointer-events: none;
}
.product-pill-price {
  width: 100%;
  background: rgba(10, 12, 18, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 8px 0;
  color: #ffffff;
  font-family: 'JetBrains Mono', 'Inter', monospace;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  letter-spacing: 0.04em;
}

.cyber-plans-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
}
.cyber-plans-label svg { width: 16px; height: 16px; }

/* Plan Radio Grid: 2 Columns with neon border like screenshot */
.cyber-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.cyber-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.cyber-plan-card:hover {
  background: #14141c;
  border-color: rgba(255, 255, 255, 0.3);
}

.cyber-plan-card.active {
  background: #171722;
  border-color: var(--white);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.04);
}

.cyber-plan-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cyber-crown-icon {
  font-size: 13px;
  color: #ffd700;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.cyber-plan-info {
  display: flex;
  flex-direction: column;
}

.plan-title-txt {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
}

.plan-sub-txt {
  font-size: 10px;
  color: var(--text-3);
}

.cyber-plan-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cyber-price-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
}

.cyber-radio-dot {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-plan-card.active .cyber-radio-dot {
  border-color: var(--white);
}

.cyber-plan-card.active .cyber-radio-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
}

/* Bottom Action Bar (Quantity + Huge Total Pay Button) */
.cyber-bottom-bar {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  margin-top: 10px;
}

.cyber-qty-control {
  display: flex;
  align-items: center;
  background: #0f0f15;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  height: 48px;
  overflow: hidden;
}

.cyber-qty-control button {
  width: 32px;
  height: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cyber-qty-control button:hover { background: rgba(255,255,255,0.08); }

.cyber-qty-control input {
  flex: 1;
  text-align: center;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.cyber-pay-button {
  background: linear-gradient(90deg, #121218 0%, #1c1c26 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.cyber-pay-button:hover {
  border-color: var(--white);
  background: linear-gradient(90deg, #181822 0%, #252533 100%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.cyber-pay-button:active { transform: scale(0.99); }

.cyber-pay-icon {
  display: flex;
  align-items: center;
  color: var(--white);
}
.cyber-pay-icon svg { width: 18px; height: 18px; }

.cyber-pay-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pay-label {
  font-size: 12px;
  color: var(--text-2);
}

.pay-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* Extra options (Note + Format) */
.cyber-extra-options {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.extra-field { flex: 1; }
.cyber-input {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}
.cyber-input:focus { border-color: rgba(255, 255, 255, 0.3); }

.extra-format-chips {
  display: flex;
  gap: 6px;
}

.cyber-format-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  color: var(--text-2);
}
.cyber-format-chip:has(input:checked) {
  border-color: var(--white);
  color: var(--white);
  background: #181822;
}

/* Created keys box */
.cyber-created-box {
  margin-top: 14px;
  padding: 14px;
  background: #0e0e14;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.created-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.btn-copy-all {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--white);
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
}

.created-keys-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* RIGHT: ORDER HISTORY PANEL (MATCHING SCREENSHOT 5) */
.cyber-order-history-panel {
  background: #09090c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  min-height: 400px;
}

.history-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.history-icon-box {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.history-icon-box svg { width: 16px; height: 16px; }

.history-title-wrap h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.history-title-wrap span {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.history-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #0e0e14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.order-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-thumb-mini {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #181822;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-meta { display: flex; flex-direction: column; gap: 2px; }
.order-prod-title { font-size: 12px; font-weight: 700; color: var(--white); }
.order-date-txt { font-size: 10px; color: var(--text-3); }

.order-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.order-price-txt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
}

.order-view-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--success);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ─── DATA TABLES & UTILS ─── */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-3);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--bg-3); }
.empty-cell { text-align: center; color: var(--text-3); padding: 32px !important; }

.rk-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}
.badge-active { background: rgba(52, 211, 153, 0.12); color: var(--success); }
.badge-unused { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }

.action-btns { display: flex; gap: 5px; }
.action-btn {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-2);
  cursor: pointer;
}
.action-btn:hover { border-color: var(--border-hover); color: var(--text); }
.action-btn.danger:hover { color: var(--error); }

/* Top-up */
.topup-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; }
.method-cards { display: flex; flex-direction: column; gap: 8px; }
.method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.method-card.active { border-color: var(--white); background: var(--bg-4); }
.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.method-icon svg { width: 20px; height: 20px; }
.method-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.method-name { font-size: 13px; font-weight: 600; color: var(--text); }
.method-desc { font-size: 11px; color: var(--text-3); }

.amount-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.preset-btn {
  padding: 8px 4px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.preset-btn.active { background: var(--white); color: var(--black); border-color: var(--white); }

.text-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.text-input:focus { border-color: var(--border-hover); background: var(--bg-4); }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-header h3 { font-size: 14px; font-weight: 600; }
.card-link { background: none; border: none; color: var(--text-3); font-size: 12px; cursor: pointer; }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-2);
  font-size: 12px;
}
.qa-btn:hover { background: var(--bg-4); color: var(--text); }
.qa-icon svg { width: 18px; height: 18px; }

/* Banner Welcome */
.banner-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #121217 0%, #0d0d12 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
}
.welcome-text h2 { font-size: 20px; font-weight: 700; }
.welcome-text p { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.welcome-mascot { width: 75px; height: 75px; object-fit: contain; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
}
.stat-icon svg { width: 18px; height: 18px; }
.stat-info { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.stat-value { font-size: 19px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.search-box svg { width: 14px; height: 14px; color: var(--text-3); }
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 12.5px;
  width: 160px;
}

.filter-select {
  height: 36px;
  padding: 0 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 15px; font-weight: 600; color: var(--white); }
.modal-close { background: none; border: none; color: var(--text-3); font-size: 16px; cursor: pointer; }
.modal-body { padding: 20px; }

/* Toast */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 10px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.toast.success { border-color: rgba(52, 211, 153, 0.4); color: var(--success); }
.toast.error { border-color: rgba(248, 113, 113, 0.4); color: var(--error); }

/* Activity Feed */
.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.activity-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white); }
.activity-text { flex: 1; color: var(--text-2); }
.activity-time { font-size: 11px; color: var(--text-3); }

/* Responsive */
@media (max-width: 1050px) {
  .panel-two-cols { display: flex !important; flex-direction: column !important; width: 100% !important; }
  .cyber-order-history-panel { min-height: auto; width: 100% !important; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  .menu-toggle { display: block; }
  .dash-grid, .topup-grid { grid-template-columns: 1fr; }
  .cyber-plans-grid { grid-template-columns: 1fr; }
  .carousel-side-card { display: none !important; }
  .carousel-main-card { width: 100%; max-width: 280px; height: 360px; }
}

@media (max-width: 650px) {
  .carousel-side-card { display: none !important; }
  .carousel-main-card { width: 100%; max-width: 275px; height: 350px; }
}

/* ================================================================
   CAROUSEL SLIDE ANIMATIONS
   ================================================================ */
.main-card-display {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  will-change: transform, opacity;
  overflow: hidden;
}
.product-badge-name {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.anim-slide-out-left {
  transform: translateX(-70px) scale(0.92) !important;
  opacity: 0 !important;
}
.anim-slide-out-right {
  transform: translateX(70px) scale(0.92) !important;
  opacity: 0 !important;
}
.anim-slide-in-right {
  transform: translateX(70px) scale(0.92);
  opacity: 0;
}
.anim-slide-in-left {
  transform: translateX(-70px) scale(0.92);
  opacity: 0;
}

/* ================================================================
   MODAL OVERLAY SYSTEM
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.hidden { display: none !important; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPopUp {
  from { transform: scale(0.94) translateY(14px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  animation: modalPopUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================================================
   MODAL: ORDER RECEIPT (MATCHING USER SCREENSHOT EXACTLY)
   ================================================================ */
.order-receipt-modal {
  background: #111113 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  max-width: 470px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 1px rgba(255,255,255,0.2) !important;
}

.order-receipt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.order-receipt-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.order-receipt-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #242429;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.order-receipt-avatar svg { width: 22px; height: 22px; }

.order-receipt-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}
.order-receipt-sub {
  font-size: 12.5px;
  color: #8e8e93;
  font-weight: 400;
}

.order-receipt-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #242429;
  border: none;
  color: #a1a1aa;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.order-receipt-close:hover {
  background: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

.order-receipt-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 18px 0;
}

/* Product Card in Receipt */
.order-receipt-card {
  background: #17171a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.order-receipt-prod-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.order-receipt-prod-left img {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.order-receipt-pname {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-receipt-pmeta {
  color: #8e8e93;
  font-size: 12.5px;
}
.order-receipt-badge {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Section label and Copy all */
.order-receipt-section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.order-receipt-sec-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}
.order-receipt-sec-title svg {
  width: 15px;
  height: 15px;
  color: #9ca3af;
}
.order-receipt-copy-all {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
}
.order-receipt-copy-all:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.order-receipt-copy-all svg { width: 14px; height: 14px; }

/* Recessed Key Code Box */
.order-receipt-code-box {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 20px;
}
.order-receipt-code-box::-webkit-scrollbar {
  width: 5px;
}
.order-receipt-code-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.order-receipt-code-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #ffffff;
  word-break: break-all;
  line-height: 1.5;
  font-weight: 600;
  width: 100%;
}
.order-receipt-item-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e1e22;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: all 0.15s ease;
}
.order-receipt-item-copy:hover {
  background: #2b2b31;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.order-receipt-item-copy svg { width: 13px; height: 13px; }

/* Receipt Actions */
.order-receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-btn-download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  transition: all 0.16s ease;
}
.order-btn-download:hover {
  background: #e6e6e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
}
.order-btn-download svg { width: 16px; height: 16px; }

.order-btn-dismiss {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e1e22;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  transition: all 0.16s ease;
}
.order-btn-dismiss:hover {
  background: #27272d;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* ================================================================
   MODAL: PAYMENT CONFIRMATION (RED CANCEL & GREEN CONFIRM)
   ================================================================ */
.modal-pay-confirm-box {
  background: #121215 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  max-width: 440px !important;
  overflow: hidden !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95) !important;
}

.pay-confirm-header {
  text-align: center;
  padding: 26px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}
.pay-confirm-icon {
  width: 54px;
  height: 54px;
  background: #1e1e24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
}
.pay-confirm-icon svg { width: 24px; height: 24px; color: #ffffff; }
.pay-confirm-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}
.pay-confirm-header p {
  font-size: 12.5px;
  color: #8e8e93;
  margin: 4px 0 0;
}

.pay-confirm-body { padding: 20px 22px 24px; }

.pay-confirm-product {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #17171c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.pay-confirm-product img {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.pconf-prod-name { font-size: 14px; font-weight: 700; color: #ffffff; margin-bottom: 3px; }
.pconf-plan-name { font-size: 12px; color: #8e8e93; }

.pay-confirm-summary {
  background: #17171c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.pconf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: #a1a1aa;
}
.pconf-val {
  font-weight: 600;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}
.pconf-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 9px 0;
}
.pconf-total-row {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff !important;
  padding: 6px 0;
}
.pconf-total {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}
.pconf-remaining {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13.5px;
}

/* Pay Confirm Buttons - High contrast Red & Green */
.pay-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
}

/* RED CANCEL BUTTON */
.pay-btn-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid #b91c1c;
  color: #ffffff;
  padding: 13px 18px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Prompt', sans-serif;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
  transition: all 0.18s ease;
}
.pay-btn-cancel:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}
.pay-btn-cancel:active { transform: scale(0.98); }
.pay-btn-cancel svg { width: 16px; height: 16px; }

/* GREEN CONFIRM BUTTON */
.pay-btn-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 1px solid #15803d;
  color: #ffffff;
  padding: 13px 18px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Prompt', sans-serif;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
  transition: all 0.18s ease;
  letter-spacing: 0.02em;
}
.pay-btn-confirm:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 6px 28px rgba(34, 197, 94, 0.65);
  transform: translateY(-1px);
}
.pay-btn-confirm:active { transform: scale(0.98); }
.pay-btn-confirm svg { width: 17px; height: 17px; }

/* ================================================================
   ADMIN INVENTORY & STOCK MANAGEMENT (MATCHING USER SCREENSHOTS)
   ================================================================ */

/* Header Bar */
.inv-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}
.inv-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.inv-main-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}
.inv-subtitle {
  font-size: 13px;
  color: #8b92a4;
  margin: 0;
}

/* White "+ เพิ่มสินค้าใหม่" Button matching Screenshot 1 */
.btn-inv-add-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0b0d13;
  border: none;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
  transition: all 0.18s ease;
}
.btn-inv-add-product:hover {
  background: #f1f3f7;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.32);
}
.btn-inv-add-product:active { transform: scale(0.98); }
.btn-inv-add-product svg { width: 16px; height: 16px; stroke-width: 2.6; }

/* 3 Stat Cards Row matching Screenshot 1 */
.inv-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.inv-stat-card {
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  transition: all 0.2s ease;
}
.inv-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.inv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inv-stat-label {
  font-size: 13px;
  color: #7b8396;
  font-weight: 500;
}
.inv-icon-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8993a8;
}
.inv-icon-wrap svg { width: 20px; height: 20px; }

.inv-stat-number {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 10px;
  line-height: 1;
}

/* HOT Card with Pink Neon Glow + Halloween Pumpkin Theme matching Screenshot 1 */
.inv-stat-card.hot-card {
  border: 1px solid #ff2d78 !important;
  box-shadow: 0 0 25px rgba(255, 45, 120, 0.22);
  background: linear-gradient(135deg, rgba(255, 45, 120, 0.06) 0%, #0f121a 60%);
}
.hot-label { color: #a4adc1; }
.hot-sparkle-icon {
  color: #ff2d78;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hot-sparkle-icon svg { width: 20px; height: 20px; filter: drop-shadow(0 0 6px #ff2d78); }

.halloween-decoration {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  overflow: hidden;
}
.spider-web {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 95px;
  height: 95px;
  opacity: 0.8;
}
.hanging-line {
  position: absolute;
  right: 48px;
  top: 0;
  height: 38px;
  width: 1.5px;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.pumpkin-mascot {
  position: absolute;
  right: 28px;
  top: 34px;
  animation: pumpkinSwing 3.5s ease-in-out infinite alternate;
  transform-origin: 20px 0;
}
@keyframes pumpkinSwing {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

/* Inventory List Card & Filter Bar */
.inv-table-card {
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px 22px;
}
.inv-controls-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.inv-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #161a25;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 7px 14px;
  width: 240px;
}
.inv-search-wrap svg { width: 14px; height: 14px; color: #768095; }
.inv-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 12.5px;
  width: 100%;
  font-family: 'Prompt', sans-serif;
}

/* Inventory Table */
.inv-table { width: 100%; border-collapse: collapse; }
.inv-table th {
  font-size: 12px;
  color: #7b8396;
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.inv-table td {
  padding: 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.inv-prod-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inv-prod-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #1a1e2a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}
.inv-prod-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 13.5px;
  line-height: 1.3;
}
.inv-prod-plan-cnt {
  font-size: 11.5px;
  color: #7d879c;
}
.inv-cat-pill {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 11.5px;
  color: #a4adc1;
}
.inv-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.inv-stock-badge.has-stock {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.inv-stock-badge.out-stock {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.inv-stock-badge.unlimited {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.inv-status-pills {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pill-sale {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}
.pill-hot {
  background: rgba(255, 45, 120, 0.15);
  color: #ff2d78;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 45, 120, 0.3);
}

.inv-actions-cell {
  text-align: right;
  white-space: nowrap;
}
.btn-inv-stock {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.15s ease;
}
.btn-inv-stock:hover {
  background: #22c55e;
  color: #ffffff;
}
.btn-inv-edit {
  background: #1c212e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.15s ease;
}
.btn-inv-edit:hover { background: #262c3e; }
.btn-inv-del {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-inv-del:hover { background: #ef4444; color: #fff; }

/* ================================================================
   MODAL: ADD / EDIT PRODUCT (SCREENSHOT 2 & 3 REPLICA)
   ================================================================ */
.product-modal-dialog {
  max-width: 680px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
}

.prod-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.prod-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.prod-modal-avatar {
  width: 38px;
  height: 38px;
  background: #171b26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.prod-modal-avatar svg { width: 20px; height: 20px; }
.prod-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}
.prod-modal-sub {
  font-size: 12px;
  color: #7b8396;
  margin: 2px 0 0;
}
.prod-modal-close {
  background: transparent;
  border: none;
  color: #7b8396;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.prod-modal-close:hover { color: #ffffff; }

.prod-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prod-form-sec {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prod-sec-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.prod-sec-sub {
  font-size: 12px;
  color: #768095;
  margin: -6px 0 2px;
}
.prod-form-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.prod-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prod-form-group label {
  font-size: 12.5px;
  color: #c4ccdc;
  font-weight: 600;
}
.label-blue { color: #60a5fa !important; }
.label-green { color: #34d399 !important; }

.prod-text-inp, .prod-select-inp, .prod-textarea {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  font-family: 'Prompt', sans-serif;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}
.prod-text-inp:focus, .prod-select-inp:focus, .prod-textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
}
.inp-blue {
  background: #111827;
  border-color: rgba(59, 130, 246, 0.3);
}
.inp-green {
  background: #0d1c18;
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-weight: 700;
}

/* Image Upload Row */
.prod-img-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-prod-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #171c28;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-prod-upload:hover {
  background: #202738;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-prod-upload svg { width: 15px; height: 15px; }
.prod-upload-hint {
  font-size: 12px;
  color: #7b8396;
}

.prod-img-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.prod-preview-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #171b26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* 4 Columns Price Grid matching Screenshot 2 & 3 */
.prod-price-4grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Product Options (ตัวเลือกสินค้า) */
.prod-plans-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.btn-prod-add-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #161a25;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.btn-prod-add-opt:hover {
  background: #222738;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-prod-add-opt svg { width: 14px; height: 14px; }

.pm-plans-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-empty-plans {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: #7b8396;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
}
.pm-plan-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr 36px;
  gap: 8px;
  align-items: center;
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 8px 10px;
}
.pm-plan-row input {
  background: #0e111a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-family: 'Prompt', sans-serif;
  width: 100%;
}
.pm-btn-remove-plan {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-radius: 6px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Status Cards Grid (3 Cards: เปิดขาย, HOT, ไม่จำกัดสต็อก) */
.prod-status-4grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.prod-status-card {
  background: #121520;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.15s ease;
}
.prod-status-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.prod-status-card input[type="checkbox"] {
  display: none;
}
.status-custom-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0d1017;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.15s ease;
}
.prod-status-card.checked-sale {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
}
.prod-status-card.checked-sale .status-custom-box {
  background: #10b981;
  border-color: #10b981;
  color: #0b0d13;
  font-weight: 800;
}
.prod-status-card.checked-hot {
  border-color: #ff2d78 !important;
  background: rgba(255, 45, 120, 0.08) !important;
}
.prod-status-card.checked-hot .status-custom-box {
  background: #ff2d78;
  border-color: #ff2d78;
  color: #ffffff;
  font-weight: 800;
}
.prod-status-card.checked-cat {
  border-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.08) !important;
}
.prod-status-card.checked-cat .status-custom-box {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 800;
}
.prod-status-card.checked-unlimited {
  border-color: #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.08) !important;
}
.prod-status-card.checked-unlimited .status-custom-box {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #ffffff;
  font-weight: 800;
}

.status-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status-card-label {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.status-card-label.text-green { color: #10b981; }
.status-card-label.text-hot { color: #ff2d78; }
.status-card-hint {
  font-size: 11px;
  color: #7b8396;
  line-height: 1.3;
}

/* Modal Footer */
.prod-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0e14;
}
.btn-prod-modal-cancel {
  background: transparent;
  border: none;
  color: #8b92a4;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  padding: 9px 18px;
}
.btn-prod-modal-cancel:hover { color: #ffffff; }
.btn-prod-modal-save {
  background: #ffffff;
  color: #0b0d13;
  border: none;
  padding: 10px 24px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
}
.btn-prod-modal-save:hover {
  background: #f1f3f7;
  transform: translateY(-1px);
}

/* ================================================================
   MODAL: MANAGE STOCK KEYS (FOR ADMIN TO FILL STOCK)
   ================================================================ */
.stock-modal-dialog {
  max-width: 580px;
  width: 95%;
  background: #0e1119;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}
.stock-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.stock-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stock-modal-avatar {
  width: 38px;
  height: 38px;
  background: #171b26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
}
.stock-modal-avatar svg { width: 20px; height: 20px; }
.stock-modal-title { font-size: 16px; font-weight: 800; color: #fff; margin: 0; }
.stock-modal-sub { font-size: 12px; color: #7b8396; margin: 2px 0 0; }

.stock-modal-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 75vh;
  overflow-y: auto;
}
.stock-plan-selector-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stock-plan-selector-row label {
  font-size: 12.5px;
  font-weight: 600;
  color: #c4ccdc;
}

.stock-current-badge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #131722;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
}
.stock-count-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stock-count-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}
.stock-count-sub {
  font-size: 11.5px;
  color: #7b8396;
}
.stock-count-num {
  font-size: 30px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #22c55e;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stock-count-num small {
  font-size: 13px;
  color: #7b8396;
  font-weight: 500;
}

.stock-input-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stock-input-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #c4ccdc;
}
.stock-lines-counter {
  font-size: 11.5px;
  color: #22c55e;
  font-family: 'JetBrains Mono', monospace;
}
.stock-textarea {
  background: #121520;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  outline: none;
  resize: vertical;
}
.stock-textarea:focus {
  border-color: rgba(34, 197, 94, 0.5);
}
.stock-btn-row {
  display: flex;
  justify-content: flex-end;
}
.btn-stock-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  transition: all 0.15s ease;
}
.btn-stock-add:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
}
.btn-stock-add svg { width: 15px; height: 15px; }

.stock-existing-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stock-existing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #7b8396;
}
.btn-stock-clear-all {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 11.5px;
  cursor: pointer;
}
.btn-stock-clear-all:hover { text-decoration: underline; }

.stock-keys-scroll-box {
  background: #11141e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  max-height: 180px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stock-key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161925;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: #e4e4e7;
}
.stock-key-item .del-key-btn {
  background: transparent;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 2px 6px;
}
.stock-key-item .del-key-btn:hover { color: #ef4444; }

.stock-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0e14;
}

/* Plan Stock Badges in Create Key Screen */
.plan-stock-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.plan-stock-badge.stock-green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.plan-stock-badge.stock-red {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.plan-stock-badge.stock-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

@media (max-width: 900px) {
  .inv-stats-row { grid-template-columns: 1fr; }
  .prod-price-4grid { grid-template-columns: 1fr 1fr; }
  .prod-status-4grid { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   ANNOUNCEMENT TICKER (FROM SIXTHIRTYONE SHOP)
   ================================================================ */
.announcement-ticker-wrap {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.12), rgba(12, 14, 20, 0.95) 25%, rgba(12, 14, 20, 0.95) 75%, rgba(0, 240, 255, 0.12));
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: 12px;
  margin: 14px 24px 0 24px;
  padding: 8px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 0 15px rgba(255, 184, 0, 0.05);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}
.announcement-ticker-wrap.hidden {
  display: none !important;
}
.ticker-badge {
  background: linear-gradient(135deg, #ffb800, #ff8800);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  margin-right: 14px;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.4);
  flex-shrink: 0;
}
.ticker-marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
}
.ticker-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-anim 25s linear infinite;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
}
.ticker-marquee:hover span {
  animation-play-state: paused;
}
@keyframes marquee-anim {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* ================================================================
   CYBER COUPON PROMO INPUT (FROM SIXTHIRTYONE SHOP)
   ================================================================ */
.cyber-coupon-bar {
  margin-top: 10px;
  background: rgba(15, 18, 28, 0.75);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease;
}
.cyber-coupon-bar:focus-within {
  border-color: var(--accent);
}
.cyber-coupon-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cyber-coupon-input-wrap svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.cyber-coupon-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.cyber-coupon-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  text-transform: none;
}
.btn-apply-coupon {
  background: linear-gradient(135deg, #00f0ff, #0088ff);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-apply-coupon:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
.cyber-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #4ade80;
  font-weight: 600;
}
.btn-remove-coupon {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.btn-remove-coupon:hover {
  text-decoration: underline;
}

/* ================================================================
   LEADERBOARD & 3D STADIUM PODIUM (TOP 1-10 DONATE)
   ================================================================ */
.leaderboard-title-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(255, 0, 56, 0.4));
  color: #ff3366;
  border: 1px solid rgba(255, 0, 56, 0.4);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(255, 0, 56, 0.25);
}

.holo-preview-pill {
  color: #ff0038;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255, 0, 56, 0.6);
}

.my-rank-chip {
  background: rgba(15, 18, 28, 0.85);
  border: 1px solid rgba(255, 0, 56, 0.35);
  padding: 8px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(255, 0, 56, 0.15);
}
.my-rank-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.my-rank-val {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

/* 3D Stadium Podium Container */
.stadium-podium-container {
  background: radial-gradient(ellipse at 50% 120%, rgba(225, 29, 72, 0.18), rgba(10, 11, 16, 0.95) 70%),
              linear-gradient(180deg, rgba(16, 18, 27, 0.6) 0%, rgba(8, 9, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 20px 0 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stadium-spotlight {
  position: absolute;
  top: -60px;
  width: 140px;
  height: 350px;
  pointer-events: none;
  opacity: 0.18;
  filter: blur(25px);
  transform: rotate(15deg);
}
.spotlight-left {
  left: 18%;
  background: linear-gradient(180deg, #94a3b8, transparent);
  transform: rotate(-18deg);
}
.spotlight-center {
  left: 45%;
  background: linear-gradient(180deg, #ff0055, #ffd700, transparent);
  width: 180px;
  opacity: 0.28;
  transform: rotate(0deg);
}
.spotlight-right {
  right: 18%;
  background: linear-gradient(180deg, #d97706, transparent);
  transform: rotate(18deg);
}

.stadium-podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: flex-end;
  max-width: 900px;
  margin: 0 auto;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.podium-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* User Card above pedestal */
.podium-user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  text-align: center;
  position: relative;
  width: 100%;
}

.podium-crown-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.podium-crown-badge.gold {
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  transform: scale(1.08);
}
.podium-crown-badge.silver {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #000;
  box-shadow: 0 0 12px rgba(226, 232, 240, 0.35);
}
.podium-crown-badge.bronze {
  background: linear-gradient(135deg, #d97706, #78350f);
  color: #fff;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.35);
}

.podium-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.podium-pillar.rank-1 .podium-avatar-wrap {
  width: 90px;
  height: 90px;
}

.podium-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #141620;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.gold-glow .podium-avatar-img {
  border-color: #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), inset 0 0 15px rgba(255, 215, 0, 0.2);
}
.silver-glow .podium-avatar-img {
  border-color: #cbd5e1;
  box-shadow: 0 0 20px rgba(203, 213, 225, 0.35);
}
.bronze-glow .podium-avatar-img {
  border-color: #d97706;
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.35);
}

.champion-sparkles {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 18px;
  animation: sparkle-float 1.5s infinite alternate;
  z-index: 4;
}

.podium-user-name {
  font-size: 16px;
  margin-bottom: 2px;
}
.podium-user-name.champion-name {
  font-size: 19px;
}

.podium-user-role {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.gold-text {
  color: #ffd700 !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.podium-amount-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
}
.podium-amount-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}
.podium-amount-val {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.podium-amount-val.champion-val {
  font-size: 17px;
  color: #ffb800;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.4);
}

/* Pedestal Blocks (3D Cyber Stadium Steps) */
.podium-block {
  width: 100%;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25), 0 -4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}
.podium-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.block-1 {
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.22) 0%, rgba(20, 16, 28, 0.98) 35%, #08080c 100%);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-bottom: none;
}
.block-2 {
  height: 130px;
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.18) 0%, rgba(18, 20, 28, 0.98) 35%, #08080c 100%);
  border: 1px solid rgba(203, 213, 225, 0.35);
  border-bottom: none;
}
.block-3 {
  height: 95px;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.18) 0%, rgba(20, 18, 25, 0.98) 35%, #08080c 100%);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-bottom: none;
}

.block-number {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.15;
  color: #fff;
}
.block-1 .block-number {
  font-size: 64px;
  color: #ffd700;
  opacity: 0.25;
}
.block-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.block-1 .block-title {
  color: #ffd700;
}

/* ================================================================
   HOLOGRAPHIC RED-BLACK SHIMMER (สีแดงดำ วิ้งแบบโฮโลกราฟฟิก)
   ================================================================ */
@keyframes holo-red-black-sweep {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 4px rgba(255, 0, 56, 0.5)) drop-shadow(0 0 12px rgba(225, 29, 72, 0.3));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 8px rgba(255, 42, 85, 0.8)) drop-shadow(0 0 22px rgba(255, 0, 56, 0.55));
  }
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 4px rgba(255, 0, 56, 0.5)) drop-shadow(0 0 12px rgba(225, 29, 72, 0.3));
  }
}

@keyframes holo-shimmer-sparkle {
  0%, 100% {
    opacity: 0.92;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.name-holo-red-black {
  background: linear-gradient(
    115deg,
    #ff0038 0%,
    #050508 14%,
    #ff2252 28%,
    #ffffff 38%,
    #050508 48%,
    #ff0038 62%,
    #14141c 76%,
    #ff3366 90%,
    #ff0038 100%
  ) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: holo-red-black-sweep 3.5s ease infinite, holo-shimmer-sparkle 2.2s ease-in-out infinite !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  display: inline-block;
  position: relative;
  text-transform: uppercase;
}

.name-holo-red-black::after {
  content: ' ✨';
  font-size: 11px;
  -webkit-text-fill-color: initial;
  display: inline-block;
  animation: sparkle-float 1.5s ease-in-out infinite alternate;
}

@keyframes sparkle-float {
  0% { transform: translateY(0) scale(0.85); opacity: 0.7; }
  100% { transform: translateY(-3px) scale(1.2); opacity: 1; }
}

/* Leaderboard Runners-up Table (Rank 4 - 10) */
.leaderboard-table-card {
  border-color: rgba(255, 255, 255, 0.08);
}
.leaderboard-table-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.leaderboard-table-title svg {
  color: var(--accent);
}
.leaderboard-badge-live {
  font-size: 11px;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
}

.rank-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.runner-vip-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.runner-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.runner-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}
.runner-name-text {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}
.runner-name-text.is-me {
  color: var(--accent);
}
.you-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 240, 255, 0.18);
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.runner-amount-val {
  font-weight: 800;
  color: #22c55e;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.runner-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}
.runner-tier-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.02em;
}
.tier-elite {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.tier-diamond {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.tier-platinum {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.tier-gold {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.tier-silver {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.tier-bronze {
  background: rgba(217, 119, 6, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, 0.3);
}
.tier-loyal {
  background: rgba(74, 222, 128, 0.15);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.current-user-row {
  background: rgba(0, 240, 255, 0.08) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}

/* ================================================================
   TEAM & RESELL MANAGEMENT (เพิ่มบัญชีทีมงาน & บัญชีทั้งหมด LOG CARDS)
   ================================================================ */
.team-manage-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-add-card {
  background: #0d121d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.team-add-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.team-form-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}

.team-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}
.team-text-input,
.team-select-input {
  width: 100%;
  background: #1c2436;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.team-text-input:focus,
.team-select-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.team-select-input option {
  background: #151b28;
  color: #fff;
}

.team-form-bottom-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: flex-end;
}

.btn-team-add-main {
  width: 100%;
  height: 42px;
  background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(245, 124, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn-team-add-main:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 124, 0, 0.5);
}

/* All Accounts Log Cards (3 Columns) */
.team-accounts-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-accounts-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.team-accounts-header p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 2px 0 0 0;
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.team-user-card {
  background: #0e1422;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.team-user-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}
.team-user-card.is-suspended {
  border-color: rgba(239, 68, 68, 0.4);
  background: #140d12;
}

.team-card-top-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.team-card-username {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.team-card-role-title {
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
}
.team-card-role-title.admin {
  color: #ffd700;
}
.team-card-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.team-status-tag {
  font-weight: 700;
}
.team-status-tag.active {
  color: #22c55e;
}
.team-status-tag.suspended {
  color: #ef4444;
}

.btn-card-suspend-toggle {
  align-self: flex-start;
  background: #182032;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-card-suspend-toggle:hover {
  background: #222d46;
  color: #fff;
}
.btn-card-suspend-toggle.unsuspend {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.team-card-field-row {
  display: flex;
  gap: 8px;
}
.team-card-field-input {
  flex: 1;
  background: #161d2d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
  box-sizing: border-box;
}
.team-card-field-input:focus {
  outline: none;
  border-color: #f59e0b;
}

.btn-orange-action {
  background: #ff9800;
  color: #000;
  font-weight: 800;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.1s;
}
.btn-orange-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-card-gray-action {
  background: #182032;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
  width: 100%;
}
.btn-card-gray-action:hover {
  background: #242f49;
  color: #fff;
}

.btn-card-red-delete {
  background: #e11d48;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 6px 18px;
  cursor: pointer;
  font-size: 12px;
  width: fit-content;
  transition: 0.2s;
}
.btn-card-red-delete:hover {
  background: #f43f5e;
}

/* Security & Audit Logs Section */
.team-logs-card {
  background: #0d121d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}
.team-logs-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.team-logs-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-log-status {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.badge-log-status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-log-status.warning {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.badge-log-status.banned {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

@media (max-width: 1200px) {
  .team-form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .team-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-cards-grid {
    grid-template-columns: 1fr;
  }
  .team-form-grid {
    grid-template-columns: 1fr;
  }
  .team-form-bottom-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stadium-podium-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .podium-block {
    height: 70px !important;
  }
}

/* ================================================================
   10 SPECTACULAR FESTIVAL & CYBER AESTHETIC THEMES
   ================================================================ */

/* Ambient Dynamic Breathing Aurora Glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, var(--theme-glow, rgba(0, 240, 255, 0.15)) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  transition: background 0.6s ease, opacity 0.6s ease;
}

/* 1. CYBER MECHA (Default) */
[data-theme="theme-mecha"], body.theme-mecha {
  --bg: #070709;
  --bg-2: #0d0d12;
  --bg-3: #14141d;
  --bg-4: #1b1b28;
  --border: rgba(0, 240, 255, 0.12);
  --border-hover: rgba(0, 240, 255, 0.4);
  --theme-accent: #00f0ff;
  --theme-accent-2: #f59e0b;
  --theme-glow: rgba(0, 240, 255, 0.45);
  --theme-header-gradient: linear-gradient(135deg, #00f0ff 0%, #38bdf8 50%, #f59e0b 100%);
  --btn-main-gradient: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
}

/* 2. HALLOWEEN SPOOKTACULAR */
[data-theme="theme-halloween"], body.theme-halloween {
  --bg: #0a0410;
  --bg-2: #140722;
  --bg-3: #1e0b33;
  --bg-4: #2b1047;
  --border: rgba(255, 117, 0, 0.22);
  --border-hover: rgba(255, 117, 0, 0.55);
  --theme-accent: #ff7500;
  --theme-accent-2: #c026d3;
  --theme-glow: rgba(255, 117, 0, 0.5);
  --theme-header-gradient: linear-gradient(135deg, #ff7500 0%, #a855f7 50%, #70e000 100%);
  --btn-main-gradient: linear-gradient(90deg, #ff7500 0%, #ea580c 100%);
}
body.theme-halloween .brand-name {
  background: linear-gradient(135deg, #ff7500 0%, #c026d3 50%, #70e000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 3. CHRISTMAS & WINTER WONDERLAND */
[data-theme="theme-christmas"], body.theme-christmas {
  --bg: #03140e;
  --bg-2: #072218;
  --bg-3: #0c3325;
  --bg-4: #124633;
  --border: rgba(52, 211, 153, 0.24);
  --border-hover: rgba(239, 68, 68, 0.55);
  --theme-accent: #10b981;
  --theme-accent-2: #ef4444;
  --theme-glow: rgba(16, 185, 129, 0.45);
  --theme-header-gradient: linear-gradient(135deg, #ef4444 0%, #10b981 50%, #ffd700 100%);
  --btn-main-gradient: linear-gradient(90deg, #ef4444 0%, #b91c1c 100%);
}
body.theme-christmas .brand-name {
  background: linear-gradient(135deg, #ef4444 0%, #34d399 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 4. NEW YEAR GRAND COUNTDOWN */
[data-theme="theme-newyear"], body.theme-newyear {
  --bg: #080614;
  --bg-2: #100e26;
  --bg-3: #1a173d;
  --bg-4: #252054;
  --border: rgba(255, 215, 0, 0.24);
  --border-hover: rgba(255, 215, 0, 0.6);
  --theme-accent: #ffd700;
  --theme-accent-2: #38bdf8;
  --theme-glow: rgba(255, 215, 0, 0.5);
  --theme-header-gradient: linear-gradient(135deg, #fff3a8 0%, #ffd700 40%, #ff8c00 80%, #ffd700 100%);
  --btn-main-gradient: linear-gradient(90deg, #ffd700 0%, #f59e0b 100%);
}
body.theme-newyear .brand-name {
  background: linear-gradient(135deg, #fff3a8 0%, #ffd700 50%, #ff9800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 5. VALENTINE SWEET ROMANCE */
[data-theme="theme-valentine"], body.theme-valentine {
  --bg: #12030a;
  --bg-2: #200713;
  --bg-3: #300a1d;
  --bg-4: #420e28;
  --border: rgba(255, 27, 107, 0.24);
  --border-hover: rgba(255, 27, 107, 0.6);
  --theme-accent: #ff1b6b;
  --theme-accent-2: #f472b6;
  --theme-glow: rgba(255, 27, 107, 0.5);
  --theme-header-gradient: linear-gradient(135deg, #ff1b6b 0%, #ec4899 50%, #fda4af 100%);
  --btn-main-gradient: linear-gradient(90deg, #ff1b6b 0%, #db2777 100%);
}
body.theme-valentine .brand-name {
  background: linear-gradient(135deg, #ff1b6b 0%, #f472b6 50%, #fda4af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 6. SONGKRAN SPLASHING FESTIVAL */
[data-theme="theme-songkran"], body.theme-songkran {
  --bg: #021221;
  --bg-2: #042138;
  --bg-3: #073152;
  --bg-4: #0a426e;
  --border: rgba(0, 229, 255, 0.24);
  --border-hover: rgba(0, 229, 255, 0.6);
  --theme-accent: #00e5ff;
  --theme-accent-2: #ff9800;
  --theme-glow: rgba(0, 229, 255, 0.5);
  --theme-header-gradient: linear-gradient(135deg, #00e5ff 0%, #38bdf8 50%, #f59e0b 100%);
  --btn-main-gradient: linear-gradient(90deg, #00e5ff 0%, #0284c7 100%);
}
body.theme-songkran .brand-name {
  background: linear-gradient(135deg, #00e5ff 0%, #38bdf8 50%, #ff9800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 7. LOY KRATHONG LANTERNS */
[data-theme="theme-loykrathong"], body.theme-loykrathong {
  --bg: #040817;
  --bg-2: #08132e;
  --bg-3: #0d2047;
  --bg-4: #132e63;
  --border: rgba(255, 183, 3, 0.24);
  --border-hover: rgba(255, 183, 3, 0.6);
  --theme-accent: #ffb703;
  --theme-accent-2: #f72585;
  --theme-glow: rgba(255, 183, 3, 0.5);
  --theme-header-gradient: linear-gradient(135deg, #ffb703 0%, #fb8500 50%, #f72585 100%);
  --btn-main-gradient: linear-gradient(90deg, #ffb703 0%, #fb8500 100%);
}
body.theme-loykrathong .brand-name {
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 50%, #f72585 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 8. CHINESE NEW YEAR GOLDEN DRAGON */
[data-theme="theme-cny"], body.theme-cny {
  --bg: #140205;
  --bg-2: #24050a;
  --bg-3: #380810;
  --bg-4: #4f0c17;
  --border: rgba(234, 179, 8, 0.26);
  --border-hover: rgba(239, 68, 68, 0.65);
  --theme-accent: #dc2626;
  --theme-accent-2: #eab308;
  --theme-glow: rgba(220, 38, 38, 0.55);
  --theme-header-gradient: linear-gradient(135deg, #ef4444 0%, #ffd700 50%, #b91c1c 100%);
  --btn-main-gradient: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
}
body.theme-cny .brand-name {
  background: linear-gradient(135deg, #ef4444 0%, #ffd700 50%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 9. NEON TOKYO CYBERPUNK */
[data-theme="theme-cyberpunk"], body.theme-cyberpunk {
  --bg: #0b011c;
  --bg-2: #160233;
  --bg-3: #23044f;
  --bg-4: #330670;
  --border: rgba(255, 0, 127, 0.26);
  --border-hover: rgba(0, 245, 212, 0.65);
  --theme-accent: #ff007f;
  --theme-accent-2: #00f5d4;
  --theme-glow: rgba(255, 0, 127, 0.55);
  --theme-header-gradient: linear-gradient(135deg, #ff007f 0%, #8b5cf6 50%, #00f5d4 100%);
  --btn-main-gradient: linear-gradient(90deg, #ff007f 0%, #9333ea 100%);
}
body.theme-cyberpunk .brand-name {
  background: linear-gradient(135deg, #ff007f 0%, #8b5cf6 50%, #00f5d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 10. SAKURA BLOSSOM SPRING */
[data-theme="theme-sakura"], body.theme-sakura {
  --bg: #100616;
  --bg-2: #1b0a24;
  --bg-3: #290f36;
  --bg-4: #39154a;
  --border: rgba(244, 114, 182, 0.24);
  --border-hover: rgba(244, 114, 182, 0.6);
  --theme-accent: #f472b6;
  --theme-accent-2: #c084fc;
  --theme-glow: rgba(244, 114, 182, 0.5);
  --theme-header-gradient: linear-gradient(135deg, #f472b6 0%, #fb7185 50%, #c084fc 100%);
  --btn-main-gradient: linear-gradient(90deg, #f472b6 0%, #e11d48 100%);
}
body.theme-sakura .brand-name {
  background: linear-gradient(135deg, #f472b6 0%, #fb7185 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Apply Theme Accents Across UI Elements */
.nav-item.active {
  border-left: 3px solid var(--theme-accent) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.btn-primary, .btn-team-add-main {
  background: var(--btn-main-gradient) !important;
}
.btn-orange-action {
  background: var(--theme-accent) !important;
  color: #000 !important;
}

/* ================================================================
   THEME STUDIO UI COMPONENTS
   ================================================================ */
.theme-active-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #101624;
  border: 1px solid var(--border-hover);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 15px var(--theme-glow);
}
.theme-active-indicator-pill .live-dot {
  color: #22c55e;
  font-size: 14px;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.theme-featured-banner {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  padding: 26px 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px var(--theme-glow);
}
.theme-featured-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: var(--theme-header-gradient);
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}
.theme-banner-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--theme-accent);
  margin-bottom: 10px;
}
.theme-banner-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px 0;
  text-shadow: 0 0 15px var(--theme-glow);
}
.theme-banner-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 780px;
  margin: 0 0 16px 0;
  line-height: 1.6;
}
.theme-banner-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.theme-spec-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Theme Studio Grid */
.theme-studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1200px) {
  .theme-studio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .theme-studio-grid { grid-template-columns: 1fr; }
}

.theme-card {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.theme-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, var(--theme-accent));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--card-glow, var(--theme-glow));
}
.theme-card.is-active {
  border-color: var(--card-accent, var(--theme-accent));
  box-shadow: 0 0 25px var(--card-glow, var(--theme-glow));
}

.theme-card-top-preview {
  height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  overflow: hidden;
}
.theme-card-top-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-gradient);
  opacity: 0.88;
}
.theme-card-top-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.theme-emoji-icon {
  font-size: 38px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}
.theme-card-status-badge {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.theme-card-status-badge.active {
  background: #22c55e;
  color: #000;
  border-color: #4ade80;
}

.theme-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.theme-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
}
.theme-card-subtitle {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}
.theme-card-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.theme-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.theme-swatches {
  display: flex;
  gap: 6px;
}
.theme-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.theme-effect-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--card-accent, #fff);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-theme-apply {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #182032;
  color: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-theme-apply:hover {
  background: var(--card-accent, #ff9800);
  color: #000;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--card-glow, rgba(255, 152, 0, 0.4));
}
.btn-theme-apply.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
  cursor: default;
}

/* ================================================================
   CLOUDFLARE TURNSTILE VERIFICATION SYSTEM (LOGIN)
   ================================================================ */
.cf-turnstile-container {
  margin: 6px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cf-turnstile-box {
  width: 100%;
  min-height: 66px;
  background: #11141c;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.cf-turnstile-box:hover {
  background: #161a25;
  border-color: rgba(246, 130, 31, 0.5);
  box-shadow: 0 4px 18px rgba(246, 130, 31, 0.18);
}

.cf-turnstile-box.cf-error-shake {
  animation: cfShake 0.45s ease-in-out;
  border-color: #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45) !important;
}

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

.cf-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-checkbox {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
  position: relative;
}

.cf-turnstile-box:hover .cf-checkbox:not(.loading):not(.verified) {
  border-color: #f6821f;
  box-shadow: 0 0 8px rgba(246, 130, 31, 0.35);
}

/* Spinner during checking */
.cf-checkbox.loading {
  border: 3px solid rgba(246, 130, 31, 0.2) !important;
  border-top-color: #f6821f !important;
  border-radius: 50% !important;
  animation: cfSpinner 0.8s linear infinite !important;
  background: transparent !important;
}

@keyframes cfSpinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Verified state */
.cf-checkbox.verified {
  background: #22c55e !important;
  border-color: #22c55e !important;
  border-radius: 50% !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5) !important;
  transform: scale(1.05);
}

.cf-check-icon {
  width: 17px;
  height: 17px;
  color: #000;
  display: none;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.3s ease-out;
}

.cf-checkbox.verified .cf-check-icon {
  display: block;
  stroke-dashoffset: 0;
}

.cf-text-wrap {
  display: flex;
  flex-direction: column;
}

.cf-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.cf-sublabel {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1px;
}

.cf-turnstile-box.verified {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.05);
}

.cf-turnstile-box.verified .cf-label {
  color: #4ade80;
}

.cf-right {
  display: flex;
  align-items: center;
}

.cf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cf-cloud-logo {
  width: 34px;
  height: 24px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(246, 130, 31, 0.35));
}

.cf-brand-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.cf-brand-name {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #e5e7eb;
}

.cf-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 9.5px;
  color: #9ca3af;
}

.cf-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.cf-links a:hover {
  color: #f6821f;
  text-decoration: underline;
}

.cf-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
}

.cf-status-pill {
  color: rgba(246, 130, 31, 0.85);
  font-weight: 600;
}

/* ================================================================
   MOBILE UI & RESPONSIVE PERFECTION
   - Native App Style Mobile Bottom Navigation Dock
   - Touch-optimized Sidebar Drawer & Backdrop
   - Fluid Grid Layouts & Horizontal Scroll Tables
   - Enhanced Touch Targets for All Forms & Buttons
   ================================================================ */

/* Backdrop for Mobile Sidebar */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Bottom Navigation Bar (Dock) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(10, 12, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 900;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mob-nav-item svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s, stroke 0.2s;
}

.mob-nav-item:active {
  transform: scale(0.92);
}

.mob-nav-item.active {
  color: var(--accent, #00f0ff);
  font-weight: 700;
}

.mob-nav-item.active svg {
  stroke: var(--accent, #00f0ff);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
  transform: translateY(-1px);
}

/* Responsive Breakpoints for Mobile (< 900px) */
@media (max-width: 900px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
  }

  .view {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #view-dashboard.active {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
  }

  .sidebar-backdrop {
    display: block;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    z-index: 999;
    transform: translateX(-100%);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
    padding-bottom: 74px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .topbar {
    padding: 10px 14px;
    gap: 10px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
  }

  .menu-toggle:active {
    background: rgba(255, 255, 255, 0.18);
  }

  .topbar-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-right {
    gap: 8px;
  }

  .balance-chip {
    padding: 4px 10px;
    font-size: 11.5px;
    border-radius: 20px;
  }

  .announcement-ticker-wrap {
    padding: 6px 12px;
    font-size: 11px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .section {
    padding: 14px 10px !important;
    gap: 12px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .dash-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px !important;
    border-radius: 12px !important;
    overflow-x: hidden !important;
  }

  /* Banner Welcome */
  .banner-welcome {
    flex-direction: column !important;
    text-align: center !important;
    padding: 16px 12px !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .welcome-mascot {
    width: 56px !important;
    height: 56px !important;
  }

  /* Stats Grid (Overview) */
  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .stat-card {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 10px !important;
  }
  .stat-card:nth-child(3) {
    grid-column: span 2 !important;
  }

  /* Dashboard Grid */
  .dash-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .quick-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .qa-btn {
    padding: 12px 8px !important;
    font-size: 11.5px !important;
  }

  /* Topup Grid */
  .topup-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  .amount-presets {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .preset-btn {
    padding: 10px 4px !important;
    font-size: 12px !important;
  }

  /* Create Key Mecha Panel */
  .panel-two-cols {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 14px !important;
    box-sizing: border-box !important;
  }

  .cyber-key-panel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 12px !important;
    border-radius: 14px !important;
    overflow-x: hidden !important;
  }

  .cyber-order-history-panel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 12px !important;
    border-radius: 14px !important;
    overflow-x: hidden !important;
    min-height: auto !important;
  }

  .cyber-carousel-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 4px 0 !important;
    gap: 0 !important;
    margin: 4px 0 16px !important;
  }

  .carousel-side-card {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .carousel-main-card {
    width: 100% !important;
    max-width: 275px !important;
    height: 350px !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
  }

  .main-card-display {
    width: 100% !important;
    height: 100% !important;
  }

  .cyber-plans-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cyber-plan-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
  }

  .cyber-bottom-bar {
    width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: 90px 1fr !important;
    gap: 8px !important;
  }

  .auth-card {
    width: 100% !important;
    max-width: 380px !important;
    padding: 22px 18px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .pin-card {
    width: 100% !important;
    max-width: 340px !important;
    padding: 20px 16px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .numpad {
    gap: 10px;
  }

  .num-btn {
    height: 52px;
    font-size: 20px;
    border-radius: 10px;
  }

  .team-add-card,
  .team-accounts-section,
  .team-logs-card {
    padding: 14px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Manage Resell & Team on Mobile */
  .team-form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .team-form-bottom-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .team-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .team-user-card {
    padding: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .team-card-field-row {
    flex-direction: row;
    gap: 6px;
    width: 100% !important;
  }

  .team-card-field-input {
    font-size: 12px;
    padding: 8px 10px;
    width: 100% !important;
  }

  .btn-orange-action {
    padding: 8px 12px;
    font-size: 11.5px;
  }

  /* Table responsive wrap */
  .table-wrap,
  .responsive-table-container,
  .team-logs-table-wrap,
  .history-table-wrap,
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    padding-bottom: 6px;
    box-sizing: border-box !important;
  }

  table,
  table.data-table {
    width: 100% !important;
    min-width: 460px !important;
  }

  /* Leaderboard on Mobile */
  .stadium-podium-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .podium-block {
    height: 70px !important;
  }

  /* Theme Studio on Mobile */
  .theme-studio-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Extra small screens (< 600px) */
@media (max-width: 600px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  #view-login.active, #view-pin.active,
  #view-login, #view-pin {
    padding: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .auth-card {
    width: 100% !important;
    max-width: 360px !important;
    padding: 22px 16px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .cf-turnstile-box {
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  .cf-left {
    gap: 8px !important;
  }

  .cf-label {
    font-size: 11.5px !important;
  }

  .cf-sublabel {
    font-size: 9px !important;
  }

  .cf-brand-name {
    font-size: 9.5px !important;
  }

  .cf-cloud-logo {
    width: 28px !important;
    height: 18px !important;
  }

  .cf-links {
    font-size: 8.5px !important;
  }

  .topbar {
    padding: 8px 10px;
  }

  .username-top {
    display: none !important;
  }

  .role-pill {
    padding: 2px 6px;
    font-size: 9px;
  }

  .balance-chip span:nth-child(2) {
    font-size: 11px;
  }

  .brand-img-logo {
    width: 52px !important;
    height: 52px !important;
  }

  .auth-title {
    font-size: 18px !important;
  }

  .auth-desc {
    font-size: 11.5px !important;
    margin-bottom: 16px !important;
  }
}



