/* ============================================================
   DIGITAL PEDIA H2H - PREMIUM MOBILE UI/UX 2026
   Blue White Theme | Fintech Grade
   ============================================================ */

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

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #60A5FA;
  --primary-xlight: #DBEAFE;
  --primary-glow: rgba(37,99,235,0.18);
  --primary-glow-sm: rgba(37,99,235,0.10);
  --secondary: #0EA5E9;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --bg: #F0F4FF;
  --bg2: #EBF2FF;
  --surface: #FFFFFF;
  --surface2: #F8FAFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --text2: #334155;
  --text3: #64748B;
  --text4: #94A3B8;
  --sidebar-bg: #0B1224;
  --nav-active: #2563EB;
  --bottom-nav-h: 70px;
  --header-h: 64px;
  --transition: all 0.28s cubic-bezier(.4,0,.2,1);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(37,99,235,0.06);
  --shadow: 0 6px 24px rgba(37,99,235,0.10);
  --shadow-lg: 0 16px 48px rgba(37,99,235,0.15);
  --shadow-glow: 0 0 24px rgba(37,99,235,0.25);
}

*, *::before, *::after { margin:0;padding:0;box-sizing:border-box; }
html { -webkit-tap-highlight-color:transparent; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
input, button, select, textarea { font-family: inherit; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
@keyframes slideRight {
  from { opacity:0; transform:translateX(-20px); }
  to { opacity:1; transform:translateX(0); }
}
@keyframes pulse {
  0%,100% { opacity:1; }
  50% { opacity:.5; }
}
@keyframes shimmer {
  0% { background-position:-468px 0; }
  100% { background-position:468px 0; }
}
@keyframes spinnerFade {
  0%,39%,100% { opacity:0; }
  40% { opacity:1; }
}
@keyframes countUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes glow {
  0%,100% { box-shadow:0 0 8px rgba(37,99,235,.2); }
  50% { box-shadow:0 0 24px rgba(37,99,235,.5); }
}
@keyframes cardStagger {
  from { opacity:0; transform:translateY(24px); }
  to { opacity:1; transform:translateY(0); }
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}
.skeleton-text { height: 16px; width: 100%; margin-bottom: 8px; }
.skeleton-title { height: 28px; width: 60%; margin-bottom: 12px; }
.skeleton-card { height: 100px; width: 100%; margin-bottom: 16px; border-radius: var(--radius); }

/* ============================================================
   MOBILE HEADER
   ============================================================ */
.mobile-header {
  position: fixed; top:0; left:0; right:0;
  height: var(--header-h);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(37,99,235,0.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  z-index: 900;
  box-shadow: 0 2px 20px rgba(37,99,235,0.06);
}
.mobile-header .brand {
  font-size: 17px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-btn {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary-xlight);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 17px;
  transition: var(--transition);
  cursor: pointer;
}
.header-btn:active { transform:scale(.93); background:var(--primary); color:#fff; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-overlay {
  display:none;
  position:fixed; inset:0;
  background:rgba(11,18,36,.55);
  backdrop-filter:blur(4px);
  z-index:1100;
  animation:fadeIn .2s ease;
}
.sidebar-overlay.active { display:block; }

.sidebar {
  width: 270px;
  background: var(--sidebar-bg);
  position: fixed; left:-270px; top:0; bottom:0;
  z-index: 1200;
  transition: var(--transition);
  display: flex; flex-direction: column;
  overflow-y: auto;
  box-shadow: 8px 0 40px rgba(0,0,0,.3);
}
.sidebar.active { left:0; }

.sidebar-header {
  padding: 32px 20px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(37,99,235,.15) 0%, transparent 100%);
  position: relative;
}
.sidebar-logo {
  width: 64px; height: 64px; border-radius: 18px;
  margin: 0 auto 14px;
  border: 2px solid rgba(37,99,235,.5);
  box-shadow: 0 0 24px rgba(37,99,235,.3);
  object-fit: cover;
  display: block;
}
.sidebar-brand { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 0.3px; }
.sidebar-sub { font-size: 12px; color: rgba(255,255,255,.4); margin-top:2px; }
.close-sidebar {
  position:absolute; top:16px; right:16px;
  width:30px; height:30px; border-radius:8px;
  background:rgba(255,255,255,.06); color:rgba(255,255,255,.5);
  display:flex; align-items:center; justify-content:center;
  font-size:14px; cursor:pointer; transition:var(--transition);
}
.close-sidebar:active { background:rgba(255,255,255,.15); }

.nav-menu { padding: 16px 14px; flex:1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.5);
  font-size: 14px; font-weight: 600;
  margin-bottom: 4px;
  transition: var(--transition);
  cursor: pointer;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,.4); }
