/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --cyan: #00E5FF;
  --cyan-dark: #00B8D4;
  --cyan-light: #E0F7FA;
  --blue: #87CEEB;
  --blue-light: #ADD8E6;
  --navy: #0A1628;
  --navy-mid: #132240;
  --navy-light: #1e3a5f;
  --white: #ffffff;
  --off-white: #f0f8ff;
  --text-primary: #0A1628;
  --text-secondary: #4a6080;
  --text-muted: #8ba0bb;
  --border: rgba(0, 229, 255, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 229, 255, 0.3);
  --shadow-sm: 0 2px 12px rgba(0, 180, 212, 0.1);
  --shadow-md: 0 8px 32px rgba(0, 180, 212, 0.15);
  --shadow-lg: 0 24px 64px rgba(0, 180, 212, 0.2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
  --white: #0A1628;
  --off-white: #0d1e36;
  --text-primary: #e8f4fd;
  --text-secondary: #8bb8d8;
  --text-muted: #4a6080;
  --glass-bg: rgba(13, 30, 54, 0.9);
  --glass-border: rgba(0, 229, 255, 0.2);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --border: rgba(0, 229, 255, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(10, 22, 40, 0.95);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-brand i { color: var(--cyan); font-size: 1.1rem; }
.nav-brand .accent { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--cyan-dark); }

.nav-btn {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.4);
}

.dark-toggle {
  background: var(--cyan-light);
  border: none;
  cursor: pointer;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.dark-toggle:hover {
  background: var(--cyan);
  transform: rotate(20deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  gap: 48px;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: var(--cyan);
  top: -100px; right: -100px;
}

.orb-2 {
  width: 350px; height: 350px;
  background: var(--blue);
  bottom: 100px; left: -100px;
  animation-delay: -3s;
}

.orb-3 {
  width: 250px; height: 250px;
  background: #00B8D4;
  top: 50%; left: 40%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.97); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: fadeUp 0.8s ease both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cyan-light), rgba(0,229,255,0.15));
  border: 1px solid var(--cyan);
  color: var(--cyan-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan-dark);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-div { width: 1px; height: 40px; background: var(--border); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.35);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 229, 255, 0.5);
}

.hero-visual {
  flex-shrink: 0;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-card {
  position: relative;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 260px;
  box-shadow: 0 32px 80px rgba(0, 229, 255, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.hero-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.hero-gem {
  font-size: 4rem;
  color: var(--cyan);
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.6));
  animation: gemPulse 2s ease infinite;
}

@keyframes gemPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.6)); }
  50% { filter: drop-shadow(0 0 40px rgba(0, 229, 255, 1)); }
}

.hero-card-text { color: white; }
.hero-card-text span { font-size: 0.75rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; }
.hero-card-text strong { display: block; font-family: var(--font-display); font-size: 1.5rem; margin: 4px 0; }
.hero-card-text em { font-style: normal; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

.floating-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  animation: floatBadge 3s ease infinite;
}

.badge-1 { top: -12px; right: -16px; animation-delay: 0s; }
.badge-2 { bottom: -12px; left: -16px; animation-delay: -1.5s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ============================================================
   ORDER SECTION
   ============================================================ */
.order-section {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(0,229,255,0.03));
}

.order-form-wrap { max-width: 700px; margin: 0 auto; }

.order-form { padding: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i { color: var(--cyan-dark); }

.form-group input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}

.form-group input.error { border-color: #ff4d4d; }

.field-hint { font-size: 0.78rem; color: var(--text-muted); }
.field-error { font-size: 0.78rem; color: #ff4d4d; min-height: 16px; }

.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-icon { color: var(--text-muted); font-size: 0.8rem; cursor: help; }
.tooltip-box {
  position: absolute;
  left: 50%; top: 28px;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 400;
  width: 200px;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  box-shadow: var(--shadow-md);
  white-space: normal;
}

.tooltip-wrap:hover .tooltip-box { opacity: 1; }

.player-preview {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--cyan-dark);
  font-weight: 500;
  transition: all 0.3s ease;
}
.player-preview.loading { border-color: rgba(135,206,235,0.4); color: var(--text-muted); }
.player-preview.found { background: rgba(0,200,83,0.08); border-color: rgba(0,200,83,0.4); color: #00a846; }
.player-preview.found i { color: #00c853; }
.player-preview i { color: var(--cyan-dark); }
.player-preview strong { font-weight: 700; }

/* ============================================================
   PACKAGES
   ============================================================ */
.packages-section { padding: 60px 0 80px; }

.exchange-rate-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(135,206,235,0.08));
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 50px;
  max-width: 400px;
  margin: 0 auto 40px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.exchange-rate-bar i { color: var(--cyan-dark); }
.exchange-rate-bar strong { color: var(--text-primary); }
.rate-time { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.pkg-card {
  background: var(--glass-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.pkg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.pkg-card:hover::before { opacity: 1; }

.pkg-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pkg-card.selected {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(135,206,235,0.08));
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.2), var(--shadow-md);
}

.pkg-badge {
  position: absolute;
  top: 10px; right: -8px;
  background: linear-gradient(135deg, #FF6B35, #FF4500);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px 3px 8px;
  border-radius: 4px 0 0 4px;
}

.pkg-badge.best {
  background: linear-gradient(135deg, #00c853, #00a846);
}

.pkg-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4));
}

.pkg-diamonds {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pkg-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pkg-price-khr {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan-dark);
  margin-bottom: 2px;
}

.pkg-price-usd {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pkg-check {
  position: absolute;
  top: 10px; left: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.pkg-card.selected .pkg-check { display: flex; }

.buy-btn-wrap { text-align: center; }

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--navy);
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.35);
}

.buy-btn:disabled {
  background: #c0c8d0;
  color: #888;
  box-shadow: none;
  cursor: not-allowed;
}

.buy-btn:not(:disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 229, 255, 0.5);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-backdrop.hidden { display: none; }

.modal {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: none;
  background: var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover { background: #ff4d4d; color: white; }

.modal-step.hidden { display: none; }

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

.modal-header i {
  font-size: 2rem;
  color: var(--cyan-dark);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-header p { font-size: 0.875rem; color: var(--text-secondary); }

/* KHQR Branded Card */
.khqr-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.khqr-header {
  background: #c0152a;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.khqr-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}

.khqr-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: white;
  letter-spacing: 2px;
}

.khqr-logo-at {
  font-style: normal;
  font-size: 1.5rem;
}

.khqr-merchant {
  padding: 16px 20px 8px;
  text-align: left;
  background: white;
}

.khqr-merchant-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
}

.khqr-amount {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
}

.khqr-divider {
  height: 1px;
  background: #e8e8e8;
  margin: 8px 20px;
}

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.qr-box {
  background: white;
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 220px;
}

.qr-box img, .qr-box canvas {
  display: block;
}

.khqr-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px 16px;
  background: white;
  border-top: 1px solid #eee;
}

.khqr-bakong-logo {
  height: 22px;
  width: auto;
}

.khqr-footer-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  font-family: var(--font-body);
}

.payment-summary {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.summary-row:last-child { border-bottom: none; }
.summary-row strong { color: var(--text-primary); font-weight: 600; }

.total-row strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cyan-dark);
}

