/* ============================================
   PREPAID SHOP - Premium Mobile UI
   style.css - Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary:       #070b1a;
  --bg-card:          #0d1225;
  --bg-card2:         #111828;
  --border:           rgba(99, 120, 255, 0.15);
  --border-bright:    rgba(99, 120, 255, 0.35);
  --accent:           #6378ff;
  --accent2:          #a259ff;
  --accent-grad:      linear-gradient(135deg, #6378ff, #a259ff);
  --green:            #00d68f;
  --red:              #ff4d6d;
  --yellow:           #ffc947;
  --text-primary:     #f0f2ff;
  --text-secondary:   #8b94b8;
  --text-muted:       #4a5278;
  --shadow:           0 8px 32px rgba(0,0,0,0.45);
  --shadow-accent:    0 8px 24px rgba(99,120,255,0.25);
  --radius-sm:        10px;
  --radius-md:        16px;
  --radius-lg:        22px;
  --radius-xl:        30px;
  --nav-height:       68px;
  --font-main:        'Outfit', sans-serif;
  --font-mono:        'Space Mono', monospace;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--font-main); cursor: pointer; border: none; outline: none; }
input, select { font-family: var(--font-main); outline: none; }

/* ── Background Glow ── */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(99,120,255,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -20%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(162,89,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Page wrapper ── */
.page-wrap {
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--nav-height) + 16px);
  min-height: 100vh;
}

/* ── TOP HEADER ── */
.top-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 11, 26, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-grad);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
}

.header-balance {
  background: rgba(99,120,255,0.1);
  border: 1px solid var(--border-bright);
  border-radius: 30px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-balance .bal-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-balance .bal-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,120,255,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.back-btn:active { transform: scale(0.97); }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 14, 30, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 200;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all 0.25s;
  flex: 1;
  max-width: 90px;
}

.nav-item svg { transition: all 0.25s; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: 0.2px; }

.nav-item.active {
  color: var(--accent);
  background: rgba(99,120,255,0.12);
}

.nav-item.active svg { filter: drop-shadow(0 0 6px rgba(99,120,255,0.6)); }

/* ── CARDS (general) ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.card-glow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,120,255,0.4), transparent);
}

/* ── SECTION TITLE ── */
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.view-all {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-green  { background: rgba(0,214,143,0.12); color: var(--green); }
.badge-red    { background: rgba(255,77,109,0.12); color: var(--red); }
.badge-yellow { background: rgba(255,201,71,0.12); color: var(--yellow); }
.badge-accent { background: rgba(99,120,255,0.12); color: var(--accent); }

/* ── STATUS ── */
.status-completed, .status-success { background: rgba(0,214,143,0.12); color: var(--green); }
.status-pending   { background: rgba(255,201,71,0.12);  color: var(--yellow); }
.status-failed    { background: rgba(255,77,109,0.12);  color: var(--red); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  width: 100%;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,120,255,0.35);
}
.btn-primary:active { transform: scale(0.98); box-shadow: none; }

.btn-danger {
  background: rgba(255,77,109,0.1);
  border: 1px solid rgba(255,77,109,0.25);
  color: var(--red);
}
.btn-danger:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--accent);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: 30px;
  width: auto;
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.input-wrap { position: relative; }

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  background: rgba(13,18,37,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px 13px 44px;
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.form-input.no-icon { padding-left: 16px; }

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--accent);
  background: rgba(13,18,37,1);
  box-shadow: 0 0 0 3px rgba(99,120,255,0.12);
}

/* Password toggle */
.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* ── ALERT / ERROR / SUCCESS ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error {
  background: rgba(255,77,109,0.1);
  border: 1px solid rgba(255,77,109,0.25);
  color: var(--red);
}

.alert-success {
  background: rgba(0,214,143,0.1);
  border: 1px solid rgba(0,214,143,0.25);
  color: var(--green);
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card2);
  border: 1px solid var(--border-bright);
  border-radius: 30px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { color: var(--green); border-color: rgba(0,214,143,0.35); }