.nav-item i { width: 20px; text-align:center; font-size: 16px; flex-shrink:0; }
.nav-divider { height:1px; background:rgba(255,255,255,.06); margin: 10px 0; }
.nav-logout { color: #FC8181 !important; }
.nav-logout:hover { background: rgba(239,68,68,.1) !important; }

/* ============================================================
   BOTTOM NAVIGATION (MOBILE)
   ============================================================ */
.bottom-nav {
  position: fixed; bottom:0; left:0; right:0;
  height: var(--bottom-nav-h);
  background: var(--surface);
  border-top: 1px solid rgba(37,99,235,.08);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 800;
  box-shadow: 0 -4px 20px rgba(37,99,235,.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text4); font-size: 11px; font-weight: 600;
  transition: var(--transition); cursor: pointer; min-width: 56px;
  text-decoration: none;
}
.bottom-nav-item i { font-size: 20px; transition: var(--transition); }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active i {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(37,99,235,.4));
}
.bottom-nav-center {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
  margin-top: -18px;
  transition: var(--transition);
  text-decoration: none;
}
.bottom-nav-center:active { transform:scale(.92); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-content {
  padding: calc(var(--header-h) + 20px) 16px calc(var(--bottom-nav-h) + 20px);
  max-width: 600px; margin: 0 auto;
  animation: fadeUp .4s ease;
}
.main-content.no-bottom { padding-bottom: 20px; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header { margin-bottom: 24px; animation: slideRight .35s ease; }
.page-header h1 { font-size: 22px; font-weight: 800; color: var(--text); }
.page-header p { font-size: 13px; color: var(--text3); margin-top:3px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(37,99,235,.06);
  margin-bottom: 16px;
  transition: var(--transition);
}
.card:active { transform:scale(.995); }

.glass-card {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 15px; font-weight: 800;
  color: var(--text); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.card-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--primary-xlight);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 15px; flex-shrink:0;
}

/* ============================================================
   HERO BALANCE CARD
   ============================================================ */
.hero-card {
  background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 50%, var(--secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(37,99,235,.35);
  animation: cardStagger .45s ease;
}
.hero-card::before {
  content:'';
  position:absolute; top:-40px; right:-40px;
  width:160px; height:160px;
  border-radius:50%;
  background:rgba(255,255,255,.07);
}
.hero-card::after {
  content:'';
  position:absolute; bottom:-30px; left:-20px;
  width:120px; height:120px;
  border-radius:50%;
  background:rgba(255,255,255,.05);
}
.hero-greeting { font-size: 13px; font-weight: 600; opacity:.8; margin-bottom:4px; }
.hero-name { font-size: 18px; font-weight: 800; margin-bottom:20px; }
.hero-balance-label { font-size: 11px; font-weight: 700; opacity:.7; text-transform:uppercase; letter-spacing:.5px; }
.hero-balance-amount { font-size: 32px; font-weight: 900; letter-spacing:-1px; margin-top:2px; }
.hero-actions {
  display:flex; gap:10px; margin-top:20px; position:relative; z-index:1;
}
.hero-action-btn {
  flex:1; display:flex; align-items:center; justify-content:center; gap:7px;
  padding:12px 10px; border-radius:12px;
  background:rgba(255,255,255,.15);
  color:#fff; font-size:13px; font-weight:700;
  border:1px solid rgba(255,255,255,.2);
  transition:var(--transition); cursor:pointer; text-decoration:none;
  backdrop-filter:blur(10px);
}
.hero-action-btn:active { transform:scale(.95); background:rgba(255,255,255,.25); }

/* ============================================================
   STAT CARDS GRID
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 16px;
  border: 1px solid rgba(37,99,235,.06);
  box-shadow: var(--shadow-sm);
  position:relative; overflow:hidden;
  animation: cardStagger .5s ease both;
}
.stat-card:nth-child(1) { animation-delay:.05s; }
.stat-card:nth-child(2) { animation-delay:.10s; }
.stat-card:nth-child(3) { animation-delay:.15s; }
.stat-card:nth-child(4) { animation-delay:.20s; }
.stat-card:nth-child(5) { animation-delay:.25s; }
.stat-card:nth-child(6) { animation-delay:.30s; }
.stat-card::after {
  content:'';
  position:absolute; right:-15px; bottom:-15px;
  width:70px; height:70px; border-radius:50%;
  background:var(--primary-glow-sm);
}
.stat-card-icon {
  width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; margin-bottom:12px;
  background: var(--primary-xlight); color:var(--primary);
}
.stat-card-icon.success { background:#D1FAE5; color:#059669; }
.stat-card-icon.danger { background:#FEE2E2; color:#DC2626; }
.stat-card-icon.warning { background:#FEF3C7; color:#D97706; }
.stat-card-icon.info { background:#E0F2FE; color:#0284C7; }
.stat-card-label { font-size: 11px; font-weight: 700; color: var(--text3); text-transform:uppercase; letter-spacing:.3px; margin-bottom:4px; }
.stat-card-value { font-size: 20px; font-weight: 800; color: var(--text); }
.stat-card-trend {
  display:flex; align-items:center; gap:4px;
  font-size:11px; font-weight:700; margin-top:6px;
}
.stat-card-trend.up { color:var(--success); }
.stat-card-trend.down { color:var(--danger); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text3); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .4px;
}
.input-wrap {
  position:relative; display:flex; align-items:center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  overflow: hidden;
}
.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow-sm);
}
.input-wrap .icon {
  padding: 0 14px 0 16px;
  color: var(--text4); font-size:16px; flex-shrink:0;
}
.input-wrap input, .input-wrap select {
  flex:1; border:none; background:transparent;
  padding: 14px 16px 14px 4px;
  font-size: 15px; font-weight: 600;
  color: var(--text); outline:none;
  min-width:0;
}
.input-wrap input::placeholder { color:var(--text4); font-weight:500; }
.input-wrap .prefix {
  padding: 14px 0 14px 16px;
  font-size:15px; font-weight:800; color:var(--text3); flex-shrink:0;
}
.input-wrap .suffix {
  padding: 14px 16px 14px 0;
  flex-shrink:0;
}
.input-wrap .eye-btn {
  padding:0 16px; color:var(--text4); font-size:15px;
  cursor:pointer; transition:var(--transition); flex-shrink:0;
}
.input-wrap .eye-btn:hover { color:var(--primary); }
.input-hint { font-size:11px; margin-top:5px; color:var(--text4); }
.input-hint.error { color:var(--danger); }
.input-hint.success { color:var(--success); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 22px; border-radius:var(--radius-sm);
  font-size:14px; font-weight:700; transition:var(--transition);
  cursor:pointer; border:none; width:100%;
  position:relative; overflow:hidden;
}
.btn::after {
  content:''; position:absolute; inset:0;
  background:rgba(255,255,255,0); transition:var(--transition);
}
.btn:active::after { background:rgba(255,255,255,.15); }
.btn:active { transform:scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff; box-shadow: 0 6px 20px rgba(37,99,235,.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(37,99,235,.45); transform:translateY(-1px); }
.btn-secondary {
  background: var(--primary-xlight); color: var(--primary);
}
.btn-danger { background:var(--danger); color:#fff; box-shadow:0 6px 20px rgba(239,68,68,.3); }
.btn-success { background:var(--success); color:#fff; box-shadow:0 6px 20px rgba(16,185,129,.3); }
.btn-ghost { background:var(--surface2); color:var(--text3); border:1.5px solid var(--border); }
.btn-outline { background:transparent; color:var(--primary); border:1.5px solid var(--primary); }
.btn-sm { padding:9px 16px; font-size:13px; border-radius:8px; width:auto; }
.btn-loading { pointer-events:none; opacity:.8; }
.btn-icon { width:40px; height:40px; padding:0; border-radius:10px; width:auto; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding:13px 16px; border-radius:var(--radius-sm);
  font-size:13px; font-weight:600;
  display:flex; align-items:flex-start; gap:10px;
  animation: fadeUp .25s ease;
}
.alert i { margin-top:1px; flex-shrink:0; }
.alert-error { background:#FEF2F2; color:#DC2626; border:1px solid #FECACA; }
.alert-success { background:#ECFDF5; color:#059669; border:1px solid #A7F3D0; }
.alert-info { background:#EFF6FF; color:#2563EB; border:1px solid #BFDBFE; }
.alert-warning { background:#FFFBEB; color:#D97706; border:1px solid #FDE68A; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:4px 10px; border-radius:20px;
  font-size:11px; font-weight:700;
}
.badge-success { background:#D1FAE5; color:#059669; }
.badge-warning { background:#FEF3C7; color:#B45309; }
.badge-danger { background:#FEE2E2; color:#B91C1C; }
.badge-info { background:#DBEAFE; color:#1D4ED8; }
.badge-gray { background:#F1F5F9; color:#475569; }

/* ============================================================
   TRANSACTION ITEMS
   ============================================================ */
.trx-list { display:flex; flex-direction:column; gap:2px; }
.trx-item {
  display:flex; align-items:center; gap:14px;
  padding:14px 16px; border-radius:var(--radius-sm);
  cursor:pointer; transition:var(--transition);
  background:var(--surface);
}
.trx-item:hover { background:var(--surface2); }
.trx-item:active { transform:scale(.99); }
.trx-icon {
  width:42px; height:42px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:17px; flex-shrink:0;
}
.trx-icon.dep { background:var(--primary-xlight); color:var(--primary); }
.trx-icon.wd { background:#F1F5F9; color:#475569; }
.trx-body { flex:1; min-width:0; }
.trx-title { font-size:14px; font-weight:700; color:var(--text); }
.trx-sub { font-size:11px; color:var(--text4); margin-top:2px; font-weight:500; }
.trx-right { text-align:right; flex-shrink:0; }
.trx-amount { font-size:15px; font-weight:800; }
.trx-amount.plus { color:var(--success); }
.trx-amount.minus { color:var(--danger); }

/* ============================================================
   API KEY DISPLAY
   ============================================================ */
.api-box {
  background:var(--surface2);
  border:1.5px dashed var(--primary-light);
  border-radius:var(--radius-sm);
  padding:14px 16px;
  display:flex; align-items:center; gap:10px;
}
.api-box input {
  flex:1; border:none; background:transparent;
  font-family:monospace; font-size:13px; font-weight:700;
  color:var(--primary); outline:none; min-width:0;
}
.copy-btn {
  flex-shrink:0; padding:8px 14px; border-radius:8px;
  background:var(--primary); color:#fff;
  font-size:12px; font-weight:700; cursor:pointer;
  transition:var(--transition); border:none;
  display:flex; align-items:center; gap:6px;
}
.copy-btn:active { transform:scale(.95); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  display:none; position:fixed; inset:0;
  background:rgba(11,18,36,.6);
  backdrop-filter:blur(8px);
  z-index:2000; align-items:center; justify-content:center;
  padding:20px;
  animation: fadeIn .2s ease;
}
.modal-backdrop.active { display:flex; }
.modal-box {
  background:var(--surface);
  border-radius:var(--radius-xl);
  padding:28px 24px;
  width:100%; max-width:360px;
  box-shadow:0 24px 60px rgba(0,0,0,.2);
  animation: fadeUp .3s ease;
}
.modal-title { font-size:18px; font-weight:800; margin-bottom:6px; }
.modal-sub { font-size:13px; color:var(--text3); margin-bottom:22px; }
.modal-actions { display:flex; gap:10px; margin-top:20px; }
.modal-close { position:absolute; top:16px; right:16px; }

/* ============================================================
   CHART CARD
   ============================================================ */
.chart-card {
  background:var(--surface);
  border-radius:var(--radius-lg);
  padding:20px;
  border:1px solid rgba(37,99,235,.06);
  box-shadow:var(--shadow-sm);
  margin-bottom:16px;
}
.chart-header {
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:16px;
}
.chart-title { font-size:14px; font-weight:800; color:var(--text); }

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs {
  display:flex; background:var(--surface2);
  border-radius:var(--radius-sm); padding:5px; gap:4px;
  margin-bottom:18px; border:1px solid var(--border);
}
.filter-tab {
  flex:1; padding:9px 8px; border-radius:8px;
  text-align:center; font-size:13px; font-weight:700;
  color:var(--text3); cursor:pointer; transition:var(--transition);
}
.filter-tab.active {
  background:var(--surface); color:var(--primary);
  box-shadow:0 2px 8px rgba(37,99,235,.12);
}

/* ============================================================
   QUICK AMOUNT BUTTONS
   ============================================================ */
.quick-amounts {
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:10px 0 18px;
}
.quick-btn {
  padding:10px 8px; border-radius:10px;
  background:var(--surface2); border:1.5px solid var(--border);
  font-size:12px; font-weight:700; color:var(--text2);
  text-align:center; cursor:pointer; transition:var(--transition);
}
.quick-btn:hover, .quick-btn.selected {
  background:var(--primary-xlight); color:var(--primary); border-color:var(--primary);
}
.quick-btn:active { transform:scale(.95); }

/* ============================================================
   QRIS DISPLAY
   ============================================================ */
.qris-container { text-align:center; animation: fadeUp .35s ease; }
.qr-frame {
  background:#fff; padding:16px; border-radius:var(--radius-lg);
  border:2px dashed var(--primary-light);
  width:210px; margin:0 auto 20px;
  box-shadow:var(--shadow);
}
.qr-frame img { width:100%; height:auto; display:block; border-radius:8px; }
.payment-timer {
  background:linear-gradient(135deg,#FEF2F2,#FFE4E4);
  border:1px solid #FECACA;
  color:#DC2626; padding:12px 18px; border-radius:var(--radius-sm);
  font-size:14px; font-weight:700;
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-bottom:16px; animation: glow 2s ease infinite;
}
.payment-detail {
  background:var(--surface2); border-radius:var(--radius-sm);
  padding:14px 16px; margin-bottom:18px; text-align:left;
}
.payment-row {
  display:flex; justify-content:space-between;
  font-size:13px; padding:5px 0; color:var(--text2); font-weight:600;
}
.payment-row.total {
  border-top:1.5px solid var(--border); margin-top:6px; padding-top:10px;
  font-size:15px; font-weight:800; color:var(--primary);
}
.waiting-badge {
  background:#FFF7ED; border:1px solid #FED7AA;
  color:#C2410C; padding:10px 16px; border-radius:var(--radius-sm);
  font-size:13px; font-weight:700;
  display:flex; align-items:center; gap:8px;
  margin-bottom:16px;
}

/* ============================================================
   DOCS PAGE
   ============================================================ */
.endpoint-card {
  background:var(--surface); border-radius:var(--radius);
  border:1px solid rgba(37,99,235,.08); margin-bottom:14px;
  overflow:hidden;
}
.endpoint-header {
  display:flex; align-items:center; gap:12px;
  padding:14px 18px; cursor:pointer;
}
.method-badge {
  padding:4px 10px; border-radius:6px; font-size:11px; font-weight:800;
  text-transform:uppercase; flex-shrink:0;
}
.method-post { background:#DBEAFE; color:#1D4ED8; }
.method-get { background:#D1FAE5; color:#059669; }
.endpoint-path { font-size:13px; font-weight:700; font-family:monospace; color:var(--text); }
.endpoint-desc { font-size:12px; color:var(--text3); margin-left:auto; font-weight:600; }
.code-block {
  background:#0B1224; color:#7DD3FC;
  padding:16px 18px; font-family:monospace; font-size:12px;
  border-top:1px solid rgba(37,99,235,.1); overflow-x:auto;
  line-height:1.7;
}

/* ============================================================
   CHAT
   ============================================================ */
.chat-messages {
  display:flex; flex-direction:column; gap:12px;
  padding:16px 0;
}
.msg-bubble {
  max-width:80%; padding:12px 16px; border-radius:18px;
  font-size:14px; line-height:1.5; font-weight:500;
  animation: fadeUp .2s ease;
}
.msg-user {
  align-self:flex-end;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff; border-bottom-right-radius:4px;
}
.msg-cs {
  align-self:flex-start;
  background:var(--surface); color:var(--text);
  border-bottom-left-radius:4px;
  box-shadow:var(--shadow-sm); border:1px solid var(--border);
}
.msg-time { font-size:11px; opacity:.6; margin-top:4px; font-weight:500; }
.chat-input-bar {
  position:fixed; bottom:0; left:0; right:0;
  background:var(--surface); border-top:1px solid var(--border);
  padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  display:flex; gap:10px; align-items:flex-end; z-index:700;
}
.chat-input {
  flex:1; background:var(--surface2); border:1.5px solid var(--border);
  border-radius:22px; padding:12px 18px;
  font-size:14px; font-weight:500; outline:none;
  transition:var(--transition); max-height:120px; resize:none;
}
.chat-input:focus { border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-glow-sm); }
.send-btn {
  width:44px; height:44px; border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:#fff; font-size:18px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; box-shadow:0 4px 14px rgba(37,99,235,.35);
  transition:var(--transition); cursor:pointer;
}
.send-btn:active { transform:scale(.92); }

/* ============================================================
   ADMIN SPECIFIC
   ============================================================ */
.admin-stats-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:12px;
  margin-bottom:20px;
}
.admin-stat-card {
  background:var(--surface); border-radius:var(--radius-lg);
  padding:18px 16px; border:1px solid rgba(37,99,235,.06);
  box-shadow:var(--shadow-sm); position:relative; overflow:hidden;
}
.admin-stat-card.blue { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff; }
.admin-stat-card.blue .stat-label { color:rgba(255,255,255,.7); }
.admin-stat-card.blue .stat-value { color:#fff; }
.admin-stat-glow::before {
  content:''; position:absolute; top:-20px; right:-20px;
  width:80px; height:80px; border-radius:50%;
  background:rgba(255,255,255,.1);
}
.stat-label { font-size:11px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.3px; margin-bottom:6px; }
.stat-value { font-size:22px; font-weight:900; color:var(--text); }
.stat-value.animated { animation:countUp .6s ease; }
.stat-trend {
  display:flex; align-items:center; gap:4px;
  font-size:11px; font-weight:700; margin-top:6px;
}
.trend-up { color:#10B981; }
.trend-down { color:#EF4444; }

/* ============================================================
   TABLES (ADMIN)
   ============================================================ */
.table-wrapper { overflow-x:auto; border-radius:var(--radius-sm); }
table { width:100%; border-collapse:collapse; font-size:13px; }
th {
  padding:12px 14px; text-align:left;
  font-size:11px; font-weight:800; color:var(--text3);
  text-transform:uppercase; letter-spacing:.3px;
  background:var(--surface2); border-bottom:1px solid var(--border);
}
td { padding:13px 14px; border-bottom:1px solid rgba(37,99,235,.04); font-weight:600; color:var(--text2); }
tr:last-child td { border-bottom:none; }
tr:hover td { background:var(--surface2); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  height:6px; background:var(--border); border-radius:3px; overflow:hidden;
}
.progress-fill {
  height:100%; border-radius:3px;
  background:linear-gradient(90deg,var(--primary),var(--secondary));
  transition:width 1.2s cubic-bezier(.4,0,.2,1);
  animation:glow 2s ease infinite;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-primary { color:var(--primary); }
.text-success { color:var(--success); }
.text-danger { color:var(--danger); }
.text-warning { color:var(--warning); }
.text-muted { color:var(--text3); }
.fw-800 { font-weight:800; }
.mt-0 { margin-top:0; }
.mb-0 { margin-bottom:0; }
.text-center { text-align:center; }
.d-none { display:none !important; }

/* ============================================================
   DESKTOP FALLBACK (minimal)
   ============================================================ */
@media (min-width:768px) {
  .main-content {
    max-width:700px;
    padding: calc(var(--header-h) + 30px) 24px calc(var(--bottom-nav-h) + 30px);
  }
  .admin-stats-grid { grid-template-columns:repeat(3,1fr); }
}
