/* ==========================================================================
   Fhmii Store — style.css
   Murni CSS custom, TANPA Tailwind. Token warna via CSS variables (tema
   dark & light), tipografi Space Grotesk (display) + Inter (body) +
   JetBrains Mono (data/harga).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg: #FFFFFF;
  --surface: #EFF6FF;
  --surface-2: #DCEAFE;
  --accent: #3B82F6;
  --accent-2: #60A5FA;
  --text: #0F172A;
  --text-muted: #6B7280;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1152px;
}

[data-theme="dark"] {
  --bg: #0B0F19;
  --surface: #101B33;
  --surface-2: #16213F;
  --accent: #8B5CF6;
  --accent-2: #1E3A8A;
  --text: #F3F4F6;
  --text-muted: #9CA3AF;
  --border: rgba(243, 244, 246, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  transition: background-color 0.35s ease, color 0.35s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.font-display { font-family: var(--font-display); letter-spacing: -0.02em; }
.font-mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }

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

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 32px;
  width: 32px;
  border-radius: 10px;
  object-fit: cover;
}
.brand-logo-fallback {
  height: 32px;
  width: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  height: 36px;
  width: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px 20px;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid var(--border);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 10px 0; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; }
.hero-blob {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 60%),
              radial-gradient(circle at 75% 20%, var(--accent), transparent 55%);
  opacity: 0.5;
  filter: blur(60px);
  pointer-events: none;
  transition: opacity 0.6s ease;
}
[data-theme="dark"] .hero-blob { opacity: 0.35; }
.hero-inner { position: relative; padding: 64px 0 80px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-content { max-width: 640px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--surface); }

/* ---- Portal pills (signature) ---- */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 64px;
}
.portal-pill {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.portal-pill:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.portal-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.portal-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0; }
.portal-desc { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.portal-arrow { flex-shrink: 0; color: var(--accent); }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.section-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 0; }
.section-link { font-size: 14px; font-weight: 500; white-space: nowrap; }
.section-link:hover { color: var(--accent); }

/* ---- Product grid & card ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.product-thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-badge.digital { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.product-badge.food { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.product-rating .count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-left: 4px; }
.star { width: 14px; height: 14px; color: #fbbf24; }
.star.empty { color: rgba(156, 163, 175, 0.4); }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.product-price { font-family: var(--font-mono); font-weight: 600; font-size: 15px; }
.product-cta { font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 999px; }

/* ---- Empty / skeleton states ---- */
.state-message { grid-column: 1 / -1; text-align: center; padding: 64px 0; color: var(--text-muted); }
.state-message .title { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; color: var(--text); }
.state-message p { font-size: 14px; margin: 0; }
.skeleton-card { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.skeleton-thumb { aspect-ratio: 4 / 5; }
.skeleton-lines { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { height: 12px; border-radius: 6px; }
.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-33 { width: 33%; }
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Trust strip ---- */
.trust {
  padding: 56px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.trust-number { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 0; }
.trust-label { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }

/* ---- Footer ---- */
.footer { padding: 56px 0; }
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-copyright { font-size: 13px; color: var(--text-muted); margin: 32px 0 0; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .product-card, .product-thumb img, .portal-pill, .btn-primary, .hamburger span { transition: none !important; }
  .skeleton { animation: none; }
}

/* ---- Page header & filter tabs (produk.html) ---- */
.page-hero { padding: 48px 0 32px; }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; margin: 0 0 8px; }
.page-subtitle { font-size: 14px; color: var(--text-muted); margin: 0; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 32px; }
.filter-tab {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.filter-tab:hover { border-color: var(--accent); color: var(--text); }
.filter-tab.active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
}
@media (min-width: 768px) {
  .page-title { font-size: 36px; }
}
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .nav-links { display: flex; }
  .hamburger-wrap { display: none; }
  .hero-inner { padding: 96px 0 112px; }
  .hero-title { font-size: 48px; line-height: 1.1; }
  .hero-subtitle { font-size: 16px; }
  .portal-grid { grid-template-columns: repeat(2, 1fr); margin-top: 80px; }
  .section { padding: 80px 0; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (max-width: 767px) {
  .nav-links { display: none; }
}

/* ---- Admin panel ---- */
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.admin-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-main { flex: 1; padding: 32px 0 64px; }
.login-box {
  max-width: 360px;
  margin: 80px auto 0;
  padding: 32px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.login-box .icon-circle {
  width: 48px; height: 48px; border-radius: 999px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
}
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; }
.form-error { font-size: 13px; color: #f87171; margin: -8px 0 16px; min-height: 16px; }
.btn-block { width: 100%; justify-content: center; }

.admin-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.admin-card h2 { font-family: var(--font-display); font-size: 18px; margin: 0 0 20px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; }
.admin-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.admin-list-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.admin-list-item .info { flex: 1; min-width: 0; }
.admin-list-item .name { font-size: 14px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-list-item .meta { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; font-family: var(--font-mono); }
.btn-danger {
  font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.1); color: #f87171;
  flex-shrink: 0;
}
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 12px 20px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.variant-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.variant-row { display: flex; gap: 8px; align-items: center; }
.variant-row input { flex: 1; }
.variant-row input.variant-price { max-width: 120px; }
.variant-remove {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}
.variant-add {
  font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 10px;
  border: 1px dashed var(--border); background: transparent; color: var(--text-muted); width: 100%;
}
.variant-add:hover { border-color: var(--accent); color: var(--text); }

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

/* ---- Produk Detail ---- */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 32px 0 64px; }
.detail-gallery { border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; background: var(--surface-2); }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-badge-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.detail-name { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px; }
.detail-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 13px; color: var(--text-muted); }
.detail-desc { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin: 0 0 20px; }
.detail-price { font-family: var(--font-mono); font-weight: 600; font-size: 26px; margin: 0 0 20px; }

.store-status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.store-status.open { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.store-status.closed { background: rgba(248, 113, 113, 0.12); color: #f87171; }
.store-status .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.option-group { margin-bottom: 20px; }
.option-label { font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text-muted); }
.pill-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-option {
  font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pill-option.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.pill-option .sub { display: block; font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); margin-top: 2px; }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 40px; background: var(--surface); border: none; color: var(--text); font-size: 16px; }
.qty-stepper span { width: 44px; text-align: center; font-family: var(--font-mono); font-size: 14px; }

.detail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.notice-box { font-size: 13px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); margin-bottom: 16px; }

.review-item { padding: 16px 0; border-top: 1px solid var(--border); }
.review-item:first-child { border-top: none; }
.review-head { display: flex; align-items: center; justify-content: between; gap: 8px; margin-bottom: 6px; }
.review-stars { display: flex; gap: 2px; }
.review-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 4px 0 0; }
.star-input { display: flex; gap: 6px; margin-bottom: 12px; }
.star-input button { background: none; border: none; padding: 0; }
.star-input svg { width: 24px; height: 24px; color: rgba(156, 163, 175, 0.4); }
.star-input svg.active { color: #fbbf24; }

@media (min-width: 900px) {
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
}

/* ---- Payment detail panel (produk-detail.html) ---- */
.payment-detail {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0 20px;
}
.payment-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-detail-label { font-size: 12px; color: var(--text-muted); margin: 0 0 2px; }
.payment-detail-value { font-family: var(--font-mono); font-weight: 600; font-size: 16px; margin: 0; }
.copy-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.copy-btn svg { width: 14px; height: 14px; }
.qris-box img { width: 100%; max-width: 220px; border-radius: 12px; display: block; margin: 0 auto; }
.qris-box p { text-align: center; font-size: 12px; color: var(--text-muted); margin: 10px 0 0; }

/* ---- Ikon inline (dipakai gantiin emoji) ---- */
.inline-icon { width: 14px; height: 14px; flex-shrink: 0; vertical-align: -2px; margin-right: 4px; }
.status-done { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #22c55e; }
.contact-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact-line span { display: inline-flex; align-items: center; }

/* ---- Sales chart (admin dashboard) ---- */
.sales-chart { display: flex; align-items: flex-end; gap: 12px; height: 220px; padding-top: 20px; }
.sales-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.sales-bar-value { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-bottom: 6px; white-space: nowrap; }
.sales-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.sales-bar { width: 100%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--accent), var(--accent-2)); min-height: 4px; }
.sales-bar-label { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.stat-card .value { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 0; }
.stat-card .label { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }

@media (min-width: 640px) {
  .stat-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Review profile (lebih rapi, ada avatar) ---- */
.review-item { padding: 16px 0; border-top: 1px solid var(--border); }
.review-item:first-child { border-top: none; padding-top: 0; }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar, .review-avatar-fallback {
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0; object-fit: cover;
}
.review-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.review-meta { min-width: 0; }
.review-name { font-size: 13px; font-weight: 600; margin: 0; }
.review-stars-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.review-stars { display: flex; gap: 1px; color: #fbbf24; }
.review-date { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.review-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; padding-left: 46px; }
.rating-summary-avg { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--text); }

/* ---- Sales area chart (SVG) ---- */
.sales-svg { width: 100%; height: 200px; display: block; }
.sales-chart-labels {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 10px; font-family: var(--font-mono); color: var(--text-muted);
}
.range-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.range-tab {
  font-size: 12px; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
}
.range-tab.active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent; color: #fff;
}
