/* ============================================================
   itomjie — Gaya halaman auth & admin (tema glassmorphism)
   ============================================================ */
:root{
  --violet:#7c3aed; --indigo:#4f46e5; --blue:#3b82f6; --pink:#ec4899; --accent:#a78bfa;
  --text:#fff; --muted:rgba(255,255,255,.64); --muted-2:rgba(255,255,255,.4);
  --glass:rgba(255,255,255,.055); --glass-2:rgba(255,255,255,.09);
  --stroke:rgba(255,255,255,.12); --stroke-soft:rgba(255,255,255,.06);
  --grad:linear-gradient(135deg,var(--violet),var(--indigo));
  --grad-2:linear-gradient(135deg,#c4b5fd,#818cf8);
  --ease:cubic-bezier(.22,1,.36,1);
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family:'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height:100vh; color:var(--text); background:#0b0b16; line-height:1.6;
  -webkit-font-smoothing:antialiased; display:flex; flex-direction:column;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
::selection{ background:rgba(139,92,246,.4); color:#fff; }

/* ===== Latar orb ===== */
.bg{ position:fixed; inset:0; z-index:-1; overflow:hidden;
     background:radial-gradient(circle at 15% 20%, #16162b, #0b0b16 60%); }
.orb{ position:absolute; border-radius:50%; filter:blur(90px); opacity:.5; }
.orb-1{ width:520px; height:520px; top:-140px; left:-120px; background:radial-gradient(circle,#7c3aed,transparent 70%); }
.orb-2{ width:460px; height:460px; top:8%; right:-140px; background:radial-gradient(circle,#3b82f6,transparent 70%); }
.orb-3{ width:420px; height:420px; bottom:-120px; left:12%; background:radial-gradient(circle,#ec4899,transparent 70%); opacity:.4; }

/* ===== Topbar ===== */
.top{ position:sticky; top:0; z-index:50; display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:15px 24px; backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  background:rgba(15,15,26,.55); border-bottom:1px solid var(--stroke-soft); }
.brand{ display:flex; align-items:center; gap:11px; }
.brand .mark{ width:38px; height:38px; border-radius:12px; flex-shrink:0; background:var(--grad);
  display:grid; place-items:center; box-shadow:0 8px 22px rgba(124,58,237,.5); }
.brand .word{ font-size:21px; font-weight:800; letter-spacing:-.6px; }
.brand .word b{ background:var(--grad-2); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.top-right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.top-right .who{ font-size:14px; color:var(--muted); }
.top-right .who b{ color:#fff; }

/* ===== Wrapper tengah ===== */
.wrap{ flex:1; display:flex; align-items:center; justify-content:center; padding:44px 20px; }

/* ===== Kartu ===== */
.card{ width:100%; max-width:460px; background:var(--glass); border:1px solid var(--stroke);
  border-radius:26px; padding:38px 34px; backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px);
  box-shadow:0 30px 80px rgba(0,0,0,.5); }
.card.wide{ max-width:1040px; }
.card h1{ font-size:26px; font-weight:800; letter-spacing:-.6px; }
.card h2{ font-size:19px; font-weight:800; letter-spacing:-.4px; margin-bottom:4px; }
.card .sub{ color:var(--muted); font-size:14.5px; margin:6px 0 24px; }
.card-ico{ width:56px; height:56px; border-radius:16px; display:grid; place-items:center; font-size:27px;
  background:var(--grad); box-shadow:0 12px 28px rgba(124,58,237,.4); margin-bottom:18px; }

/* ===== Form ===== */
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13.5px; font-weight:600; color:var(--muted); margin-bottom:7px; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 15px; border-radius:14px; background:rgba(255,255,255,.04);
  border:1px solid var(--stroke); color:#fff; font-size:15px; font-family:inherit;
  transition:.2s var(--ease); outline:none; }
.field input::placeholder, .field textarea::placeholder{ color:rgba(255,255,255,.32); }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--accent); background:rgba(255,255,255,.07); box-shadow:0 0 0 4px rgba(139,92,246,.15); }
.field textarea{ resize:vertical; min-height:84px; }
.field select{ appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat; background-position:right 15px center; padding-right:40px; }
.field select option{ background:#16162b; color:#fff; }
.field .hint{ font-size:12px; color:var(--muted-2); margin-top:6px; }
.check{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.check input{ width:18px; height:18px; accent-color:#7c3aed; cursor:pointer; }
.check label{ font-size:14px; color:var(--muted); cursor:pointer; }

/* ===== Tombol ===== */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 20px;
  border-radius:50px; border:1px solid var(--stroke); background:var(--glass); color:#fff;
  font-weight:700; font-size:14.5px; transition:.25s var(--ease); white-space:nowrap; }
.btn:hover{ background:var(--glass-2); transform:translateY(-1px); }
.btn-primary{ background:var(--grad); border:none; box-shadow:0 10px 26px rgba(124,58,237,.4); }
.btn-primary:hover{ filter:brightness(1.08); box-shadow:0 14px 34px rgba(124,58,237,.55); }
.btn-block{ width:100%; padding:14px; font-size:15.5px; }
.btn-sm{ padding:9px 15px; font-size:13.5px; }

/* ===== Alert ===== */
.alert{ padding:13px 16px; border-radius:14px; font-size:14px; font-weight:600; margin-bottom:20px;
  display:flex; gap:11px; align-items:flex-start; }
.alert.err{ background:rgba(248,113,113,.12); border:1px solid rgba(248,113,113,.3); color:#fca5a5; }
.alert.ok{ background:rgba(52,211,153,.12); border:1px solid rgba(52,211,153,.3); color:#6ee7b7; }
.alert ul{ margin:5px 0 0 18px; font-weight:500; }
.alert b{ color:#fff; }

/* ===== Tautan bawah ===== */
.muted-link{ text-align:center; color:var(--muted); font-size:14px; margin-top:22px; }
.muted-link a{ color:var(--accent); font-weight:700; }
.muted-link a:hover{ text-decoration:underline; }

/* ===== Admin ===== */
.admin-wrap{ width:100%; max-width:1040px; margin:0 auto; padding:34px 20px; }
.admin-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:24px; flex-wrap:wrap; }
.admin-head h1{ font-size:28px; font-weight:800; letter-spacing:-.8px; }
.admin-head p{ color:var(--muted); font-size:14.5px; margin-top:4px; }
.admin-cols{ display:grid; grid-template-columns:0.92fr 1.08fr; gap:22px; align-items:start; }

.stat-row{ display:flex; gap:12px; margin-bottom:22px; flex-wrap:wrap; }
.stat-box{ flex:1; min-width:120px; background:var(--glass); border:1px solid var(--stroke-soft);
  border-radius:16px; padding:16px 18px; }
.stat-box .n{ font-size:24px; font-weight:800; letter-spacing:-.5px;
  background:var(--grad-2); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stat-box .l{ font-size:12.5px; color:var(--muted); margin-top:2px; }

.table{ width:100%; border-collapse:collapse; }
.table th, .table td{ text-align:left; padding:13px 12px; border-bottom:1px solid var(--stroke-soft);
  font-size:14px; vertical-align:middle; }
.table th{ color:var(--muted-2); font-weight:700; font-size:11.5px; text-transform:uppercase; letter-spacing:.6px; }
.table tr:last-child td{ border-bottom:none; }
.prod{ display:flex; align-items:center; gap:12px; }
.pico{ width:42px; height:42px; border-radius:12px; display:grid; place-items:center; font-size:21px;
  flex-shrink:0; box-shadow:0 8px 18px rgba(0,0,0,.3); }
.prod .pn{ font-weight:700; }
.prod .ps{ font-size:12.5px; color:var(--muted-2); }
.pill{ display:inline-block; padding:4px 11px; border-radius:20px; font-size:11.5px; font-weight:700;
  background:var(--glass-2); border:1px solid var(--stroke-soft); color:var(--muted); text-transform:capitalize; }
.pill.badge{ background:linear-gradient(135deg,#fbbf24,#f59e0b); color:#3b2600; border:none; }
.price{ font-weight:800; letter-spacing:-.3px; }
.del{ background:rgba(248,113,113,.1); border:1px solid rgba(248,113,113,.28); color:#fca5a5;
  padding:8px 13px; border-radius:10px; font-size:13px; font-weight:700; transition:.2s var(--ease); }
.del:hover{ background:rgba(248,113,113,.2); transform:translateY(-1px); }
.empty{ text-align:center; padding:44px 20px; color:var(--muted-2); }
.empty .ico{ font-size:44px; opacity:.5; margin-bottom:10px; }

/* ===== Responsif ===== */
@media (max-width:820px){
  .admin-cols{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .card{ padding:30px 22px; }
  .top{ padding:13px 16px; }
  .table thead{ display:none; }
  .table, .table tbody, .table tr, .table td{ display:block; width:100%; }
  .table tr{ border:1px solid var(--stroke-soft); border-radius:14px; padding:8px 12px; margin-bottom:12px; }
  .table td{ border:none; padding:7px 0; display:flex; justify-content:space-between; gap:12px; align-items:center; }
}

@media (prefers-reduced-motion:reduce){
  *{ transition-duration:.001ms !important; }
}
