/* ==========================================================================
   DIGITAL STORE — design system
   Palet: hitam #0A0A0B · putih #FFFFFF · emas #D4AF37
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --ink-2: #111113;
  --ink-3: #1a1a1e;
  --gold: #d4af37;
  --gold-light: #f2e2a8;
  --gold-deep: #a8842a;
  --paper: #ffffff;
  --cream: #f7f5ef;
  --text: #141416;
  --muted: #6f6a61;
  --line: #e7e2d6;
  --page-text: #f4f1ea;
  --page-muted: #a9a29a;
  --page-line: rgba(212, 175, 55, 0.22);
  --ok: #1c8a5a;
  --ok-bg: #e6f5ee;
  --warn: #a97315;
  --warn-bg: #fdf3e0;
  --bad: #b02a2a;
  --bad-bg: #fdeaea;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 26px rgba(15, 12, 5, 0.08);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--page-text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 12px; }

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--page-muted); }
.small { font-size: 13px; }
.gold-text { color: var(--gold); }
.text-ok { color: var(--ok); }
.strike { text-decoration: line-through; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.lead { font-size: 1.03rem; color: var(--page-muted); max-width: 64ch; }

/* ------------------------------- tombol ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
  color: #221c08;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.26);
}
.btn-gold:hover { box-shadow: 0 14px 32px rgba(212, 175, 55, 0.34); }
.btn-dark { background: var(--ink); color: var(--gold-light); }
.btn-dark:hover { background: #23231f; }
.btn-outline {
  background: transparent;
  color: var(--page-text);
  border-color: var(--page-line);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--page-text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-danger { background: var(--bad-bg); color: var(--bad); border-color: rgba(176, 42, 42, 0.25); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-xs { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-more { color: var(--gold); font-size: 13.5px; font-weight: 600; }
.link-more:hover { text-decoration: underline; }

/* ------------------------------- topbar ---------------------------------- */
.topbar {
  background: linear-gradient(90deg, #161610, #241f0c);
  color: var(--gold-light);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* ------------------------------- header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #1d1806;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.14em;
  color: #fff;
}
.brand-text small { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--page-muted); }

.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(244, 241, 234, 0.76);
  padding: 6px 0;
  position: relative;
}
.main-nav a:hover { color: #fff; }
.main-nav a.is-active { color: var(--gold); }
.main-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--gold);
}
.main-nav .nav-account {
  padding: 8px 14px;
  border: 1px solid var(--page-line);
  border-radius: 999px;
  color: var(--gold-light);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--page-text);
  cursor: pointer;
  position: relative;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #201a04;
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
  padding: 0 4px;
}
.account-menu { position: relative; }
.account-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  color: var(--page-text);
  cursor: pointer;
  font-size: 13px;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: #201a04;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.avatar-lg { width: 46px; height: 46px; font-size: 18px; }
.avatar-xl { width: 64px; height: 64px; font-size: 24px; }
.account-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 10px);
  min-width: 224px;
  background: #16161a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 80;
}
.account-dropdown.is-open { display: block; }
.account-dropdown a,
.account-dropdown .link-btn {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: rgba(244, 241, 234, 0.86);
}
.account-dropdown a:hover,
.account-dropdown .link-btn:hover { background: rgba(212, 175, 55, 0.12); color: var(--gold-light); }
.account-dropdown .link-btn { width: 100%; text-align: left; text-decoration: none; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 18px; height: 1.6px; background: currentColor; display: block; }

