/* ═══════════════════════════════════════════════
   WAZIFAHA TOP-UP — Shared Stylesheet
   Font: DM Sans (display) + system ui (body)
   Palette: Deep blue #0f172a · Blue #2563eb · White
   ═══════════════════════════════════════════════ */

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

:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #eff6ff;
  --blue-mid:    #bfdbfe;
  --ink:         #0f172a;
  --ink-mid:     #334155;
  --ink-soft:    #64748b;
  --ink-muted:   #94a3b8;
  --border:      #e2e8f0;
  --bg:          #f8fafc;
  --white:       #ffffff;
  --green:       #10b981;
  --green-light: #d1fae5;
  --amber:       #f59e0b;
  --amber-light: #fef3c7;
  --red:         #ef4444;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 1px 4px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
  --shadow-lg:   0 8px 40px rgba(15,23,42,.12);
  --font:        'DM Sans', system-ui, sans-serif;
  --transition:  .18s ease;
}

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

/* ── PAGE WRAPPER ── */
.tu-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 48px 16px 80px;
  font-family: var(--font);
}

/* ── BREADCRUMB ── */
.tu-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.tu-breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--transition);
}
.tu-breadcrumb a:hover { color: var(--blue); }
.tu-breadcrumb .sep { color: var(--border); }
.tu-breadcrumb .current { color: var(--ink-mid); font-weight: 600; }

/* ── STEP INDICATOR ── */
.tu-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.tu-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.tu-step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: all .2s;
}
.tu-step.active .tu-step-dot {
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.tu-step.done .tu-step-dot {
  background: var(--green); border-color: var(--green); color: #fff;
}
.tu-step-label {
  font-size: 12px; font-weight: 600; color: var(--ink-muted);
}
.tu-step.active .tu-step-label { color: var(--blue); }
.tu-step.done .tu-step-label   { color: var(--green); }
.tu-step-line {
  flex: 1; height: 2px; background: var(--border); margin: 0 8px; border-radius: 2px;
}
.tu-step-line.done { background: var(--green); }

/* ── CARD ── */
.tu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  animation: tuFadeUp .3s ease both;
}
@keyframes tuFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── CARD HEADER ── */
.tu-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.tu-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.tu-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.3px;
  margin-bottom: 4px;
}
.tu-card-sub {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ── LABELS & INPUTS ── */
.tu-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mid);
  margin-bottom: 7px;
}
.tu-label .req { color: var(--red); margin-left: 2px; }

.tu-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tu-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.tu-input::placeholder { color: var(--ink-muted); font-weight: 400; }

.tu-hint {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 500;
  line-height: 1.5;
}

/* ── SELECT ── */
.tu-select-wrap { position: relative; }
.tu-select {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tu-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.tu-select-wrap::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
  font-size: 12px;
}

/* ── BUTTONS ── */
.tu-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
}
.tu-btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
  transform: translateY(-1px);
  color: var(--white);
}
.tu-btn-primary:active { transform: none; }
.tu-btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.tu-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--white);
  color: var(--ink-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
}
.tu-btn-ghost:hover { background: var(--bg); border-color: #cbd5e1; color: var(--ink); }

/* ── AMOUNT GRID ── */
.tu-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 400px) { .tu-amount-grid { grid-template-columns: repeat(2, 1fr); } }

.tu-amount-box {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
  background: var(--white);
  user-select: none;
}
.tu-amount-box:hover { border-color: var(--blue-mid); background: var(--blue-light); }
.tu-amount-box.active {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.tu-amount-box .amt-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}
.tu-amount-box.active .amt-value { color: var(--blue); }
.tu-amount-box .amt-cur {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  display: block;
  margin-top: 2px;
}

/* ── SUMMARY ROW ── */
.tu-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.tu-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.tu-summary-row:last-child { border-bottom: none; }
.tu-summary-row .sr-label { color: var(--ink-soft); font-weight: 500; }
.tu-summary-row .sr-value { color: var(--ink); font-weight: 700; }
.tu-summary-row.sr-total { background: var(--white); }
.tu-summary-row.sr-total .sr-label { font-size: 15px; font-weight: 700; color: var(--ink); }
.tu-summary-row.sr-total .sr-value { font-size: 22px; font-weight: 800; color: var(--blue); }

/* ── ORDER REF BADGE ── */
.tu-ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  font-family: 'Courier New', monospace;
}

/* ── OPERATOR CHIP ── */
.tu-operator-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.tu-operator-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 4px;
  flex-shrink: 0;
}
.tu-operator-logo-placeholder {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 18px;
  flex-shrink: 0;
}
.tu-operator-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.tu-operator-sub  { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }

/* ── SUCCESS STATE ── */
.tu-success-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  animation: tuPop .4s cubic-bezier(.22,.68,0,1.4);
}
@keyframes tuPop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── DIVIDER ── */
.tu-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.tu-divider-dashed {
  height: 1px;
  border-top: 1.5px dashed var(--border);
  margin: 16px 0;
}

/* ── NOTE BOX ── */
.tu-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.tu-note i { color: var(--ink-muted); margin-top: 1px; flex-shrink: 0; }

/* ── STRIPE BUTTON ── */
.tu-btn-stripe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  background: #635bff;
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(99,91,255,.25);
}
.tu-btn-stripe:hover {
  background: #4f46e5;
  box-shadow: 0 6px 20px rgba(99,91,255,.35);
  transform: translateY(-1px);
  color: var(--white);
}

/* ── SECURITY BADGE ── */
.tu-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 14px;
}
.tu-security i { color: var(--green); }

/* ── GOOGLE SIGNIN ── */
.tu-btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.tu-btn-google:hover { background: var(--bg); border-color: #cbd5e1; color: var(--ink); }

/* ── UPSELL BOX ── */
.tu-upsell {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: var(--bg);
}
.tu-upsell-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── GAME CATEGORY GRID ── */
.tu-game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.tu-game-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all .18s;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.tu-game-card:hover { border-color: var(--blue-mid); background: var(--blue-light); }
.tu-game-card.active { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.tu-game-icon { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.tu-game-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.tu-game-unit { font-size: 11.5px; color: var(--ink-soft); }

/* ── TXN ID ── */
.tu-txn {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── RESPONSIVE ── */
@media (max-width: 575px) {
  .tu-card { padding: 24px 18px; }
  .tu-amount-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}