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

:root, [data-theme="dark"] {
  --bg: #0a1020;
  --bg2: #0e162b;
  --panel: #121b33;
  --panel2: #18233f;
  --line: rgba(255, 255, 255, .08);
  --text: #e8eefc;
  --muted: #8b9bbf;
  --accent: #22d3ee;
  --accent2: #3b82f6;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
[data-theme="light"] {
  --bg: #eef3fb;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #f1f5fb;
  --line: rgba(15, 30, 70, .09);
  --text: #12203f;
  --muted: #62729a;
  --accent: #0891b2;
  --accent2: #2563eb;
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --shadow: 0 10px 30px rgba(30, 60, 120, .12);
}

[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14.5px;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* =====================================================
   LOGIN (glass modern)
   ===================================================== */
.login-screen {
  --glass-blur: 18px;
  --dim: .35;
  --acc: #5eead4;
  position: fixed; inset: 0; z-index: 500;
  color: #fff; overflow-x: hidden; overflow-y: auto; background: #0b1220;
}

.lg-bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, #0ea5e9 0, transparent 45%),
    radial-gradient(circle at 85% 80%, #6366f1 0, transparent 45%),
    linear-gradient(135deg, #0b1220, #0f2a4a 50%, #0b1220);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transform: scale(1.04);
}
.lg-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(90deg, rgba(4, 9, 22, .55), rgba(4, 9, 22, 0) 70%), rgba(5, 10, 25, var(--dim));
}
.orb { position: fixed; border-radius: 50%; filter: blur(70px); opacity: .35; animation: float 12s ease-in-out infinite; pointer-events: none; }
.orb1 { width: 260px; height: 260px; background: #22d3ee; top: -60px; left: -60px; }
.orb2 { width: 320px; height: 320px; background: #6366f1; bottom: -90px; right: -70px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.12); }
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes swap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* ---- nav ---- */
.lg-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px max(16px, 5vw);
}
.lg-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: .2px; }
.lg-brand svg { color: var(--acc); }
.lg-mode {
  font-size: 12px; padding: 6px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ---- layout ---- */
.lg-main {
  position: relative; z-index: 2; min-height: 100%;
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center; gap: 48px;
  padding: 96px max(16px, 5vw) 48px;
}

/* ---- hero ---- */
.lg-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .22em; font-weight: 600; color: var(--acc);
}
.lg-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--acc); }
.lg-hero h1 {
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; font-weight: 800;
  letter-spacing: -.02em; margin: 14px 0 12px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
.lg-hero p { max-width: 440px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .82); min-height: 48px; }
.swap { animation: swap .5s both; }

.lg-stage { --step: 118px; position: relative; height: 290px; max-width: 680px; margin-top: 30px; }
.lg-c {
  --o: 0; --a: 0;
  position: absolute; left: 50%; bottom: 0; width: 150px; height: 210px; margin-left: -75px;
  border-radius: 20px; overflow: hidden; cursor: pointer;
  background: var(--g); border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transform-origin: 50% 100%;
  transform: translateX(calc(var(--o) * var(--step))) translateY(calc(var(--a) * 12px)) rotate(calc(var(--o) * 5deg)) scale(calc(1.1 - var(--a) * .13));
  opacity: calc(1 - var(--a) * .16);
  filter: brightness(calc(1 - var(--a) * .1));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .5s;
}
.lg-c::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 12%, rgba(255, 255, 255, .38), transparent 55%);
}
.lg-c.on { border-color: rgba(255, 255, 255, .7); box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 0 3px rgba(94, 234, 212, .35); }
.lg-c-ico {
  position: absolute; inset: 0 0 58px; display: grid; place-items: center;
  font-size: 62px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}
.lg-c.on .lg-c-ico { animation: bob 3.2s ease-in-out infinite; }
.lg-c-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }
.lg-c-t b { display: block; font-size: 14px; }
.lg-c-t small { font-size: 11px; opacity: .8; }

