:root {
  --bg-dark: #090d16;
  --bg-card: #111827;
  --bg-card-hover: #162032;
  --bg-modal: #0f172a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 242, 254, 0.35);
  --neon-cyan: #00f2fe;
  --accent-neon: #00f2fe;
  --neon-blue: #3b82f6;
  --neon-purple: #8b5cf6;
  --accent-gold: #f59e0b;
  --success-green: #10b981;
  --danger-red: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-main: 'Plus Jakarta Sans', 'Prompt', -apple-system, sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.18);
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOP TICKER */
.top-ticker {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 0;
}
.ticker-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--success-green);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--success-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.badge-sandbox {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* NAVBAR */
.navbar {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.5));
}
.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 40%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 8px;
}
.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-item:hover, .nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-admin {
  color: var(--accent-gold);
}
.nav-admin:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #fff;
}

/* NAV ACTIONS & WALLET */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-chip {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 12px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.wallet-chip:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--success-green);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}
.wallet-amount {
  font-weight: 700;
  color: var(--success-green);
  font-size: 0.95rem;
}
.btn-topup-mini {
  background: var(--success-green);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.85rem;
}

/* HERO SECTION */
.hero-section {
  padding: 30px 0 20px;
}
.hero-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  max-width: 580px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-left: 1px solid var(--border);
  padding-left: 35px;
}
.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--neon-cyan);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* BUTTONS */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 114, 255, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
}
.btn-outline:hover {
  background: rgba(0, 242, 254, 0.1);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* FILTER & SEARCH */
.filter-section {
  padding: 20px 0;
}
.filter-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  flex: 1;
  min-width: 260px;
}
.search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.92rem;
  width: 100%;
  outline: none;
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.pill-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.pill-btn.active {
  background: var(--neon-cyan);
  color: #000;
  font-weight: 700;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* CATALOG GRID */
.catalog-container {
  padding: 10px 20px 60px;
}
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
}
.sort-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.sort-selector select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  outline: none;
}

/* PRODUCT CARD */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}
.card-poster-wrapper {
  position: relative;
  width: 100%;
  padding-top: 145%; /* 2:3 aspect ratio */
  overflow: hidden;
  background: #1e293b;
}
.card-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .card-poster {
  transform: scale(1.06);
}
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.badge-type {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.badge-rental {
  color: var(--neon-cyan);
  border-color: rgba(0, 242, 254, 0.4);
}
.badge-offline {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.4);
}
.badge-sandbox-tag {
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.4);
}
.badge-discount {
  background: var(--danger-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
}
.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}
.card-genres {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-pricing {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}
.price-strike {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: line-through;
}
.price-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--neon-cyan);
}
.price-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.1);
  animation: modalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-sm { width: 100%; max-width: 440px; padding: 30px; }
.modal-md { width: 100%; max-width: 550px; padding: 30px; }
.modal-lg { width: 100%; max-width: 820px; padding: 32px; }
.modal-xl { width: 100%; max-width: 980px; padding: 32px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* PRODUCT DETAIL MODAL */
.pdetail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}
.pdetail-poster {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.pdetail-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.pdetail-genres {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.genre-tag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}
.denuvo-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  margin-bottom: 16px;
}
.pdetail-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.options-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}
.options-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #fff;
}
.duration-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.duration-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.duration-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.duration-btn.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.1);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.duration-days { font-weight: 700; font-size: 1rem; }
.duration-price { color: var(--neon-cyan); font-size: 0.9rem; }

/* INVENTORY & RENTAL TABS */
.inv-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.inv-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.inv-tab-btn.active {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}
.inv-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rental-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.rental-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rental-game-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: var(--radius-md);
}
.rental-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.rental-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.countdown-box {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.countdown-label { font-size: 0.72rem; color: var(--neon-cyan); text-transform: uppercase; font-weight: 700; }
.countdown-val { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: 1px; }

.rental-creds {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex;
  gap: 14px;
  align-items: center;
}
.cred-copy {
  cursor: pointer;
  color: var(--neon-cyan);
  font-weight: 600;
}

/* STEAM GUARD 2FA POPUP */
.guard-header { margin-bottom: 20px; }
.guard-shield { font-size: 3rem; margin-bottom: 8px; filter: drop-shadow(0 0 12px var(--neon-cyan)); }
.guard-code-box {
  background: rgba(0, 0, 0, 0.5);
  border: 2px dashed rgba(0, 242, 254, 0.4);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.guard-code {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--neon-cyan);
  font-family: monospace;
  margin-bottom: 12px;
}
.timer-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.timer-progress {
  height: 100%;
  background: var(--neon-cyan);
  width: 100%;
  transition: width 1s linear;
}
.timer-text { font-size: 0.85rem; color: var(--text-muted); }
.guard-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
}