/* -------------------------------- flash ---------------------------------- */
.flash-wrap { margin-top: 18px; }
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid;
}
.flash-success { background: rgba(28, 138, 90, 0.14); border-color: rgba(28, 138, 90, 0.4); color: #a8e6c6; }
.flash-error { background: rgba(176, 42, 42, 0.16); border-color: rgba(176, 42, 42, 0.45); color: #f3b8b8; }
.flash-close { background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; line-height: 1; }

.alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert-error { background: var(--bad-bg); border-color: rgba(176, 42, 42, 0.3); color: var(--bad); }
.alert-success { background: var(--ok-bg); border-color: rgba(28, 138, 90, 0.3); color: var(--ok); }
.alert ul { margin: 8px 0 0 18px; padding: 0; }

.notice {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--page-text);
  font-size: 13.8px;
  margin: 18px 0;
}
.notice strong { color: var(--gold-light); }
.notice-ok { background: rgba(28, 138, 90, 0.12); border-color: rgba(28, 138, 90, 0.35); }
.notice-ok strong { color: #9fe3c1; }
.notice-warn { background: var(--warn-bg); border-color: rgba(169, 115, 21, 0.35); color: #6b4a0c; }
.notice-warn strong { color: #6b4a0c; }
.hint { font-size: 12.8px; color: var(--page-muted); margin-top: 10px; }

/* -------------------------------- hero ----------------------------------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(circle at 22% 30%, rgba(212, 175, 55, 0.18), transparent 55%),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.06), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); color: #fff; letter-spacing: -0.02em; }
.hero .lead { font-size: 1.06rem; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 44px;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.hero-stats dd { margin: 6px 0 0; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--page-muted); }

.hero-panel { position: relative; }
.panel-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 22px;
  padding: 28px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.panel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; }
.step-num {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 9px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  flex: none;
}
.steps strong { font-size: 14.5px; color: #fff; display: block; }
.steps p { margin: 3px 0 0; font-size: 13px; color: var(--page-muted); }
.panel-link { font-size: 13px; color: var(--gold-light); }

/* ------------------------------ section ---------------------------------- */
.section { padding: 74px 0; }
.section-tight { padding: 36px 0 64px; }
.section-alt {
  background: linear-gradient(180deg, #0d0d0f, #111114);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 6px; }

.page-head {
  padding: 58px 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, 0.12), transparent 55%);
}
.page-head-compact { padding: 34px 0 24px; }
.page-head h1 { margin-bottom: 8px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.head-badges { display: flex; gap: 8px; align-items: center; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--page-muted); margin-bottom: 14px;
}
.breadcrumb a { color: var(--page-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb strong { color: var(--page-text); font-weight: 600; }

/* ------------------------------ kategori --------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.18s ease, transform 0.18s ease;
  min-height: 158px;
}
.category-card:hover { border-color: rgba(212, 175, 55, 0.55); transform: translateY(-3px); }
.category-card h3 { margin: 0; color: #fff; font-size: 1.25rem; }
.category-card p { margin: 0; font-size: 13px; color: var(--page-muted); }
.category-count { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.category-arrow { margin-top: auto; color: var(--gold); font-size: 18px; }

/* ------------------------------- produk ---------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28); }
.product-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #17171a, #2b2517);
  overflow: hidden;
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-family: var(--font-display);
  font-size: 46px;
  color: var(--gold);
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.28), transparent 60%), #141416;
}
.cover-fallback-lg { font-size: 84px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product-cover .pill { position: absolute; top: 12px; left: 12px; }
.pill-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #221c08; }
.pill-save { background: var(--ok-bg); color: var(--ok); }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-cat {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700;
}
.product-title { font-size: 1.12rem; margin: 0; font-family: var(--font-display); line-height: 1.25; }
.product-title a { color: var(--text); }
.product-title a:hover { color: var(--gold-deep); }
.product-desc { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price-block { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; color: var(--text); }
.price-lg { font-size: 2.3rem; color: var(--gold); }
.price-strike { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.sales { font-size: 11.5px; color: var(--muted); }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; }
.inline-form { display: contents; }

/* ------------------------------ fitur ------------------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.feature {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.feature-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 17px;
}
.feature h3 { font-size: 1.1rem; color: #fff; }
.feature p { margin: 0; font-size: 13.5px; color: var(--page-muted); }

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.22), transparent 60%),
    linear-gradient(140deg, #14120b, #0e0e10);
  border: 1px solid rgba(212, 175, 55, 0.3);
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { margin: 0; color: var(--page-muted); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------- footer ---------------------------------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 58px 0 26px; background: #08080a; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.footer-brand p { margin-top: 16px; font-size: 13px; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.footer-col a, .footer-col span { font-size: 13.2px; color: var(--page-muted); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: var(--page-muted);
}

/* ------------------------------- filter ---------------------------------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.filter-search { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; color: var(--page-muted); }
.filter-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--page-text);
  font-size: 14px;
  padding: 8px 0;
}
.filter-bar select,
.filter-bar input[type="search"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--page-text);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13.5px;
  min-width: 150px;
}
.filter-bar option { background: #16161a; color: #f4f1ea; }
.result-info { font-size: 13px; color: var(--page-muted); margin-bottom: 18px; }

/* ------------------------------ pagination ------------------------------- */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.page-btn {
  min-width: 40px; height: 40px;
  display: grid; place-items: center;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--page-line);
  font-size: 13px;
  color: var(--page-text);
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.is-active { background: var(--gold); border-color: var(--gold); color: #201a04; font-weight: 700; }
.page-btn.is-disabled { opacity: 0.35; pointer-events: none; }
.page-gap { color: var(--page-muted); display: grid; place-items: center; padding: 0 6px; }

/* --------------------------- detail produk ------------------------------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 44px; }
.detail-cover {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 20px;
}
.detail-facts div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}
.detail-facts span { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--page-muted); }
.detail-facts strong { font-size: 13.5px; }
.detail-info h1 { margin-bottom: 12px; }
.price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0; }
.buy-box {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.24);
}
.qty { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--page-muted); }
.qty input, .qty-form input {
  width: 86px; padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--page-text);
  font-size: 14px;
}
.buy-box .btn { flex: 1 1 200px; }
.owned-box {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 20px;
  border-radius: 14px;
  background: rgba(28, 138, 90, 0.12);
  border: 1px solid rgba(28, 138, 90, 0.4);
}
.owned-box p { margin: 4px 0 0; font-size: 13px; color: var(--page-muted); }
.detail-body { margin-top: 30px; }
.prose { font-size: 14.6px; color: rgba(244, 241, 234, 0.86); white-space: pre-line; }
.included { margin-top: 26px; padding: 22px; border-radius: 14px; border: 1px dashed rgba(212, 175, 55, 0.35); }
.included h3 { font-size: 1.05rem; }
.included-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.included-list li { display: flex; gap: 10px; align-items: center; font-size: 13.6px; }
.included-list em { color: var(--page-muted); font-style: normal; font-size: 12.5px; }
.file-ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold);
  font-size: 13px;
  flex: none;
}

/* -------------------------------- panel ---------------------------------- */
.panel {
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 22px;
}
.panel > h2 { color: var(--text); }
.panel .muted { color: var(--muted); }
.panel .hint { color: var(--muted); }
.panel-head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.panel-head-row h2 { margin: 0; font-size: 1.3rem; }

/* -------------------------------- tabel ---------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.6px; }
.table thead th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}
.table td { padding: 14px 12px; border-bottom: 1px solid #f1ede4; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbf9f4; }
.table .muted { color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-product { display: flex; align-items: center; gap: 12px; }
.row-product small { display: block; font-size: 11.5px; }

.cart-thumb {
  width: 54px; height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: #141416;
  flex: none;
  display: grid; place-items: center;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .cover-fallback { font-size: 20px; }

/* ------------------------------ keranjang -------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.85fr); gap: 24px; align-items: start; }
.cart-item { display: flex; align-items: center; gap: 12px; color: var(--text); }
.cart-item small { display: block; font-size: 11.5px; color: var(--muted); }
.qty-form { display: flex; align-items: center; gap: 6px; }
.qty-form input {
  width: 64px; padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.summary-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 0; font-size: 13.8px;
}
.summary-row span:first-child { color: var(--muted); }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.summary-total strong { font-family: var(--font-display); font-size: 1.5rem; }
.summary .btn { margin-top: 12px; }
.summary h3 { font-size: 1.15rem; }

.empty-state {
  text-align: center;
  padding: 62px 26px;
  border-radius: var(--radius);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.03);
  grid-column: 1 / -1;
}
.empty-state h3 { color: #fff; }
.empty-state p { color: var(--page-muted); }
.empty-inline { padding: 18px 0; }
.empty-inline p { color: var(--muted); margin-bottom: 12px; }
.panel .empty-state { background: #fbf9f4; border-color: var(--line); }
.panel .empty-state h3 { color: var(--text); }
.panel .empty-state p { color: var(--muted); }

/* ------------------------------- checkout -------------------------------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr); gap: 24px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}
.field input:disabled { background: #f6f4ef; color: var(--muted); }
.field textarea { resize: vertical; min-height: 90px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 13.5px; margin-bottom: 16px; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--gold-deep); }
.stack > * + * { margin-top: 0; }
.checkout-items { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.checkout-items li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border-radius: 10px; background: #fbf9f4; border: 1px solid var(--line);
}
.checkout-items small { display: block; color: var(--muted); font-size: 12.5px; }
.discount-form { margin: 14px 0; }
.mini-list { margin: 0; padding-left: 18px; font-size: 13.2px; color: var(--muted); display: grid; gap: 7px; }
.panel .notice { color: var(--text); }

/* --------------------------------- auth ---------------------------------- */
.auth-section { padding: 60px 0 80px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 44px; align-items: start; }
.auth-card {
  background: var(--paper);
  color: var(--text);
  border-radius: 20px;
  padding: 38px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 2.1rem; }
.auth-card .muted { color: var(--muted); }
.auth-card .field > span { color: var(--text); }
.auth-foot { margin: 20px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--gold-deep); font-weight: 600; }
.auth-aside { padding: 18px 8px; }
.auth-aside h2 { color: #fff; }
.check-list { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; font-size: 14px; color: rgba(244, 241, 234, 0.84); }
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold);
  font-size: 11px;
  display: grid; place-items: center;
}
.auth-note {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.auth-note strong { color: var(--gold); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.auth-note p { margin: 8px 0 0; font-size: 13px; color: var(--page-muted); }

/* -------------------------------- kontak --------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 24px; align-items: start; }
.contact-info .panel { margin-bottom: 22px; }
.info-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid #f1ede4; font-size: 13.6px;
}
.info-row:last-child { border-bottom: 0; }
.info-row > span { color: var(--muted); flex: none; }
.info-row strong, .info-row a { text-align: right; word-break: break-word; }

/* ------------------------------ prose page ------------------------------- */
.prose-page {
  max-width: 820px;
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--shadow-soft);
}
.prose-page h2 { font-size: 1.35rem; margin-top: 30px; }
.prose-page h2:first-child { margin-top: 0; }
.prose-page p, .prose-page li { font-size: 14.2px; color: #3c392f; }
.prose-page ul { padding-left: 20px; display: grid; gap: 6px; }
.prose-page a { color: var(--gold-deep); text-decoration: underline; }

/* -------------------------------- badge ---------------------------------- */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-muted { background: #f0ede5; color: #7a7469; }

/* ================================ MEMBER ================================= */
.member-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 26px; align-items: start; }
.member-nav {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 96px;
}
.member-nav-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.member-nav-head strong { font-size: 14px; color: #fff; display: block; }
.member-nav-head small { font-size: 11.5px; color: var(--page-muted); word-break: break-all; }
.member-nav nav { display: flex; flex-direction: column; gap: 3px; }
.member-nav nav a {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: rgba(244, 241, 234, 0.78);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.member-nav nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.member-nav nav a.is-active { background: rgba(212, 175, 55, 0.14); color: var(--gold-light); font-weight: 600; }
.member-nav-admin { margin-top: 10px; border-top: 1px dashed rgba(255, 255, 255, 0.1); padding-top: 12px !important; }
.member-nav-foot { margin-top: 18px; }
.nav-badge {
  background: var(--gold);
  color: #201a04;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
}
.member-content { display: flex; flex-direction: column; gap: 22px; }
.member-content > .panel { margin-bottom: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.stat-card {
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.stat-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat-value { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--text); }
.stat-value-sm { font-size: 1.2rem; }
.stat-hint { font-size: 11.8px; color: var(--muted); }
.stat-link { font-size: 12.5px; color: var(--gold-deep); font-weight: 600; margin-top: auto; }

.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.notif-list li {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid #f1ede4;
}
.notif-list li:last-child { border-bottom: 0; }
.notif-list strong { font-size: 13.8px; display: block; color: var(--text); }
.notif-list p { margin: 3px 0 4px; font-size: 13px; color: var(--muted); }
.notif-list small { font-size: 11.5px; color: var(--muted); }
.notif-list li.is-unread { background: #fdf9ee; padding-left: 12px; border-left: 3px solid var(--gold); }
.notif-type {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 4px;
}
.notif-list-full li { padding: 18px 4px; }

.mini-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mini-product {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbf9f4;
  color: var(--text);
}
.mini-product:hover { border-color: var(--gold); }
.mini-product strong { font-size: 13.5px; display: block; }
.mini-product small { font-size: 11.5px; color: var(--muted); }

.owned-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 22px; }
.owned-card {
  background: var(--paper); color: var(--text);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.owned-cover { aspect-ratio: 16 / 9; background: #141416; }
.owned-cover img { width: 100%; height: 100%; object-fit: cover; }
.owned-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.owned-body h3 { margin: 0; font-size: 1.1rem; }
.owned-body p { margin: 0; font-size: 12.8px; }
.owned-meta { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.owned-meta li { display: flex; justify-content: space-between; gap: 10px; }
.owned-meta span { color: var(--muted); }
.owned-body .btn { margin-top: auto; }

.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbf9f4;
  flex-wrap: wrap;
}
.file-info { display: flex; align-items: center; gap: 12px; }
.file-info strong { display: block; font-size: 13.8px; }
.file-info small { font-size: 11.8px; color: var(--muted); word-break: break-all; }
.file-actions { display: flex; align-items: center; gap: 12px; }

.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-head h2 { margin: 0 0 2px; }
.profile-head p { margin: 0; font-size: 13px; }

.tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.tabs a {
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--page-muted);
}
.tabs a:hover { color: #fff; }
.tabs a.is-active { background: rgba(212, 175, 55, 0.16); color: var(--gold-light); font-weight: 600; }

.bank-box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
  margin: 20px 0 24px;
}
.bank-box div { background: #fbf9f4; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.bank-box dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.bank-box dd { margin: 0; font-size: 15px; }
.copyable strong { letter-spacing: 0.06em; }
.totals { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }

/* ------------------------------ empty / error ---------------------------- */
.error-body { display: grid; place-items: center; min-height: 100vh; padding: 40px 20px; }
.error-wrap { text-align: center; max-width: 520px; }
.error-code {
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(212, 175, 55, 0.35);
  display: block;
  margin-bottom: 10px;
}
.error-wrap h1 { color: #fff; }
.error-wrap p { color: var(--page-muted); }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.error-detail { font-family: ui-monospace, monospace; font-size: 12px; color: var(--bad); }

/* ================================= ADMIN ================================= */
.admin-body { background: #f4f2ed; color: var(--text); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 264px;
  flex: none;
  background: #0a0a0b;
  color: var(--page-text);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(212, 175, 55, 0.16);
}
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 18px; }
.admin-brand strong { display: block; font-family: var(--font-display); font-size: 15.5px; letter-spacing: 0.1em; color: #fff; }
.admin-brand small { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244, 241, 234, 0.38);
  padding: 16px 10px 6px;
}
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.4px;
  color: rgba(244, 241, 234, 0.76);
}
.admin-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-nav a.is-active { background: rgba(212, 175, 55, 0.16); color: var(--gold-light); font-weight: 600; }
.nav-ico {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  flex: none;
}
.admin-nav a.is-active .nav-ico { background: rgba(212, 175, 55, 0.24); color: var(--gold-light); }
.admin-sidebar-foot { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 16px; margin-top: 16px; }
.admin-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.admin-user strong { display: block; font-size: 13px; color: #fff; }
.admin-user small { font-size: 11px; color: var(--page-muted); word-break: break-all; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 26px;
  background: #fff;
  border-bottom: 1px solid #e9e4d9;
  position: sticky; top: 0; z-index: 40;
}
.admin-topbar-title { font-weight: 600; font-size: 14.5px; }
.admin-topbar-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.admin-menu-btn { display: none; background: #f4f2ed; border-color: #e9e4d9; color: var(--text); }
.admin-content { padding: 26px; max-width: 1400px; width: 100%; }
.admin-content .flash-wrap { margin-top: 0; margin-bottom: 18px; padding: 0; }
.admin-content .flash-success { background: var(--ok-bg); border-color: rgba(28, 138, 90, 0.35); color: var(--ok); }
.admin-content .flash-error { background: var(--bad-bg); border-color: rgba(176, 42, 42, 0.3); color: var(--bad); }
.admin-page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.admin-page-head h1 { font-size: 1.9rem; margin-bottom: 4px; }
.admin-page-head .muted { color: var(--muted); font-size: 13.5px; margin: 0; }
.admin-page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-body .btn-outline { border-color: #ddd6c8; color: var(--text); }
.admin-body .btn-outline:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.admin-body .link-more { color: var(--gold-deep); }
.admin-body .table tbody tr:hover { background: #fbf9f4; }
.admin-body .empty-state { background: #fbf9f4; border-color: var(--line); }
.admin-body .empty-state h3 { color: var(--text); }
.admin-body .empty-state p { color: var(--muted); }
.admin-body .tabs { background: #fff; border-color: #e9e4d9; }
.admin-body .tabs a { color: var(--muted); }
.admin-body .tabs a:hover { color: var(--text); }
.admin-body .tabs a.is-active { background: linear-gradient(135deg, var(--gold-light), rgba(212, 175, 55, 0.35)); color: #4a3a08; }
.admin-body .filter-bar { background: #fff; border-color: #e9e4d9; }
.admin-body .filter-bar select,
.admin-body .filter-bar input[type="search"] {
  background: #fff; border-color: #e2ddcf; color: var(--text);
}
.admin-body .filter-search input { color: var(--text); }
.admin-body .page-btn { border-color: #e2ddcf; color: var(--text); background: #fff; }
.admin-body .page-btn.is-active { background: var(--gold); border-color: var(--gold); color: #201a04; }
.admin-body .stat-card { border-color: #e9e4d9; }
.admin-body .notice { color: var(--text); }
.admin-body .notice strong { color: #6b4a0c; }

.stat-card-dark {
  background: linear-gradient(150deg, #15140f, #0c0c0e);
  border-color: rgba(212, 175, 55, 0.3) !important;
  color: var(--page-text);
}
.stat-card-dark .stat-label { color: var(--gold); }
.stat-card-dark .stat-value { color: #fff; }
.stat-card-dark .stat-hint { color: var(--page-muted); }

.admin-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; align-items: start; }
.admin-grid-form { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr); gap: 22px; align-items: start; }
.admin-side-col { display: flex; flex-direction: column; gap: 0; }
.stat-grid-4 { margin-bottom: 22px; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 12px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.chart-bar-wrap { flex: 1; display: flex; align-items: flex-end; width: 100%; }
.chart-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  min-height: 3px;
  transition: opacity 0.15s ease;
}
.chart-bar:hover { opacity: 0.8; }
.chart-label { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.chart-value { font-size: 10.5px; color: var(--text); font-weight: 600; }

.rank-list, .plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f1ede4; }
.rank-list li:last-child { border-bottom: 0; }
.rank-num {
  width: 24px; height: 24px; border-radius: 7px;
  background: #f4f1e8; color: var(--gold-deep);
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; flex: none;
}
.rank-body { flex: 1; min-width: 0; }
.rank-body a { font-size: 13.5px; font-weight: 600; }
.rank-body a:hover { color: var(--gold-deep); }
.rank-body small { display: block; font-size: 11.5px; color: var(--muted); }
.rank-value { font-size: 13px; white-space: nowrap; }
.plain-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid #f1ede4; font-size: 13.5px;
  flex-wrap: wrap;
}
.plain-list li:last-child { border-bottom: 0; }
.plain-list a:hover { color: var(--gold-deep); }

.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cat-list > li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbf9f4; }
.cat-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cat-row strong { font-size: 13.8px; }
.cat-row small { font-size: 11.8px; display: block; }
.inline-edit { margin-top: 10px; }
.inline-edit summary {
  cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--gold-deep);
  padding: 4px 0;
}
.inline-edit form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }

.detail-list { margin: 0 0 18px; display: grid; gap: 0; }
.detail-list div {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid #f1ede4; font-size: 13.5px;
}
.detail-list dt { color: var(--muted); flex: none; }
.detail-list dd { margin: 0; text-align: right; }
.verify-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.reject-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reject-form input {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 13px; min-width: 220px; font-family: inherit;
}
.cover-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; background: #141416; }
.cover-preview img { width: 100%; display: block; }

.switch-list { display: grid; gap: 2px; margin-bottom: 20px; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid #f1ede4;
  cursor: pointer;
}
.switch-row:last-child { border-bottom: 0; }
.switch-row strong { font-size: 13.8px; display: block; }
.switch-row small { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }
.switch-row input[type="checkbox"] { width: 42px; height: 24px; accent-color: var(--gold-deep); flex: none; }
.switch-row.is-muted { opacity: 0.85; }

.message-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.message-list li { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbf9f4; }
.message-list li.is-unread { border-left: 3px solid var(--gold); background: #fdf9ee; }
.message-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.message-subject { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.message-body { font-size: 13.2px; color: #4c4840; white-space: pre-line; margin-bottom: 10px; }

.admin-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 55;
}
.admin-overlay.is-open { display: block; }

/* =============================== RESPONSIVE ============================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .admin-grid-form { grid-template-columns: minmax(0, 1fr); }
  .admin-grid-form > *, .admin-grid-2 > * { min-width: 0; }
  .admin-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 60;
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-menu-btn { display: grid; }
}

@media (max-width: 900px) {
  .member-layout { grid-template-columns: 1fr; }
  .member-nav { position: static; }
  .member-nav nav { flex-direction: row; flex-wrap: wrap; }
  .member-nav-head { display: none; }
  .member-nav-foot { margin-top: 12px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #0f0f12;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 12px 18px 18px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .main-nav a.is-active::after { display: none; }
  .main-nav .nav-account { text-align: center; border-bottom: 0; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .account-name { display: none; }
  .account-btn { padding: 5px; }
  .admin-content { padding: 18px; }
  .prose-page { padding: 26px; }
}

@media (max-width: 720px) {
  .section { padding: 50px 0; }
  .container { padding: 0 18px; }
  .hero { padding: 52px 0 62px; }
  .hero-stats { gap: 26px; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
  .cta-banner { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .auth-card { padding: 26px; }
  .panel { padding: 20px; }
  .detail-facts { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar select { width: 100%; }

  /* tabel menjadi kartu */
  .table.table-wide thead, .table.table-wide tbody, .table.table-wide th,
  .table.table-wide td, .table.table-wide tr { display: block; }
  .table.table-wide thead { display: none; }
  .table.table-wide tbody tr {
    border: 1px solid #eeeae0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
  }
  .table.table-wide td {
    border: 0;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
  }
  .table.table-wide td::before {
    content: attr(data-label);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    flex: none;
  }
  .table.table-wide td[data-label="Produk"] { display: block; }
  .table.table-wide td[data-label="Produk"]::before { display: none; }
  .cart-table thead, .cart-table tbody, .cart-table th, .cart-table td, .cart-table tr { display: block; }
  .cart-table thead { display: none; }
  .cart-table tbody tr { border-bottom: 1px solid #eeeae0; padding: 12px 0; }
  .cart-table td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
  .cart-table td::before {
    content: attr(data-label);
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  }
  .cart-table td[data-label="Produk"] { display: block; }
  .cart-table td[data-label="Produk"]::before { display: none; }
  .chart { height: 150px; gap: 6px; }
  .chart-value { display: none; }
  .pagination .page-btn { min-width: 36px; height: 36px; padding: 0 10px; font-size: 12px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .brand-text small { display: none; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 14px; gap: 8px; }
  .product-title { font-size: 1rem; }
  .product-desc { display: none; }
  .price { font-size: 1.1rem; }
  .product-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .head-row { align-items: flex-start; flex-direction: column; }
  .owned-grid { grid-template-columns: 1fr; }
  .file-list li { flex-direction: column; align-items: flex-start; }
}

/* ========================= PEMBAYARAN MANUAL ============================= */
.badge-info { background: #e7f0fb; color: #1d5aa8; }
.text-bad { color: var(--bad); }
.pill-method {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-deep);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 11.5px;
}
.panel .pill-method { background: #f6efd9; color: #7a5c11; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--warn-bg); color: var(--warn);
  font-size: 12px; font-weight: 600;
}
.chip-bad { background: var(--bad-bg); color: var(--bad); }

/* pilihan metode di checkout */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.method-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fbf9f4;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.method-card:hover { border-color: var(--gold); }
.method-card.is-selected { border-color: var(--gold-deep); background: #fdf7e6; box-shadow: 0 0 0 3px rgba(212,175,55,.14); }
.method-card input[type="radio"] { accent-color: var(--gold-deep); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.method-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: #f1ead6; color: var(--gold-deep); font-size: 17px; flex: none;
}
.method-body { display: flex; flex-direction: column; gap: 3px; }
.method-body strong { font-size: 14px; color: var(--text); }
.method-body small { font-size: 12px; color: var(--muted); }

/* instruksi & QRIS */
.pay-panel { border: 1px solid rgba(212, 175, 55, 0.35); }
.amount-due { font-size: 13px; color: var(--muted); }
.amount-due strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-deep); }
.qris-box { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; margin: 8px 0 20px; }
.qris-img {
  display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #fff; padding: 10px;
}
.qris-img img { width: 100%; height: auto; display: block; border-radius: 6px; }
.qris-meta { display: grid; gap: 10px; align-content: start; }
.qris-meta div { background: #fbf9f4; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.qris-meta span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.qris-meta strong { font-size: 14px; }
.instruction { margin: 18px 0; padding: 16px 18px; border-radius: 12px; background: #fbf9f4; border: 1px solid var(--line); }
.instruction h3 { font-size: 1rem; margin-bottom: 8px; }
.instruction .prose { color: #433f36; font-size: 13.6px; }

/* bukti pembayaran */
.proof-current {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px dashed var(--line); background: #fbf9f4; flex-wrap: wrap;
}
.proof-current small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.proof-thumb {
  display: block; width: 74px; height: 74px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #fff; flex: none;
}
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proof-view {
  display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #fff; margin-bottom: 18px;
}
.proof-view img { width: 100%; max-height: 420px; object-fit: contain; background: #f7f5ef; }
.proof-view span {
  display: block; padding: 9px 14px; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line); text-align: center;
}
.qris-preview { max-width: 260px; }
.admin-body .proof-current { background: #fbf9f4; }

/* timeline status */
.timeline { display: grid; gap: 0; margin: 6px 0 4px; }
.timeline-item { display: flex; gap: 14px; padding: 12px 0; position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: 6px; top: 26px; bottom: -2px;
  width: 1.5px; background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.tl-dot {
  width: 13px; height: 13px; border-radius: 50%; flex: none; margin-top: 5px;
  border: 2px solid var(--line); background: #fff;
}
.timeline-item.is-done .tl-dot { background: var(--gold); border-color: var(--gold-deep); }
.timeline-item.is-bad .tl-dot { background: var(--bad); border-color: var(--bad); }
.timeline-item strong { display: block; font-size: 13.5px; }
.timeline-item small { font-size: 12px; color: var(--muted); }

.admin-body .timeline-item::before { background: #eeeae0; }
.admin-body .tl-dot { border-color: #ddd6c8; }

@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; }
  .qris-box { grid-template-columns: 1fr; }
  .qris-img { max-width: 260px; }
}

/* ====================== SETUP ADMINISTRATOR ============================== */
.setup-body { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.setup-wrap { width: 100%; max-width: 520px; }
.setup-brand { justify-content: center; margin-bottom: 26px; }
.setup-brand .brand-text { text-align: left; }
.setup-card {
  background: var(--paper);
  color: var(--text);
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.setup-card h1 { font-size: 1.9rem; margin-bottom: 10px; }
.setup-card .muted { color: var(--muted); font-size: 13.6px; }
.setup-card .eyebrow { margin-bottom: 10px; }
.setup-card .hint { color: var(--muted); }
.setup-card .notice { color: var(--text); font-size: 13px; }
.setup-card .notice strong { color: #6b4a0c; }
.setup-card .alert-error { color: var(--bad); }
.setup-card .alert-error ul { margin: 6px 0 0 16px; }
.code-block {
  display: block;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #14120b;
  color: var(--gold-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  overflow-x: auto;
}
.setup-card code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.setup-foot { text-align: center; font-size: 11.5px; color: var(--page-muted); margin-top: 20px; }
.setup-card .field > span { color: var(--text); }
@media (max-width: 480px) { .setup-card { padding: 24px; } }

/* tautan masuk admin — sengaja kecil & hanya di footer */
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px !important;
  color: rgba(212, 175, 55, 0.75) !important;
  letter-spacing: 0.04em;
}
.footer-admin-link::before {
  content: '⚿';
  font-size: 11px;
  opacity: 0.9;
}
.footer-admin-link:hover { color: var(--gold-light) !important; }
