/* ==========================================================================
   Bintang Jaya - Tema Bintang Pastel
   Permukaan pastel (lilac, langit, blush, butter), teks dan aksi memakai nada
   yang lebih pekat supaya tetap terbaca jelas di layar kasir.
   ========================================================================== */
:root {
  --night: #2b2d4f;
  --ink: #2b2d4f;
  --muted: #68709a;

  --iris-800: #3f3a8c;
  --iris-700: #4f46a8;
  --iris-600: #6a5fc9;
  --iris-500: #8378dc;

  --lilac: #cdbdf7;
  --lilac-soft: #efeaff;
  --sky: #bfe0fb;
  --sky-soft: #e8f4ff;
  --sky-deep: #4f9ad8;
  --blush: #ffc9dd;
  --blush-soft: #ffeaf2;
  --rose: #c2477e;
  --rose-700: #a23868;
  --mint: #bdeed6;
  --mint-soft: #e4f8ee;
  --ok: #1f7a56;
  --butter: #ffe08a;
  --butter-soft: #fff6d6;
  --gold: #f2b134;
  --gold-ink: #6b4a00;

  --bg: #faf8ff;
  --paper: #ffffff;
  --line: #e3ddf6;
  --danger: #c53d3d;
  --danger-soft: #ffe5e5;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(106, 95, 201, .06), 0 12px 30px rgba(106, 95, 201, .10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg) url("../img/bg-stars.svg") repeat;
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; color: var(--night); margin: 0 0 .4em; }
h1 { font-size: 1.75rem; line-height: 1.2; }
h2 { font-size: 1.25rem; }
a { color: var(--iris-600); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sky-deep); outline-offset: 2px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(100deg, #d9cdfc 0%, #c9e4fb 52%, #ffd6e6 100%);
  color: var(--night);
  box-shadow: 0 6px 20px rgba(106, 95, 201, .18);
}
.topbar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/sparkle-light.svg") repeat;
}
.topbar-in {
  position: relative; max-width: 1400px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--night); text-decoration: none; font-family: var(--display); font-size: 1.3rem; font-weight: 800; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: 8px; flex: 1; }
.nav a {
  color: var(--night); text-decoration: none; padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .6); }
