/* ==========================================
   VIPxSINAGA GAME STORE - BESPOKE LUXURY UI
   Theme: Ultra Dark Glassmorphism & Neon Glow
   Fonts: Plus Jakarta Sans & Outfit (Google Fonts)
   ========================================== */

:root {
  /* Color Palette Tokens */
  --bg-primary: #06090e;
  --bg-secondary: #0c121d;
  --bg-card: rgba(15, 23, 38, 0.76);
  --bg-card-hover: rgba(22, 33, 54, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 242, 254, 0.35);
  --border-active: #00f2fe;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary-color: #00f2fe;
  --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --purple-gradient: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
  --emerald-color: #10b981;
  --emerald-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --amber-color: #f59e0b;
  --rose-color: #f72585;
  --danger-color: #ef4444;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.25);
  
  --border-radius-sm: 10px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(121, 40, 202, 0.06) 0%, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.025) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  color: var(--text-primary);
  min-height: 100vh;
  padding: 24px 0 40px;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Ambient Background Glow */
.ambient-blur-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  animation: floatAnim 18s ease-in-out infinite alternate;
}

.blob-primary {
  width: 550px;
  height: 550px;
  background: var(--primary-gradient);
  top: -10%;
  left: -10%;
}

.blob-accent {
  width: 500px;
  height: 500px;
  background: var(--purple-gradient);
  bottom: -10%;
  right: -10%;
  animation-delay: -6s;
}

.blob-emerald {
  width: 400px;
  height: 400px;
  background: var(--emerald-gradient);
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  animation-delay: -12s;
}

.blob-gold {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  top: 20%;
  right: 15%;
  opacity: 0.05;
  animation-delay: -9s;
}

@keyframes floatAnim {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 25px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Container */
.app-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* Header Navbar */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 8px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon-glow {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-gradient);
  color: #04080f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.45);
  transition: var(--transition-fast);
}

.brand-logo:hover .logo-icon-glow {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.65);
}

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

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.1;
}

.accent-text {
  color: var(--primary-color);
  text-shadow: 0 0 14px rgba(0, 242, 254, 0.5);
}

.brand-tagline {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-color);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-color);
  box-shadow: 0 0 10px var(--emerald-color);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-api {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.12);
}

/* Hero Announcement Ticker */
.hero-ticker {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.08) 0%, rgba(121, 40, 202, 0.08) 100%);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--border-radius-md);
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(14px);
}

.ticker-badge {
  background: var(--purple-gradient);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.ticker-content {
  font-size: 13px;
  color: var(--text-secondary);
}

.discount-highlight {
  color: var(--primary-color);
  font-weight: 800;
}

/* Layout Grid */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  transition: var(--transition-normal);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: 24px;
}

.header-title-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.step-counter-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
}

.header-description {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Interactive 4-Step Progress Bar */
.order-step-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
}

.step-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition-normal);
  user-select: none;
}

.step-bar-item.active,
.step-bar-item.completed {
  opacity: 1;
}

.step-bar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  flex-shrink: 0;
}

.step-bar-item.active .step-bar-circle {
  background: var(--primary-gradient);
  border-color: var(--primary-color);
  color: #04080f;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.step-bar-item.completed .step-bar-circle {
  background: var(--emerald-gradient);
  border-color: var(--emerald-color);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.step-bar-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.step-bar-item.active .step-bar-label {
  color: var(--primary-color);
}

.step-bar-item.completed .step-bar-label {
  color: var(--text-primary);
}

.step-bar-line {
  flex-grow: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 10px;
  transition: var(--transition-normal);
}

.step-bar-line.active {
  background: var(--primary-gradient);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Multi-Step Form Sections */
.form-step-section {
  display: none;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--transition-normal);
  position: relative;
}

.form-step-section.active {
  display: block;
  animation: stepFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

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

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.step-number-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #04080f;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.35);
}

.step-title-group {
  flex-grow: 1;
}

.step-title-group h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.step-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.badge-discount {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-color);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.game-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: var(--transition-normal);
  user-select: none;
}

.game-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.game-card.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--border-active);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.game-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition-fast);
}

.game-card.active .game-card-icon {
  background: var(--primary-gradient);
  color: #04080f;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.game-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.game-card-code {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

.game-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-ready {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-color);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-maintenance {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.game-card.maintenance {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* Paket Cards Grid */
.paket-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.paket-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 14px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: var(--transition-normal);
  user-select: none;
}

.paket-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.paket-card.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--border-active);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.18);
}

.paket-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.paket-duration {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.paket-bonus {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald-color);
}

.paket-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.paket-card.active .paket-radio {
  border-color: var(--primary-color);
}

.radio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.custom-input,
.custom-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  padding: 14px 44px 14px 44px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  border-radius: var(--border-radius-md);
  transition: var(--transition-fast);
  appearance: none;
  outline: none;
}

.custom-select {
  cursor: pointer;
}

.custom-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 12px;
}

.custom-input:focus,
.custom-select:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-active);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.15);
}

.select-arrow-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mb-0 { margin-bottom: 0 !important; }
.text-accent { color: var(--primary-color) !important; }
.text-warning { color: var(--amber-color) !important; }

/* Step Navigation Buttons */
.step-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  gap: 14px;
}

.step-nav-buttons.justify-end {
  justify-content: flex-end;
}

/* Payment Card */
.method-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition-normal);
  overflow: hidden;
}