.toast.error   { color: var(--red);   border-color: rgba(255,77,109,0.35); }
.toast.info    { color: var(--accent); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 500px;
  padding: 0 0 env(safe-area-inset-bottom);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border-bright);
  border-radius: 2px;
  margin: 12px auto 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
}

.modal-body { padding: 0 20px 24px; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  background: rgba(99,120,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── BANNER SLIDER ── */
.banner-wrap {
  padding: 16px 16px 0;
}

.banner-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.banner-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.banner-slide {
  min-width: 100%;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg);
}

.banner-slide-1 { background: linear-gradient(135deg, #6378ff, #a259ff); }
.banner-slide-2 { background: linear-gradient(135deg, #f093fb, #e040fb); }
.banner-slide-3 { background: linear-gradient(135deg, #00c6ff, #0072ff); }

.banner-text h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.banner-text p  { font-size: 13px; color: rgba(255,255,255,0.85); }

.banner-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.dot {
  height: 4px;
  border-radius: 2px;
  background: var(--border-bright);
  transition: all 0.3s;
  width: 16px;
}

.dot.active {
  background: var(--accent);
  width: 28px;
}

/* ============================================
   LOGIN / REGISTER PAGE
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-header {
  padding: 36px 28px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.auth-logo {
  width: 60px;
  height: 60px;
  background: var(--accent-grad);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(99,120,255,0.35);
}

.auth-header h1 {
  font-size: 26px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-header p { font-size: 14px; color: var(--text-muted); }

.auth-body { padding: 28px; }

.auth-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a { color: var(--accent); font-weight: 600; }

/* ============================================
   CARDS PAGE
   ============================================ */
.cards-page { padding-bottom: calc(var(--nav-height) + 16px); }

/* Search / Filter bar */
.search-bar-wrap {
  padding: 12px 16px;
}

.search-input-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 16px 11px 42px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); }

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Cards list */
.cards-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }

.card-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.card-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-grad);
  border-radius: 0 2px 2px 0;
}

.card-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  padding-left: 8px;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 8px;
}

.card-price-tag {
  background: var(--accent-grad);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.card-item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  padding-left: 8px;
}

.card-meta-item { display: flex; flex-direction: column; gap: 2px; }

.card-meta-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-meta-value {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.card-meta-value.highlight { color: var(--yellow); font-family: var(--font-mono); }
.card-meta-value.green { color: var(--green); }

.card-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.buy-btn {
  background: var(--accent-grad);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(99,120,255,0.35);
}

.buy-btn:active { transform: scale(0.96); }

/* Confirm modal details */
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.confirm-row:last-child { border-bottom: none; }
.confirm-label { font-size: 14px; color: var(--text-muted); }
.confirm-value { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.confirm-value.green { color: var(--green); }
.confirm-value.accent { color: var(--accent); }

.modal-btn-row { display: flex; gap: 12px; margin-top: 20px; }
.modal-btn-row .btn { flex: 1; }

/* ============================================
   ORDERS PAGE
   ============================================ */
.orders-list { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.order-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.order-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.order-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.order-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.order-meta-item { display: flex; flex-direction: column; gap: 2px; }
.order-meta-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.order-meta-value { font-size: 14px; font-weight: 700; }
.order-meta-value.green { color: var(--green); }
.order-meta-value.yellow { color: var(--yellow); }

.order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-date { font-size: 12px; color: var(--text-muted); }

.reveal-btn {
  background: rgba(99,120,255,0.12);
  border: 1px solid var(--border-bright);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.reveal-btn:active { transform: scale(0.97); }

/* Card detail in modal */
.card-detail-visual {
  background: var(--accent-grad);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.card-detail-visual::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.card-detail-visual::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -20px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}

.cdv-number {
  font-family: var(--font-mono);
  font-size: 16px;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cdv-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.cdv-item { display: flex; flex-direction: column; gap: 2px; }
.cdv-lbl { font-size: 10px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.5px; }
.cdv-val { font-size: 14px; font-weight: 700; color: #fff; font-family: var(--font-mono); }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child { border-bottom: none; }
.detail-lbl { font-size: 13px; color: var(--text-muted); }
.detail-val { font-size: 13px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }

.copy-btn {
  background: rgba(99,120,255,0.12);
  border: none;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.2s;
}

.copy-btn:active { transform: scale(0.94); }

/* ============================================
   ACCOUNT PAGE
   ============================================ */
.account-page { padding: 16px; }

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(135deg, rgba(99,120,255,0.12), rgba(162,89,255,0.08));
}

.avatar {
  width: 76px;
  height: 76px;
  background: var(--accent-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--accent);
  position: relative;
  z-index: 1;
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-email { font-size: 13px; color: var(--text-muted); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  text-align: center;
}

.stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.action-btn-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.action-btn-item:active { transform: scale(0.98); }

.action-icon {
  width: 42px;
  height: 42px;
  background: rgba(99,120,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-info { display: flex; flex-direction: column; gap: 2px; }
.action-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.action-desc { font-size: 11px; color: var(--text-muted); }

.txn-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.txn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.txn-item:last-child { border-bottom: none; }

.txn-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

.txn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.txn-icon.deposit { background: rgba(0,214,143,0.1); }
.txn-icon.purchase { background: rgba(99,120,255,0.1); }

.txn-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-date  { font-size: 11px; color: var(--text-muted); }

.txn-right { text-align: right; flex-shrink: 0; }
.txn-amount { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.txn-amount.pos { color: var(--green); }
.txn-amount.neg { color: var(--red); }

/* ============================================
   DEPOSIT PAGE
   ============================================ */
.deposit-page { padding: 16px; }

.rate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rate-item { display: flex; flex-direction: column; gap: 3px; }
.rate-lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.rate-val { font-size: 18px; font-weight: 800; color: var(--accent); }

.deposit-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.amount-preview {
  background: rgba(0,214,143,0.06);
  border: 1px solid rgba(0,214,143,0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.prev-lbl { font-size: 13px; color: var(--text-muted); }
.prev-val { font-size: 18px; font-weight: 800; color: var(--green); }

.pay-methods { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 18px; }

.pay-option {
  background: rgba(13,18,37,0.9);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-option.selected { border-color: var(--accent); background: rgba(99,120,255,0.08); }
.pay-option.disabled { opacity: 0.45; cursor: not-allowed; }

.pay-icon { width: 44px; height: 44px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.pay-name { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.pay-status { font-size: 11px; }
.pay-status.available { color: var(--green); }
.pay-status.unavailable { color: var(--red); }

.info-card {
  background: rgba(0,214,143,0.05);
  border: 1px solid rgba(0,214,143,0.18);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.info-card-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.info-card-title { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 3px; }

/* ============================================
   DEPOSIT HISTORY PAGE
   ============================================ */
.dep-hist-page { padding: 16px; }

.dep-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }

.dep-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  text-align: center;
}

.dep-stat-val { font-size: 18px; font-weight: 800; color: var(--text-primary); margin-bottom: 3px; }
.dep-stat-lbl { font-size: 10px; color: var(--text-muted); font-weight: 600; }

.dep-list { display: flex; flex-direction: column; gap: 10px; }

.dep-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dep-left { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.dep-order-id { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.dep-amount { font-size: 17px; font-weight: 800; color: var(--green); }
.dep-date { font-size: 11px; color: var(--text-muted); }

.dep-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pg-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.pg-btn.active { background: var(--accent-grad); border-color: transparent; color: #fff; }
.pg-btn:active { transform: scale(0.95); }

/* ============================================
   UTILITY
   ============================================ */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-8  { padding-top: 8px; padding-bottom: 8px; }

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-green  { color: var(--green); }
.text-accent { color: var(--accent); }
.font-mono   { font-family: var(--font-mono); }
.fw-700 { font-weight: 700; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }