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

:root {
  --b50:  #E3F2FD;
  --b100: #BBDEFB;
  --b200: #90CAF9;
  --b600: #1E88E5;
  --b700: #1565C0;
  --b800: #1976D2;
  --b900: #0D47A1;
  --bg-tint: #f4f7fc;
  --border: #e4ebf5;
  --gr600:#16a34a;
  --y600: #ca8a04;
  --r600: #dc2626;
  --g50:  #f8faff;
  --g100: #f0f0f0;
  --g600: #444;
  --g700: #222;
  --muted:#888;
  --text: #0d0d0d;
  --glass: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.18);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg-tint);
  color: #1a1a2e;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--b600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--b800); }
i.fas, i.far, i.fab { font-style: normal; }

/* ── LAYOUT ── */
.layout { display: flex; min-height: 100vh; }

/* ══════════════════════════════════════
   SIDEBAR — Dark premium glassmorphism
   ══════════════════════════════════════ */
.sidebar {
  width: 250px;
  min-width: 250px;
  background: linear-gradient(195deg, #0a1628 0%, #0f2345 40%, #0a1628 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 400;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.sb-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-m {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--b600), #6366f1);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px; color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,.4);
}
.logo-n { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.logo-s { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 2px; font-weight: 500; letter-spacing: .3px; }

.sb-nav { flex: 1; padding: 16px 10px; }
.ng { margin-bottom: 20px; }
.nl {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.25);
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 0 12px 8px;
  display: block;
}
.ni {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  color: rgba(255,255,255,.5);
  font-size: 13px; font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  margin-bottom: 2px;
  position: relative;
}
.ni i { width: 18px; text-align: center; font-size: 14px; opacity: .65; flex-shrink: 0; transition: all .2s; }
.ni:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); transform: translateX(3px); }
.ni:hover i { opacity: 1; }
.ni.active {
  background: linear-gradient(135deg, var(--b600), #5b7fff);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(30,136,229,.35);
  transform: translateX(3px);
}
.ni.active i { opacity: 1; }
.nb {
  margin-left: auto;
  background: #ef4444; color: #fff;
  border-radius: 20px; padding: 2px 8px;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(239,68,68,.4);
  animation: pulse-ring 2s infinite;
}

.sb-user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  background: rgba(0,0,0,.15);
}
.ava {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--b600), #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.u-name { font-size: 12px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-role { font-size: 10px; color: rgba(255,255,255,.35); font-weight: 500; }
.lout {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,.25); cursor: pointer;
  padding: 6px; border-radius: 8px;
  transition: all .2s; font-size: 14px;
}
.lout:hover { background: rgba(239,68,68,.15); color: #fca5a5; }

/* ══════════════════════════════════════
   MAIN AREA
   ══════════════════════════════════════ */
.main { flex: 1; margin-left: 250px; min-width: 0; }

/* ── TOPBAR ── */
.topbar {
  position: sticky; top: 0; z-index: 350;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.tb-l { display: flex; align-items: center; gap: 12px; }
.tb-title { font-size: 15px; font-weight: 800; color: #1a1a2e; letter-spacing: -.3px; }
.tb-r { display: flex; align-items: center; gap: 10px; }
.pill {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 14px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; gap: 7px;
  color: #334155;
  box-shadow: var(--shadow-sm);
}
.dot {
  width: 8px; height: 8px;
  background: #22c55e; border-radius: 50%;
  animation: pulse-glow 2.5s infinite;
  flex-shrink: 0;
}
.mbtn {
  display: none;
  background: none; border: none;
  color: #1a1a2e; cursor: pointer;
  padding: 8px; border-radius: var(--radius-xs);
  font-size: 20px; transition: all .2s;
  align-items: center; justify-content: center;
}
.mbtn:hover { background: var(--b50); }

.page { padding: 24px; animation: fadeIn .3s ease; }

/* ══════════════════════════════════════
   STAT CARDS — Glass premium
   ══════════════════════════════════════ */
.sg { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.sc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.sc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--b600), #6366f1);
  opacity: 0;
  transition: opacity .25s;
}
.sc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sc:hover::before { opacity: 1; }
.sc.grad-card::before, .sc.bal-card::before, .grad-card .sc::before { display: none !important; }
.sc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sico {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.si-bl { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: var(--b600); }
.si-gr { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #16a34a; }
.si-ye { background: linear-gradient(135deg, #fefce8, #fef9c3); color: #ca8a04; }
.si-or { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #ea580c; }
.si-gy { background: linear-gradient(135deg, #f8fafc, #f1f5f9); color: #64748b; }
.sv { font-size: 24px; font-weight: 800; color: #1a1a2e; letter-spacing: -.5px; line-height: 1; }
.sl { font-size: 11px; color: #64748b; margin-top: 5px; font-weight: 500; }

/* ══════════════════════════════════════
   CARDS
   ══════════════════════════════════════ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.card:hover { box-shadow: var(--shadow-md); }
.card + .card { margin-top: 16px; }
.ch {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 52px; flex-wrap: wrap;
  transition: background .2s;
}
.card:hover .ch { background: rgba(30,136,229,.015); }
.ch-t { font-size: 14px; font-weight: 800; color: #1a1a2e; letter-spacing: -.2px; }
.ch-s { font-size: 12px; color: #64748b; }
.cb { padding: 20px; }

/* ── TABLE ── */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  padding: 10px 16px; text-align: left;
  font-size: 10px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .8px;
  background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: #f0f6ff; }

/* ── BADGES ── */
.b { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; letter-spacing: .2px; }
.b-paid     { background: #dcfce7; color: #15803d; }
.b-pending  { background: #fef9c3; color: #a16207; }
.b-expired  { background: #f1f5f9; color: #64748b; }
.b-rejected { background: #fee2e2; color: #b91c1c; }
.b-approved { background: #dcfce7; color: #15803d; }
.b-admin    { background: var(--b50); color: var(--b800); }
.b-user     { background: #f1f5f9; color: #475569; }
.b-open     { background: #fef9c3; color: #a16207; }
.b-closed   { background: #f1f5f9; color: #64748b; }
.b-waiting  { background: #eff6ff; color: var(--b600); }

/* ══════════════════════════════════════
   BUTTONS — Premium feel
   ══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius-xs);
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  white-space: nowrap; line-height: 1;
  position: relative; overflow: hidden;
}
.btn i { font-size: 13px; }
.btn:active { transform: scale(.97) !important; }
.btn-p {
  background: linear-gradient(135deg, var(--b600), #4f7cff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30,136,229,.35);
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,136,229,.45); color: #fff; }
.btn-o { background: transparent; color: var(--b600); border: 1.5px solid var(--b200); }
.btn-o:hover { background: var(--b50); border-color: var(--b600); }
.btn-g { background: transparent; color: #475569; border: 1.5px solid var(--border); }
.btn-g:hover { background: #f8fafc; color: #1a1a2e; border-color: #cbd5e1; }
.btn-d { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.btn-d:hover { background: #fee2e2; }
.btn-s { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.btn-s:hover { background: #dcfce7; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.btn-xs { padding: 4px 10px; font-size: 11px; border-radius: 7px; }
.btn-full { width: 100%; }

/* ── FORM ── */
.fg { margin-bottom: 16px; }
.fl { display: block; font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 6px; letter-spacing: .2px; }
.fi, .fs, .ft {
  width: 100%; padding: 10px 14px;
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-xs); color: #1a1a2e;
  font-size: 13px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  transition: all .2s;
  outline: none; -webkit-appearance: none; appearance: none;
}
.fi:focus, .fs:focus, .ft:focus {
  border-color: var(--b600);
  box-shadow: 0 0 0 4px rgba(30,136,229,.1);
  background: #fafcff;
}
.fi::placeholder { color: #94a3b8; }
.ft { resize: vertical; min-height: 80px; }
.fh { font-size: 11px; color: #94a3b8; margin-top: 5px; }

/* ── ALERTS ── */
.al {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 16px;
  font-weight: 500; border: 1px solid;
  display: flex; align-items: flex-start; gap: 10px;
  animation: fadeUp .3s ease both;
}
.al i { margin-top: 1px; font-size: 15px; flex-shrink: 0; }
.al-err  { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.al-ok   { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.al-info { background: #eff6ff; border-color: var(--b200); color: var(--b800); }
.al-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ── CODE ── */
.code-wrap { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid #1e293b; margin: 10px 0; }
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: #1e293b;
}
.code-lang { font-size: 10px; color: #38bdf8; font-family: 'JetBrains Mono', monospace; font-weight: 700; letter-spacing: .5px; }
.cp-btn {
  background: none; border: 1px solid #334155; color: #64748b;
  border-radius: 6px; padding: 3px 10px; font-size: 11px;
  cursor: pointer; font-family: 'JetBrains Mono', monospace; transition: all .2s;
}
.cp-btn:hover { border-color: #38bdf8; color: #e2e8f0; }
.code-body {
  background: #0f172a; padding: 16px 18px; overflow-x: auto;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px; color: #cbd5e1; line-height: 1.9;
}
.kw { color: #f97316; } .st { color: #86efac; } .cm { color: #475569; }
.fn { color: #c084fc; } .nm { color: #38bdf8; } .va { color: #fde68a; } .tg { color: #f87171; }
code {
  background: var(--b50); border: 1px solid var(--b200);
  border-radius: 5px; padding: 2px 7px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--b800);
}

/* ── TABS ── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 14px; gap: 2px; }
.tab-btn {
  padding: 8px 16px; font-size: 12px; font-weight: 700; color: #94a3b8;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .2s; border-top: none; border-left: none; border-right: none;
  background: none; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  border-radius: 8px 8px 0 0;
}
.tab-btn:hover { color: var(--b600); background: var(--b50); }
.tab-btn.on { color: var(--b600); border-bottom-color: var(--b600); background: var(--b50); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }

/* ── MODAL ── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000; align-items: center; justify-content: center; padding: 16px;
}
.overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 18px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn .3s cubic-bezier(.34,1.56,.64,1);
}
.mh { padding: 18px 22px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.mt { font-size: 16px; font-weight: 800; color: #1a1a2e; }
.mc { background: #f1f5f9; border: none; color: #64748b; cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 8px; line-height: 1; transition: all .2s; }
.mc:hover { background: #e2e8f0; color: #1a1a2e; }
.mb { padding: 18px 22px; }
.mf { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ── TICKET ── */
.ticket {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1); background: #fff;
}
.ticket:hover { border-color: var(--b200); background: #fafcff; transform: translateX(4px); box-shadow: -4px 0 0 var(--b600), var(--shadow-md); }
.t-subj { font-weight: 700; font-size: 13px; color: #1a1a2e; }
.t-meta { font-size: 11px; color: #64748b; margin-top: 5px; display: flex; gap: 14px; flex-wrap: wrap; }
.msg { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid var(--border); background: #f8fafc; }
.msg.adm { background: #eff6ff; border-color: var(--b200); }
.msg-h { display: flex; justify-content: space-between; margin-bottom: 6px; }
.msg-a { font-size: 12px; font-weight: 700; color: #1a1a2e; }
.msg-t { font-size: 11px; color: #94a3b8; }
.msg-b { font-size: 13px; color: #374151; line-height: 1.7; }

/* ── QRIS ── */
.qi { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; transition: all .2s; }
.qi.qa { border-color: var(--b200); background: #eff6ff; }
.qbar { height: 6px; background: #e2e8f0; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.qbar-f { height: 100%; border-radius: 4px; transition: width .5s ease; }

/* ── ENDPOINT ── */
.ep-m { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 10px; font-weight: 800; font-family: 'JetBrains Mono', monospace; letter-spacing: .5px; }
.ep-post { background: #dcfce7; color: #15803d; }
.ep-get  { background: #eff6ff; color: var(--b800); }
.ep-url  { background: #0f172a; border-radius: var(--radius-xs); padding: 10px 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #38bdf8; overflow-x: auto; word-break: break-all; margin: 10px 0; display: block; }

hr.div { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* ── SPECIAL CARDS ── */
.grad-card {
  background: linear-gradient(135deg, var(--b600) 0%, #4f46e5 50%, var(--b900) 100%);
  color: #fff; border-radius: var(--radius); padding: 22px;
  position: relative; overflow: hidden;
}
.grad-card::before {
  content: ''; position: absolute; top: -30%; right: -10%; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  border-radius: 50%;
  height: auto; left: auto; opacity: 1;
}
.grad-card .sv { color: #fff; }
.grad-card .sl { color: rgba(255,255,255,.65); }
.grad-card .sico { background: rgba(255,255,255,.15) !important; color: #fff !important; }

.bal-card {
  background: linear-gradient(135deg, var(--b700) 0%, #4338ca 60%, var(--b900) 100%);
  color: #fff; border-radius: 16px; padding: 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(30,136,229,.25);
}
.bal-card::before {
  content: ''; position: absolute; top: -20px; right: -20px; width: 120px; height: 120px;
  background: rgba(255,255,255,.08); border-radius: 50%;
}
.bal-card::after {
  content: ''; position: absolute; bottom: -30px; left: -30px; width: 100px; height: 100px;
  background: rgba(255,255,255,.05); border-radius: 50%;
}

/* ══════════════════════════════════════
   LOGIN PAGE — Premium split layout
   ══════════════════════════════════════ */
.login-w { min-height: 100vh; display: flex; }
.login-l {
  flex: 1;
  background: linear-gradient(160deg, #0a1628 0%, #0f2345 40%, #1a1050 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 48px; position: relative; overflow: hidden;
}
.login-l::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(99,102,241,.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(30,136,229,.1) 0%, transparent 50%);
}
.login-l::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 24px 24px;
}
.login-li { position: relative; z-index: 1; color: #fff; max-width: 380px; }
.lil-ico {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(99,102,241,.3), rgba(30,136,229,.3));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; font-size: 24px;
  backdrop-filter: blur(10px);
}
.lil-t { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; line-height: 1.2; }
.lil-d { font-size: 14px; opacity: .6; line-height: 1.8; margin-bottom: 32px; }
.lf { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.lf-ic {
  width: 36px; height: 36px; min-width: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.lf-t strong { display: block; font-size: 13px; margin-bottom: 2px; }
.lf-t span { font-size: 12px; opacity: .5; }

.login-r {
  width: 420px; min-width: 320px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 44px; background: #fff;
}
.lr-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.login-h1 { font-size: 24px; font-weight: 800; color: #1a1a2e; margin-bottom: 6px; letter-spacing: -.3px; }
.login-sub { font-size: 13px; color: #64748b; margin-bottom: 24px; }

/* ══════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════ */
.land { background: #fff; overflow-x: hidden; min-height: 100vh; }
.land-nav {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  padding: 0 56px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.land-hero { padding: 72px 56px 64px; display: flex; align-items: center; gap: 64px; max-width: 1080px; margin: 0 auto; }
.land-hero-txt { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #eff6ff; color: var(--b600); border: 1px solid var(--b200);
  border-radius: 24px; padding: 6px 16px; font-size: 11px; font-weight: 700; margin-bottom: 20px;
  letter-spacing: .3px;
}
.hero-h { font-size: 44px; font-weight: 800; color: #1a1a2e; letter-spacing: -1px; line-height: 1.12; margin-bottom: 16px; }
.hero-h span { background: linear-gradient(135deg, var(--b600), #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-p { font-size: 15px; color: #64748b; line-height: 1.8; margin-bottom: 28px; max-width: 460px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.land-hero-img { flex-shrink: 0; width: 420px; }
.check-li { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-li li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #475569; }
.check-li li i { color: var(--b600); width: 18px; text-align: center; }
.land-section { border-top: 1px solid var(--border); }
.lsi { max-width: 1080px; margin: 0 auto; padding: 60px; }
.land-feats { padding: 60px; max-width: 1080px; margin: 0 auto; }
.lf-title { font-size: 28px; font-weight: 800; text-align: center; color: #1a1a2e; letter-spacing: -.5px; margin-bottom: 8px; }
.lf-sub { text-align: center; color: #64748b; font-size: 14px; margin-bottom: 40px; }
.fg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fc {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.fc::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--b600), #6366f1); opacity: 0; transition: opacity .3s;
}
.fc:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--b200); }
.fc:hover::before { opacity: 1; }
.fc-ico { width: 46px; height: 46px; background: linear-gradient(135deg, var(--b50), #ede9fe); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 19px; color: var(--b600); }
.fc-t { font-size: 15px; font-weight: 800; color: #1a1a2e; margin-bottom: 6px; }
.fc-d { font-size: 13px; color: #64748b; line-height: 1.7; }
.land-footer { background: #f8fafc; border-top: 1px solid var(--border); padding: 24px 56px; text-align: center; color: #94a3b8; font-size: 12px; }
.step { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.step-n { width: 36px; height: 36px; min-width: 36px; background: linear-gradient(135deg, var(--b600), #6366f1); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; box-shadow: 0 4px 12px rgba(30,136,229,.3); }
.step-b strong { display: block; font-size: 14px; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; }
.step-b span { font-size: 13px; color: #64748b; line-height: 1.6; }

/* ── OVERLAY (mobile) ── */
.sb-ov { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 390; cursor: pointer; backdrop-filter: blur(4px); }
.sb-ov.open { display: block; }

/* ── HELPER ── */
.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
.sidebar { transform: translateX(-250px); }
.sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,.3); }
.main { margin-left: 0; }
.mbtn { display: flex !important; }
.topbar { padding: 0 16px; }
.page { padding: 16px; }
.two-col { grid-template-columns: 1fr; }
.sg { grid-template-columns: 1fr 1fr; }
.dash-desktop-side { display: none; }
.dash-desktop-grid { display: block; }
.login-l { display: none; }
.login-r { width: 100%; min-width: 0; padding: 36px 24px; }
.land-nav { padding: 0 20px; }
.land-hero { flex-direction: column; padding: 40px 20px; gap: 32px; }
.land-hero-img { width: 100%; }
.hero-h { font-size: 30px; }
.land-feats, .lsi { padding: 40px 20px; }
.fg-grid { grid-template-columns: 1fr; }
.land-footer { padding: 20px; }
.hide-sm { display: none !important; }

@media (max-width: 480px) {
  .sg { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sv { font-size: 18px; }
  .page { padding: 12px; }
  th, td { padding: 10px 12px; }
}

@media (min-width: 768px) {
  .sidebar { transform: translateX(0); box-shadow: none; }
  .main { margin-left: 250px; }
  .mbtn { display: none !important; }
  .sb-ov { display: none !important; }
  .topbar { padding: 0 24px; }
  .page { padding: 20px 24px; }
  .sg { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; gap: 16px; }
  .login-l { display: flex; }
  .login-r { width: 420px; min-width: 320px; padding: 48px 44px; }
  .land-nav { padding: 0 56px; }
  .land-hero { flex-direction: row; padding: 72px 56px 64px; gap: 64px; }
  .land-hero-img { width: 420px; }
  .hero-h { font-size: 44px; }
  .land-feats, .lsi { padding: 60px; }
  .fg-grid { grid-template-columns: repeat(3, 1fr); }
  .land-footer { padding: 24px 56px; }
  .hide-sm { display: initial !important; }
}

@media (min-width: 1280px) {
  .sidebar { width: 270px; min-width: 270px; }
  .main { margin-left: 270px; }
  .topbar { padding: 0 32px; height: 64px; }
  .tb-title { font-size: 16px; }
  .page { padding: 28px 32px; }
  .sb-logo { padding: 22px 22px 18px; }
  .sb-logo-img { height: 42px; max-width: 200px; }
  .logo-n { font-size: 16px; }
  .ni { padding: 11px 14px; font-size: 13.5px; }
  .nl { font-size: 10px; padding: 0 14px 8px; }
  .sg { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .sg .sc { padding: 22px; }
  .sg .sv { font-size: 24px; }
  .ov-bal-grid { gap: 20px; }
  .ov-bal-amount { font-size: 28px; }
  .ov-bal-card { padding: 28px 24px; }
  .ov-stat-row { gap: 14px; }
  .ov-stat-val { font-size: 22px; }
  .ch { padding: 18px 22px; }
  .cb { padding: 22px; }
  th, td { padding: 13px 18px; }
  .tw th { font-size: 11px; }
  .two-col { grid-template-columns: 1.2fr 1fr; gap: 20px; }
  .fi, .ft, .fs { font-size: 14px; padding: 11px 14px; }
  .dash-desktop-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
  .dash-desktop-main { min-width: 0; }
  .dash-desktop-side { display: block; min-width: 0; }
  .page-desktop-wrap { max-width: 1200px; }
  .qr-wrap { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .qr-form-card { margin-bottom: 0; }
  .qr-result { margin-bottom: 0; }
  .sp-wrap { max-width: 920px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .sp-uptime-bar { grid-column: 1 / -1; }
  .sp-updated { grid-column: 1 / -1; }
  #chartHarian { min-height: 260px; }
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(.92); }
  60%  { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes modalIn {
  0%   { opacity: 0; transform: scale(.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50% { opacity: .7; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stat cards stagger */
.sc { animation: popIn .4s cubic-bezier(.34,1.56,.64,1) both; }
.sg .sc:nth-child(1) { animation-delay: .05s; }
.sg .sc:nth-child(2) { animation-delay: .1s; }
.sg .sc:nth-child(3) { animation-delay: .15s; }
.sg .sc:nth-child(4) { animation-delay: .2s; }

/* Card animations */
.card { animation: fadeUp .35s ease both; }
.card + .card { animation-delay: .05s; }

/* Balance cards */
.ov-bal-card { animation: fadeUp .4s ease both; transition: all .3s cubic-bezier(.4,0,.2,1); }
.ov-bal-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.18); }
.ov-bal-card.pending { animation-delay: .05s; }
.ov-bal-card.settled { animation-delay: .12s; }

/* Stat row */
.ov-stat { animation: fadeUp .4s ease both; transition: transform .2s; }
.ov-stat:hover { transform: translateY(-2px); }
.ov-stat-row .ov-stat:nth-child(1) { animation-delay: .1s; }
.ov-stat-row .ov-stat:nth-child(2) { animation-delay: .15s; }
.ov-stat-row .ov-stat:nth-child(3) { animation-delay: .2s; }

/* Value count up */
.sv, .ov-stat-val { animation: countUp .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: .2s; }

/* TX rows stagger */
.ov-tx-card tbody tr:nth-child(1) { animation: fadeUp .3s ease .15s both; }
.ov-tx-card tbody tr:nth-child(2) { animation: fadeUp .3s ease .2s both; }
.ov-tx-card tbody tr:nth-child(3) { animation: fadeUp .3s ease .25s both; }
.ov-tx-card tbody tr:nth-child(4) { animation: fadeUp .3s ease .3s both; }
.ov-tx-card tbody tr:nth-child(5) { animation: fadeUp .3s ease .35s both; }

/* QR animations */
.qr-img-wrap { animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both; }
.qr-form-card, .qr-result { animation: fadeUp .35s ease both; }
.qr-result { animation-delay: .05s; }

/* Nominal chip */
.nom-chip { transition: all .2s cubic-bezier(.4,0,.2,1); }
.nom-chip:hover { transform: scale(1.06); }
.nom-chip.active { transform: scale(1.06); }

/* Notif panel */
#notifPanel { animation: fadeUp .2s ease; transform-origin: top right; }

/* Sidebar user */
.sb-user { animation: slideInLeft .4s ease .3s both; }

/* Layout */
.layout { animation: fadeIn .2s ease; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

/* QR status */
#qrStatusBox .al { animation: popIn .4s cubic-bezier(.34,1.56,.64,1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Selection ── */
::selection { background: var(--b200); color: var(--b900); }
