/* ============================================================
   AksesPremium — dark navy / yellow theme
   Token source: design reference (PremStore) supplied by user
   ============================================================ */

:root {
  --bg: #0b0f17;
  --bg-soft: #0f141d;
  --card: #131924;
  --card-2: #1a2333;
  --border: #1e293b;
  --yellow: #f5bc42;
  --yellow-hover: #e0a830;
  --yellow-soft: rgba(245, 188, 66, .1);
  --yellow-soft-2: rgba(245, 188, 66, .2);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --white: #ffffff;
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, .1);
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, .1);
  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, .1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-w: 460px;
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
  min-height: 100vh;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

[hidden] { display: none !important; }

/* ---------------- topbar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 23, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.topbar__left { display: flex; align-items: center; gap: 14px; }

.hamburger {
  width: 36px; height: 36px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  background: none; border: none; padding: 0;
}
.hamburger span {
  width: 18px; height: 2px; background: var(--text-dim); border-radius: 2px;
  transition: background .2s;
}
.hamburger:hover span { background: var(--yellow); }

.brand {
  display: flex; align-items: center; gap: 8px;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.brand__mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--yellow-soft-2);
  color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 12px rgba(245, 188, 66, .12);
}
.brand__mark--logo {
  background: none;
  border: none;
  box-shadow: none;
  object-fit: contain;
  padding: 4px;
}
.auth-card__brand .brand__mark--logo { width: 40px; height: 40px; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  letter-spacing: .01em;
}
.brand__name em { color: var(--yellow); font-style: normal; }

.topnav { display: flex; gap: 4px; }
.topnav__item {
  background: none; border: none; color: var(--text-dim);
  font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px;
}
.topnav__item.active { color: var(--yellow); background: var(--yellow-soft); }

.auth-area { display: flex; align-items: center; gap: 10px; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-dim); display: none; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.icon-btn:hover { background: var(--red-soft); }

/* ---------------- sidebar drawer ---------------- */
.sidebar__backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px); z-index: 50;
}
.sidebar__panel {
  position: fixed; inset-block: 0; left: 0; width: 82%; max-width: 300px;
  background: var(--card); border-right: 1px solid var(--border);
  z-index: 51; display: flex; flex-direction: column;
  padding: 18px 14px; gap: 4px;
  animation: slideIn .22s ease-out;
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.sidebar__head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px 18px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.sidebar__avatar {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--yellow-soft); border: 1px solid var(--yellow-soft-2);
  color: var(--yellow); font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar__head-name { font-weight: 700; color: var(--white); font-size: 14px; }
.sidebar__head-sub { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.sidebar__head-badge {
  display: inline-block; margin-top: 5px; padding: 2px 8px;
  border-radius: 999px; background: var(--green-soft); color: var(--green);
  font-size: 9px; font-weight: 700; letter-spacing: .03em;
}

.sidebar__item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 12px;
  background: none; border: none; color: var(--text-dim);
  font-size: 14px; font-weight: 600;
}
.sidebar__item svg { flex-shrink: 0; opacity: .85; }
.sidebar__item:hover { color: var(--white); background: rgba(148,163,184,.08); }
.sidebar__item.active { color: var(--yellow); background: var(--yellow-soft); }

.sidebar__group-label {
  padding: 14px 12px 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-dim); opacity: .6;
}

.sidebar__footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.sidebar__logout {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 12px;
  background: var(--red-soft); border: none; color: var(--red);
  font-weight: 700; font-size: 12px;
}

/* ---------------- auth screen (login/register) ---------------- */
.authscreen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(245,188,66,.08), transparent),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.auth-card__brand {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px;
}
.auth-card h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; color: var(--white); margin: 0 0 4px;
}
.auth-card .sub { font-size: 13px; color: var(--text-dim); margin: 0 0 20px; }

.tabs--light {
  display: flex; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; margin-bottom: 20px;
}
.tabs--light button {
  flex: 1; padding: 8px; border: none; background: none;
  color: var(--text-dim); font-weight: 700; font-size: 12.5px; border-radius: 9px;
  letter-spacing: .01em;
}
.tabs--light button.active { background: var(--yellow); color: var(--bg); }