/* TOPUP MODAL */
.topup-current-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.topup-step-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}
.step-badge-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 14px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent-neon);
  color: #000;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}
.kbank-transfer-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14) 0%, rgba(6, 78, 59, 0.25) 50%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.15);
}
.kbank-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.kbank-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #34d399;
  font-weight: 700;
  white-space: nowrap;
}
.kbank-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  flex-shrink: 0;
}
.kbank-auto-tag {
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 10px;
  border-radius: 20px;
  color: #6ee7b7;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.kbank-acc-section {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.kbank-acc-label {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 500;
}
.kbank-number-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  padding: 6px 10px 6px 12px;
}
.kbank-number {
  font-family: 'JetBrains Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.2px;
  white-space: nowrap !important;
  flex-shrink: 0;
}
.btn-copy-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #10b981;
  color: #022c22;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap !important;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-copy-action:hover {
  background: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.btn-copy-action:active {
  transform: translateY(0);
}
.kbank-name-tag {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 500;
}
.kbank-qr-wrapper {
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  max-width: 175px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.kbank-qr-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.qr-caption {
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.25;
}

/* SUCCESS CELEBRATION MODAL */
.success-popup-card {
  max-width: 440px !important;
  background: linear-gradient(165deg, #0b1329 0%, #064e3b 160%) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(16, 185, 129, 0.25) !important;
  border-radius: 18px !important;
  padding: 26px 20px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.success-popup-card::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.success-animated-badge {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.success-badge-circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.65);
  animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-checkmark-icon {
  font-size: 2.2rem;
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
}
@keyframes badgePop {
  0% { transform: scale(0.2); opacity: 0; }
  60% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.success-popup-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.success-popup-sub {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 14px;
}
.success-amount-highlight {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 8px 18px;
  margin-bottom: 16px;
}
.success-amount-plus {
  font-size: 1.3rem;
  font-weight: 800;
  color: #34d399;
}
.success-amount-text {
  font-size: 1.85rem;
  font-weight: 900;
  color: #34d399;
  letter-spacing: 0.5px;
}
.success-receipt-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  text-align: left;
}
.receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 10px;
}
.receipt-lbl {
  color: #94a3b8;
  flex-shrink: 0;
}
.receipt-val {
  color: #e2e8f0;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}
.receipt-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
}
.receipt-total-row {
  border-bottom: none;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}
.success-actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-glow {
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

/* SLIP DROPZONE */
.slip-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}
.slip-dropzone:hover, .slip-dropzone.drag-over {
  border-color: var(--accent-neon);
  background: rgba(0, 240, 255, 0.04);
}
.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.dropzone-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.dropzone-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.dropzone-subtitle kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
}
.dropzone-tag {
  display: inline-block;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 20px;
  color: #94a3b8;
}
.dropzone-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.dropzone-preview img {
  max-width: 100%;
  max-height: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
}
.preview-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.preview-filename {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-filesize {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.btn-cancel-slip {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
}
.btn-cancel-slip:hover {
  background: rgba(239, 68, 68, 0.3);
}

.slip-status-box {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
}
.slip-status-box.loading {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #67e8f9;
  display: flex;
  align-items: center;
  gap: 10px;
}
.slip-status-box.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.slip-status-box.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* SANDBOX PANEL */
.sandbox-topup-panel {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.sandbox-topup-panel summary {
  font-size: 0.82rem;
  color: #94a3b8;
  cursor: pointer;
  font-weight: 600;
}
.sandbox-inner {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}
.amount-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 8px 0;
}
.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
}
.preset-btn.active {
  border-color: var(--accent-neon);
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-neon);
}
.custom-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.custom-amount input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  width: 90px;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ADMIN SLIPS LIST */
.admin-slips-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.admin-slip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
}
.admin-slip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-slip-ref {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.btn-view-slip {
  font-size: 0.75rem;
  padding: 4px 8px;
}

/* ADMIN PANEL */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admin-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.admin-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  color: #fff;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.input-with-unit {
  position: relative;
}
.input-with-unit input { padding-right: 36px; }
.input-with-unit .unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.form-tip { font-size: 0.75rem; color: var(--text-dim); display: block; margin-top: 4px; }

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast-success { border-color: var(--success-green); color: #fff; }
.toast-error { border-color: var(--danger-red); color: #fff; }

/* FOOTER */
.footer {
  background: #080c14;
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-desc { color: var(--text-muted); font-size: 0.88rem; max-width: 440px; margin-top: 10px; }
.footer-right {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}
.footer-links h4, .footer-info h4 { font-size: 0.95rem; margin-bottom: 12px; color: #fff; }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 6px; }
.footer-links a:hover { color: var(--neon-cyan); }
.footer-info p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 16px; font-size: 0.8rem; color: var(--text-dim); text-align: center; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; padding: 25px; }
  .hero-stats { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 20px; flex-direction: row; }
  .pdetail-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .container { padding: 0 12px; }
  .brand-title { font-size: 1.1rem; }
  .brand-sub { font-size: 0.6rem; }
  .wallet-chip { padding: 4px 8px; font-size: 0.78rem; gap: 4px; }
  .wallet-label { display: none; }
  .wallet-amount { font-size: 0.85rem; }
  .btn-topup-mini { width: 18px; height: 18px; font-size: 0.75rem; }
  .top-ticker { font-size: 0.72rem; }
  .nav-links { display: none; }
  .user-chip { display: none; }
  .hero-card { padding: 20px 16px; }
  .hero-title { font-size: 1.45rem; line-height: 1.3; word-break: break-word; }
  .hero-desc { font-size: 0.88rem; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 16px; }
  .stat-box { padding: 10px 8px; text-align: center; }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 0.7rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 8px; }
  .card-title { font-size: 0.85rem; height: 2.6em; }
  .filter-wrapper { padding: 12px; }
  .search-box { min-width: 100%; }
  .filter-pills { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .pill-btn { font-size: 0.8rem; padding: 6px 12px; white-space: nowrap; }
  body { padding-bottom: 70px; } /* for mobile bottom bar */

  /* Modal Mobile Tuning */
  .modal-overlay { padding: 10px; }
  .modal-card { width: 100%; max-height: 94vh; padding: 20px 14px; margin: auto; }
  .topup-modal-card { padding: 18px 12px !important; }
  .topup-step-box { padding: 12px 10px; margin-bottom: 12px; }
  .kbank-transfer-card { padding: 12px 10px; }
  .kbank-badge-header { margin-bottom: 10px; }
  .kbank-brand-title { font-size: 0.88rem; }
  .kbank-auto-tag { font-size: 0.68rem; padding: 2px 7px; }
  .kbank-acc-section { padding: 10px 8px; margin-bottom: 12px; }
  .kbank-number-wrapper { padding: 6px 8px; gap: 6px; }
  .kbank-number { font-size: clamp(1.05rem, 4.8vw, 1.25rem); letter-spacing: 0.8px; }
  .btn-copy-action { padding: 5px 8px; font-size: 0.74rem; }
  .kbank-name-tag { font-size: 0.78rem; }
  .kbank-qr-wrapper { max-width: 160px; padding: 8px; }
  .success-popup-card { width: 100% !important; padding: 20px 14px !important; }
  .success-amount-text { font-size: 1.6rem; }
}

/* MOBILE BOTTOM NAV BAR */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  gap: 3px;
  padding: 6px 12px;
  transition: var(--transition);
}
.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--neon-cyan);
}
.mobile-nav-icon {
  font-size: 1.25rem;
}
@media (max-width: 650px) {
  .mobile-bottom-nav { display: flex; }
}

