:root {
  --b50:  #E3F2FD;
  --b100: #BBDEFB;
  --b200: #90CAF9;
  --b600: #1E88E5;
  --b700: #1565C0;
  --gr600:#16a34a;
  --y600: #ca8a04;
  --r600: #dc2626;
  --g50:  #f8faff;
  --g100: #f0f0f0;
  --g600: #444;
  --g700: #222;
  --muted:#888;
  --border:#dce8fb;
  --text: #0d0d0d;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f0f5ff;
  color: #0d0d0d;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: #2979FF; text-decoration: none; }
a:hover { color: #0D47A1; }
i.fas, i.far, i.fab { font-style: normal; }

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

/* ── SIDEBAR ── */
.sidebar {
  width: 235px;
  min-width: 235px;
  background: #0D47A1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 400;
  transition: transform .25s ease;
  overflow-y: auto;
  overflow-x: hidden;
}
.sb-logo {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-m {
  width: 36px; height: 36px;
  background: #2979FF;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px; color: #fff;
  box-shadow: 0 2px 8px rgba(41,121,255,.5);
}
.logo-n { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.logo-s { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 1px; }
.sb-nav { flex: 1; padding: 12px 8px; }
.ng { margin-bottom: 16px; }
.nl {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: .09em;
  padding: 0 10px 5px;
  display: block;
}
.ni {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  color: rgba(255,255,255,.6);
  font-size: 13px; font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background .13s, color .13s;
  text-decoration: none;
  margin-bottom: 1px;
}
.ni i { width: 16px; text-align: center; font-size: 13px; opacity: .75; flex-shrink: 0; }
.ni:hover { background: rgba(255,255,255,.1); color: #fff; }
.ni:hover i { opacity: 1; }
.ni.active {
  background: #2979FF;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(41,121,255,.4);
}
.ni.active i { opacity: 1; }
.nb {
  margin-left: auto;
  background: #dc2626; color: #fff;
  border-radius: 20px; padding: 1px 7px;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.sb-user {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 9px;
  flex-shrink: 0;
}
.ava {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #2979FF;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.u-name { font-size: 12px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-role { font-size: 10px; color: rgba(255,255,255,.45); }
.lout {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,.35); cursor: pointer;
  padding: 5px; border-radius: 6px;
  transition: .13s; font-size: 13px;
}
.lout:hover { background: rgba(220,38,38,.25); color: #fca5a5; }

/* ── MAIN ── */
.main { flex: 1; margin-left: 235px; min-width: 0; }

/* ── TOPBAR ── */
.topbar {
  position: sticky; top: 0; z-index: 350;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #dce8fb;
  padding: 0 22px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.tb-l { display: flex; align-items: center; gap: 10px; }
.tb-title { font-size: 14px; font-weight: 700; color: #0d0d0d; }
.tb-r { display: flex; align-items: center; gap: 8px; }
.pill {
  background: #fff;
  border: 1.5px solid #e2eaf5;
  border-radius: 10px; padding: 5px 12px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  color: #334155; letter-spacing: .01em;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.dot {
  width: 7px; height: 7px;
  background: #22c55e; border-radius: 50%;
  animation: blink 2.5s infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%, 100% { opacity: 1; } 60% { opacity: .2; } }
.mbtn {
  display: none;
  background: none; border: none;
  color: #333; cursor: pointer;
  padding: 6px 8px; border-radius: 8px;
  font-size: 18px; transition: .13s;
  align-items: center; justify-content: center;
}
.mbtn:hover { background: #f0f5ff; }

.page { padding: 20px 22px; }

/* ── STAT CARDS ── */
.sg { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sc {
  background: #fff; border: 1px solid #dce8fb;
  border-radius: 10px; padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.sc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sico {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.si-bl { background: #E3F2FD; color: #2979FF; }
.si-gr { background: #f0fdf4; color: #16a34a; }
.si-ye { background: #fefce8; color: #ca8a04; }
.si-or { background: #fff7ed; color: #ea580c; }
.si-gy { background: #f5f5f5; color: #555; }
.sv { font-size: 22px; font-weight: 800; color: #0d0d0d; letter-spacing: -.5px; line-height: 1; }
.sl { font-size: 11px; color: #666; margin-top: 4px; font-weight: 500; }

/* ── CARD ── */
.card { background: #fff; border: 1px solid #dce8fb; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.card + .card { margin-top: 14px; }
.ch {
  padding: 13px 18px;
  border-bottom: 1px solid #dce8fb;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; min-height: 48px; flex-wrap: wrap;
}
.ch-t { font-size: 13px; font-weight: 700; color: #0d0d0d; }
.ch-s { font-size: 12px; color: #666; }
.cb { padding: 18px; }

/* ── TABLE ── */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  padding: 9px 14px; text-align: left;
  font-size: 10px; font-weight: 700; color: #555;
  text-transform: uppercase; letter-spacing: .07em;
  background: #E3F2FD; border-bottom: 1px solid #dce8fb; white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid #ebebeb; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f0f6ff; }

/* ── BADGES ── */
.b { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.b-paid     { background: #dcfce7; color: #16a34a; }
.b-pending  { background: #fefce8; color: #ca8a04; }
.b-expired  { background: #f0f0f0; color: #666; }
.b-rejected { background: #fee2e2; color: #dc2626; }
.b-approved { background: #dcfce7; color: #16a34a; }
.b-admin    { background: #E3F2FD; color: #0D47A1; }
.b-user     { background: #f5f5f5; color: #555; }
.b-open     { background: #fefce8; color: #ca8a04; }
.b-closed   { background: #f0f0f0; color: #888; }
.b-waiting  { background: #E3F2FD; color: #2979FF; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 17px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all .13s;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  white-space: nowrap; line-height: 1;
}
.btn i { font-size: 12px; }
.btn-p { background: #2979FF; color: #fff; box-shadow: 0 2px 6px rgba(41,121,255,.3); }
.btn-p:hover { background: #1565C0; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(41,121,255,.35); }
.btn-o { background: transparent; color: #2979FF; border: 1.5px solid #90CAF9; }
.btn-o:hover { background: #E3F2FD; }
.btn-g { background: transparent; color: #555; border: 1px solid #dce8fb; }
.btn-g:hover { background: #f5f5f5; color: #0d0d0d; }
.btn-d { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.btn-d:hover { background: #fecaca; }
.btn-s { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.btn-s:hover { background: #bbf7d0; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 7px; }
.btn-xs { padding: 3px 9px; font-size: 11px; border-radius: 6px; }
.btn-full { width: 100%; }

/* ── FORM ── */
.fg { margin-bottom: 14px; }
.fl { display: block; font-size: 12px; font-weight: 600; color: #333; margin-bottom: 5px; }
.fi, .fs, .ft {
  width: 100%; padding: 9px 12px;
  background: #fff; border: 1.5px solid #d4d4d4;
  border-radius: 8px; color: #0d0d0d;
  font-size: 13px; font-family: 'Inter', system-ui, sans-serif;
  transition: border .12s, box-shadow .12s;
  outline: none; -webkit-appearance: none; appearance: none;
}
.fi:focus, .fs:focus, .ft:focus {
  border-color: #2979FF;
  box-shadow: 0 0 0 3px rgba(41,121,255,.1);
}
.ft { resize: vertical; min-height: 80px; }
.fh { font-size: 11px; color: #666; margin-top: 4px; }

/* ── ALERTS ── */
.al {
  padding: 10px 14px; border-radius: 9px;
  font-size: 13px; margin-bottom: 14px;
  font-weight: 500; border: 1px solid;
  display: flex; align-items: flex-start; gap: 9px;
}
.al i { margin-top: 1px; font-size: 14px; flex-shrink: 0; }
.al-err  { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.al-ok   { background: #dcfce7; border-color: #bbf7d0; color: #16a34a; }
.al-info { background: #E3F2FD; border-color: #90CAF9; color: #0D47A1; }
.al-warn { background: #fefce8; border-color: #fde68a; color: #92400e; }

/* ── CODE ── */
.code-wrap { border-radius: 9px; overflow: hidden; border: 1px solid #1e293b; margin: 8px 0; }
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px; background: #1e293b;
}
.code-lang { font-size: 10px; color: #64B5F6; font-family: monospace; font-weight: 700; letter-spacing: .06em; }
.cp-btn {
  background: none; border: 1px solid #334155; color: #64748b;
  border-radius: 5px; padding: 2px 8px; font-size: 11px;
  cursor: pointer; font-family: monospace; transition: .12s;
}
.cp-btn:hover { border-color: #64B5F6; color: #e2e8f0; }
.code-body {
  background: #0d1b2a; padding: 14px 16px; overflow-x: auto;
  font-family: 'Fira Code', Consolas, 'Courier New', monospace;
  font-size: 12px; color: #cbd5e1; line-height: 1.8;
}
.kw { color: #f97316; } .st { color: #86efac; } .cm { color: #4a6080; }
.fn { color: #c084fc; } .nm { color: #64B5F6; } .va { color: #fde68a; } .tg { color: #f87171; }
code {
  background: #E3F2FD; border: 1px solid #90CAF9;
  border-radius: 4px; padding: 1px 6px;
  font-family: monospace; font-size: 12px; color: #0D47A1;
}

/* ── TABS ── */
.tabs { display: flex; border-bottom: 2px solid #dce8fb; margin-bottom: 12px; }
.tab-btn {
  padding: 7px 14px; font-size: 12px; font-weight: 600; color: #888;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: .13s; border-top: none; border-left: none; border-right: none;
  background: none; font-family: 'Inter', system-ui, sans-serif;
}
.tab-btn.on { color: #2979FF; border-bottom-color: #2979FF; }
.tab-pane { display: none; }
.tab-pane.on { display: block; }

/* ── MODAL ── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  z-index: 1000; align-items: center; justify-content: center; padding: 16px;
}
.overlay.open { display: flex; }
.modal {
  background: #fff; border: 1px solid #dce8fb; border-radius: 14px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 8px 40px rgba(13,71,161,.2);
}
.mh { padding: 16px 18px 13px; border-bottom: 1px solid #dce8fb; display: flex; align-items: center; justify-content: space-between; }
.mt { font-size: 14px; font-weight: 700; }
.mc { background: #f5f5f5; border: none; color: #666; cursor: pointer; font-size: 16px; padding: 3px 7px; border-radius: 6px; line-height: 1; }
.mb { padding: 16px 18px; }
.mf { padding: 12px 18px; border-top: 1px solid #dce8fb; display: flex; gap: 8px; justify-content: flex-end; }

/* ── TICKET ── */
.ticket { border: 1px solid #dce8fb; border-radius: 9px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; transition: .13s; background: #fff; }
.ticket:hover { border-color: #64B5F6; background: #E3F2FD; }
.t-subj { font-weight: 600; font-size: 13px; color: #0d0d0d; }
.t-meta { font-size: 11px; color: #666; margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.msg { padding: 11px 14px; border-radius: 9px; margin-bottom: 9px; border: 1px solid #dce8fb; background: #f8f8f8; }
.msg.adm { background: #E3F2FD; border-color: #90CAF9; }
.msg-h { display: flex; justify-content: space-between; margin-bottom: 5px; }
.msg-a { font-size: 12px; font-weight: 700; color: #333; }
.msg-t { font-size: 11px; color: #888; }
.msg-b { font-size: 13px; color: #333; line-height: 1.6; }

/* ── QRIS ── */
.qi { border: 1.5px solid #dce8fb; border-radius: 9px; padding: 12px 14px; background: #fff; transition: .15s; }
.qi.qa { border-color: #64B5F6; background: #E3F2FD; }
.qbar { height: 5px; background: #ebebeb; border-radius: 3px; margin-top: 7px; overflow: hidden; }
.qbar-f { height: 100%; border-radius: 3px; transition: width .4s ease; }

/* ── ENDPOINT ── */
.ep-m { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 10px; font-weight: 800; font-family: monospace; }
.ep-post { background: #dcfce7; color: #16a34a; }
.ep-get  { background: #E3F2FD; color: #0D47A1; }
.ep-url  { background: #0d1b2a; border-radius: 7px; padding: 9px 13px; font-family: monospace; font-size: 12px; color: #64B5F6; overflow-x: auto; word-break: break-all; margin: 8px 0; display: block; }

hr.div { border: none; border-top: 1px solid #dce8fb; margin: 16px 0; }

/* ── SPECIAL ── */
.grad-card { background: linear-gradient(135deg, #2979FF, #0D47A1); color: #fff; border-radius: 10px; padding: 18px; }
.grad-card .sv { color: #fff; }
.grad-card .sl { color: rgba(255,255,255,.7); }
.grad-card .sico { background: rgba(255,255,255,.18) !important; color: #fff !important; }
.bal-card { background: linear-gradient(135deg, #2979FF, #0D47A1); color: #fff; border-radius: 12px; padding: 20px; position: relative; overflow: hidden; }
.bal-card::before { content: ''; position: absolute; top: -15px; right: -15px; width: 90px; height: 90px; background: rgba(255,255,255,.08); border-radius: 50%; }

/* ── LOGIN ── */
.login-w { min-height: 100vh; display: flex; }
.login-l {
  flex: 1; background: linear-gradient(160deg, #0D47A1 0%, #1E88E5 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; position: relative; overflow: hidden;
}
.login-l::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 25% 35%, rgba(100,181,246,.15) 0%, transparent 55%); }
.login-li { position: relative; z-index: 1; color: #fff; max-width: 360px; }
.lil-ico { width: 52px; height: 52px; background: rgba(255,255,255,.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; font-size: 22px; }
.lil-t { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; line-height: 1.2; }
.lil-d { font-size: 14px; opacity: .75; line-height: 1.7; margin-bottom: 26px; }
.lf { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; }
.lf-ic { width: 34px; height: 34px; min-width: 34px; background: rgba(255,255,255,.12); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.lf-t strong { display: block; font-size: 13px; margin-bottom: 1px; }
.lf-t span { font-size: 12px; opacity: .72; }
.login-r { width: 400px; min-width: 300px; display: flex; flex-direction: column; justify-content: center; padding: 48px 40px; background: #fff; }
.lr-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.login-h1 { font-size: 22px; font-weight: 800; color: #0d0d0d; margin-bottom: 5px; letter-spacing: -.3px; }
.login-sub { font-size: 13px; color: #666; margin-bottom: 22px; }

/* ── LANDING ── */
.land { background: #fff; overflow-x: hidden; min-height: 100vh; }
.land-nav { background: rgba(255,255,255,.97); border-bottom: 1px solid #dce8fb; padding: 0 56px; height: 62px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); }
.land-hero { padding: 68px 56px 60px; display: flex; align-items: center; gap: 64px; max-width: 1060px; margin: 0 auto; }
.land-hero-txt { flex: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: #E3F2FD; color: #2979FF; border: 1px solid #90CAF9; border-radius: 20px; padding: 5px 14px; font-size: 11px; font-weight: 600; margin-bottom: 18px; }
.hero-h { font-size: 40px; font-weight: 800; color: #0d0d0d; letter-spacing: -1px; line-height: 1.15; margin-bottom: 14px; }
.hero-h span { color: #2979FF; }
.hero-p { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 26px; max-width: 460px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.land-hero-img { flex-shrink: 0; width: 400px; }
.check-li { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.check-li li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #555; }
.check-li li i { color: #2979FF; width: 16px; text-align: center; }
.land-section { border-top: 1px solid #dce8fb; }
.lsi { max-width: 1060px; margin: 0 auto; padding: 56px; }
.land-feats { padding: 56px; max-width: 1060px; margin: 0 auto; }
.lf-title { font-size: 26px; font-weight: 800; text-align: center; color: #0d0d0d; letter-spacing: -.4px; margin-bottom: 6px; }
.lf-sub { text-align: center; color: #666; font-size: 14px; margin-bottom: 36px; }
.fg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fc { background: #fff; border: 1px solid #dce8fb; border-radius: 11px; padding: 20px; transition: .15s; }
.fc:hover { box-shadow: 0 4px 20px rgba(41,121,255,.1); border-color: #90CAF9; transform: translateY(-2px); }
.fc-ico { width: 42px; height: 42px; background: #E3F2FD; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 13px; font-size: 18px; color: #2979FF; }
.fc-t { font-size: 14px; font-weight: 700; color: #0d0d0d; margin-bottom: 5px; }
.fc-d { font-size: 13px; color: #666; line-height: 1.6; }
.land-footer { background: #E3F2FD; border-top: 1px solid #dce8fb; padding: 22px 56px; text-align: center; color: #666; font-size: 12px; }
.step { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.step-n { width: 32px; height: 32px; min-width: 32px; background: #2979FF; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.step-b strong { display: block; font-size: 14px; font-weight: 700; color: #0d0d0d; margin-bottom: 3px; }
.step-b span { font-size: 13px; color: #666; line-height: 1.5; }

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

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

/* ════════════════════════
   RESPONSIVE
   ════════════════════════ */
@media (min-width: 1025px) {
  .sidebar { transform: translateX(0) !important; }
  .mbtn { display: none !important; }
  .sb-ov { display: none !important; }
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-235px); }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,.3); }
  .main { margin-left: 0; }
  .mbtn { display: flex !important; }
  .topbar { padding: 0 14px; }
  .page { padding: 14px; }
  .two-col { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .sg { grid-template-columns: 1fr 1fr; }
  .login-l { display: none; }
  .login-r { width: 100%; min-width: 0; padding: 32px 24px; }
  .land-nav { padding: 0 18px; }
  .land-hero { flex-direction: column; padding: 36px 18px; gap: 28px; }
  .land-hero-img { width: 100%; }
  .hero-h { font-size: 28px; }
  .land-feats, .lsi { padding: 36px 18px; }
  .fg-grid { grid-template-columns: 1fr; }
  .land-footer { padding: 18px; }
  .hide-sm { display: none !important; }
}

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