/* ===========================================================
   BisaUntung.com — dasar & komponen bersama (publik + panel)
   Palet: navy malam + emas. Jangan menambahkan overflow-x:hidden
   pada body (mematikan position:sticky pada header).
   =========================================================== */

:root {
  --ink-950: #060B14;
  --ink-900: #0A1220;
  --ink-850: #0D182A;
  --ink-800: #111E33;
  --ink-750: #16243C;
  --ink-700: #1C2C47;

  --gold: #D4AF37;
  --gold-l: #F4E3AE;
  --gold-m: #C9A227;
  --gold-d: #96731C;

  --paper: #F4F0E6;
  --text: #E8ECF4;
  --muted: #95A1B6;
  --dim: #74809A;

  --ok: #4ADE80;
  --warn: #F2C14E;
  --bad: #F87171;

  --line: rgba(212, 175, 55, .16);
  --line-2: rgba(255, 255, 255, .07);

  --grad-gold: linear-gradient(120deg, #F7E9B8 0%, #DCB95A 42%, #B98D24 100%);
  --grad-card: linear-gradient(160deg, rgba(24, 37, 60, .94) 0%, rgba(10, 18, 32, .96) 100%);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow: 0 24px 60px -34px rgba(0, 0, 0, .95);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 8% -12%, rgba(212, 175, 55, .10), transparent 62%),
    radial-gradient(900px 500px at 96% -4%, rgba(58, 96, 180, .16), transparent 60%),
    var(--ink-950);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--gold-l); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: #fff;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 26px 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #1A1206;
  padding: 10px 16px;
  z-index: 999;
  font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.i { flex: 0 0 auto; vertical-align: -2px; }

/* ---------------- judul & teks ---------------- */

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 60ch;
}

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.serif-i { font-family: var(--font-display); font-style: italic; }

.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------------- tombol ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
  background: transparent;
  color: var(--text);
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 15.5px; }
.btn-block { width: 100%; }