.timer-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  justify-content: center;
}

.timer-wrap i { color: var(--cyan-dark); }

.timer-wrap.urgent strong { color: #ff4d4d; animation: timerPulse 1s ease infinite; }

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.payment-status {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 229, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.status-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  animation: statusPulse 1.5s ease infinite;
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.modal-actions { text-align: center; margin-bottom: 12px; }

.regen-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.regen-btn:hover { border-color: var(--cyan); color: var(--cyan-dark); }

.pay-instructions {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pay-instructions i { color: var(--cyan-dark); margin-right: 4px; }

/* Success Step */
.success-anim {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.success-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c853, #00a846);
  color: white;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 40px rgba(0, 200, 83, 0.4);
}

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

#stepSuccess h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 8px;
}

#stepSuccess > p { text-align: center; color: var(--text-secondary); margin-bottom: 24px; }

.delivery-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.delivery-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.delivery-step span {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tx-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,229,255,0.05);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tx-info code {
  font-size: 0.78rem;
  color: var(--cyan-dark);
  word-break: break-all;
}

/* Expired */
.expired-icon {
  text-align: center;
  font-size: 3rem;
  color: #ff9800;
  margin-bottom: 16px;
  animation: fadeUp 0.5s ease;
}

#stepExpired h3, #stepExpired p {
  text-align: center;
  margin-bottom: 12px;
}

#stepExpired { display: flex; flex-direction: column; align-items: center; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.04), rgba(135,206,235,0.04));
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 229, 255, 0.15);
  line-height: 1;
  margin-bottom: 8px;
}

.step-icon {
  font-size: 1.5rem;
  color: var(--cyan-dark);
  margin-bottom: 12px;
}

.step-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 6px;
}

.step-card p { font-size: 0.875rem; color: var(--text-secondary); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: 80px 0; }

.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.faq-item.open { border-color: var(--cyan); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 12px;
}

.faq-q i {
  color: var(--cyan-dark);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-q i { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 22px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 22px 18px;
}

/* ============================================================
   HISTORY
   ============================================================ */
.history-section { padding: 60px 0 80px; }

.history-list { max-width: 700px; margin: 0 auto 24px; display: flex; flex-direction: column; gap: 12px; }

.history-empty {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

.history-empty i { font-size: 2.5rem; display: block; margin-bottom: 12px; }

.history-item {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(10px);
  animation: fadeUp 0.3s ease;
}

.history-item .hi-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-light), rgba(0,229,255,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--cyan-dark);
  flex-shrink: 0;
}

.hi-info { flex: 1; }
.hi-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.hi-meta { font-size: 0.78rem; color: var(--text-muted); }

.hi-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.hi-status.paid { background: rgba(0, 200, 83, 0.1); color: #00c853; }
.hi-status.pending { background: rgba(255, 152, 0, 0.1); color: #ff9800; }

.clear-history-btn {
  display: block;
  margin: 0 auto;
  background: none;
  border: 1.5px solid #ff4d4d;
  color: #ff4d4d;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.clear-history-btn:hover { background: #ff4d4d; color: white; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-brand { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 20px; }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.social-links a:hover { background: var(--cyan); color: var(--navy); }

.footer-col h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  padding: 4px 0;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--cyan); }

.payment-badges { display: flex; flex-direction: column; gap: 8px; }
.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

.pay-badge i { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   CHAT BUTTON
   ============================================================ */
.chat-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  background: linear-gradient(135deg, #2196f3, #1565c0);
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(33, 150, 243, 0.4);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 50;
  transition: all var(--transition);
}

.chat-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(33, 150, 243, 0.5);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px; right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
  max-width: 320px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-color: #00c853; }
.toast.success i { color: #00c853; }
.toast.error { border-color: #ff4d4d; }
.toast.error i { color: #ff4d4d; }
.toast.info { border-color: var(--cyan); }
.toast.info i { color: var(--cyan-dark); }

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-overlay.hidden { display: none; }

.loader-wrap { text-align: center; color: white; }

.diamond-loader {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--navy);
  margin: 0 auto 16px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   NETWORK STATUS
   ============================================================ */
.network-status {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #ff4d4d;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.875rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.network-status.hidden { display: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding-top: 120px; }
  .hero-sub, .hero-stats { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 375px) {
  .packages-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
}