.method-card.active {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--border-active);
  box-shadow: var(--glow-cyan);
}

.qris-card-glow-bg {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: var(--primary-gradient);
  filter: blur(60px);
  opacity: 0.1;
  pointer-events: none;
}

.method-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--emerald-gradient);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 30px;
}

.method-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qris-brand-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.qris-q { color: #3b82f6; }
.qris-is { color: #ef4444; }
.qris-tag { font-size: 14px; color: var(--text-primary); margin-left: 4px; font-weight: 700; }

.method-card-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-card-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
}

.method-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.method-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Buttons */
.btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-normal);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
}

.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--primary-gradient);
  color: #04080f;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.45);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-secondary);
}

.btn-pay-cta {
  font-size: 16px;
  padding: 14px 28px;
}

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--border-radius-sm); }
.btn-xs { padding: 5px 12px; font-size: 11px; border-radius: 6px; }

.btn-primary-outline {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary-color);
  font-weight: 700;
}

.btn-primary-outline:hover {
  background: var(--primary-gradient);
  color: #04080f;
}

/* Right Column Summary */
.checkout-summary-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-card-sticky {
  position: sticky;
  top: 24px;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-icon {
  font-size: 20px;
  color: var(--primary-color);
}

.summary-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.summary-divider {
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-label i {
  color: var(--primary-color);
  width: 14px;
}

.summary-val {
  color: var(--text-primary);
  text-align: right;
}

.text-bold { font-weight: 700; }

.code-text {
  font-family: monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Price Breakdown */
.strikethrough-price {
  text-decoration: line-through;
  opacity: 0.6;
}

.discount-tag-text {
  color: var(--emerald-color);
  font-weight: 800;
}

.total-row {
  margin-top: 10px;
}

.total-row span:first-child {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.total-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-color) !important;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.merchant-protection {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 12px 14px;
  border-radius: var(--border-radius-sm);
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-secondary);
}

.protection-icon {
  color: var(--emerald-color);
  font-size: 18px;
  flex-shrink: 0;
}

/* Client Download Widget */
.client-downloads-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-widget-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.download-widget-title i {
  color: var(--primary-color);
}

.client-download-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-item-info {
  display: flex;
  flex-direction: column;
}

.client-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.client-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.summary-footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
}

.summary-footer-note i {
  color: var(--primary-color);
}

/* Invoice QR Screen */
.invoice-section {
  max-width: 850px;
  margin: 20px auto;
}

.invoice-container {
  padding: 0;
  overflow: hidden;
}

.demo-banner {
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--amber-color);
  padding: 12px 24px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-success-light {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-color);
  font-weight: 700;
  white-space: nowrap;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
}

.badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--amber-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.invoice-title h2 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 4px;
  font-family: monospace;
}

.invoice-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  padding: 32px;
}

.qr-code-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-container {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.qr-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--bg-primary);
}

.qr-instructions { text-align: center; }

.qr-instructions p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.detail-group h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.detail-list {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
}

.detail-row:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.detail-amount-highlight {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-color);
}

.timer-card {
  background: rgba(247, 37, 133, 0.05);
  border: 1px solid rgba(247, 37, 133, 0.2);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.timer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}

.countdown-clock {
  font-size: 20px;
  font-weight: 900;
  color: var(--rose-color);
  font-family: monospace;
}

.progress-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f72585 0%, #7928ca 100%);
  border-radius: 50px;
  transition: width 1s linear;
}

.status-checker-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
}

.spinner-small {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 242, 254, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  flex-shrink: 0;
}

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

#poller-text {
  font-size: 12px;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Success Screen */
.success-section {
  max-width: 540px;
  margin: 30px auto;
}

.success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 36px;
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.15);
}

.success-icon-bg {
  width: 84px;
  height: 84px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: pulseSuccess 2s infinite;
}

.success-check-icon {
  font-size: 46px;
  color: var(--emerald-color);
}

@keyframes pulseSuccess {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 24px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.success-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--emerald-color);
  margin-bottom: 10px;
}

.success-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.success-details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  width: 100%;
  margin-bottom: 28px;
}

.success-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
}

.success-detail-row:not(:last-child) {
  border-bottom: 1px dashed var(--border-color);
}

.highlight-key-row {
  background: rgba(0, 242, 254, 0.08);
  border: 1px dashed rgba(0, 242, 254, 0.35) !important;
  padding: 14px !important;
  border-radius: var(--border-radius-md) !important;
  margin-bottom: 10px;
}

.key-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.key-display strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-color);
  font-family: monospace;
}

.btn-copy-mini {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-mini:hover {
  background: rgba(0, 242, 254, 0.2);
  color: var(--primary-color);
}

.btn-copy-mini.copied {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-color);
  border-color: rgba(16, 185, 129, 0.4);
}

.download-link-badge {
  color: var(--primary-color);
  text-decoration: none;
}

.action-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-download-client-act {
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 800;
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* Footer */
.app-footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 12px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  
  .invoice-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hero-ticker {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .app-container { padding: 0 16px; }
  .card { padding: 20px; }
  .app-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .header-badges { width: 100%; justify-content: space-between; }
  .games-grid, .paket-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .step-bar-label { display: none; }
}

/* ==========================================
   THEME SWITCHER WIDGET
   ========================================== */

.theme-switcher-wrap {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.theme-toggle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--primary-gradient);
  color: #04080f;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
  transform: scale(1.12) rotate(15deg);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.5);
}