.light-field { margin-bottom: 14px; }
.light-field label {
  display: block; font-size: 11px; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
}
.light-field-row { display: flex; align-items: baseline; justify-content: space-between; }
.forgot-link { background: none; border: none; color: var(--yellow); font-size: 11px; font-weight: 600; padding: 0; }

.light-input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
  padding: 0 14px; transition: border-color .15s;
}
.light-input-wrap:focus-within { border-color: var(--yellow); }
.light-input-wrap svg { color: var(--text-faint); flex-shrink: 0; }
.light-input-wrap input {
  flex: 1; border: none; background: none; color: var(--white);
  padding: 12px 0; font-size: 14px; outline: none;
}
.light-input-wrap input::placeholder { color: var(--text-faint); }
.toggle-eye { background: none; border: none; color: var(--text-faint); display: flex; padding: 4px; }

.btn-gradient {
  width: 100%; padding: 14px; margin-top: 4px;
  background: var(--yellow); color: var(--bg);
  border: none; border-radius: 14px;
  font-weight: 800; font-size: 13.5px; letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(245,188,66,.18);
  transition: background .15s, transform .1s;
}
.btn-gradient:hover { background: var(--yellow-hover); }
.btn-gradient:active { transform: scale(.98); }

.switch-link { text-align: center; font-size: 12.5px; color: var(--text-dim); margin: 16px 0 0; }
.switch-link a { color: var(--yellow); font-weight: 700; cursor: pointer; }

.auth-error-light {
  background: var(--red-soft); border: 1px solid rgba(251,113,133,.25);
  color: var(--red); font-size: 12.5px; font-weight: 600;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 14px;
}

/* ---------------- hero ---------------- */
.hero { padding: 22px 0 4px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--green);
  box-shadow: 0 0 0 0 rgba(52,211,153,.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); }
  70% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.hero__title {
  font-family: var(--font-display); font-weight: 800; color: var(--white);
  font-size: 24px; line-height: 1.25; margin: 0;
}
.hero__title .mark { color: var(--yellow); }
.hero__sub { font-size: 13.5px; color: var(--text-dim); margin: 8px 0 0; line-height: 1.5; }

/* ---------------- balance card ---------------- */
.balance-card {
  position: relative; overflow: hidden;
  margin-top: 20px;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: linear-gradient(135deg, var(--card) 0%, var(--card-2) 55%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.balance-card::after {
  content: ''; position: absolute; right: -40px; bottom: -40px;
  width: 160px; height: 160px; border-radius: 999px;
  background: var(--yellow-soft); filter: blur(30px);
  pointer-events: none;
}
.balance-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; position: relative; }
.balance-card__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); margin: 0;
}
.balance-card__label .mark { color: var(--yellow); }
.balance-card__chip {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--yellow-soft); border: 1px solid var(--yellow-soft-2);
  color: var(--yellow); display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.balance-card__value {
  font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--white);
  position: relative; margin-bottom: 22px;
}
.balance-card__value .curr { font-size: 14px; font-weight: 500; color: var(--text-dim); margin-right: 3px; }
.balance-card__holder {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-top: 14px; border-top: 1px solid var(--border);
  position: relative;
}
.balance-card__holder-label { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.balance-card__holder-name { display: block; font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: .03em; margin-top: 2px; }
.balance-card__row { margin-top: 4px; }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* ---------------- generic buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px;
  background: var(--yellow); color: var(--bg);
  border: none; border-radius: 16px;
  font-weight: 700; font-size: 13.5px;
  box-shadow: 0 8px 18px rgba(245,188,66,.16);
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--yellow-hover); }
.btn:active { transform: scale(.98); }
.btn--ghost {
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(148,163,184,.08); }
.btn--block { width: 100%; margin-top: 14px; }

/* ---------------- stat grid ---------------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 15px;
}
.stat-card__icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 9px;
}
.stat-card__icon--green { background: var(--green-soft); color: var(--green); }
.stat-card__icon--red { background: var(--red-soft); color: var(--red); }
.stat-card__icon--blue { background: var(--sky-soft); color: var(--sky); }
.stat-card__icon--purple { background: var(--yellow-soft); color: var(--yellow); }
.stat-card .label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin-bottom: 3px; }
.stat-card .value { font-size: 16px; font-weight: 800; color: var(--white); }

/* ---------------- recent / section ---------------- */
.recent-section, .section-card {
  margin-top: 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px;
}
.recent-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.recent-section__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--white); margin: 0;
}
.recent-section__title .mark { color: var(--yellow); }
.recent-section__link {
  background: var(--yellow-soft); color: var(--yellow); border: none;
  font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}

.recent-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-item__title { font-size: 13px; font-weight: 700; color: var(--text); }
.recent-item__date { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.recent-item__right { text-align: right; }
.recent-item__amount { font-size: 13px; font-weight: 700; color: var(--white); }

.badge {
  display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .03em;
}
.badge--ok { background: var(--green-soft); color: var(--green); }
.badge--pending { background: var(--yellow-soft); color: var(--yellow); }
.badge--fail { background: var(--red-soft); color: var(--red); }

/* ---------------- catalog / products ---------------- */
.catalog-intro { text-align: center; padding: 6px 0 2px; }
.catalog-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--yellow); font-size: 11px; font-weight: 700; letter-spacing: .03em;
}
.catalog-intro h1 { margin: 14px 0 0; }
.catalog-intro p { max-width: 300px; margin: 8px auto 0; }

.search-field {
  position: relative; margin-top: 16px;
}
.search-field svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); pointer-events: none;
}
.search-field input {
  width: 100%; padding: 12px 14px 12px 40px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--white); font-size: 13.5px; outline: none;
}
.search-field input::placeholder { color: var(--text-faint); }
.search-field input:focus { border-color: var(--yellow); }

.catalog {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 18px; padding-bottom: 8px;
}
.card {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; display: flex; flex-direction: column;
  transition: border-color .15s;
}
.card:hover { border-color: var(--yellow-soft-2); }
.card__media {
  display: flex; justify-content: center; margin: 4px 0 10px;
}
.card__media img, .fallback-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  object-fit: cover; display: flex; align-items: center; justify-content: center;
  color: var(--yellow); font-size: 20px;
}
.card__body { text-align: center; flex: 1; }
.card__name { font-size: 13px; font-weight: 700; color: var(--white); margin: 0 0 3px; }
.card__desc {
  font-size: 11px; color: var(--text-dim); margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__stock { font-size: 10px; color: var(--text-faint); }
.card__stub { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); text-align: center; }
.card__price { font-size: 14px; font-weight: 800; color: var(--yellow); }
.card__price small { display: block; font-size: 9.5px; font-weight: 500; color: var(--text-faint); margin-top: 1px; }
.card__stub .btn { width: 100%; margin-top: 10px; padding: 9px; font-size: 12.5px; }

.catalog__loading, .catalog__error, .catalog__empty {
  grid-column: 1 / -1; text-align: center; color: var(--text-dim); font-size: 13px; padding: 30px 0;
}
.catalog__error { color: var(--red); }

/* ---------------- deposit ---------------- */
.deposit-amounts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0;
}
.deposit-amounts button {
  padding: 12px 6px; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 11px; font-weight: 700;
}
.deposit-amounts button span { display: block; font-size: 13px; color: var(--white); margin-top: 1px; }
.deposit-amounts button.active { border-color: var(--yellow); background: var(--yellow-soft); color: var(--yellow); }
.deposit-amounts button.active span { color: var(--yellow); }

.field { margin: 14px 0; }
.field label {
  display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-dim); margin-bottom: 7px;
}
.field input {
  width: 100%; padding: 13px 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--white); font-size: 15px; font-weight: 700; outline: none;
}
.field input:focus { border-color: var(--yellow); }
.field-hint { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-faint); margin-top: 6px; padding: 0 2px; }
.field-hint svg { color: var(--yellow); vertical-align: -2px; margin-right: 3px; }