.lg-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 22px; max-width: 680px; }
.lg-arrow {
  width: 40px; height: 40px; border-radius: 50%; font-size: 17px; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: .2s;
}
.lg-arrow:hover { background: rgba(255, 255, 255, .25); }
.lg-dots { display: flex; gap: 7px; align-items: center; margin-left: 6px; }
.lg-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .4); transition: .3s; cursor: pointer; }
.lg-dots i.on { width: 30px; background: var(--acc); }
.lg-count { margin-left: auto; font-size: 13px; color: rgba(255, 255, 255, .6); }
.lg-count b { color: #fff; font-size: 15px; }

/* ---- kartu login ---- */
.lg-card {
  width: 100%; padding: 30px 26px 24px; border-radius: 24px;
  animation: pop .6s cubic-bezier(.2, .9, .3, 1.2) both;
}
.lg-card.shake { animation: shake .45s; }
.lg-card h2 { font-size: 25px; font-weight: 800; letter-spacing: -.01em; }
.lg-sub { margin: 4px 0 22px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }

.lg-group { margin-bottom: 14px; }
.lg-group > label {
  display: block; margin-bottom: 7px; font-size: 11px; letter-spacing: .14em;
  font-weight: 700; color: rgba(255, 255, 255, .8);
}
.lg-input {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px;
  border-radius: 13px; color: rgba(255, 255, 255, .75);
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .18); transition: .2s;
}
.lg-input:focus-within { border-color: var(--acc); background: rgba(0, 0, 0, .38); box-shadow: 0 0 0 4px rgba(94, 234, 212, .18); color: var(--acc); }
.lg-input svg { flex-shrink: 0; }
.lg-input input {
  flex: 1; min-width: 0; height: 100%; width: auto; padding: 0; margin: 0;
  background: none; border: 0; outline: 0; box-shadow: none;
  color: #fff; font-size: 15px;
}
.lg-input input::placeholder { color: rgba(255, 255, 255, .45); }
.lg-input input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 99999s; }
.lg-input .eye { display: grid; place-items: center; background: none; border: 0; color: rgba(255, 255, 255, .7); padding: 4px; }
.lg-input .eye:hover { color: #fff; }

.lg-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 14px; font-size: 13px; }
.lg-check { display: flex; flex-direction: row; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
.lg-check input { display: none; }
.lg-check i { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .7); display: grid; place-items: center; transition: .2s; }
.lg-check input:checked + i { background: var(--acc); border-color: var(--acc); }
.lg-check input:checked + i::after { content: "✓"; font-size: 12px; color: #04222a; font-weight: 800; }
.lg-link { color: var(--acc); font-weight: 600; }
.lg-link:hover { text-decoration: underline; }
.lg-error { min-height: 18px; margin-bottom: 10px; font-size: 13px; color: #fecaca; line-height: 1.4; }

.lg-btn {
  position: relative; width: 100%; height: 50px; border: 0; border-radius: 14px;
  font-size: 16px; font-weight: 800; color: #032c33;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #5eead4, #22d3ee 55%, #60a5fa);
  box-shadow: 0 12px 28px rgba(34, 211, 238, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .15s, box-shadow .2s;
}
.lg-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(34, 211, 238, .5), inset 0 1px 0 rgba(255, 255, 255, .7); }
.lg-btn:active { transform: scale(.98); }
.lg-btn.loading { pointer-events: none; }
.lg-btn.loading span { opacity: 0; }
.lg-btn.loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  border-radius: 50%; border: 3px solid rgba(3, 44, 51, .25); border-top-color: #032c33; animation: spin .7s linear infinite;
}
.lg-hint { margin-top: 16px; font-size: 12px; line-height: 1.5; text-align: center; color: rgba(255, 255, 255, .7); }
.lg-hint:empty { display: none; }

/* ---- pengaturan background ---- */
.lg-tools { position: fixed; right: 16px; bottom: 16px; z-index: 5; }
.lg-fab {
  width: 50px; height: 50px; border-radius: 50%; font-size: 21px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s;
}
.lg-fab:hover { transform: rotate(15deg) scale(1.08); }
.lg-panel {
  position: absolute; right: 0; bottom: 62px; width: 260px; padding: 16px;
  border-radius: 18px; display: none; flex-direction: column; gap: 12px;
}
.lg-panel.open { display: flex; animation: pop .3s both; }
.lg-panel h3 { font-size: 15px; }
.lg-upload, .lg-ghost {
  display: block; text-align: center; padding: 11px; border-radius: 12px;
  font-size: 14px; font-weight: 600; border: 0; cursor: pointer;
}
.lg-upload { color: #032c33; background: linear-gradient(135deg, #5eead4, #60a5fa); }
.lg-ghost { color: #fff; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); font-weight: 500; }
.lg-slider { font-size: 13px; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.lg-slider em { font-style: normal; color: var(--acc); font-weight: 700; }
.lg-slider input { width: 100%; accent-color: #5eead4; padding: 0; border: 0; background: none; }

/* ---- responsive login ---- */
@media (max-width: 1180px) {
  .lg-main { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .lg-stage { --step: 96px; }
}
@media (max-width: 900px) {
  .lg-main { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 82px; }
  .lg-hero { min-width: 0; }
  .lg-card { order: 1; justify-self: center; width: min(100%, 420px); }
  .lg-hero { order: 2; text-align: center; }
  .lg-hero p { margin-inline: auto; }
  .lg-stage { margin-inline: auto; --step: 84px; height: 250px; }
  .lg-c { width: 130px; height: 185px; margin-left: -65px; }
  .lg-ctrl { justify-content: center; margin-inline: auto; }
  .lg-count { margin-left: 6px; }
}
@media (max-width: 480px) {
  .lg-stage { --step: 64px; height: 225px; }
  .lg-c { width: 110px; height: 158px; margin-left: -55px; }
  .lg-c-ico { font-size: 46px; inset: 0 0 48px; }
  .lg-hero h1 { font-size: 36px; }
  .lg-card { padding: 26px 20px 20px; }
}

/* =====================================================
   DASHBOARD
   ===================================================== */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--bg2); border-right: 1px solid var(--line);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 14px; font-size: 22px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 20px rgba(34, 211, 238, .35);
}
.brand b { font-size: 19px; display: block; }
.brand b span { color: var(--accent); }
.brand small { color: var(--muted); font-size: 12px; }

.nav { display: flex; flex-direction: column; gap: 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 12px; color: var(--muted); font-weight: 500; transition: .2s;
}
.nav a i { font-style: normal; font-size: 17px; }
.nav a:hover { background: var(--panel2); color: var(--text); }
.nav a.active {
  color: #fff; background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 8px 20px rgba(59, 130, 246, .35);
}

.side-card {
  margin-top: auto; padding: 16px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(59, 130, 246, .16));
}
.side-card p { font-size: 12px; color: var(--muted); }
.side-card b { display: block; margin: 4px 0; }
.side-card small { color: var(--muted); font-size: 12px; }

.logout {
  background: var(--panel2); border: 1px solid var(--line);
  padding: 12px; border-radius: 12px; font-weight: 600; transition: .2s;
}
.logout:hover { background: rgba(248, 113, 113, .15); color: var(--bad); }
.backdrop { display: none; }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 14px 26px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.greet h2 { font-size: 19px; }
.greet small { color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.db-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 6px 10px; border-radius: 99px;
  background: rgba(251, 191, 36, .16); color: var(--warn);
}
.db-tag.live { background: rgba(52, 211, 153, .16); color: var(--ok); }
.clock {
  font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .5px;
  padding: 8px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; font-size: 17px;
  background: var(--panel); border: 1px solid var(--line); transition: .2s;
}
.icon-btn:hover { border-color: var(--accent); }
.menu-btn { display: none; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #f472b6, #8b5cf6);
}

.content { padding: 24px 26px 50px; }
.view { display: none; animation: fade .35s both; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h2 { font-size: 24px; }
.page-head p { color: var(--muted); margin-top: 4px; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.card h3 { font-size: 16px; }
.card h3.mb { margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head.wrap { flex-wrap: wrap; }
.chip {
  font-size: 12px; padding: 5px 10px; border-radius: 99px;
  background: var(--panel2); color: var(--muted); border: 1px solid var(--line);
}

.grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.grid2 > .card { margin-bottom: 18px; min-width: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat {
  display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative; overflow: hidden; transition: transform .2s;
}
.stat:hover { transform: translateY(-3px); }
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 110px; height: 110px; border-radius: 50%; opacity: .14; background: var(--c);
}
.stat.s1 { --c: #22d3ee; } .stat.s2 { --c: #60a5fa; }
.stat.s3 { --c: #a78bfa; } .stat.s4 { --c: #fbbf24; }
.stat-ico {
  width: 52px; height: 52px; border-radius: 16px; font-size: 24px;
  display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--c) 22%, transparent);
}
.stat small { color: var(--muted); font-size: 12.5px; }
.stat h3 { font-size: 22px; margin: 2px 0; }
.stat h3.sm { font-size: 15px; }
.stat em { font-style: normal; font-size: 12px; color: var(--muted); }
.stat em.up { color: var(--ok); } .stat em.down { color: var(--bad); }

canvas { width: 100%; display: block; }

.queue { display: flex; flex-direction: column; gap: 10px; max-height: 330px; overflow: auto; }
.q-item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  background: var(--panel2); border: 1px solid var(--line);
}
.q-ico { font-size: 22px; }
.q-info { flex: 1; min-width: 0; }
.q-info b { display: block; font-size: 14px; }
.q-info small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top-list { display: flex; flex-direction: column; gap: 14px; }
.top-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; }
.rank { width: 30px; height: 30px; border-radius: 10px; font-weight: 800; font-size: 13px; display: grid; place-items: center; background: var(--panel2); }
.top-row:nth-child(1) .rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3b2300; }
.bar { height: 8px; border-radius: 99px; background: var(--panel2); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.top-row small { color: var(--muted); }

/* form */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.card input, .card select, .modal-box input, .modal-box select, .modal-box textarea, .filters input, .filters select {
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; outline: 0; width: 100%;
  color: var(--text); transition: .2s;
}
.card input:focus, .card select:focus, .modal-box input:focus, .modal-box select:focus, .modal-box textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18);
}
select option { background: var(--panel); color: var(--text); }
textarea { resize: vertical; }

.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.full { grid-column: 1 / -1; }
.total-box { padding: 8px 14px; border-radius: 12px; border: 1px dashed var(--accent); background: rgba(34, 211, 238, .08); }
.total-box small { color: var(--muted); display: block; }
.total-box b { font-size: 20px; color: var(--accent); }

.btn-primary, .btn-ghost, .btn-danger, .btn-sm { border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; transition: .2s; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent2), var(--accent)); box-shadow: 0 8px 20px rgba(59, 130, 246, .35); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--panel2); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-danger { background: rgba(248, 113, 113, .15); color: var(--bad); }
.btn-danger:hover { background: rgba(248, 113, 113, .28); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; background: var(--panel2); border: 1px solid var(--line); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row.end { justify-content: flex-end; margin-top: 6px; }

/* table */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters input { width: 190px; }
.filters select { width: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--panel2); }
td small { color: var(--muted); display: block; }
.empty { display: none; text-align: center; color: var(--muted); padding: 30px; }

