/* ==========================================================================
   DigiPro Store — design system
   Palette: ink #091a1c · emerald #059669 · cyan #E0F2FE · rose #E11D48
   ========================================================================== */

:root {
  --ink: #091a1c;
  --ink-soft: #123033;
  --ink-2: #1d3a3d;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --cyan: #e0f2fe;
  --cyan-ink: #075985;
  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --bg: #f8fafc;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 24px -12px rgba(9, 26, 28, .18);
  --shadow-lg: 0 24px 60px -32px rgba(9, 26, 28, .35);
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.28rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
pre, code, .mono { font-family: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace; }
small { font-size: .8125rem; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.strong { font-weight: 700; }
.text-rose { color: var(--rose); }
.text-emerald { color: var(--emerald); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 44px 0 12px; }
main > .section:first-child { padding-top: 28px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-emerald { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }
.btn-emerald:hover { box-shadow: 0 12px 26px -14px rgba(5, 150, 105, .9); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-danger { background: var(--rose-soft); color: #b91c3c; border-color: #fecdd3; }
.btn-danger:hover { background: #ffe4e6; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: .98rem; border-radius: 14px; }
.btn-sm { padding: 8px 13px; font-size: .82rem; border-radius: 10px; }
.btn-xs { padding: 6px 10px; font-size: .76rem; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.link-arrow { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.link-arrow span { transition: transform .16s ease; }
.link-arrow:hover span { transform: translateX(3px); }
.link-danger { background: none; border: 0; color: var(--rose); font-weight: 600; cursor: pointer; padding: 0; font-size: .82rem; text-decoration: underline; }
.link-btn { background: none; border: 0; color: var(--cyan-ink); font-weight: 700; cursor: pointer; padding: 0; font-family: inherit; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer;
  transition: all .16s ease;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { border-color: var(--ink); background: #f8fafc; }
.icon-btn-sm { width: 30px; height: 30px; border-radius: 8px; font-size: .8rem; }

/* ---------- Badges / pills / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .01em;
  background: #f1f5f9; color: #334155; border: 1px solid transparent;
}
.badge-cyan { background: var(--cyan); color: var(--cyan-ink); }
.badge-emerald { background: var(--emerald-soft); color: var(--emerald-dark); }
.badge-dark { background: var(--ink); color: #e6f7f2; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: .82rem; font-weight: 600; color: #334155;
  transition: all .16s ease; cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap;
}
.status-success { background: var(--emerald-soft); color: var(--emerald-dark); border-color: #a7f3d0; }
.status-warn { background: var(--amber-soft); color: var(--amber); border-color: #fde68a; }
.status-info { background: var(--cyan); color: var(--cyan-ink); border-color: #bae6fd; }
.status-progress { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.status-danger { background: var(--rose-soft); color: #be123c; border-color: #fecdd3; }
.status-muted { background: #f1f5f9; color: #475569; border-color: var(--line); }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, .45); }
  70% { box-shadow: 0 0 0 7px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--emerald-dark); margin-bottom: 8px;
}
.eyebrow-light { color: #7dd3c0; }
.eyebrow-emerald { color: var(--emerald); }

/* ---------- Cards & forms ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 7px; font-size: .85rem; font-weight: 600; color: #334155; }
.field > span { display: flex; align-items: center; gap: 4px; }
.field em { color: var(--rose); font-style: normal; }
.field .optional { color: var(--muted); font-weight: 500; }
.field small { color: var(--muted); font-weight: 500; font-size: .76rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"],
input[type="url"], input[type="file"], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input[type="file"] { padding: 9px 12px; font-size: .82rem; }
textarea { resize: vertical; min-height: 68px; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .12);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 500; cursor: pointer; color: #334155; }
.check-inline input { width: 16px; height: 16px; accent-color: var(--emerald); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-full { grid-column: 1 / -1; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; }

/* ---------- Top bar / header ---------- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: .78rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-note { color: #99f6e4; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-right a:hover { color: #fff; }
.topbar .dot { color: #475569; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 74px; padding: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(140deg, #123033, #091a1c);
  color: #d1fae5; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -10px rgba(9, 26, 28, .8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.brand-text small { font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.search-form {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 13px;
  padding: 5px 6px 5px 12px; max-width: 620px; margin: 0 auto;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.search-form:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(5, 150, 105, .1); }
.search-icon { display: inline-flex; color: #94a3b8; }
.search-icon svg { width: 17px; height: 17px; }
.search-form input[type="search"] { border: 0; padding: 7px 4px; font-size: .875rem; background: transparent; min-width: 0; }
.search-form input[type="search"]:focus { box-shadow: none; }
.search-form select { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 6px 26px 6px 12px; font-size: .82rem; color: #475569; background-color: transparent; width: auto; max-width: 168px; }
.search-form select:focus { box-shadow: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-order-track { border-color: var(--line-strong); background: #fff; }
.btn-order-track svg { width: 16px; height: 16px; }
.btn-order-track.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.ticker-badge {
  flex-shrink: 0; background: var(--ink); color: #a7f3d0;
  font-size: .62rem; font-weight: 800; letter-spacing: .12em;
  padding: 4px 8px; border-radius: 6px;
}
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-content { display: flex; gap: 56px; width: max-content; animation: ticker 38s linear infinite; }
.ticker-content span { font-size: .82rem; font-weight: 600; color: #475569; white-space: nowrap; }
.ticker:hover .ticker-content { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; padding-top: 26px; }
.carousel {
  position: relative; min-height: 396px; border-radius: var(--radius-xl); overflow: hidden;
  background: radial-gradient(120% 120% at 85% 10%, #166a5b 0%, #0d2f31 45%, #091a1c 100%);
  box-shadow: 0 30px 60px -40px rgba(9, 26, 28, .9);
  isolation: isolate;
}
.slide {
  position: absolute; inset: 0; padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .55s ease, transform .55s ease;
}
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.slide-glow {
  position: absolute; width: 420px; height: 420px; right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(16, 185, 129, .55), transparent 65%);
  filter: blur(20px); z-index: -1;
}
.slide-tag {
  align-self: flex-start; background: rgba(255, 255, 255, .12); border: 1px solid rgba(167, 243, 208, .35);
  color: #a7f3d0; font-size: .68rem; font-weight: 800; letter-spacing: .14em;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.slide h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.65rem); max-width: 15ch; line-height: 1.12; }
.slide h1, .slide p { text-wrap: balance; }
.slide p { color: #cbd5e1; font-size: .95rem; max-width: 46ch; }
.slide-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.slide-note { color: #a7f3d0; font-size: .82rem; font-weight: 600; }
.carousel-nav { position: absolute; left: 44px; bottom: 30px; display: flex; align-items: center; gap: 10px; }
.carousel-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; font-size: 1.1rem;
  display: grid; place-items: center; transition: all .16s ease; line-height: 1;
}
.carousel-arrow:hover { background: rgba(255, 255, 255, .2); }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots button {
  width: 22px; height: 4px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .3); cursor: pointer; padding: 0;
  transition: all .2s ease;
}
.carousel-dots button.is-active { background: #6ee7b7; width: 34px; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
}
.hero-side-card h3 { font-size: .98rem; }
.check-list { display: flex; flex-direction: column; gap: 9px; font-size: .85rem; color: #334155; }
.check-list li { display: flex; gap: 9px; align-items: flex-start; }
.check-ic {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--emerald-soft); color: var(--emerald-dark);
  display: grid; place-items: center; font-size: .66rem; font-weight: 800; margin-top: 2px;
}
.check-list-dark li { color: #334155; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 10px; text-align: center; box-shadow: var(--shadow-sm);
}
.hero-stat strong { display: block; font-size: .95rem; color: var(--ink); letter-spacing: -.02em; }
.hero-stat span { font-size: .68rem; color: var(--muted); font-weight: 600; }

/* ---------- Quick categories ---------- */
.quick-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; }
.quick-cat {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  transition: all .18s ease;
}
.quick-cat:hover { transform: translateY(-2px); border-color: #a7f3d0; box-shadow: var(--shadow); }
.qc-emoji {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, #f0fdfa, #e0f2fe); font-size: 1.1rem;
}
.quick-cat strong { display: block; font-size: .87rem; }
.quick-cat small { color: var(--muted); font-size: .72rem; }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.section-head p { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 20px; }
.product-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d7e3ea; }
.ribbon {
  position: absolute; top: 14px; right: -1px;
  background: linear-gradient(135deg, #059669, #10b981); color: #fff;
  font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px 4px 12px; border-radius: 999px 0 0 999px;
  box-shadow: -4px 6px 16px -10px rgba(5, 150, 105, .9);
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product-icon {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.5rem; color: #e6fffb;
  font-weight: 800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.product-icon-sm { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
.product-icon-lg { width: 76px; height: 76px; border-radius: 20px; font-size: 2.1rem; }
.product-badges { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 65%; }
.product-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #94a3b8; }
.product-name { font-size: 1.02rem; letter-spacing: -.02em; }
.product-name a:hover { color: var(--emerald-dark); }
.product-tagline { font-size: .82rem; color: var(--muted); line-height: 1.5; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.rating { color: #b45309; }
.meta-dot { color: #cbd5e1; }
.card-body { display: flex; flex-direction: column; gap: 8px; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 4px; }
.price-block { display: flex; flex-direction: column; }
.price-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.price-now { font-size: 1.22rem; font-weight: 800; color: var(--emerald); letter-spacing: -.03em; }
.price-old { font-size: .82rem; color: #94a3b8; text-decoration: line-through; font-weight: 600; }
.stock-note { font-size: .74rem; font-weight: 600; }
.stock-low { color: var(--rose); }
.stock-out { color: var(--rose); }
.stock-ok { color: var(--muted); }
.card-cta { margin-top: 2px; }
.card-cta svg { transition: transform .18s ease; }
.card-cta:hover svg { transform: translateX(3px); }

/* ---------- How it works ---------- */
.how-card {
  background: radial-gradient(120% 140% at 100% 0%, #123033 0%, #091a1c 55%);
  border-radius: var(--radius-xl); padding: 38px 40px; color: #e2e8f0;
  display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: center;
  box-shadow: 0 30px 60px -45px rgba(9, 26, 28, .9);
}
.how-head h2 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.how-head p { color: #94a3b8; font-size: .88rem; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-steps li { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius); padding: 18px; }
.step-no { font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 700; color: #6ee7b7; }
.how-steps h3 { color: #fff; font-size: .92rem; margin: 6px 0; }
.how-steps p { color: #94a3b8; font-size: .8rem; line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--ink); color: #94a3b8; padding: 48px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.brand-light .brand-mark { background: rgba(255, 255, 255, .08); color: #a7f3d0; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #64748b; }
.footer-brand p { font-size: .85rem; margin-top: 14px; max-width: 34ch; }
.footer-muted { color: #64748b; font-size: .78rem; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: .85rem; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.footer-col a:hover { color: #a7f3d0; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chips span { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #e2e8f0; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 14px; font-size: .76rem; color: #64748b; flex-wrap: wrap; }

/* ---------- Flash / alerts ---------- */
.flash-wrap { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; border-radius: 12px; font-size: .86rem; font-weight: 600;
  border: 1px solid var(--line); background: #fff; margin-bottom: 12px;
}
.flash-success { background: var(--emerald-soft); border-color: #a7f3d0; color: var(--emerald-dark); }
.flash-error { background: var(--rose-soft); border-color: #fecdd3; color: #be123c; }
.flash-info { background: var(--cyan); border-color: #bae6fd; color: var(--cyan-ink); }
.flash-close { background: none; border: 0; font-size: 1.1rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.flash-close:hover { opacity: 1; }
.alert { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border-radius: var(--radius); font-size: .87rem; border: 1px solid var(--line); margin-bottom: 18px; }
.alert strong { font-size: .9rem; }
.alert-success { background: var(--emerald-soft); border-color: #a7f3d0; color: #065f46; }
.alert-info { background: var(--cyan); border-color: #bae6fd; color: var(--cyan-ink); }
.alert-danger { background: var(--rose-soft); border-color: #fecdd3; color: #9f1239; }
.info-box { background: #f8fafc; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 16px; font-size: .85rem; margin: 14px 0; }
.info-box strong { display: block; margin-bottom: 4px; color: var(--ink); }
.info-box p { color: #475569; }
.empty-state { text-align: center; padding: 56px 24px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-emoji { font-size: 2.2rem; }
.empty-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.empty-mini { padding: 22px; text-align: center; color: var(--muted); font-size: .86rem; }

/* ---------- Product detail ---------- */
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb strong { color: var(--ink); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) 388px; gap: 24px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.detail-head { display: flex; gap: 18px; padding: 24px; align-items: flex-start; }
.detail-head-text { display: flex; flex-direction: column; gap: 7px; }
.detail-head-text h1 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.detail-head-text p { color: var(--muted); font-size: .88rem; }
.detail-head .product-badges { justify-content: flex-start; max-width: none; margin-bottom: 2px; }
.detail-block { padding: 24px; }
.detail-block h2 { font-size: 1.08rem; margin-bottom: 10px; }
.prose { display: flex; flex-direction: column; gap: 10px; font-size: .88rem; color: #334155; line-height: 1.7; }
.variant-grid { display: grid; gap: 10px; margin-top: 14px; }
.variant-option {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; transition: all .16s ease; background: #fff;
}
.variant-option:hover { border-color: var(--line-strong); background: #fcfdfe; }
.variant-option input { position: absolute; opacity: 0; pointer-events: none; }
.variant-info { display: flex; flex-direction: column; gap: 2px; }
.variant-info strong { font-size: .9rem; }
.variant-info small { color: var(--muted); font-size: .76rem; }
.variant-price { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; }
.variant-price s { color: #94a3b8; font-size: .76rem; }
.variant-price strong { color: var(--emerald); font-size: 1rem; }
.variant-check {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; color: transparent; font-size: .68rem; flex-shrink: 0; transition: all .16s ease;
}
.variant-option.is-selected { border-color: var(--ink); background: #f8fafc; box-shadow: 0 0 0 3px rgba(9, 26, 28, .06); }
.variant-option.is-selected .variant-check { background: var(--ink); border-color: var(--ink); color: #fff; }
.variant-option.is-disabled { opacity: .5; cursor: not-allowed; }
.detail-side { position: sticky; top: 96px; }
.order-card { padding: 24px; display: flex; flex-direction: column; gap: 15px; }
.order-card-head .eyebrow { margin-bottom: 2px; }
.order-card-head h2 { font-size: 1.15rem; }
.selected-summary { display: flex; flex-direction: column; gap: 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .84rem; }
.selected-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.selected-summary .muted { font-size: .78rem; }
.pay-summary { border-top: 1px dashed var(--line-strong); padding-top: 14px; display: flex; flex-direction: column; gap: 7px; font-size: .85rem; }
.pay-summary .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pay-summary .row.total { font-size: 1rem; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.pay-summary .row.total strong { font-size: 1.15rem; color: var(--emerald); letter-spacing: -.02em; }
.pay-summary .small { font-size: .76rem; }
.fine-print { font-size: .72rem; color: var(--muted); line-height: 1.5; }
.wa-link { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .82rem; font-weight: 700; color: #475569; padding-top: 2px; }
.wa-link svg { width: 17px; height: 17px; }
.wa-link:hover { color: var(--emerald-dark); }

/* ---------- Invoice ---------- */
.invoice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.invoice-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.invoice-head .mono { font-size: .82em; color: var(--muted); font-weight: 700; }
.invoice-head-right { display: flex; align-items: center; gap: 10px; }
.invoice-grid { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 22px; align-items: start; }
.invoice-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.invoice-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; min-width: 0; }
.steps-card { padding: 20px 24px; }
.status-steps { display: flex; align-items: center; gap: 4px; }
.status-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.status-steps li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.status-steps li:first-child::before { display: none; }
.status-steps li.is-done::before, .status-steps li.is-active::before { background: #a7f3d0; }
.step-dot {
  width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center;
  background: #f1f5f9; color: #94a3b8; font-size: .78rem; font-weight: 800; position: relative; z-index: 1;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.is-done .step-dot { background: var(--emerald); color: #fff; box-shadow: 0 0 0 1px var(--emerald); }
.is-active .step-dot { background: var(--ink); color: #fff; box-shadow: 0 0 0 1px var(--ink); }
.step-label { font-size: .73rem; font-weight: 700; color: var(--muted); }
.is-active .step-label { color: var(--ink); }
.is-done .step-label { color: var(--emerald-dark); }
.pay-card, .upload-card, .delivery-card { padding: 24px; }
.pay-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.pay-card-head h2 { font-size: 1.12rem; margin-bottom: 4px; }
.pay-card-head p { font-size: .84rem; }
.amount-box {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, #ecfdf5, #f0fdfa); border: 1px solid #a7f3d0;
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px;
}
.amount { display: block; font-size: 1.7rem; font-weight: 800; color: var(--emerald-dark); letter-spacing: -.03em; line-height: 1.2; }
.amount-detail { font-size: .76rem; color: #047857; font-weight: 600; }
.amount-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.qris-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; background: #fff; }
.qris-panel img { width: 100%; max-width: 240px; margin: 0 auto 10px; border-radius: 10px; border: 1px solid var(--line); }
.qris-placeholder {
  min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed var(--line-strong); border-radius: 12px; background: #f8fafc; color: var(--muted);
  font-size: .82rem; font-weight: 600; padding: 16px; margin-bottom: 12px;
}
.qris-placeholder.small { min-height: 140px; font-size: .78rem; }
.qris-meta { display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; }
.qris-meta strong { font-size: .85rem; }
.qris-meta span { font-size: .72rem; color: var(--muted); }
.qris-actions { display: flex; flex-direction: column; gap: 6px; }
.bank-panel h3 { font-size: .92rem; margin-bottom: 12px; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #f8fafc; }
.bank-name { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bank-number { display: block; font-size: 1.2rem; letter-spacing: .02em; font-family: ui-monospace, monospace; }
.bank-row .muted { font-size: .76rem; }
.pay-steps { margin-top: 16px; }
.pay-steps h4 { font-size: .82rem; margin-bottom: 6px; }
.pay-steps ol { list-style: decimal; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: #475569; }
.upload-head { margin-bottom: 14px; }
.upload-head h2 { font-size: 1.08rem; }
.upload-form { display: flex; flex-direction: column; gap: 12px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: #f8fafc;
  padding: 26px 18px; cursor: pointer; transition: all .16s ease; text-align: center;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--emerald); background: var(--emerald-soft); }
.dropzone input { display: none; }
.dropzone-icon { font-size: 1.3rem; }
.dropzone strong { font-size: .85rem; }
.dropzone small { color: var(--muted); font-size: .75rem; }
.upload-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.cancel-form { margin-top: 14px; }
.proof-preview { display: flex; gap: 8px; align-items: center; font-size: .84rem; margin-bottom: 14px; flex-wrap: wrap; }
.proof-preview a { color: var(--emerald-dark); font-weight: 700; text-decoration: underline; }
.delivery-card { border-color: #a7f3d0; background: linear-gradient(180deg, #f0fdf9, #fff 45%); }
.delivery-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.delivery-head h2 { font-size: 1.15rem; margin-bottom: 4px; }
.delivery-emoji { font-size: 1.8rem; }
.credential-box {
  background: var(--ink); color: #d1fae5; border-radius: var(--radius); padding: 18px;
  font-size: .85rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word;
  overflow-x: auto; margin: 0 0 14px; border: 1px solid #123033;
}
.credential-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-note { font-size: .82rem; color: #475569; background: #f8fafc; border-left: 3px solid var(--emerald); padding: 10px 14px; border-radius: 0 8px 8px 0; margin-top: 14px; }
.summary-card, .timeline-card, .help-card { padding: 22px; }
.summary-card h2, .timeline-card h2 { font-size: 1rem; margin-bottom: 14px; }
.summary-product { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.summary-product strong { display: block; font-size: .9rem; }
.summary-product small { color: var(--muted); font-size: .76rem; }
.summary-list { display: flex; flex-direction: column; gap: 9px; font-size: .82rem; margin: 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 14px; }
.summary-list dt { color: var(--muted); font-weight: 500; }
.summary-list dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.summary-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line-strong); margin-top: 14px; padding-top: 14px; font-size: .9rem; font-weight: 700; }
.summary-total strong { font-size: 1.15rem; color: var(--emerald); }
.summary-card .btn-block { margin-top: 14px; }
.timeline { display: flex; flex-direction: column; gap: 16px; position: relative; padding-left: 4px; }
.timeline li { display: flex; gap: 12px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: -16px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--emerald); flex-shrink: 0; margin-top: 5px; box-shadow: 0 0 0 3px var(--emerald-soft); }
.timeline strong { display: block; font-size: .85rem; }
.timeline small { color: var(--muted); font-size: .73rem; }
.timeline p { font-size: .78rem; color: #64748b; margin-top: 2px; }
.help-card p { font-size: .82rem; color: var(--muted); margin: 6px 0 14px; }

/* ---------- Track page ---------- */
.track-hero {
  background: radial-gradient(120% 140% at 90% 0%, #14504a 0%, #0d2f31 45%, #091a1c 100%);
  border-radius: var(--radius-xl); padding: 46px 40px; color: #e2e8f0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.track-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.track-hero > p { color: #94a3b8; font-size: .9rem; max-width: 54ch; }
.track-form {
  display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 14px;
  padding: 6px 6px 6px 14px; margin-top: 18px; width: 100%; max-width: 560px;
}
.track-form input { border: 0; background: transparent; font-size: .92rem; }
.track-form input:focus { box-shadow: none; }
.track-hints { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: .76rem; color: #94a3b8; margin-top: 10px; }
.track-hints .link-btn { color: #6ee7b7; }
.track-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.track-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.track-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .78rem; flex-wrap: wrap; }
.track-invoice { font-weight: 700; color: var(--ink); }
.track-card-body { display: flex; align-items: center; gap: 12px; }
.track-info { display: flex; flex-direction: column; min-width: 0; }
.track-info strong { font-size: .9rem; }
.track-info small { color: var(--muted); font-size: .76rem; }
.track-total { margin-left: auto; text-align: right; }
.track-total span { display: block; font-size: .7rem; }
.track-total strong { color: var(--emerald); font-size: .95rem; }
.track-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.benefit span { font-size: 1.5rem; }
.benefit h3 { margin: 8px 0 4px; font-size: .95rem; }
.benefit p { font-size: .83rem; color: var(--muted); }

/* ---------- Auth ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1000px 600px at 15% 0%, #ecfdf5, transparent), radial-gradient(900px 500px at 90% 100%, #e0f2fe, transparent), var(--bg); padding: 32px 20px; }
.auth-wrap { width: 100%; max-width: 430px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 10px; }
.auth-card h1 { font-size: 1.4rem; margin-top: 12px; }
.auth-card > .muted { font-size: .85rem; margin-bottom: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.auth-hint { background: #f8fafc; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 12px 14px; font-size: .78rem; color: #475569; display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.auth-hint code { background: #fff; border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; font-size: .76rem; }
.auth-hint small { color: var(--muted); }
.auth-back { font-size: .8rem; color: var(--muted); font-weight: 600; text-align: center; margin-top: 6px; }
.auth-back:hover { color: var(--ink); }

/* ---------- Admin shell ---------- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
  background: var(--ink); color: #cbd5e1; padding: 22px 18px;
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 4px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-brand .brand-mark { background: rgba(255, 255, 255, .1); color: #a7f3d0; }
.admin-brand strong { display: block; color: #fff; font-size: .92rem; }
.admin-brand small { font-size: .68rem; color: #64748b; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: .86rem; font-weight: 600; color: #cbd5e1; transition: all .16s ease;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav a.is-active { background: linear-gradient(100deg, #10b981, #059669); color: #fff; box-shadow: 0 10px 22px -14px rgba(16, 185, 129, .9); }
.nav-ic { width: 20px; text-align: center; font-size: .95rem; }
.nav-badge { margin-left: auto; background: rgba(255, 255, 255, .18); color: #fff; font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.admin-nav a.is-active .nav-badge { background: rgba(9, 26, 28, .3); }
.admin-sidebar-foot { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; }
.admin-store-link { font-size: .8rem; font-weight: 600; color: #94a3b8; }
.admin-store-link:hover { color: #a7f3d0; }
.admin-user { display: flex; align-items: center; gap: 9px; font-size: .78rem; }
.admin-user .avatar { width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .1); color: #a7f3d0; display: grid; place-items: center; font-weight: 800; font-size: .82rem; flex-shrink: 0; }
.admin-user strong { display: block; color: #fff; font-size: .8rem; }
.admin-user small { color: #64748b; font-size: .7rem; display: block; overflow: hidden; text-overflow: ellipsis; max-width: 132px; }
.logout-link { margin-left: auto; font-size: .72rem; color: #94a3b8; font-weight: 700; }
.logout-link:hover { color: #fda4af; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex; align-items: center; gap: 16px; padding: 18px 28px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.admin-titles h1 { font-size: 1.22rem; }
.admin-titles p { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.admin-topbar-actions { margin-left: auto; display: flex; gap: 8px; }
.sidebar-toggle { display: none; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; width: 38px; height: 38px; cursor: pointer; font-size: 1rem; }
.admin-content { padding: 24px 28px 56px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-scrim { display: none; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow-sm);
}
.stat-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.2; }
.stat-foot { font-size: .76rem; color: var(--muted); font-weight: 600; }
.stat-foot a { color: var(--emerald-dark); }
.stat-dark { background: radial-gradient(120% 140% at 100% 0%, #14504a, #091a1c); border-color: #123033; }
.stat-dark .stat-label { color: #7dd3c0; }
.stat-dark .stat-value { color: #fff; }
.stat-dark .stat-foot { color: #94a3b8; }
.stat-warn { border-color: #fde68a; background: linear-gradient(180deg, #fffbeb, #fff 60%); }
.stat-warn .stat-label { color: var(--amber); }
.admin-grid-2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.admin-grid-detail { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
.admin-detail-main, .admin-detail-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.admin-card { padding: 22px; }
.admin-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.admin-card-head h2 { font-size: 1.02rem; }
.admin-card-head p { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.admin-card > .admin-card-head + form { margin-top: 4px; }
.block-title { font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 12px; }
.detail-total { font-size: 1.3rem; color: var(--emerald); letter-spacing: -.03em; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid > div { display: flex; flex-direction: column; gap: 1px; }
.detail-grid .muted { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.detail-grid strong { font-size: .88rem; }
.proof-block { margin-top: 16px; }
.proof-block h3 { font-size: .9rem; margin-bottom: 10px; }
.proof-thumb img { max-width: 280px; border-radius: var(--radius); border: 1px solid var(--line); }
.detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.action-buttons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); transition: all .16s ease; }
.action-row:hover { border-color: var(--line-strong); background: #f8fafc; }
.action-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.action-main strong { font-size: .85rem; }
.action-main small { font-size: .74rem; color: var(--muted); }
.action-right { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.action-right strong { font-size: .86rem; }
.action-right .status-pill { font-size: .66rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.toolbar-search { display: flex; gap: 8px; }
.toolbar-search input { min-width: 260px; }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.data-table th {
  text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table.compact td { padding: 11px 10px; }
.cell-actions { text-align: right; white-space: nowrap; display: flex; gap: 5px; justify-content: flex-end; align-items: center; }
.table-product { display: flex; align-items: center; gap: 10px; }
.table-product strong { display: block; font-size: .88rem; }
.table-product small { font-size: .72rem; }
.secret { font-size: .76rem; color: #334155; background: #f1f5f9; padding: 2px 6px; border-radius: 5px; display: inline-block; word-break: break-all; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 8px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-value { font-size: .62rem; color: var(--muted); font-weight: 700; height: 12px; white-space: nowrap; }
.chart-bar-wrap { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.chart-bar { width: 100%; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #10b981, #059669); min-height: 4px; transition: height .4s ease; }
.chart-col:hover .chart-bar { background: linear-gradient(180deg, #059669, #047857); }
.chart-label { font-size: .68rem; color: var(--muted); font-weight: 600; }
.top-list { display: flex; flex-direction: column; gap: 14px; }
.top-list li { display: flex; align-items: center; gap: 12px; }
.rank { width: 22px; height: 22px; border-radius: 7px; background: #f1f5f9; color: #475569; display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex-shrink: 0; }
.top-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.top-info strong { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 5px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #10b981, #059669); }
.top-meta { text-align: right; display: flex; flex-direction: column; }
.top-meta strong { font-size: .8rem; }
.top-meta small { font-size: .7rem; color: var(--muted); }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.mode-option { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: all .16s ease; }
.mode-option input { margin-top: 3px; accent-color: var(--emerald); }
.mode-option strong { font-size: .88rem; }
.mode-option p { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.mode-option.is-selected { border-color: var(--ink); background: #f8fafc; }
.qris-editor { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.qris-preview { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #f8fafc; }
.qris-preview img { max-width: 190px; margin: 0 auto 10px; border-radius: 8px; }
.qris-fields { display: flex; flex-direction: column; gap: 14px; }
.slide-editor { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: #fcfdfe; }
.slide-no { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: block; margin-bottom: 10px; }
.slide-editor .form-grid { gap: 12px; }
.variant-table { display: flex; flex-direction: column; gap: 8px; }
.variant-table-head, .variant-row {
  display: grid; grid-template-columns: 1.5fr .85fr .8fr .8fr .55fr .5fr 32px;
  gap: 8px; align-items: center;
}
.variant-table-head span { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; }
.variant-row input[type="text"] { padding: 8px 10px; font-size: .82rem; border-radius: 9px; }
.variant-row .check-inline { justify-content: center; }
.checkbox-grid { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .hero-side-card { flex: 1; }
  .hero-stats { flex: 0 0 220px; }
  .product-detail, .invoice-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-side, .invoice-side { position: static; }
  .how-card { grid-template-columns: 1fr; }
  .admin-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 80; transform: translateX(-102%); transition: transform .22s ease; }
  body.sidebar-open .admin-sidebar { transform: none; }
  body.sidebar-open .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(9, 26, 28, .45); z-index: 70; backdrop-filter: blur(2px); }
  .sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .admin-content { padding: 18px 18px 48px; }
  .admin-topbar { padding: 14px 18px; }
  .admin-grid-detail { grid-template-columns: minmax(0, 1fr); }
  .qris-editor { grid-template-columns: minmax(0, 1fr); }
  .track-benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 18px; min-height: auto; }
  .search-form { order: 3; width: 100%; max-width: none; margin: 0; }
  .header-actions { margin-left: auto; }
  .container { padding: 0 18px; }
  .topbar-inner { min-height: 32px; }
  .topbar-note { display: none; }
  .quick-cats { grid-template-columns: 1fr 1fr; }
  .carousel { min-height: 420px; }
  .slide { padding: 30px 26px 66px; }
  .carousel-nav { left: 26px; bottom: 22px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .pay-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-head { flex-direction: column; }
  .steps-card { overflow-x: auto; }
  .status-steps { min-width: 480px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .mode-switch { grid-template-columns: 1fr; }
  .variant-table-head { display: none; }
  .variant-row {
    grid-template-columns: 1fr 1fr; gap: 8px; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px; background: #fcfdfe;
  }
  .variant-row input[type="text"] { width: 100%; }
  .variant-row > :nth-child(7) { justify-self: end; }
}

@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .section { padding: 32px 0 8px; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-side { flex-direction: column; }
  .hero-stats { flex: none; width: 100%; }
  .quick-cats { grid-template-columns: 1fr; gap: 10px; }
  .how-card { padding: 26px 20px; }
  .how-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .btn-order-track span { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 1.35rem; }
  .track-hero { padding: 32px 20px; }
  .track-form { flex-wrap: wrap; }
  .track-form .btn { width: 100%; }
  .carousel { min-height: 440px; }
  .slide h1 { font-size: 1.6rem; }
  .invoice-head-right { width: 100%; justify-content: space-between; }
  .amount-box { flex-direction: column; align-items: flex-start; }
  .upload-actions .btn { width: 100%; }
  .pay-card, .upload-card, .delivery-card, .order-card, .admin-card, .summary-card, .timeline-card, .help-card { padding: 18px; }
  .detail-head, .detail-block { padding: 18px; }
  .topbar-right { font-size: .72rem; }
  .data-table th, .data-table td { padding: 10px 8px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
  .admin-titles p { display: none; }
  .admin-topbar-actions .btn-ghost { display: none; }
  .toolbar-search { width: 100%; }
  .toolbar-search input { min-width: 0; flex: 1; }
  .action-right strong { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .ticker-content { animation: none; }
}

/* ==========================================================================
   Branding manager — uploaded logo, favicon, navbar heights
   ========================================================================== */
.brand-mark-img {
  background: #fff; border: 1px solid var(--line); padding: 4px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.brand-mark-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.brand-light .brand-mark-img { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }

.site-header.navbar-compact .header-inner { min-height: 62px; padding: 6px 24px; }
.site-header.navbar-compact .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 1rem; }
.site-header.navbar-tall .header-inner { min-height: 90px; padding: 16px 24px; }
.site-header.navbar-tall .brand-mark { width: 50px; height: 50px; border-radius: 15px; font-size: 1.35rem; }

.brand-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.brand-editor-col { display: flex; flex-direction: column; gap: 12px; }
.brand-editor-col .block-title { margin: 0; }
.switch-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 12px;
  font-size: .86rem; font-weight: 600; color: #334155; cursor: pointer;
}
.switch-row input { width: 17px; height: 17px; accent-color: var(--emerald); }

/* ---------- Live image previews ---------- */
.image-editor { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: start; }
.image-editor-fields { display: flex; flex-direction: column; gap: 10px; }
.image-preview {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: #f8fafc; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  min-height: 104px; padding: 12px;
}
.image-preview img { max-height: 118px; width: auto; object-fit: contain; }
.image-preview-square { width: 108px; min-height: 108px; }
.image-preview-square img { max-height: 72px; }
.image-preview-wide img { max-width: 100%; max-height: 96px; }
.image-preview-empty {
  font-size: .78rem; font-weight: 600; color: #94a3b8; text-align: center;
  font-size: 1.1rem;
}
.image-preview[data-image-preview] .image-preview-empty[hidden] { display: none; }

/* ---------- Product thumbnails ---------- */
.product-thumb {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0; overflow: hidden;
  border: 1px solid var(--line); background: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-lg { width: 84px; height: 84px; border-radius: 20px; }

/* ---------- Hero slides with a background image ---------- */
.slide.has-image { justify-content: flex-end; }
.slide-photo {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.slide.has-image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(9, 26, 28, .92) 0%, rgba(9, 26, 28, .78) 45%, rgba(9, 26, 28, .35) 100%);
}

/* ---------- Admin: unlimited stock cell ---------- */
.stock-cell { display: flex; align-items: center; gap: 6px; }
.stock-cell input[type="text"] { min-width: 0; }
.stock-cell input[type="text"][disabled] { background: #f1f5f9; color: #94a3b8; }
.stock-cell .check-inline { flex-shrink: 0; font-size: .8rem; font-weight: 700; color: var(--emerald-dark); }

/* ---------- Admin: rejection presets ---------- */
.preset-block { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.preset-title { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.preset-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-reject {
  border-color: #fecdd3; background: var(--rose-soft); color: #be123c;
  font-size: .76rem; text-align: left; white-space: normal; line-height: 1.35;
}
.chip-reject:hover { border-color: var(--rose); color: #9f1239; background: #ffe4e6; }

/* ---------- Admin: payment verification desk ---------- */
.desk-card { border-color: #bae6fd; box-shadow: 0 18px 40px -32px rgba(7, 89, 133, .55); }
.desk-list { display: flex; flex-direction: column; gap: 12px; }
.desk-row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px;
  align-items: center; padding: 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fcfdff;
}
.desk-proof { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #f1f5f9; display: grid; place-items: center; border: 1px solid var(--line); }
.desk-proof img { width: 100%; height: 100%; object-fit: cover; }
.desk-file { font-size: .72rem; font-weight: 700; color: var(--cyan-ink); text-align: center; padding: 6px; }
.desk-file-empty { color: #94a3b8; font-weight: 500; }
.desk-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.desk-main strong { font-size: .9rem; }
.desk-main small { font-size: .74rem; overflow: hidden; text-overflow: ellipsis; }
.desk-total { font-weight: 800; color: var(--emerald-dark); font-size: .9rem; }
.desk-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.desk-reject { display: flex; gap: 6px; align-items: center; }
.desk-reject select { font-size: .74rem; padding: 7px 26px 7px 9px; max-width: 210px; border-radius: 9px; }

/* ---------- Storefront: purchase notification toast ---------- */
.purchase-toast {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: flex-start; gap: 12px;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 15px; border-radius: 16px;
  background: #ffffff; border: 1px solid var(--line);
  box-shadow: 0 24px 50px -28px rgba(9, 26, 28, .55), 0 2px 6px rgba(15, 23, 42, .05);
  transform: translateY(18px); opacity: 0;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), opacity .35s ease;
  cursor: pointer;
}
.purchase-toast.is-visible { transform: none; opacity: 1; }
.pt-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1.05rem;
  background: linear-gradient(140deg, #ecfdf5, #e0f2fe);
}
.pt-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pt-body strong { font-size: .82rem; color: var(--ink); }
.pt-city { font-weight: 600; color: var(--muted); }
.pt-body p { font-size: .78rem; color: #475569; }
.pt-body p b { color: var(--emerald-dark); font-weight: 700; }
.pt-body small { font-size: .68rem; color: #94a3b8; font-weight: 600; }
.pt-close {
  margin-left: auto; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: .95rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.pt-close:hover { background: #f1f5f9; color: var(--ink); }

@media (max-width: 960px) {
  .brand-editor { grid-template-columns: minmax(0, 1fr); }
  .desk-row { grid-template-columns: 64px minmax(0, 1fr); }
  .desk-proof { width: 64px; height: 64px; }
  .desk-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .image-editor { grid-template-columns: minmax(0, 1fr); }
  .purchase-toast { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .desk-reject { flex: 1 1 100%; }
  .desk-reject select { max-width: none; flex: 1; }
  .preset-list .chip { width: 100%; }
}

/* Small product thumbnail for admin tables */
.product-thumb-sm { width: 36px; height: 36px; border-radius: 10px; }