.howto-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 10px;
}
.howto-item:last-child { margin-bottom: 0; }
.howto-num {
  width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0;
  background: var(--yellow-soft); border: 1px solid var(--yellow-soft-2); color: var(--yellow);
  font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.howto-item p { margin: 0; font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.howto-item strong { color: var(--text); }
.howto-item strong.warn { color: var(--yellow); }

/* ---------------- mutasi saldo ---------------- */
.mutasi-summary-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px;
}
.mutasi-summary-card__label {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-dim); margin: 0 0 6px;
}
.mutasi-summary-card__value { font-size: 21px; font-weight: 800; color: var(--white); margin: 0; }
.mutasi-summary-card__icon {
  width: 46px; height: 46px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mutasi-summary-card__icon--in { background: var(--green-soft); border: 1px solid rgba(52,211,153,.2); color: var(--green); }
.mutasi-summary-card__icon--out { background: var(--red-soft); border: 1px solid rgba(251,113,133,.2); color: var(--red); }

.mutasi-detail__head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border);
}
.mutasi-detail__legend { display: flex; gap: 6px; }

.mutation-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.mutation-item:last-child { border-bottom: none; padding-bottom: 4px; }
.mutation-item__left { min-width: 0; }
.mutation-item__desc { font-size: 12px; color: var(--text); margin: 6px 0 3px; line-height: 1.4; }
.mutation-item__date { font-size: 10.5px; color: var(--text-faint); margin: 0; }
.mutation-item__amount { font-size: 13px; font-weight: 800; white-space: nowrap; flex-shrink: 0; padding-top: 1px; }
.mutation-item__amount.is-in { color: var(--green); }
.mutation-item__amount.is-out { color: var(--red); }

.mutasi-pagination {
  padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.mutasi-pagination__label { font-size: 11px; font-weight: 700; color: var(--text-dim); margin: 0; }
.mutasi-pagination__buttons { display: flex; gap: 8px; }
.mutasi-pagination__buttons button {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
}
.mutasi-pagination__buttons button:hover:not(:disabled) { color: var(--white); border-color: var(--yellow-soft-2); }
.mutasi-pagination__buttons button:disabled { opacity: .35; cursor: not-allowed; }

/* ---------------- orders view ---------------- */
.orders-search { display: flex; gap: 8px; margin-top: 16px; }
.orders-search .search-field { flex: 1; margin-top: 0; }

.order-card {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--green);
  border-radius: var(--radius-lg); padding: 18px; margin-top: 14px;
}
.order-card.is-pending { border-left-color: var(--yellow); }
.order-card.is-fail { border-left-color: var(--red); }
.order-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
}
.status-chip--ok { background: var(--green-soft); color: var(--green); }
.status-chip--pending { background: var(--yellow-soft); color: var(--yellow); }
.status-chip--fail { background: var(--red-soft); color: var(--red); }
.order-card__date { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-faint); margin-top: 12px; }
.order-card__total {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; margin-top: 12px;
}
.order-card__total p { margin: 0; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.order-card__total .amount { font-size: 18px; font-weight: 800; color: var(--white); margin-top: 3px; }
.order-card__product {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px; margin-top: 10px;
}
.order-card__product-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--yellow-soft); border: 1px solid var(--yellow-soft-2); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
}
.order-card__product h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--white); }
.order-card__qty { display: inline-block; margin-top: 3px; padding: 1px 8px; background: var(--card-2); color: var(--text-dim); font-size: 9.5px; font-weight: 700; border-radius: 6px; }

.account-label { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; color: var(--yellow); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 8px; }
.account-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px;
}
.account-box:last-child { margin-bottom: 0; }
.account-box .k { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); font-weight: 700; }
.account-box .v { font-size: 12px; font-weight: 700; color: var(--text); font-family: var(--font-mono); margin-top: 3px; word-break: break-all; }
.account-box .v.accent { color: var(--yellow); }
.copy-btn {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--border); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
}
.copy-btn:hover { color: var(--yellow); border-color: var(--yellow-soft-2); }

.variant-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 10px;
}
.variant-item:last-child { margin-bottom: 0; }
.variant-item__name { font-size: 13px; font-weight: 700; color: var(--white); }
.variant-item__desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.variant-item__meta { font-size: 10.5px; color: var(--text-faint); margin-top: 4px; }
.variant-item__right { text-align: right; flex-shrink: 0; }
.variant-item__price { font-size: 12.5px; font-weight: 800; color: var(--yellow); margin-bottom: 6px; }
.variant-item__right .btn { padding: 8px 14px; font-size: 11.5px; }
.variant-item__right .btn:disabled { background: var(--card-2); color: var(--text-faint); box-shadow: none; cursor: not-allowed; }