.badge { display: inline-block; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.badge.Antri { background: rgba(251, 191, 36, .16); color: var(--warn); }
.badge.Proses { background: rgba(59, 130, 246, .18); color: #60a5fa; }
.badge.Selesai { background: rgba(52, 211, 153, .16); color: var(--ok); }

.act { display: flex; gap: 6px; justify-content: flex-end; }
.act button { border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 7px 11px; font-size: 12.5px; font-weight: 600; transition: .2s; }
.act button:hover { border-color: var(--accent); }
.act .go { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff; border: 0; }
.act .del:hover { color: var(--bad); border-color: var(--bad); }

/* paket */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { padding: 9px 18px; border-radius: 99px; font-weight: 600; background: var(--panel); border: 1px solid var(--line); color: var(--muted); transition: .2s; }
.tabs button.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent2), var(--accent)); }

.paket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.paket {
  position: relative; overflow: hidden; padding: 22px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s; display: flex; flex-direction: column; gap: 10px;
}
.paket:hover { transform: translateY(-5px); border-color: var(--accent); }
.paket::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.paket.mobil::before { background: linear-gradient(90deg, #8b5cf6, #f472b6); }
.paket-top { display: flex; align-items: center; justify-content: space-between; }
.p-ico { width: 50px; height: 50px; border-radius: 16px; font-size: 26px; display: grid; place-items: center; background: var(--panel2); }
.tag { font-size: 11.5px; padding: 4px 10px; border-radius: 99px; font-weight: 700; background: rgba(34, 211, 238, .14); color: var(--accent); }
.paket.mobil .tag { background: rgba(167, 139, 250, .16); color: #a78bfa; }
.paket h4 { font-size: 17px; }
.paket p { color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }
.p-meta { display: flex; justify-content: space-between; align-items: flex-end; }
.price { font-size: 22px; font-weight: 800; }
.price small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.dur { color: var(--muted); font-size: 12.5px; }
.p-act { display: flex; gap: 8px; margin-top: 4px; }
.p-act button { flex: 1; padding: 9px; border-radius: 10px; font-weight: 600; font-size: 13px; background: var(--panel2); border: 1px solid var(--line); transition: .2s; }
.p-act button:hover { border-color: var(--accent); }
.p-act .del:hover { color: var(--bad); border-color: var(--bad); }

/* laporan */
.split { display: flex; flex-direction: column; gap: 14px; }
.split-row small { color: var(--muted); }
.split-row .line { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 600; }
.split-row .bar { height: 10px; margin: 0; }

/* modal, toast, loader */
.modal {
  position: fixed; inset: 0; z-index: 600; display: none; align-items: center; justify-content: center; padding: 18px;
  background: rgba(3, 8, 20, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal.open { display: flex; }
.modal-box {
  width: min(480px, 100%); max-height: 92vh; overflow: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px; animation: fade .25s both;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 900; max-width: 92vw;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--panel); border: 1px solid var(--accent); color: var(--text);
  padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; transition: .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loader {
  position: fixed; inset: 0; z-index: 800; display: none; place-items: center;
  background: rgba(3, 8, 20, .45);
}
.loader.show { display: grid; }
.loader i { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #22d3ee; animation: spin .8s linear infinite; }

/* responsive */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: none; box-shadow: 10px 0 40px rgba(0, 0, 0, .5); }
  .backdrop.show { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); }
  .menu-btn { display: block; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 14px 40px; }
  .clock { display: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 14px; flex-direction: column; align-items: flex-start; }
  .stat h3 { font-size: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .greet h2 { font-size: 16px; }
  .filters input { width: 100%; }
  .two { grid-template-columns: 1fr; }
}
