/* ==========================================================================
   Project Live Streaming — stylesheet
   ========================================================================== */

:root {
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;

  --bg: #f2f5f2;
  --bg-2: #e9efea;
  --surface: #ffffff;
  --surface-2: #f8faf8;
  --ink: #0d1a16;
  --ink-2: #25342f;
  --muted: #5f716b;
  --line: #dfe6e1;
  --line-strong: #cbd6cf;

  --brand: #0c7a5c;
  --brand-strong: #075e46;
  --brand-soft: #e4f4ec;
  --brand-ink: #ffffff;
  --accent: #c2410c;
  --accent-soft: #fff1e6;

  --green: #12805c;
  --green-soft: #e3f6ec;
  --amber: #a35c07;
  --amber-soft: #fdf0d9;
  --blue: #1d4ed8;
  --blue-soft: #e8eefc;
  --red: #b42318;
  --red-soft: #fdecea;
  --slate: #475467;
  --slate-soft: #eef1f4;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-xs: 0 1px 2px rgba(13, 26, 22, 0.06);
  --shadow-sm: 0 2px 8px rgba(13, 26, 22, 0.06), 0 1px 2px rgba(13, 26, 22, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(13, 26, 22, 0.18), 0 2px 6px rgba(13, 26, 22, 0.05);
  --shadow-lg: 0 30px 70px -30px rgba(8, 42, 32, 0.35), 0 8px 24px -12px rgba(13, 26, 22, 0.12);

  --ring: 0 0 0 4px rgba(12, 122, 92, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080f0d;
    --bg-2: #0c1512;
    --surface: #101a17;
    --surface-2: #14201c;
    --ink: #e7efeb;
    --ink-2: #c8d5cf;
    --muted: #93a49d;
    --line: #21312b;
    --line-strong: #30443c;

    --brand: #34c79c;
    --brand-strong: #5fd9b4;
    --brand-soft: #11352a;
    --brand-ink: #04221a;
    --accent: #f59e0b;
    --accent-soft: #3a2408;

    --green: #4ade80;
    --green-soft: #0e2f1f;
    --amber: #fbbf24;
    --amber-soft: #3a2a09;
    --blue: #93b4ff;
    --blue-soft: #131f3d;
    --red: #ff8f87;
    --red-soft: #3a1614;
    --slate: #b7c3bd;
    --slate-soft: #1b2723;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
    --ring: 0 0 0 4px rgba(52, 199, 156, 0.2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.main {
  flex: 1 0 auto;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--brand);
  color: var(--brand-ink);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.nowrap {
  white-space: nowrap;
}

.ta-right {
  text-align: right;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.row-center {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.text-danger {
  color: var(--red);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--slate-soft);
  border: 1px solid var(--line);
}

/* ---------------- Latar dekoratif ---------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.aurora span:nth-child(1) {
  width: 620px;
  height: 620px;
  top: -260px;
  right: -140px;
  background: radial-gradient(circle, rgba(12, 122, 92, 0.32), transparent 65%);
}

.aurora span:nth-child(2) {
  width: 520px;
  height: 520px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(194, 65, 12, 0.16), transparent 65%);
}

.aurora span:nth-child(3) {
  width: 380px;
  height: 380px;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.1), transparent 65%);
}

@media (prefers-color-scheme: dark) {
  .aurora span {
    opacity: 0.34;
  }
}

/* ---------------- Tombol ---------------- */

.btn {
  --btn-height: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-height);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none !important;
  transition: transform 0.16s var(--ease), background 0.16s, box-shadow 0.16s, border-color 0.16s, opacity 0.16s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.btn .ico {
  flex: 0 0 auto;
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: var(--brand-ink);
  box-shadow: 0 8px 20px -10px rgba(12, 122, 92, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  border-color: rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  box-shadow: 0 14px 26px -12px rgba(12, 122, 92, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-color: color-mix(in srgb, var(--brand) 20%, transparent);
}

@media (prefers-color-scheme: dark) {
  .btn-soft {
    color: var(--brand);
  }
}

.btn-soft:hover {
  background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 8%);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.btn-wa {
  background: #1f9d55;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 18px -10px rgba(31, 157, 85, 0.7);
}

.btn-wa:hover {
  background: #188a49;
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger-text {
  color: var(--red);
}

.btn-danger-text:hover {
  background: var(--red-soft);
}

.btn-lg {
  --btn-height: 54px;
  padding: 0 26px;
  font-size: 15.5px;
  border-radius: 15px;
}

.btn-sm {
  --btn-height: 36px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 10px;
  gap: 6px;
}

.btn-xs {
  --btn-height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 8px;
  gap: 5px;
}

.btn-block {
  width: 100%;
}

.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  color: var(--brand-ink);
  animation: spin 0.7s linear infinite;
}

.btn-ghost.is-loading::after,
.btn-soft.is-loading::after {
  color: var(--brand);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.icon-btn.danger:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-soft);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------- Header publik ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(12, 122, 92, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-text {
  font-size: 17px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-lg .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.brand-lg .brand-text {
  font-size: 20px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav-link {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color 0.15s, background 0.15s;
}

.topnav-link:hover {
  color: var(--ink);
  background: var(--surface);
}

.topnav-admin {
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--surface);
}

.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 96px;
}

/* ---------------- Footer ---------------- */

.footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-brand {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.footer-note {
  flex: 1;
  min-width: 220px;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
}

/* ---------------- Kartu & form ---------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pad {
  padding: 26px;
}

@media (max-width: 560px) {
  .pad {
    padding: 20px;
  }
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 19px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.label-optional {
  color: var(--muted);
  font-weight: 500;
}

.field-hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.input,
input[type="text"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="email"],
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

.input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f716b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.alert .ico {
  flex: 0 0 auto;
  margin-top: 2px;
}

.alert-error {
  background: var(--red-soft);
  border-color: color-mix(in srgb, var(--red) 24%, transparent);
  color: var(--red);
}

.alert-warn {
  background: var(--amber-soft);
  border-color: color-mix(in srgb, var(--amber) 24%, transparent);
  color: var(--amber);
}

.alert-info {
  background: var(--blue-soft);
  border-color: color-mix(in srgb, var(--blue) 20%, transparent);
  color: var(--blue);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-green {
  background: var(--green-soft);
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 18%, transparent);
}

.badge-amber {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 20%, transparent);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 18%, transparent);
}

.badge-red {
  background: var(--red-soft);
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 18%, transparent);
}

.badge-slate {
  background: var(--slate-soft);
  color: var(--slate);
  border-color: var(--line);
}

.code-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--slate-soft);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent);
}

.pill-amber {
  background: var(--amber-soft);
  border-color: color-mix(in srgb, var(--amber) 22%, transparent);
  color: var(--amber);
}

.pill-blue {
  background: var(--blue-soft);
  border-color: color-mix(in srgb, var(--blue) 22%, transparent);
  color: var(--blue);
}

.pill-green {
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 22%, transparent);
  color: var(--green);
}

.pill-red {
  background: var(--red-soft);
  border-color: color-mix(in srgb, var(--red) 22%, transparent);
  color: var(--red);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex: 0 0 auto;
}

.tone-teal {
  background: var(--brand-soft);
  color: var(--brand);
}

.tone-green {
  background: var(--green-soft);
  color: var(--green);
}

.tone-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.tone-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.tone-red {
  background: var(--red-soft);
  color: var(--red);
}

/* ---------------- Beranda ---------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
  padding: 28px 0 20px;
}

.hero-copy h1 {
  margin: 20px 0 0;
  font-size: clamp(34px, 5.1vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(transparent 66%, color-mix(in srgb, var(--brand) 20%, transparent) 66%);
  padding: 0 2px;
  border-radius: 3px;
}

.lede {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.code-form {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  max-width: 540px;
  flex-wrap: wrap;
}

.code-field {
  position: relative;
  flex: 1 1 240px;
  display: flex;
  align-items: center;
}

.code-prefix {
  position: absolute;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}

.code-input {
  width: 100%;
  height: 58px;
  padding: 0 18px 0 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 15px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.code-input:focus {
  border-color: var(--brand);
  box-shadow: var(--ring);
  outline: none;
}

.code-input::placeholder {
  letter-spacing: 0.12em;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted) 55%, transparent);
}

.hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.hint strong {
  color: var(--ink-2);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 420px;
}

.preview-card {
  position: relative;
  width: min(330px, 100%);
  padding: 22px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border-radius: 26px;
  border: 1px dashed color-mix(in srgb, var(--line-strong) 80%, transparent);
  z-index: -1;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--slate-soft);
  border: 1px solid var(--line);
}

.preview-title {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink-2);
}

.preview-qr {
  width: 74%;
  margin: 16px auto 0;
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  color: #0d1a16;
  border: 1px solid #e6ebe8;
  box-shadow: 0 6px 18px -12px rgba(13, 26, 22, 0.4);
}

.preview-amount {
  margin-top: 18px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.preview-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hero-assure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.float-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.float-chip .ico {
  color: var(--brand);
}

.how {
  margin-top: 88px;
}

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.how-card {
  position: relative;
  overflow: hidden;
}

.how-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.how-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.how-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin-bottom: 18px;
}

.how-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
}

/* ---------------- Halaman produk ---------------- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none !important;
}

.back:hover {
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: start;
}

.product-media {
  overflow: hidden;
  padding: 12px;
  position: sticky;
  top: 92px;
}

.media-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.code-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  border-radius: 9px;
  background: rgba(9, 18, 15, 0.72);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
}

.media-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 6px 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.product-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.product-info h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.035em;
}

.price-lg {
  margin-top: 10px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.desc {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-2);
}

.meta-strong {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.total-row strong {
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  justify-content: center;
  margin-top: 2px;
}

.notice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.notice-card h2 {
  font-size: 21px;
}

.notice-card p {
  color: var(--muted);
}

.notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--amber-soft);
  color: var(--amber);
}

.help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.help-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.help-copy h3 {
  font-size: 16px;
  margin-bottom: 3px;
}

.help-copy p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 44ch;
}

/* ---------------- Halaman pesanan ---------------- */

.order-page {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.order-head {
  padding: 6px 0 4px;
}

.order-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.order-head h1 {
  margin-top: 16px;
  font-size: clamp(26px, 4.2vw, 38px);
  letter-spacing: -0.035em;
}

.order-head .lede {
  margin-top: 10px;
  font-size: 15.5px;
  max-width: 60ch;
}

.order-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  list-style: none;
  padding: 18px 22px;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}

.step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  text-align: center;
}

.step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(-50% + 15px);
  right: calc(50% + 15px);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

.step:first-child::before {
  display: none;
}

.step-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.step-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.step-done .step-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.step-done .step-label {
  color: var(--ink-2);
}

.step-done::before {
  background: var(--brand);
}

.step-current .step-dot {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}

.step-current .step-label {
  color: var(--brand);
  font-weight: 700;
}

.waiting-card,
.success-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.waiting-visual,
.success-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  flex: 0 0 auto;
}

.waiting-visual {
  background: var(--amber-soft);
  color: var(--amber);
}

.success-visual {
  background: var(--green-soft);
  color: var(--green);
}

.waiting-card h2,
.success-card h2 {
  font-size: 19px;
  margin-bottom: 6px;
}

.waiting-card p,
.success-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.waiting-card .btn,
.success-card .btn {
  margin-top: 14px;
}

.pay-card {
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
  box-shadow: 0 20px 50px -30px color-mix(in srgb, var(--brand) 45%, transparent), var(--shadow-sm);
}

.pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 26px;
  align-items: start;
}

.pay-label {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pay-amount {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pay-amount strong {
  font-size: clamp(28px, 4.6vw, 38px);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.pay-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.pay-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pay-steps li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  flex: 0 0 auto;
  margin-top: 1px;
}

.pay-steps li > p {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.pay-steps strong {
  color: var(--ink-2);
}

.qr-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

button.qr-frame {
  cursor: zoom-in;
}

.qr-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.qr-caption {
  margin-top: 9px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.qr-hint {
  margin-top: 3px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

.qr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  padding: 30px;
  background: var(--surface-2);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

.proof-head h3 {
  font-size: 16px;
  margin-bottom: 3px;
}

.proof-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.proof-form .dropzone {
  width: 100%;
}

.proof-form .alert {
  width: 100%;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 132px;
  padding: 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
  overflow: hidden;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.dropzone.has-file {
  border-style: solid;
  border-color: var(--brand);
}

.dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand);
  margin-bottom: 6px;
  box-shadow: var(--shadow-xs);
}

.dropzone-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.dropzone-preview {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
  margin-top: 6px;
  background: var(--surface);
}

.dropzone.has-file .dropzone-icon,
.dropzone.has-file .dropzone-sub {
  display: none;
}

.proof-done {
  width: 100%;
}

.detail-list {
  display: flex;
  flex-direction: column;
}

.detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-row:first-child {
  padding-top: 0;
}

.detail-row dt {
  color: var(--muted);
  font-size: 13.5px;
}

.detail-row dd {
  color: var(--ink-2);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.share-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.lightbox {
  padding: 18px;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  max-width: min(520px, 92vw);
  width: 100%;
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(4, 12, 9, 0.55);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  border-radius: 14px;
  background: #fff;
}

.lightbox p {
  text-align: center;
  margin-top: 12px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 18, 15, 0.65);
  color: #fff;
}

/* ---------------- 404 / error ---------------- */

.notfound {
  max-width: 560px;
  margin: 8vh auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.notfound-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: var(--brand);
  margin-bottom: 6px;
}

.notfound h1 {
  font-size: clamp(28px, 4.4vw, 40px);
  letter-spacing: -0.035em;
}

.notfound .lede {
  max-width: 46ch;
  margin-top: 4px;
}

.code-form-compact {
  justify-content: center;
  margin-top: 22px;
  width: 100%;
}

.code-form-compact .code-field {
  flex: 1 1 200px;
  max-width: 300px;
}

.code-form-compact .code-input {
  height: 50px;
  font-size: 18px;
}

/* ---------------- Toast ---------------- */

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: auto;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}

.toast {
  width: auto;
  max-width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  background: #0b1512;
  color: #f2f7f4;
  font-size: 13.5px;
  font-weight: 550;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  text-align: center;
}

.toast.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-error {
  background: #7d1d16;
}

.toast-info {
  background: #1e3a5f;
}

/* ---------------- Panel admin ---------------- */

.page-admin,
.page-auth {
  background: var(--bg);
}

.page-admin .main,
.page-auth .main {
  max-width: none;
  padding: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(14px);
  z-index: 60;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 6px 10px;
}

.sidebar-close {
  display: none;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  text-align: left;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.side-link:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.side-link.is-active {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 20%, transparent);
  color: var(--brand-strong);
  font-weight: 650;
}

@media (prefers-color-scheme: dark) {
  .side-link.is-active {
    color: var(--brand);
  }
}

.side-link .ico {
  flex: 0 0 auto;
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 9, 0.5);
  backdrop-filter: blur(3px);
  z-index: 50;
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.menu-btn {
  display: none;
}

.admin-title {
  flex: 1;
  min-width: 0;
}

.admin-title h1 {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brand), var(--brand-strong));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.admin-user-info strong {
  font-size: 13.5px;
}

.admin-content {
  padding: 26px 28px 60px;
  width: 100%;
  max-width: 1280px;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: panel-in 0.28s var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.panel-head h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.panel-head p {
  margin-top: 4px;
}

.panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.filter-row .search-box {
  max-width: 320px;
  min-width: 200px;
}

.search-box {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 13px;
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.search-box input {
  border: 0;
  background: transparent;
  min-height: 0;
  height: 100%;
  padding: 0;
  font-size: 14px;
  box-shadow: none !important;
}

.search-box input:focus {
  outline: none;
}

.table-card {
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.card-head h2 {
  font-size: 17px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background 0.12s;
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.data-table.is-compact {
  min-width: 620px;
  font-size: 13px;
}

.data-table.is-compact th,
.data-table.is-compact td {
  padding: 10px 13px;
}

.row-click {
  cursor: pointer;
}

.cell-product {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 200px;
}

.cell-product-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cell-product-text strong {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

.cell-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: 0 0 auto;
  background: var(--surface-2);
}

.thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--muted);
  font-size: 15px;
}

.thumb-lg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: 0 0 auto;
  background: var(--surface-2);
}

.row-actions {
  display: inline-flex;
  gap: 5px;
  justify-content: flex-end;
}

.switch {
  position: relative;
  width: 40px;
  height: 23px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  transition: background 0.18s, border-color 0.18s;
}

.switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s var(--ease), background 0.18s;
}

.switch.is-on {
  background: var(--brand);
  border-color: var(--brand);
}

.switch.is-on span {
  transform: translateX(17px);
  background: #fff;
}

/* Statistik */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.stat-label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.stat-foot {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.dash-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-card h2,
.flow-card h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: left;
  color: var(--ink);
  text-decoration: none !important;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.quick-btn:hover {
  border-color: var(--brand);
  background: var(--surface);
  transform: translateY(-1px);
}

.quick-btn > .ico {
  color: var(--brand);
  flex: 0 0 auto;
}

.quick-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.quick-btn strong {
  font-size: 13.5px;
}

.quick-btn small {
  font-size: 11.5px;
  color: var(--muted);
}

.flow-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.flow-list li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  flex: 0 0 auto;
  margin-top: 1px;
}

.flow-list strong {
  font-size: 13px;
}

.flow-list p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 1px;
}

/* Filter & chip */

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* Empty & skeleton */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state .ico {
  color: var(--muted);
  opacity: 0.7;
}

.empty-state h2 {
  font-size: 17px;
  color: var(--ink);
  margin-top: 4px;
}

.empty-state p {
  font-size: 13.5px;
  max-width: 40ch;
}

.empty-state .btn {
  margin-top: 10px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--line) 55%, transparent), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.skeleton-card {
  height: 92px;
}

.skeleton-block {
  height: 280px;
  margin-top: 16px;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

/* Modal */

.modal-root:empty {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px 24px;
  overflow-y: auto;
  background: rgba(4, 12, 9, 0.5);
  backdrop-filter: blur(6px);
  animation: fade-in 0.18s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.modal {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.24s var(--ease);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-lg {
  max-width: 880px;
}

.modal-sm {
  max-width: 420px;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.modal-head p {
  margin-top: 3px;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 0 22px 22px;
}

.modal-actions-left,
.modal-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-actions-right {
  margin-left: auto;
}

.modal-actions-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.modal-actions-column .modal-actions-left,
.modal-actions-column .modal-actions-right {
  margin-left: 0;
  justify-content: flex-end;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 22px;
}

.modal-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.confirm-text {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Image picker */

.image-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.image-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.image-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.image-slot:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.image-slot.has-image {
  border-style: solid;
  border-color: var(--line);
  background: #fff;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
}

.image-slot.has-image .image-placeholder {
  display: none;
}

.image-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: rgba(9, 18, 15, 0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}

.image-slot.has-image .image-remove {
  display: inline-flex;
}

.image-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(2px);
}

.image-slot.is-loading .image-loading {
  display: flex;
}

.image-loading::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid var(--brand);
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}

/* Ringkasan pesanan di modal */

.order-summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.order-summary-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.order-summary-head > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-product {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.price-md {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.proof-block h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.proof-thumb {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
}

.proof-thumb img {
  width: 180px;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.timeline-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 6px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

.timeline-item div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.timeline-item strong {
  font-size: 13px;
}

/* Impor massal */

.bulk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bulk-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bulk-card:first-child {
  grid-column: 1 / -1;
}

.bulk-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bulk-head h2 {
  font-size: 16px;
}

.bulk-head p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.dropzone-sm {
  min-height: 96px;
}

.csv-input {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

.csv-preview:empty {
  display: none;
}

.preview-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  margin-top: 6px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}

.check-row input {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--brand);
  margin: 0;
}

.progress-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 260px;
  overflow-y: auto;
}

.progress-list:empty {
  display: none;
}

.progress-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 11.5px;
}

.progress-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-file {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-state {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.progress-row.is-ok {
  border-color: color-mix(in srgb, var(--green) 28%, transparent);
  background: var(--green-soft);
}

.progress-row.is-ok .progress-state {
  color: var(--green);
}

.progress-row.is-warn {
  border-color: color-mix(in srgb, var(--amber) 28%, transparent);
  background: var(--amber-soft);
}

.progress-row.is-warn .progress-state {
  color: var(--amber);
}

.progress-row.is-err {
  border-color: color-mix(in srgb, var(--red) 28%, transparent);
  background: var(--red-soft);
}

.progress-row.is-err .progress-state {
  color: var(--red);
}

.tips-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 8px;
}

.tips-card h3 .ico {
  color: var(--accent);
}

.tips-card ul {
  padding-left: 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.tips-card li + li {
  margin-top: 2px;
}

.tips-card {
  margin-top: 16px;
}

.error-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
}

.empty-inline {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 13px;
}

/* Pengaturan */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.settings-grid .card h2 {
  font-size: 16px;
  margin-bottom: 14px;
}

.settings-grid .form {
  gap: 14px;
}

.settings-grid .btn {
  align-self: flex-start;
}

/* Halaman auth */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-aside h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 18ch;
}

.auth-aside h2 em {
  font-style: normal;
  color: var(--brand);
}

.auth-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 8px;
}

.auth-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.auth-list .ico {
  color: var(--brand);
  flex: 0 0 auto;
}

.auth-quote {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 2px solid var(--brand);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 46ch;
}

.auth-card {
  padding: 30px;
}

.auth-card h1 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 6px 0 6px;
}

.auth-card .form {
  margin-top: 20px;
}

.auth-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.auth-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 550;
}

/* ---------------- Responsif ---------------- */

@media (max-width: 1080px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    gap: 34px;
  }
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 12px;
  }

  .hero-visual {
    min-height: 0;
    margin: 10px auto 0;
    width: min(360px, 100%);
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-media {
    position: static;
    max-width: 520px;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .how {
    margin-top: 64px;
  }

  .pay-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pay-right {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .settings-grid,
  .bulk-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bulk-card:first-child {
    grid-column: auto;
  }

  .auth-wrap {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .auth-aside {
    display: none;
  }
}

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 268px;
    transform: translateX(-104%);
    transition: transform 0.26s var(--ease);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
  }

  .sidebar.is-open {
    transform: none;
  }

  .sidebar-close {
    display: inline-flex;
  }

  .menu-btn {
    display: inline-flex;
  }

  .admin-content {
    padding: 20px 16px 60px;
  }

  .admin-topbar {
    padding: 13px 16px;
  }

  .admin-user-info {
    display: none;
  }

  .scrim[hidden] {
    display: none;
  }
}

@media (max-width: 700px) {
  .main {
    padding: 26px 16px 72px;
  }

  .topbar-inner {
    padding: 12px 16px;
  }

  .topnav-link {
    padding: 7px 9px;
    font-size: 13px;
  }

  .brand-text {
    max-width: 132px;
    font-size: 15.5px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 8.4vw, 40px);
  }

  .lede {
    font-size: 15.5px;
  }

  .code-form {
    gap: 8px;
  }

  .code-form .btn {
    width: 100%;
  }

  .code-input {
    height: 54px;
    font-size: 20px;
  }

  .preview-card {
    transform: none;
  }

  .preview-card::before {
    display: none;
  }

  .float-chip {
    font-size: 11.5px;
    padding: 7px 10px;
  }

  .form-grid,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
    max-width: none;
  }

  .modal-actions {
    border-radius: 0;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .waiting-card,
  .success-card {
    flex-direction: column;
  }

  .stepper {
    padding: 14px;
  }

  .step {
    min-width: 72px;
  }

  .step-label {
    font-size: 10.5px;
  }

  .panel-actions .btn span,
  .panel-actions .btn {
    flex: 1;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .filter-row {
    align-items: stretch;
  }

  .settings-grid .card h2 {
    font-size: 15.5px;
  }

  .toast {
    border-radius: 14px;
    width: 100%;
  }

  .toast-stack {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    align-items: center;
    width: min(92vw, 480px);
  }
}

@media (max-width: 760px) {
  .toolbar {
    align-items: stretch;
    gap: 10px;
  }

  .toolbar .search-box {
    width: 100%;
  }

  .toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .toolbar-actions .btn {
    flex: 1;
  }

  .toolbar-actions > .muted.small {
    width: 100%;
  }

  .filter-row .toolbar-actions {
    width: 100%;
  }

  .filter-row .search-box {
    max-width: none;
    width: 100%;
  }

  .orders-table,
  .orders-table.is-compact {
    min-width: 0;
  }

  .products-table {
    min-width: 0;
  }

  .products-table th,
  .products-table td,
  .orders-table th,
  .orders-table td {
    padding: 10px 8px;
  }

  .products-table th,
  .products-table td {
    padding: 9px 6px;
  }

  .products-table th {
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }

  .products-table th:nth-child(2),
  .products-table td:nth-child(2),
  .products-table th:nth-child(4),
  .products-table td:nth-child(4),
  .products-table th:nth-child(5),
  .products-table td:nth-child(5) {
    display: none;
  }

  .products-table .cell-product {
    min-width: 0;
    gap: 8px;
  }

  .products-table .thumb {
    width: 34px;
    height: 34px;
  }

  .products-table .cell-product-text strong {
    max-width: 118px;
  }

  .products-table .cell-product-text .muted.small {
    display: none;
  }

  .products-table .row-actions [data-action="copy-product-link"],
  .products-table .row-actions [data-action="delete-product"] {
    display: none;
  }

  .products-table .row-actions .icon-btn {
    width: 30px;
    height: 30px;
  }

  .products-table td:nth-child(3) {
    font-size: 12.5px;
    white-space: nowrap;
  }

  .orders-table th:nth-child(2),
  .orders-table td:nth-child(2),
  .orders-table th:nth-child(3),
  .orders-table td:nth-child(3),
  .orders-table th:nth-child(6),
  .orders-table td:nth-child(6) {
    display: none;
  }

  .orders-table td:nth-child(1) strong {
    font-size: 13px;
  }

  .stat-card {
    padding: 14px 16px;
  }

  .stat-value {
    font-size: 21px;
  }
}

@media (max-width: 480px) {
  .topnav-link:not(.topnav-admin) {
    display: none;
  }

  .brand-text {
    font-size: 15px;
    max-width: 170px;
  }

  .hero-copy h1 {
    font-size: 31px;
  }

  .preview-card {
    padding: 18px;
  }

  .preview-qr {
    width: 70%;
  }
}

/* ---------------- Cetak ---------------- */

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .footer,
  .back,
  .stepper,
  .share-card,
  .help-card,
  .toast-stack,
  .aurora,
  .dropzone,
  #proof-form,
  .btn {
    display: none !important;
  }

  .main {
    padding: 0;
  }

  .card {
    border-color: #ddd;
    box-shadow: none;
    break-inside: avoid;
  }

  .pay-card {
    border-width: 1px;
  }

  .order-page {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Checkout v2 — kode, ongkir, QRIS
   ========================================================================== */

.page-checkout .main {
  padding-top: 34px;
}

.checkout-shell {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkout-shell-narrow {
  max-width: 720px;
}

.flow-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}

.flow-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 130px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.flow-steps li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  margin: 0 8px;
  border-radius: 2px;
  background: var(--line);
}

.flow-steps li.is-done:not(:last-child)::after {
  background: color-mix(in srgb, var(--brand) 55%, var(--line));
}

.flow-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: var(--slate-soft);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  flex: 0 0 auto;
}

.flow-steps .is-active {
  color: var(--brand);
}

.flow-steps .is-active .flow-dot {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 5px 14px -6px rgba(12, 122, 92, 0.7);
}

.flow-steps .is-done {
  color: var(--green);
}

.flow-steps .is-done .flow-dot {
  background: var(--green-soft);
  color: var(--green);
}

.code-entry {
  padding: 38px 34px 30px;
  text-align: center;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}

.code-entry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 14px;
}

.code-entry h1 {
  font-size: 25px;
  letter-spacing: -0.03em;
}

.code-entry > p {
  margin-top: 7px;
  font-size: 14px;
}

.code-entry-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
}

.code-field-lg .code-input {
  height: 62px;
  font-size: 24px;
}

.code-entry-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.code-entry-hint .ico {
  color: var(--brand);
  flex: 0 0 auto;
  margin-top: 2px;
}

.checkout-head {
  padding: 4px 2px;
}

.checkout-head h1 {
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -0.03em;
  margin-top: 10px;
}

.checkout-head p {
  margin-top: 5px;
  font-size: 14px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.checkout-product {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.checkout-product img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.checkout-product h3 {
  font-size: 15px;
  margin: 1px 0 2px;
}

.checkout-summary {
  position: sticky;
  top: 90px;
}

.checkout-summary h2 {
  font-size: 17px;
  margin-bottom: 14px;
}

.summary-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.summary-product-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
}

.summary-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-product > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.summary-product strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-price {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.summary-list {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.summary-list dd {
  color: var(--ink-2);
  font-weight: 600;
  text-align: right;
}

.summary-list .summary-total {
  padding-top: 12px;
  margin-top: 3px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.summary-list .summary-total dd {
  color: var(--brand);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.summary-accent {
  color: var(--brand) !important;
}

.summary-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 14px 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}

.summary-note .ico {
  color: var(--brand);
  flex: 0 0 auto;
  margin-top: 1px;
}

.checkout-summary .btn-block + .btn-block {
  margin-top: 8px;
}

.code-chip-inline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 2px;
}

.pay-head h1 {
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -0.03em;
  margin-top: 9px;
}

.pay-head p {
  margin-top: 4px;
  font-size: 13.5px;
}

.pay-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 17px;
  border-radius: 15px;
  border: 1px solid transparent;
}

.pay-banner > .ico {
  flex: 0 0 auto;
  margin-top: 1px;
}

.pay-banner strong {
  display: block;
  font-size: 14.5px;
}

.pay-banner p {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
}

.pay-banner-amber {
  background: var(--amber-soft);
  border-color: color-mix(in srgb, var(--amber) 24%, transparent);
  color: var(--amber);
}

.pay-banner-blue {
  background: var(--blue-soft);
  border-color: color-mix(in srgb, var(--blue) 20%, transparent);
  color: var(--blue);
}

.pay-banner-green {
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 22%, transparent);
  color: var(--green);
}

.pay-banner-red {
  background: var(--red-soft);
  border-color: color-mix(in srgb, var(--red) 22%, transparent);
  color: var(--red);
}

.countdown-line {
  margin-top: 7px !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.countdown-line strong {
  display: inline;
  font-family: var(--font-mono);
  font-size: 13px;
}

.pay-grid-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.qris-card {
  text-align: center;
}

.qris-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.qris-card .qr-frame {
  max-width: 330px;
  margin: 0 auto;
}

.qr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 240px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  background: var(--surface-2);
  padding: 24px;
  text-align: center;
}

.pay-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pay-side h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.pay-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pay-actions .alert {
  margin: 0;
}

.audit-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audit-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.audit-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
  flex: 0 0 auto;
}

.audit-list div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.audit-list strong {
  font-size: 13px;
}

@media (max-width: 900px) {
  .checkout-grid,
  .pay-grid-v2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-summary {
    position: static;
  }

  .pay-right {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .code-entry {
    padding: 28px 20px 24px;
  }

  .flow-steps {
    padding: 12px;
  }

  .flow-steps li {
    min-width: 46px;
  }

  .flow-steps li > span:last-child {
    display: none;
  }

  .checkout-grid {
    gap: 14px;
  }
}

/* Perbaikan field kode pada halaman verifikasi */
.code-entry-form .code-field {
  flex: 0 0 auto;
  width: 100%;
}

.code-entry-form .code-input {
  width: 100%;
}