.theme-panel {
  background: rgba(10, 15, 25, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}

.theme-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.theme-panel-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-opt {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  text-align: left;
  color: var(--text-primary);
}

.theme-opt:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-3px);
}

.theme-opt.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.theme-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.theme-dot-default { background: linear-gradient(135deg, #00f2fe, #4facfe); }
.theme-dot-pink    { background: linear-gradient(135deg, #ff69b4, #d63384); }
.theme-dot-hyper   { background: conic-gradient(#ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #ff006e); animation: spinHue 3s linear infinite; }

@keyframes spinHue {
  to { filter: hue-rotate(360deg); }
}

.theme-opt-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.theme-opt-label small {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.55;
}

/* ==========================================
   THEME: PEREMPUAN (Pink / Rose)
   ========================================== */

body.theme-pink {
  --bg-primary:    #130813;
  --bg-secondary:  #1e0d1e;
  --bg-card:       rgba(40, 10, 40, 0.80);
  --bg-card-hover: rgba(55, 15, 55, 0.90);

  --border-color:  rgba(255, 105, 180, 0.15);
  --border-hover:  rgba(255, 105, 180, 0.45);
  --border-active: #ff69b4;

  --text-primary:   #fff0f8;
  --text-secondary: #e8a0c0;
  --text-muted:     #c07090;

  --primary-color:    #ff69b4;
  --primary-gradient: linear-gradient(135deg, #ff69b4 0%, #d63384 100%);
  --purple-gradient:  linear-gradient(135deg, #c71585 0%, #8b0057 100%);
  --emerald-color:    #ff85c2;
  --emerald-gradient: linear-gradient(135deg, #d63384 0%, #ff85c2 100%);
  --amber-color:      #ff85c2;
  --rose-color:       #ff1493;
  --danger-color:     #ff4d94;

  --glow-cyan: 0 0 25px rgba(255, 105, 180, 0.3);

  font-family: 'Nunito', sans-serif;

  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 50% 0%,   rgba(255, 105, 180, 0.10) 0%, transparent 65%),
    radial-gradient(circle at 80% 80%,  rgba(214, 51, 132, 0.08)  0%, transparent 55%),
    radial-gradient(circle at 20% 60%,  rgba(199, 21, 133, 0.05)  0%, transparent 45%),
    radial-gradient(rgba(255, 182, 220, 0.015) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 24px 24px;
}

/* Pink blobs */
body.theme-pink .blob-primary  { background: linear-gradient(135deg, #ff69b4, #d63384); opacity: 0.2; }
body.theme-pink .blob-accent   { background: linear-gradient(135deg, #c71585, #8b0045); opacity: 0.18; }
body.theme-pink .blob-emerald  { background: linear-gradient(135deg, #ff85c2, #ff1493); opacity: 0.10; }
body.theme-pink .blob-gold     { background: linear-gradient(135deg, #ffb6d9, #ff69b4); opacity: 0.08; }

/* Pink header */
body.theme-pink .logo-icon-glow   { box-shadow: 0 0 22px rgba(255, 105, 180, 0.55); }
body.theme-pink .accent-text      { text-shadow: 0 0 14px rgba(255, 105, 180, 0.6); }
body.theme-pink .brand-title      { background: linear-gradient(135deg, #ff69b4, #fff0f8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.theme-pink .status-indicator { background: rgba(255, 105, 180, 0.1); border-color: rgba(255, 105, 180, 0.3); color: #ff85c2; }
body.theme-pink .pulse-dot        { background: #ff69b4; box-shadow: 0 0 10px #ff69b4; }
body.theme-pink .badge-api        { background: rgba(255, 105, 180, 0.08); border-color: rgba(255, 105, 180, 0.25); color: #ff69b4; }
body.theme-pink .hero-ticker      { background: linear-gradient(90deg, rgba(255, 105, 180, 0.08), rgba(214, 51, 132, 0.08)); border-color: rgba(255, 105, 180, 0.2); }

/* Pink cards */
body.theme-pink .card             { border-color: rgba(255, 105, 180, 0.12); }
body.theme-pink .card:hover       { border-color: rgba(255, 105, 180, 0.25); }
body.theme-pink .game-card.active { background: rgba(255, 105, 180, 0.10); border-color: #ff69b4; box-shadow: 0 0 20px rgba(255, 105, 180, 0.25); }
body.theme-pink .game-card-icon   { background: rgba(255, 105, 180, 0.12); color: #ff69b4; }
body.theme-pink .game-card.active .game-card-icon { background: var(--primary-gradient); color: #fff; box-shadow: 0 0 15px rgba(255, 105, 180, 0.5); }
body.theme-pink .game-card-code   { color: #ff69b4; background: rgba(255, 105, 180, 0.12); }
body.theme-pink .paket-card.active { background: rgba(255, 105, 180, 0.10); border-color: #ff69b4; box-shadow: 0 0 18px rgba(255, 105, 180, 0.2); }
body.theme-pink .paket-card-icon   { background: rgba(255, 105, 180, 0.12); color: #ff69b4; }
body.theme-pink .step-number-badge { box-shadow: 0 0 14px rgba(255, 105, 180, 0.4); }
body.theme-pink .step-bar-line.active  { box-shadow: 0 0 10px rgba(255, 105, 180, 0.4); }
body.theme-pink .form-step-section.active { border-color: rgba(255, 105, 180, 0.3); }

/* Pink buttons */
body.theme-pink .btn-primary      { box-shadow: 0 0 20px rgba(255, 105, 180, 0.3); }
body.theme-pink .btn-primary:hover { box-shadow: 0 0 30px rgba(255, 105, 180, 0.5); }

/* Pink inputs */
body.theme-pink .custom-input:focus,
body.theme-pink .custom-select:focus {
  border-color: #ff69b4;
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

/* Pink summary card */
body.theme-pink .order-summary-card { background: linear-gradient(145deg, rgba(40, 10, 40, 0.85), rgba(60, 15, 55, 0.85)); border-color: rgba(255, 105, 180, 0.2); }
body.theme-pink .summary-price-total { color: #ff69b4; text-shadow: 0 0 14px rgba(255, 105, 180, 0.5); }
body.theme-pink .price-badge-original { background: rgba(255, 105, 180, 0.12); border-color: rgba(255, 105, 180, 0.25); color: #ff85c2; }

/* Pink theme toggle button */
body.theme-pink .theme-toggle-btn {
  background: linear-gradient(135deg, #ff69b4, #d63384);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 105, 180, 0.4);
}
body.theme-pink .theme-toggle-btn:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 105, 180, 0.6);
}

/* Pink scrollbar */
body.theme-pink::-webkit-scrollbar-thumb { background: linear-gradient(#ff69b4, #d63384); }

/* Pink cute extras */
body.theme-pink .step-bar-item.active .step-bar-circle { animation: pinkPulse 2s ease-in-out infinite; }
@keyframes pinkPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(255, 105, 180, 0); }
}

/* ==========================================
   THEME: HYPER (Rainbow / Max Effects)
   ========================================== */

body.theme-hyper {
  --bg-primary:    #020204;
  --bg-secondary:  #05050a;
  --bg-card:       rgba(5, 5, 15, 0.82);
  --bg-card-hover: rgba(10, 8, 22, 0.92);

  --border-color:  rgba(255, 255, 255, 0.07);
  --border-hover:  rgba(255, 100, 255, 0.5);
  --border-active: #ff00ff;

  --text-primary:   #ffffff;
  --text-secondary: #c0b8d0;
  --text-muted:     #8070a0;

  --primary-color:    #ff00ff;
  --primary-gradient: linear-gradient(135deg, #ff006e 0%, #fb5607 30%, #ffbe0b 60%, #8338ec 100%);
  --purple-gradient:  linear-gradient(135deg, #8338ec 0%, #3a86ff 100%);
  --emerald-color:    #00ffcc;
  --emerald-gradient: linear-gradient(135deg, #00ffcc, #00b4d8);
  --amber-color:      #ffbe0b;
  --rose-color:       #ff006e;
  --danger-color:     #ff3860;

  --glow-cyan: 0 0 25px rgba(255, 0, 255, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);

  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(131, 56, 236, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(58, 134, 255, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 0, 110, 0.06) 0%, transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 22px 22px;
}

/* Hyper blobs — rainbow animated */
body.theme-hyper .blob         { animation-duration: 10s; opacity: 0.22; }
body.theme-hyper .blob-primary { background: linear-gradient(135deg, #ff006e, #8338ec); animation-delay: 0s; }
body.theme-hyper .blob-accent  { background: linear-gradient(135deg, #3a86ff, #00ffcc); animation-delay: -4s; }
body.theme-hyper .blob-emerald { background: linear-gradient(135deg, #ffbe0b, #fb5607); opacity: 0.15; animation-delay: -7s; }
body.theme-hyper .blob-gold    { background: linear-gradient(135deg, #ff006e, #3a86ff); opacity: 0.12; animation-delay: -2s; }

/* Hyper animated rainbow brand title */
body.theme-hyper .brand-title {
  background: linear-gradient(90deg, #ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #ff006e);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowText 3s linear infinite;
}
@keyframes rainbowText {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

body.theme-hyper .accent-text {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #ffbe0b, #ff006e);
  -webkit-background-clip: text;
  text-shadow: none;
}

/* Hyper logo — rainbow spinning border */
body.theme-hyper .logo-icon-glow {
  background: conic-gradient(#ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #ff006e);
  animation: rotateLogo 2.5s linear infinite;
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
}
@keyframes rotateLogo {
  to { filter: hue-rotate(360deg); }
}

/* Hyper header badges */
body.theme-hyper .status-indicator { background: rgba(0, 255, 204, 0.1); border-color: rgba(0, 255, 204, 0.4); color: #00ffcc; }
body.theme-hyper .pulse-dot        { background: #00ffcc; box-shadow: 0 0 12px #00ffcc; animation: pulseDotHyper 1s infinite; }
@keyframes pulseDotHyper {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.8); }
  50%      { box-shadow: 0 0 0 10px rgba(0, 255, 204, 0); }
}
body.theme-hyper .badge-api { background: rgba(131, 56, 236, 0.12); border-color: rgba(131, 56, 236, 0.4); color: #b78aff; }

/* Hyper hero ticker */
body.theme-hyper .hero-ticker {
  background: linear-gradient(90deg, rgba(131, 56, 236, 0.12), rgba(255, 0, 110, 0.1), rgba(58, 134, 255, 0.12));
  border-color: rgba(131, 56, 236, 0.3);
  animation: tickerGlow 3s ease-in-out infinite alternate;
}
@keyframes tickerGlow {
  from { box-shadow: 0 0 15px rgba(131, 56, 236, 0.2); }
  to   { box-shadow: 0 0 30px rgba(255, 0, 110, 0.3); }
}
body.theme-hyper .ticker-badge { background: conic-gradient(#ff006e, #fb5607, #ffbe0b, #8338ec); animation: spinHue 4s linear infinite; }

/* Hyper card border glow */
body.theme-hyper .card {
  border-color: rgba(131, 56, 236, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 0, 255, 0.05);
  transition: all 0.3s;
}
body.theme-hyper .card:hover {
  border-color: rgba(131, 56, 236, 0.4);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(131, 56, 236, 0.2);
}

/* Hyper game cards */
body.theme-hyper .game-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 255, 0.2);
  border-color: rgba(255, 0, 255, 0.35);
}
body.theme-hyper .game-card.active {
  background: rgba(255, 0, 255, 0.08);
  border-color: #ff00ff;
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.35), 0 0 60px rgba(131, 56, 236, 0.2);
  animation: hyperCardPulse 2s ease-in-out infinite;
}
@keyframes hyperCardPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(255, 0, 255, 0.35), 0 0 60px rgba(131, 56, 236, 0.2); }
  50%      { box-shadow: 0 0 40px rgba(255, 0, 255, 0.55), 0 0 80px rgba(131, 56, 236, 0.35); }
}
body.theme-hyper .game-card-icon {
  background: rgba(131, 56, 236, 0.15);
  color: #b78aff;
}
body.theme-hyper .game-card.active .game-card-icon {
  background: conic-gradient(#ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #ff006e);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
  animation: spinHue 3s linear infinite;
}
body.theme-hyper .game-card-code {
  color: #b78aff;
  background: rgba(131, 56, 236, 0.15);
}

/* Hyper paket cards */
body.theme-hyper .paket-card.active {
  background: rgba(58, 134, 255, 0.08);
  border-color: #3a86ff;
  box-shadow: 0 0 25px rgba(58, 134, 255, 0.4);
  animation: hyperPaketPulse 2s ease-in-out infinite;
}
@keyframes hyperPaketPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(58, 134, 255, 0.4); }
  50%      { box-shadow: 0 0 45px rgba(131, 56, 236, 0.5); }
}
body.theme-hyper .paket-card-icon { background: rgba(58, 134, 255, 0.15); color: #74b3ff; }

/* Hyper progress bar */
body.theme-hyper .step-number-badge {
  background: conic-gradient(#ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #ff006e);
  animation: spinHue 3s linear infinite;
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.5);
}
body.theme-hyper .step-bar-line.active {
  background: linear-gradient(90deg, #ff006e, #8338ec, #3a86ff);
  box-shadow: 0 0 12px rgba(131, 56, 236, 0.5);
}
body.theme-hyper .step-bar-item.active .step-bar-circle {
  animation: hyperCirclePulse 1.5s ease-in-out infinite;
}
@keyframes hyperCirclePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.6); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 0, 255, 0); }
}

/* Hyper step section active */
body.theme-hyper .form-step-section.active {
  border-color: rgba(131, 56, 236, 0.35);
  box-shadow: 0 0 30px rgba(131, 56, 236, 0.1);
}

/* Hyper button */
body.theme-hyper .btn-primary {
  background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
  background-size: 200% 200%;
  animation: hyperBtnShift 3s ease infinite;
  box-shadow: 0 0 25px rgba(131, 56, 236, 0.45);
}
@keyframes hyperBtnShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
body.theme-hyper .btn-primary:hover {
  box-shadow: 0 0 40px rgba(131, 56, 236, 0.7);
  transform: translateY(-2px) scale(1.02);
}

/* Hyper inputs */
body.theme-hyper .custom-input:focus,
body.theme-hyper .custom-select:focus {
  border-color: #8338ec;
  box-shadow: 0 0 0 3px rgba(131, 56, 236, 0.25), 0 0 15px rgba(131, 56, 236, 0.2);
}

/* Hyper summary */
body.theme-hyper .order-summary-card {
  background: linear-gradient(145deg, rgba(5, 5, 15, 0.9), rgba(10, 5, 20, 0.9));
  border-color: rgba(131, 56, 236, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(131, 56, 236, 0.1);
}
body.theme-hyper .summary-price-total {
  background: linear-gradient(90deg, #ff006e, #fb5607, #ffbe0b);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowText 2s linear infinite;
}
body.theme-hyper .price-badge-original {
  background: rgba(131, 56, 236, 0.12);
  border-color: rgba(131, 56, 236, 0.3);
  color: #b78aff;
}

/* Hyper discount badge */
body.theme-hyper .price-badge-discount {
  background: linear-gradient(135deg, #ff006e, #fb5607);
  border: none;
  animation: hyperBadgePulse 2s ease-in-out infinite;
}
@keyframes hyperBadgePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 0, 110, 0.4); }
  50%      { box-shadow: 0 0 20px rgba(255, 0, 110, 0.7); }
}

/* Hyper theme toggle button */
body.theme-hyper .theme-toggle-btn {
  background: conic-gradient(#ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #ff006e);
  animation: spinHue 4s linear infinite;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 0, 255, 0.4);
}

/* Hyper glitch effect on game card hover */
body.theme-hyper .game-card:not(.maintenance):hover .game-card-title {
  animation: glitchText 0.4s linear;
}
@keyframes glitchText {
  0%  { transform: translate(0); }
  20% { transform: translate(-2px, 1px); color: #ff006e; }
  40% { transform: translate(2px, -1px); color: #3a86ff; }
  60% { transform: translate(-1px, 2px); color: #ffbe0b; }
  80% { transform: translate(1px, -2px); }
  100%{ transform: translate(0); }
}

/* Hyper scrollbar */
body.theme-hyper::-webkit-scrollbar-thumb {
  background: conic-gradient(#ff006e, #8338ec, #3a86ff, #ff006e);
  animation: spinHue 3s linear infinite;
}

/* Hyper status badges */
body.theme-hyper .status-ready      { background: rgba(0, 255, 204, 0.12); color: #00ffcc; border-color: rgba(0, 255, 204, 0.35); }
body.theme-hyper .status-maintenance { background: rgba(255, 0, 110, 0.12); color: #ff4d8a; border-color: rgba(255, 0, 110, 0.35); }

/* Hyper header scanning line effect */
body.theme-hyper .app-header::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8338ec, #ff006e, transparent);
  bottom: -4px;
  animation: scanLine 3s ease-in-out infinite;
}
body.theme-hyper .app-header { position: relative; }
@keyframes scanLine {
  0%   { opacity: 0; transform: scaleX(0); }
  30%  { opacity: 1; transform: scaleX(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: scaleX(0); }
}

/* ==========================================
   CUSTOM ANIMATED CURSOR
   ========================================== */

/* Hide default cursor everywhere */
*, *::before, *::after { cursor: none !important; }

/* Center dot — snaps instantly to mouse */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, background 0.25s ease, box-shadow 0.25s ease;
  mix-blend-mode: difference;
}

/* Outer ring — follows with smooth lag */
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0, 242, 254, 0.7);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35), inset 0 0 8px rgba(0, 242, 254, 0.1);
}

/* Ring hover state — expands + glows on interactive elements */
#cursor-ring.cursor-hover {
  width: 46px;
  height: 46px;
  border-color: rgba(0, 242, 254, 1);
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.6), inset 0 0 14px rgba(0, 242, 254, 0.15);
}

/* Dot click state */
#cursor-dot.cursor-click {
  transform: translate(-50%, -50%) scale(2.5);
}

/* Trail sparkles */
.cursor-trail {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%) scale(1);
  transition: none;
  will-change: transform, opacity, left, top;
}

/* ---- Per-Theme Cursor Colors ---- */

/* Pink theme */
body.theme-pink #cursor-dot {
  background: #ff69b4;
  mix-blend-mode: normal;
  box-shadow: 0 0 8px rgba(255, 105, 180, 0.9);
}
body.theme-pink #cursor-ring {
  border-color: rgba(255, 105, 180, 0.8);
  box-shadow: 0 0 14px rgba(255, 105, 180, 0.4), inset 0 0 8px rgba(255, 105, 180, 0.1);
}
body.theme-pink #cursor-ring.cursor-hover {
  border-color: #ff69b4;
  box-shadow: 0 0 24px rgba(255, 105, 180, 0.7), inset 0 0 14px rgba(255, 105, 180, 0.15);
}

/* Hyper theme — rainbow spinning ring */
body.theme-hyper #cursor-dot {
  background: #ffffff;
  mix-blend-mode: normal;
  box-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 0, 255, 0.8);
  animation: hyperDotGlow 1s ease-in-out infinite alternate;
}
@keyframes hyperDotGlow {
  from { box-shadow: 0 0 8px #ff006e, 0 0 18px rgba(255, 0, 110, 0.6); }
  to   { box-shadow: 0 0 8px #3a86ff, 0 0 18px rgba(58, 134, 255, 0.6); }
}
body.theme-hyper #cursor-ring {
  border-color: transparent;
  background: conic-gradient(#ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #ff006e);
  -webkit-mask: radial-gradient(transparent 13px, black 14px);
  mask: radial-gradient(transparent 13px, black 14px);
  animation: hyperRingRotate 1.5s linear infinite;
  box-shadow: 0 0 16px rgba(255, 0, 255, 0.4);
}
body.theme-hyper #cursor-ring.cursor-hover {
  width: 50px;
  height: 50px;
  -webkit-mask: radial-gradient(transparent 20px, black 21px);
  mask: radial-gradient(transparent 20px, black 21px);
  box-shadow: 0 0 28px rgba(255, 0, 255, 0.7);
  animation: hyperRingRotateFast 0.7s linear infinite;
}
@keyframes hyperRingRotate {
  to { filter: hue-rotate(360deg); }
}
@keyframes hyperRingRotateFast {
  to { filter: hue-rotate(360deg); }
}

/* ==========================================
   VOUCHER INPUT UI
   ========================================== */

.voucher-group { margin-top: 4px; }

.label-optional {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
  opacity: 0.75;
}

.voucher-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.voucher-field-wrap {
  flex: 1;
}

.btn-voucher {
  flex-shrink: 0;
  background: var(--primary-gradient);
  color: #04080f;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition-fast);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.25);
}

.btn-voucher:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.45);
}

.btn-voucher:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.voucher-result {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 14px;
  animation: fadeInUp 0.25s ease;
}

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

.voucher-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-color);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
}

.voucher-err {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
}

/* Pink theme voucher */
body.theme-pink .btn-voucher {
  box-shadow: 0 0 14px rgba(255, 105, 180, 0.3);
}
body.theme-pink .btn-voucher:hover {
  box-shadow: 0 0 24px rgba(255, 105, 180, 0.5);
}
body.theme-pink .voucher-ok {
  color: #ff85c2;
  background: rgba(255, 105, 180, 0.1);
  border-color: rgba(255, 105, 180, 0.3);
}

/* Hyper theme voucher */
body.theme-hyper .btn-voucher {
  background: linear-gradient(135deg, #ff006e, #8338ec);
  box-shadow: 0 0 16px rgba(131, 56, 236, 0.4);
  color: #fff;
  animation: hyperBtnShift 3s ease infinite;
}
body.theme-hyper .voucher-ok {
  color: #00ffcc;
  background: rgba(0, 255, 204, 0.08);
  border-color: rgba(0, 255, 204, 0.3);
}

/* ==========================================
   SUMMARY VOUCHER CODE BADGE
   ========================================== */

.summary-voucher-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  font-family: 'Outfit', monospace;
}

/* State: belum dipakai */
.summary-voucher-empty {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0;
}

/* State: voucher aktif berhasil */
.summary-voucher-active {
  color: var(--emerald-color);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  animation: voucherPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes voucherPop {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* Discount tag — no voucher state */
.summary-no-voucher {
  color: var(--text-muted) !important;
  font-weight: 500;
}

/* Pink theme overrides */
body.theme-pink .summary-voucher-active {
  color: #ff85c2;
  background: rgba(255, 105, 180, 0.12);
  border-color: rgba(255, 105, 180, 0.35);
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.2);
}

/* Hyper theme overrides */
body.theme-hyper .summary-voucher-active {
  color: #00ffcc;
  background: rgba(0, 255, 204, 0.1);
  border-color: rgba(0, 255, 204, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.25);
  animation: voucherPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), hyperVoucherGlow 2s ease-in-out infinite alternate;
}
@keyframes hyperVoucherGlow {
  from { box-shadow: 0 0 8px rgba(0, 255, 204, 0.25); }
  to   { box-shadow: 0 0 18px rgba(131, 56, 236, 0.4); }
}

/* ==========================================
   PROMO MODAL & LIHAT PROMO BUTTON
   ========================================== */

.btn-lihat-promo {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-lihat-promo:hover {
  opacity: 0.85;
  transform: translateX(3px);
}

/* Modal Background Overlay */
.promo-modal-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.promo-modal-bg.open {
  display: flex;
  opacity: 1;
}

/* Modal Box */
.promo-modal-box {
  background: rgba(12, 18, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.15);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.promo-modal-bg.open .promo-modal-box {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.promo-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.promo-modal-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.promo-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #04080f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.promo-modal-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.promo-modal-title p {
  font-size: 12px;
  color: var(--text-secondary);
}

.promo-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.promo-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger-color);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Modal Body */
.promo-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promo-loading, .promo-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Promo Card Item */
.promo-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.promo-item-card:hover {
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid var(--border-active);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.18);
  transform: translateY(-2px);
}

.promo-item-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-code-pill {
  font-family: 'Outfit', monospace;
  font-size: 16px;
  font-weight: 900;
  color: var(--primary-color);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 1px;
}

.promo-discount-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--amber-color);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
}

.promo-item-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.promo-item-meta {
  font-size: 11px;
}

.promo-kuota-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--emerald-color);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.promo-kuota-badge.kuota-unlimited {
  color: var(--primary-color);
  background: rgba(0, 242, 254, 0.08);
}

.btn-use-promo {
  background: var(--primary-gradient);
  color: #04080f;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.25);
}

.btn-use-promo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.45);
}

/* Modal Footer */
.promo-modal-footer {
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme variations */
body.theme-pink .promo-modal-icon {
  background: linear-gradient(135deg, #ff69b4, #d63384);
  box-shadow: 0 0 16px rgba(255, 105, 180, 0.4);
}
body.theme-pink .promo-code-pill {
  color: #ff69b4;
  background: rgba(255, 105, 180, 0.1);
  border-color: rgba(255, 105, 180, 0.25);
}
body.theme-pink .promo-item-card:hover {
  background: rgba(255, 105, 180, 0.06);
  border-color: #ff69b4;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
}
body.theme-pink .btn-use-promo {
  background: linear-gradient(135deg, #ff69b4, #d63384);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 105, 180, 0.3);
}

body.theme-hyper .promo-modal-icon {
  background: conic-gradient(#ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #ff006e);
  animation: spinHue 3s linear infinite;
  color: #ffffff;
}
body.theme-hyper .promo-code-pill {
  color: #00ffcc;
  background: rgba(0, 255, 204, 0.1);
  border-color: rgba(0, 255, 204, 0.3);
}
body.theme-hyper .promo-item-card:hover {
  background: rgba(131, 56, 236, 0.12);
  border-color: #ff00ff;
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.3);
}
body.theme-hyper .btn-use-promo {
  background: linear-gradient(135deg, #ff006e, #8338ec);
  color: #ffffff;
  animation: hyperBtnShift 3s ease infinite;
}

/* ==========================================
   PRINT / PDF STYLESHEET
   ========================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: Arial, sans-serif !important;
    font-size: 11pt !important;
  }

  canvas,
  #hyper-particles,
  #hyper-stars,
  .ambient-blur-container,
  .theme-switcher-wrap,
  .app-header,
  .hero-ticker,
  #checkout-section,
  #success-section,
  .app-footer,
  #cursor-dot,
  #cursor-ring,
  #demo-banner,
  .invoice-header-actions,
  .step-nav-buttons,
  .promo-modal-bg,
  .status-checker-card,
  .qr-actions,
  #btn-copy-va {
    display: none !important;
  }

  .invoice-section {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .invoice-container {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #333333 !important;
    box-shadow: none !important;
    padding: 20px !important;
    border-radius: 10px !important;
  }

  .invoice-header {
    border-bottom: 2px solid #333333 !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
  }

  .invoice-title h2 {
    color: #000000 !important;
    font-size: 18pt !important;
  }

  .badge-pending {
    border: 1px solid #333333 !important;
    color: #333333 !important;
    background: #f1f5f9 !important;
  }

  .invoice-body {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    padding: 0 !important;
  }

  .va-invoice-card {
    background: #f8fafc !important;
    border: 2px dashed #000000 !important;
    color: #000000 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 16px !important;
  }

  .va-invoice-card div {
    color: #000000 !important;
    text-shadow: none !important;
  }

  .va-invoice-card div[style*="Outfit"] {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    font-size: 20pt !important;
  }

  .detail-list,
  .timer-card,
  .detail-group {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #000000 !important;
  }

  .detail-row span,
  .detail-row strong {
    color: #000000 !important;
  }

  .detail-amount-highlight {
    color: #000000 !important;
    font-size: 16pt !important;
  }

  .qr-container {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }
}

/* ==========================================
   HISTORY & MASTER HISTORY MODAL STYLING
   ========================================== */

.btn-history-trigger {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-history-trigger:hover {
  background: rgba(0, 242, 254, 0.18);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
  transform: translateY(-1px);
}

.history-modal-bg,
.edit-tx-modal-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 15, 0.85);
  backdrop-filter: blur(14px) saturate(180%);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.history-modal-bg.open,
.edit-tx-modal-bg.open {
  display: flex;
  animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.history-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--border-radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 242, 254, 0.15);
  overflow: hidden;
}

.history-modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.history-modal-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.history-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #04080f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--glow-cyan);
}

.history-modal-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.history-modal-title p {
  font-size: 12px;
  color: var(--text-secondary);
}

.history-modal-close,
.edit-tx-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.history-modal-close:hover,
.edit-tx-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Tabs */
.history-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 28px 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.history-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.history-tab-btn:hover {
  color: var(--text-primary);
}

.history-tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-badge {
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary-color);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
}

/* Body & Panes */
.history-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.history-tab-pane {
  display: none;
}

.history-tab-pane.active {
  display: block;
}

/* Filter bar */
.history-filter-bar {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.history-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.history-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.history-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 10px 14px 10px 40px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition-fast);
}

.history-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

.history-status-filters {
  display: flex;
  gap: 8px;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filter-chip.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-chip.chip-paid.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-color);
  color: var(--emerald-color);
}

.filter-chip.chip-pending.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-color);
  color: var(--amber-color);
}

/* History Cards List */
.history-list-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-loading,
.history-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.history-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 18px 20px;
  transition: var(--transition-fast);
}

.history-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.history-ref {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-status-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-status-tag.status-paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-color);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.history-status-tag.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-color);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.history-status-tag.status-expired,
.history-status-tag.status-failed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.history-grid-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  font-size: 13px;
}

.history-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-info-item .info-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-info-item .info-val {
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-all;
}

.history-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.history-member-key-box {
  background: rgba(0, 242, 254, 0.08);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-member-key-box strong {
  font-family: monospace;
  color: var(--primary-color);
  font-size: 13px;
}

/* Master Auth Box */
.master-login-box {
  max-width: 440px;
  margin: 30px auto;
}

.master-login-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px 28px;
  text-align: center;
}

.master-lock-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--purple-color, #8338ec));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.3);
}

.master-login-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.master-login-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.master-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.master-auth-err {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}

.master-pass-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

.master-pass-note code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--primary-color);
}

/* Master Admin Dashboard */
.master-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 12px 18px;
  border-radius: var(--border-radius-md);
  flex-wrap: wrap;
  gap: 10px;
}

.master-badge-active {
  color: var(--emerald-color);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-master-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-master-logout:hover {
  background: rgba(239, 68, 68, 0.25);
}

.master-action-btns {
  display: flex;
  gap: 8px;
}

.btn-act-edit,
.btn-act-del {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-act-edit {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-color);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-act-edit:hover {
  background: rgba(245, 158, 11, 0.3);
}

.btn-act-del {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-act-del:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Edit Modal */
.edit-tx-modal-box {
  background: #090e17;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--border-radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.12);
}

.edit-tx-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.edit-tx-modal-header h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-tx-modal-header h4 span {
  color: var(--primary-color);
  font-family: monospace;
}

.edit-tx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.edit-tx-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.history-modal-footer {
  padding: 14px 28px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .history-modal-box { max-height: 95vh; margin: 10px; }
  .history-modal-header { padding: 16px; }
  .history-modal-body { padding: 16px; }
  .history-tabs { padding: 10px 16px 0; }
  .edit-tx-grid { grid-template-columns: 1fr; }
  .history-grid-info { grid-template-columns: 1fr 1fr; }
}