.btn-gold {
  background: var(--grad-gold);
  color: #1A1206;
  box-shadow: 0 14px 34px -16px rgba(212, 175, 55, .65);
}
.btn-gold:hover { color: #1A1206; transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(212, 175, 55, .8); }

.btn-line {
  border-color: rgba(212, 175, 55, .45);
  color: var(--gold-l);
  background: rgba(212, 175, 55, .05);
}
.btn-line:hover { border-color: var(--gold); background: rgba(212, 175, 55, .12); color: #fff; }

.btn-ghost {
  border-color: var(--line-2);
  color: var(--muted);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .18); }

.btn-danger { border-color: rgba(248, 113, 113, .4); color: #FCA5A5; background: rgba(248, 113, 113, .08); }
.btn-danger:hover { background: rgba(248, 113, 113, .16); color: #fff; }

.btn[disabled], .btn.is-off { opacity: .45; pointer-events: none; }

/* ---------------- panel / kartu ---------------- */

.panel {
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.panel-tight { padding: 18px; }
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 21px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 13.5px; }

.divider { height: 1px; background: var(--line-2); margin: 20px 0; }

/* ---------------- chip / label ---------------- */

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: .15s ease;
}
.chip:hover { color: #fff; border-color: rgba(212, 175, 55, .4); }
.chip.is-on {
  background: rgba(212, 175, 55, .14);
  border-color: rgba(212, 175, 55, .55);
  color: var(--gold-l);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  white-space: nowrap;
}
.badge.b-menunggu { color: #FBD38D; border-color: rgba(242, 193, 78, .35); background: rgba(242, 193, 78, .1); }
.badge.b-dibayar { color: #86EFAC; border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .1); }
.badge.b-dikirim { color: #93C5FD; border-color: rgba(147, 197, 253, .35); background: rgba(147, 197, 253, .1); }
.badge.b-selesai { color: #A7F3D0; border-color: rgba(167, 243, 208, .3); background: rgba(167, 243, 208, .08); }
.badge.b-ditolak { color: #FCA5A5; border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .1); }
.badge.b-gold { color: var(--gold-l); border-color: rgba(212, 175, 55, .45); background: rgba(212, 175, 55, .1); }

/* ---------------- progress ---------------- */

.prog { margin-top: 12px; }
.prog-bar {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.prog-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, .5);
}
.prog-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: 12px;
  color: var(--dim);
}
.prog-meta strong { color: var(--gold-l); font-weight: 600; }

/* ---------------- form ---------------- */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--dim); }
.field .hint.is-bad { color: #FCA5A5; }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(6, 11, 20, .7);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #5B6780; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, .55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .12);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2395A1B6' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; min-width: 0; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
}
.check input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .col-2 { grid-column: 1 / -1; }

/* ---------------- catatan / alert ---------------- */

.note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.note .i { color: var(--gold); margin-top: 2px; }
.note.is-ok { border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .07); color: #BBF7D0; }
.note.is-bad { border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); color: #FECACA; }
.note.is-warn { border-color: rgba(242, 193, 78, .35); background: rgba(242, 193, 78, .08); color: #FDE68A; }
.note p { margin: 0 0 6px; }
.note p:last-child { margin: 0; }

.flash-wrap { margin-top: 18px; }
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  font-size: 14px;
}
.flash.is-ok { border-color: rgba(74, 222, 128, .32); background: rgba(74, 222, 128, .08); color: #D1FAE5; }
.flash.is-bad { border-color: rgba(248, 113, 113, .32); background: rgba(248, 113, 113, .08); color: #FEE2E2; }

/* ---------------- kosong & paginasi ---------------- */

.empty {
  text-align: center;
  padding: 54px 24px;
  border: 1px dashed rgba(212, 175, 55, .28);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .015);
}
.empty-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(212, 175, 55, .07);
}
.empty h3 { font-size: 21px; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 18px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.pg-btn:hover { color: #fff; border-color: rgba(212, 175, 55, .4); }
.pg-btn.is-off { opacity: .35; }
.pg-nums { display: flex; gap: 6px; }
.pg-num {
  min-width: 36px;
  padding: 8px 10px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pg-num:hover { color: #fff; border-color: var(--line-2); }
.pg-num.is-on { background: rgba(212, 175, 55, .16); border-color: rgba(212, 175, 55, .5); color: var(--gold-l); font-weight: 600; }

/* ---------------- tabel ---------------- */

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
table.tbl th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
table.tbl td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, .045); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: rgba(255, 255, 255, .02); }
table.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tbl .nowrap { white-space: nowrap; }

/* ---------------- utilitas ---------------- */

.hidden { display: none !important; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.strong { color: #fff; font-weight: 600; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.gap-sm { gap: 8px; }
.mt-0 { margin-top: 0; }
.mt { margin-top: 18px; }
.mt-lg { margin-top: 34px; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 20px; }
  .wrap { width: min(1180px, 100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------- komponen bersama tambahan ---------------- */

.side-list { list-style: none; display: grid; gap: 11px; font-size: 13.5px; color: var(--muted); }
.side-list li { display: flex; gap: 9px; align-items: flex-start; }
.side-list .i { color: var(--gold); margin-top: 2px; }

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12px; color: var(--dim); margin-bottom: 18px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--gold-l); }
.crumb .sep { opacity: .5; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02);
  margin-bottom: 18px;
}
.filter-bar .input-group { flex: 1 1 260px; }
.filter-bar .select { width: auto; min-width: 170px; }
.filter-count { font-size: 12.5px; color: var(--dim); margin-left: auto; }

.upload-prev { margin-top: 14px; }
.upload-prev img { max-width: 100%; max-height: 260px; margin-inline: auto; border-radius: 10px; border: 1px solid var(--line-2); }
.upload-prev a { font-size: 13px; }