/* ---------------- modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(2px); }
.modal__panel {
  position: relative; width: 100%; max-width: var(--max-w);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 26px 26px 0 0;
  padding: 26px 22px 30px;
  max-height: 88vh; overflow-y: auto;
  animation: slideUp .22s ease-out;
}
@media (min-width: 560px) {
  .modal { align-items: center; }
  .modal__panel { border-radius: var(--radius-lg); }
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim);
}
.modal h2 { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--white); margin: 0 0 4px; padding-right: 30px; }
.modal__total {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px; font-weight: 800; color: var(--white); margin: 14px 0 8px;
}

.form-error {
  background: var(--red-soft); border: 1px solid rgba(251,113,133,.25); color: var(--red);
  font-size: 12.5px; font-weight: 600; padding: 10px 12px; border-radius: 10px; margin: 10px 0;
}

.qr-box { text-align: center; }
.qr-box img { width: 200px; height: 200px; border-radius: var(--radius-sm); background: #fff; padding: 10px; margin: 10px 0; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  margin: 10px 0;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 999px; }
.status-pending { background: var(--yellow-soft); color: var(--yellow); }
.status-pending .dot { background: var(--yellow); animation: pulse 1.5s infinite; }
.status-selesai { background: var(--green-soft); color: var(--green); }
.status-selesai .dot { background: var(--green); }

/* ---------------- footer / toast ---------------- */
.footer { padding: 24px 0 90px; text-align: center; }
.footer .wrap { font-size: 11px; color: var(--text-faint); line-height: 1.6; }
.footer__version { display: block; margin-top: 4px; opacity: .6; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--card-2); border: 1px solid var(--border); color: var(--white);
  padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 100; max-width: 90%; text-align: center;
}
.toast.success { border-color: rgba(52,211,153,.3); color: var(--green); }
.toast.error { border-color: rgba(251,113,133,.3); color: var(--red); }

/* ---------------- misc ---------------- */
.owner-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; background: var(--yellow-soft); color: var(--yellow);
  font-size: 9.5px; font-weight: 800; letter-spacing: .03em; margin-left: 8px; vertical-align: middle;
}

@media (min-width: 420px) {
  .catalog { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------------- whatsapp floating button + confirm popup ---------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 22px; z-index: 55;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.3);
  cursor: pointer; transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float:active { transform: scale(.96); }

.wa-confirm {
  position: fixed; inset: 0; z-index: 65;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.wa-confirm__backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(2px);
}
.wa-confirm__box {
  position: relative; width: 100%; max-width: 320px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px 22px; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  animation: popIn .18s ease-out;
}
@keyframes popIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wa-confirm__icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
  background: rgba(37,211,102,.15); color: #25D366;
  display: flex; align-items: center; justify-content: center;
}
.wa-confirm__text { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.wa-confirm__actions { display: flex; gap: 10px; }
.wa-confirm__btn {
  flex: 1; padding: 12px; border-radius: 12px; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.wa-confirm__btn--no { background: rgba(148,163,184,.12); color: var(--text-dim); }
.wa-confirm__btn--no:hover { background: rgba(148,163,184,.2); }
.wa-confirm__btn--yes { background: #25D366; color: #fff; }
.wa-confirm__btn--yes:hover { filter: brightness(1.08); }

/* ---------------- top sultan (leaderboard) ---------------- */
.sultan-list { display: flex; flex-direction: column; gap: 8px; }
.sultan-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.sultan-item--me { border-color: var(--yellow-soft-2); background: var(--yellow-soft); }
.sultan-item__rank { font-size: 22px; line-height: 1; flex-shrink: 0; width: 30px; text-align: center; }
.sultan-item__info { flex: 1; min-width: 0; }
.sultan-item__name { font-size: 13.5px; font-weight: 700; color: var(--white); }
.sultan-item__you { color: var(--yellow); font-weight: 700; font-size: 11px; }
.sultan-item__label { font-size: 10.5px; color: var(--text-dim); margin-top: 1px; }
.sultan-item__value { font-size: 14px; font-weight: 800; color: var(--yellow); white-space: nowrap; }