.nav a.active { background: #fff; color: var(--iris-700); box-shadow: 0 2px 8px rgba(106, 95, 201, .22); }
.userbox { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.userbox .chip { background: rgba(255, 255, 255, .65); padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.userbox a { color: var(--rose-700); text-decoration: none; font-weight: 700; }
.burger { display: none; background: none; border: 0; color: var(--night); font-size: 1.6rem; cursor: pointer; margin-left: auto; }

.container { max-width: 1400px; margin: 0 auto; padding: 18px 16px 60px; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-title p { margin: 0; color: var(--muted); }

.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px 12px 30px; }
.footer img { width: 150px; opacity: .55; display: block; margin: 0 auto 6px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; position: relative;
}
.card-title {
  display: flex; align-items: center; gap: 8px; font-family: var(--display);
  font-size: 1.05rem; font-weight: 800; color: var(--iris-800); margin: 0 0 12px;
}
.card-title::before { content: "★"; color: var(--gold); font-size: 1.05rem; line-height: 1; }
.card.starry::after {
  content: ""; position: absolute; right: 6px; top: 4px; width: 120px; height: 84px; pointer-events: none;
  background: url("../img/constellation-dark.svg") center / contain no-repeat; opacity: .22;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--iris-600); color: #fff; text-decoration: none;
  transition: transform .06s, background .15s, box-shadow .15s; box-shadow: 0 3px 0 rgba(79, 70, 168, .35);
}
.btn:hover { background: var(--iris-500); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.rose { background: var(--rose); box-shadow: 0 3px 0 rgba(162, 56, 104, .35); }
.btn.rose:hover { background: #d1568c; }
.btn.gold { background: var(--butter); color: var(--gold-ink); box-shadow: 0 3px 0 rgba(242, 177, 52, .55); }
.btn.gold:hover { background: #ffd35c; }
.btn.ghost { background: transparent; color: var(--iris-700); box-shadow: inset 0 0 0 1.5px var(--iris-600); }
.btn.ghost:hover { background: var(--lilac-soft); }
.btn.danger { background: var(--danger); box-shadow: 0 3px 0 rgba(150, 40, 40, .35); }
.btn.danger:hover { background: #d44f4f; }
.btn.sm { padding: 5px 13px; font-size: .85rem; box-shadow: none; }
.btn.lg { padding: 14px 24px; font-size: 1.05rem; }
.btn.block { width: 100%; }
.icon-btn { background: none; border: 0; cursor: pointer; font-size: 1.15rem; color: var(--danger); padding: 4px 9px; border-radius: 999px; }
.icon-btn:hover { background: var(--danger-soft); }
.icon-btn.edit { color: var(--iris-600); }
.icon-btn.edit:hover { background: var(--lilac-soft); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-size: .86rem; font-weight: 700; color: var(--iris-800); }
.field > label .req { color: var(--rose); }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 13px; min-height: 44px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--iris-500); box-shadow: 0 0 0 3px rgba(131, 120, 220, .25); }
input.invalid, .invalid > input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(197, 61, 61, .15); }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--iris-600) 50%), linear-gradient(135deg, var(--iris-600) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px;
}
.readout {
  min-height: 44px; display: flex; align-items: center; padding: 0 13px; border-radius: 12px;
  background: var(--lilac-soft); font-weight: 700; color: var(--iris-800); font-variant-numeric: tabular-nums;
}
.row { display: grid; gap: 12px; }
.row.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inline { display: flex; gap: 8px; align-items: flex-end; }
.inline > .field { flex: 1; }

/* ---------- Suggest (autocomplete) ---------- */
.suggest { position: relative; }
.suggest-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  background: #fff; border: 1.5px solid var(--iris-500); border-radius: 14px; box-shadow: var(--shadow);
  max-height: 340px; overflow-y: auto; display: none;
}
.suggest-list.open { display: block; }
.suggest-item { padding: 9px 13px; cursor: pointer; border-bottom: 1px solid var(--lilac-soft); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.suggest-item:last-child { border-bottom: 0; }
.suggest-item.active, .suggest-item:hover { background: var(--lilac-soft); }
.suggest-item .s-name { font-weight: 600; }
.suggest-item .s-meta { font-size: .78rem; color: var(--muted); }
.suggest-empty { padding: 12px; color: var(--muted); font-size: .9rem; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--lilac-soft); color: var(--iris-700); }
.badge.rose { background: var(--blush-soft); color: var(--rose-700); }
.badge.gold { background: var(--butter-soft); color: var(--gold-ink); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.green { background: var(--mint-soft); color: var(--ok); }

/* ---------- Layout order ---------- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 18px; align-items: start; }
.order-side { position: sticky; top: 76px; }
.cust-info { margin-top: 8px; font-size: .86rem; color: var(--muted); min-height: 1.2em; }
.cust-info b { color: var(--iris-800); }

.entry { border: 2px dashed var(--lilac); background: #fcfbff; border-radius: 16px; padding: 14px; margin-top: 12px; }
.entry.empty { color: var(--muted); text-align: center; padding: 22px; }
.prod-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.prod-head .pname { font-size: 1.1rem; font-weight: 800; color: var(--night); font-family: var(--display); }
.entry-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; }
.entry-row.macam-mode { grid-template-columns: 1fr 1fr 1fr; }
.macam-title { margin: 12px 0 6px; font-weight: 700; color: var(--rose-700); font-size: .9rem; }
.macam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.macam-item { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 8px 6px 12px; }
.macam-item:focus-within { border-color: var(--iris-500); }
.macam-item span { flex: 1; font-weight: 600; font-size: .9rem; word-break: break-word; }
.macam-item input { width: 82px; min-height: 36px; text-align: right; padding: 4px 8px; }
.conv-note { margin-top: 10px; font-size: .88rem; min-height: 1.3em; }
.conv-note .ok { color: var(--ok); font-weight: 600; }
.conv-note .bad { color: var(--danger); font-weight: 700; }
.conv-note .bad-box { background: var(--danger-soft); border-left: 4px solid var(--danger); padding: 8px 10px; border-radius: 10px; margin-top: 4px; }
.entry-actions { margin-top: 12px; display: flex; gap: 10px; align-items: center; justify-content: flex-end; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile {
  text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 12px; cursor: pointer;
  font: inherit; transition: transform .08s, border-color .15s, box-shadow .15s; position: relative; overflow: hidden;
}
.tile:hover { border-color: var(--iris-500); box-shadow: var(--shadow); transform: translateY(-1px); }
.tile::after { content: "★"; position: absolute; right: 8px; bottom: 0; color: var(--butter); font-size: 1.7rem; }
.tile b { display: block; color: var(--night); font-size: .92rem; line-height: 1.25; }
.tile small { color: var(--muted); }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { background: var(--lilac-soft); color: var(--iris-800); text-align: left; padding: 10px 12px; font-size: .85rem; font-weight: 800; white-space: nowrap; border-bottom: 1.5px solid var(--lilac); }
table.t td { padding: 9px 12px; border-top: 1px solid var(--lilac-soft); vertical-align: middle; }
table.t tbody tr:nth-child(even) { background: #fcfbff; }
table.t tbody tr:hover { background: var(--lilac-soft); }
table.t tfoot td { background: var(--butter-soft); font-weight: 800; border-top: 2px solid var(--gold); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty-row td { text-align: center; color: var(--muted); padding: 26px; }
.cart-orig { font-size: .75rem; color: var(--muted); display: block; }
.cart-macam { color: var(--rose-700); font-weight: 600; font-size: .82rem; }
.cart-actions { white-space: nowrap; }

/* ---------- Ringkasan ---------- */
.total-box {
  background: linear-gradient(135deg, #4f46a8, #6a5fc9 70%, #7a70d6); color: #fff; border-radius: 22px; padding: 18px 20px; margin-bottom: 14px;
  position: relative; overflow: hidden; box-shadow: 0 14px 30px rgba(79, 70, 168, .28);
}
.total-box::after { content: ""; position: absolute; right: -24px; bottom: -34px; width: 230px; height: 160px; background: url("../img/constellation-light.svg") center / contain no-repeat; opacity: .6; }
.total-box .lbl { font-size: .88rem; font-weight: 700; opacity: .95; position: relative; z-index: 1; }
.total-box .big { font-family: var(--display); font-size: 2.2rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.total-box .sub { font-size: .86rem; opacity: .95; position: relative; z-index: 1; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; gap: 10px; }
.kv .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.kv.change .v { color: var(--ok); font-size: 1.25rem; }
.kv.change.neg .v { color: var(--danger); }
.quick-cash { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.quick-cash button { border: 1.5px solid var(--lilac); background: var(--lilac-soft); color: var(--iris-800); border-radius: 999px; padding: 5px 13px; font-weight: 700; cursor: pointer; font: inherit; font-size: .85rem; }
.quick-cash button:hover { background: var(--lilac); }
.warn { background: var(--butter-soft); border-left: 4px solid var(--gold); padding: 9px 12px; border-radius: 12px; font-size: .88rem; margin: 8px 0 14px; }
.kbd { background: var(--lilac-soft); border: 1px solid var(--lilac); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font-size: .75rem; font-family: ui-monospace, Consolas, monospace; }

/* ---------- Dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px 14px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--iris-500); }
.stat.rose::before { background: #ef8fb3; }
.stat.gold::before { background: var(--gold); }
.stat.sky::before { background: var(--sky-deep); }
.stat .lbl { font-size: .86rem; color: var(--muted); font-weight: 700; }
.stat .val { font-family: var(--display); font-size: 1.65rem; font-weight: 800; color: var(--night); font-variant-numeric: tabular-nums; }
.stat .hint { font-size: .8rem; color: var(--muted); }
.hero {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; color: var(--night); border-radius: 28px; padding: 26px 30px; margin-bottom: 16px; position: relative; overflow: hidden;
  background: linear-gradient(115deg, #d9cdfc 0%, #c7e3fb 55%, #ffd8e7 100%); box-shadow: var(--shadow); min-height: 190px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: url("../img/sparkle-light.svg"); }
.hero::after { content: ""; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 400px; height: 280px; background: url("../img/constellation-dark.svg") center / contain no-repeat; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 4px; font-size: 1.9rem; }
.hero p { margin: 0; color: #4a4d78; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

.bars { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 82px 1fr 120px; gap: 10px; align-items: center; font-size: .86rem; }
.bar-track { background: var(--lilac-soft); border-radius: 999px; height: 16px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--iris-500), var(--sky)); border-radius: 999px; min-width: 2px; }
.bar-fill.rose { background: linear-gradient(90deg, #ef8fb3, var(--blush)); }

/* ---------- Laporan ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { padding: 8px 17px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--iris-700); }
.tabs a:hover { background: var(--lilac-soft); }
.tabs a.active { background: var(--iris-600); color: #fff; border-color: var(--iris-600); }
.filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter .field { min-width: 150px; }
.quick-range { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.quick-range a { font-size: .82rem; padding: 4px 12px; border-radius: 999px; background: var(--lilac-soft); text-decoration: none; font-weight: 600; }
.quick-range a:hover { background: var(--lilac); }

/* ---------- Cek Harga ---------- */
.finder-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.finder .muted { margin-top: 10px; min-height: 1.2em; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 14px; }
.plist.full { grid-template-columns: repeat(auto-fill, minmax(min(100%, 640px), 1fr)); }
.plist.full table.units th, .plist.full table.units td { white-space: nowrap; }
.pcard { background: var(--paper); border: 1.5px solid var(--line); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.pcard-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pcard h3 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.25; }
.pcard-price { text-align: right; flex: none; background: var(--butter-soft); border-radius: 16px; padding: 8px 12px; }
.pcard-price b { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--iris-700); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pcard-price span { font-size: .78rem; color: var(--gold-ink); font-weight: 600; }
table.units tr.is-main td { background: var(--butter-soft); }
.star { color: var(--gold); }
.macam-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-m { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--blush-soft); color: var(--rose-700); font-weight: 700; font-size: .82rem; }

/* ---------- Maintenance ---------- */
.danger-zone { border: 2px dashed #eaa4a4; background: #fffafa; }
.danger-zone .card-title::before { content: "⚠"; color: var(--danger); }
ul.plain { margin: .2em 0; padding-left: 1.2em; }
ul.plain li { margin: .25em 0; }
.progress { height: 14px; border-radius: 999px; background: var(--lilac-soft); overflow: hidden; margin-top: 14px; border: 1px solid var(--line); }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--iris-500), var(--sky)); transition: width .25s; }

/* ---------- Modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(43, 45, 79, .5); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; }
.modal { background: var(--paper); border-radius: 26px; max-width: 520px; width: 100%; padding: 24px; box-shadow: 0 24px 60px rgba(43, 45, 79, .35); max-height: 92vh; overflow: auto; position: relative; }
.modal h2 { margin-bottom: 12px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.success-ico { font-size: 3rem; text-align: center; }
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--night); color: #fff; padding: 11px 17px; border-radius: 16px; box-shadow: var(--shadow); font-weight: 600; max-width: 340px; animation: pop .2s ease; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.errbox { background: var(--danger-soft); border: 1.5px solid var(--danger); color: #6e1f18; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: .9rem; }
.errbox ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Login ---------- */
.login-page {
  display: grid; place-items: center; min-height: 100vh; padding: 20px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #cdbdf7 0%, #bfe0fb 55%, #ffd0e2 100%);
}
.login-page::before { content: ""; position: absolute; inset: 0; background: url("../img/sparkle-light.svg"); }
.login-page::after { content: ""; position: absolute; left: -40px; bottom: -30px; width: 560px; height: 390px; background: url("../img/constellation-dark.svg") center / contain no-repeat; opacity: .9; }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 410px; background: var(--paper); border-radius: 30px; padding: 30px 28px; box-shadow: 0 30px 70px rgba(79, 70, 168, .3); }
.login-card .logo { width: 88px; height: 88px; margin: -66px auto 10px; display: block; border-radius: 50%; box-shadow: 0 10px 26px rgba(79, 70, 168, .3); background: #fff; }
.login-card h1 { text-align: center; margin-top: 6px; }
.login-card p.sub { text-align: center; color: var(--muted); margin: 0 0 18px; }
.login-card form { display: grid; gap: 14px; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-side { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: #e8e0fc; padding: 10px 14px 14px; margin: 0; box-shadow: 0 12px 20px rgba(106, 95, 201, .18); }
  .topbar.nav-open .nav { display: flex; }
  .userbox .chip { display: none; }
  .row.c3, .row.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-row, .entry-row.macam-mode { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; padding: 22px 20px; }
  .hero::after { opacity: .3; width: 300px; }
  .bar-row { grid-template-columns: 70px 1fr 90px; }
}
@media (max-width: 520px) {
  .row.c2, .row.c3, .row.c4, .finder-row { grid-template-columns: 1fr; }
  .stat .val { font-size: 1.3rem; }
  .total-box .big { font-size: 1.8rem; }
  .container { padding: 12px 10px 50px; }
  .pcard-head { flex-direction: column; }
  .pcard-price { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
