:root {
  --primary: #6d2340;
  --primary-dark: #521830;
  --primary-soft: #f3e3e6;
  --gold: #8a6638;
  --bg: #fbf7f3;
  --card: #ffffff;
  --stage: #f3e9e2;
  --text: #2b1a22;
  --muted: #6f5f65;
  --border: #e8dcd5;
  --danger: #b3261e;
  --radius: 6px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; font-variant-numeric: lining-nums; }
select, input, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.container { flex: 1; padding-top: 24px; padding-bottom: 64px; }
.art { width: 100%; height: 100%; display: block; }
.art .s { stroke: rgba(43, 26, 34, .18); stroke-width: 1.5; }
.eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.meta { color: var(--muted); font-size: 13px; }
.meta-lg { color: var(--muted); }
.page-title { margin: 8px 0 20px; font-size: 40px; }
.grow { flex: 1; }

/* Topbar */
.topbar { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--primary); letter-spacing: .02em; }
.nav-main, .nav { display: flex; align-items: center; gap: 20px; font-size: 15px; white-space: nowrap; }
.nav-main a:hover, .nav a:hover, .nav-main a.active, .nav a.active { color: var(--primary); }
.nav-main a.active, .nav a.active { font-weight: 600; }
.search { flex: 1; display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); min-width: 140px; }
.search input { flex: 1; border: 0; padding: 8px 12px; outline: none; min-width: 0; background: transparent; }
.search button { border: 0; background: transparent; color: var(--primary); padding: 0 14px; cursor: pointer; font-weight: 500; }
.badge { display: inline-block; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 0 7px; margin-left: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--primary); background: var(--primary); color: #fff; padding: 9px 18px; border-radius: var(--radius); font-weight: 500; font-size: 15px; cursor: pointer; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { background: var(--primary-soft); }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-block { width: 100%; margin-top: 12px; }
.btn-danger-link { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 14px; padding: 0; }
.link-btn { background: none; border: 0; color: var(--primary); cursor: pointer; padding: 0; text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background-color: var(--hero-bg, var(--stage)); background-size: cover; background-position: center; color: var(--text); border-radius: var(--radius); padding: 56px 48px; }
.hero.is-light { color: #fff; }
.hero.is-light p { color: rgba(255, 255, 255, .86); }
.hero.is-light .eyebrow { color: #e8cfa5; }
.hero.is-light .btn { background: #fff; color: var(--primary); border-color: #fff; }
.hero.is-light .btn:hover { background: var(--primary-soft); }
.hero.is-light .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.hero.is-light .btn-outline:hover { background: rgba(255, 255, 255, .12); }
.hero--reverse .hero-visual { order: -1; }
.hero--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero--center p { margin-left: auto; margin-right: auto; }
.hero--center .actions { justify-content: center; }
.hero--center .hero-visual { max-width: 460px; width: 100%; }
.hero--cover { grid-template-columns: minmax(0, 640px); min-height: 440px; }
.hero--cover .hero-visual { display: none; }
.hero-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); display: block; }
.announce { background: var(--primary); color: #fff; font-size: 14px; text-align: center; padding: 8px 0; }
.announce a { text-decoration: underline; }
img.photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:has(img.photo), .table-thumb:has(img.photo) { padding: 0; overflow: hidden; }
.cat-media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; max-height: 150px; margin: 0 auto; }
.cat-media img.photo { border-radius: var(--radius); }
.field select { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: #fff; }
.hero .hero-title { font-size: 60px; margin: 12px 0 14px; }
.hero p { font-size: 18px; margin: 0; color: var(--muted); max-width: 44ch; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }

/* Sections */
.section { margin-top: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 34px; }
.section-head a { color: var(--primary); text-decoration: underline; font-size: 15px; }
.finder-band { margin-top: 56px; background: var(--primary); color: #fff; border-radius: var(--radius); padding: 44px 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.finder-band h2 { font-size: 40px; margin: 0 0 8px; }
.finder-band p { margin: 0 0 20px; max-width: 46ch; }
.tone-strip { display: flex; height: 120px; border-radius: var(--radius); overflow: hidden; }
.tone-strip span { flex: 1; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { background: var(--stage); border-radius: var(--radius); padding: 24px 24px 16px; text-align: center; transition: background-color .15s; }
.cat-tile:hover { background: var(--primary-soft); }
.cat-tile .art { max-height: 150px; }
.cat-tile span { display: block; margin-top: 10px; font-family: var(--serif); font-size: 26px; font-weight: 600; }

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-note { margin: -8px 0 16px; color: var(--muted); }
.chips, .filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--card); padding: 6px 16px; border-radius: 999px; font-size: 15px; }
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.select { border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 10px; background: var(--card); font-size: 15px; }

/* Grid & cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; }
.thumb { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--stage); border-radius: var(--radius); padding: 14%; }
.card:hover .thumb { background: var(--primary-soft); }
.card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-title { font-size: 17px; font-weight: 500; }
.price { font-weight: 600; font-size: 16px; }
.mini-swatches { display: flex; gap: 4px; margin-top: 4px; }
.mini-swatches i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43, 26, 34, .18); }
.empty { text-align: center; padding: 72px 16px; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 32px; margin: 0 0 16px; }

/* Detail */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--primary); }
.detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.detail-media .thumb { padding: 18%; }
.detail h1 { margin: 6px 0 8px; font-size: 44px; }
.detail .price { font-size: 24px; }
.tone-preview { margin-top: 14px; }
.tones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.tone { height: 64px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.tone-mark { width: 60%; height: 16px; border-radius: 999px; }
.shade-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 20px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(43, 26, 34, .18); }
.swatch.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
.finder-hint { margin: 14px 0 0; }
.finder-hint a { color: var(--primary); text-decoration: underline; }
.qty { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.qty button { border: 0; background: transparent; width: 40px; min-height: 40px; cursor: pointer; font-size: 18px; }
.qty input { width: 48px; text-align: center; border: 0; outline: none; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.actions.compact { margin-top: 8px; }
.actions.center { justify-content: center; }
.info-list { margin-top: 28px; border-top: 1px solid var(--border); }
.info-list details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.info-list summary { cursor: pointer; font-weight: 500; }
.info-list p { margin: 8px 0 0; color: var(--muted); }

/* Shade Finder */
.finder { max-width: 680px; margin: 24px auto 0; }
.finder h1 { font-size: 44px; margin: 16px 0 8px; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.progress span { height: 4px; background: var(--border); border-radius: 2px; }
.progress span.on { background: var(--primary); }
.options { display: grid; gap: 10px; margin: 24px 0 18px; }
.option { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.option:hover, .option.active { border-color: var(--primary); background: var(--primary-soft); }
.option small { display: block; color: var(--muted); font-size: 14px; }
.option strong { font-weight: 500; font-size: 17px; }
.option-color { width: 40px; height: 40px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(43, 26, 34, .18); }
.tip { background: var(--stage); padding: 12px 16px; border-radius: var(--radius); }
.result-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.result-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.result-item:hover { border-color: var(--primary); }
.result-shade { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.result-shade i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43, 26, 34, .18); }
.finder-result .meta { margin-top: 14px; }

/* About */
.about { max-width: 680px; margin: 24px auto 0; }
.about h1 { font-size: 56px; margin: 8px 0 12px; }
.about h2 { font-size: 30px; margin: 32px 0 6px; }
.about p { margin: 0 0 12px; }
.about .btn { margin-top: 20px; }

/* Login & akun */
.auth { max-width: 460px; margin: 24px auto 0; }
.demo-box { margin-top: 20px; }
.demo-box p { margin: 2px 0 10px; }
.demo-account { display: block; width: 100%; text-align: left; background: var(--stage); border: 1px solid transparent; border-radius: var(--radius); padding: 10px 14px; margin-top: 8px; cursor: pointer; }
.demo-account:hover { border-color: var(--primary); }
.demo-account small { display: block; color: var(--muted); font-size: 14px; }

/* Cart / checkout */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel h2 { margin: 0; font-size: 26px; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item:first-child { padding-top: 0; }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.summary-row.divider { border-top: 1px solid var(--border); padding-top: 10px; }
.summary-total { font-weight: 600; font-size: 18px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.sticky { position: sticky; top: 92px; }

/* Forms */
.form-grid { display: grid; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-list { display: grid; gap: 8px; }
.radio { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; }
.error { color: var(--danger); font-size: 14px; }

/* Orders */
.order { border-bottom: 1px solid var(--border); padding: 14px 0; }
.order:first-child { padding-top: 0; }
.order:last-child { border-bottom: 0; padding-bottom: 0; }
.order-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.status { background: var(--primary-soft); color: var(--primary); padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--text); color: #fff; padding: 12px 20px; border-radius: var(--radius); transition: transform .25s, opacity .25s; opacity: 0; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; padding: 18px 0; }

/* ---------- B2B ---------- */
.btn-sm { padding: 6px 14px; font-size: 14px; }
.btn-outline.btn-block { margin-top: 8px; }
.text-link { color: var(--primary); text-decoration: underline; }
.lead { font-size: 18px; color: var(--muted); margin: -8px 0 24px; max-width: 60ch; }
.page-narrow { max-width: 760px; }
.page-narrow h2 { font-size: 30px; margin: 0 0 8px; }
.plain-list { padding-left: 20px; margin: 0 0 12px; }
.plain-list li { margin: 6px 0; }
.block { display: block; }
.right { text-align: right; }
.notice { background: var(--stage); padding: 10px 16px; border-radius: var(--radius); font-size: 15px; margin: -8px 0 16px; }
.notice a { color: var(--primary); text-decoration: underline; }
.tier-badge { display: inline-block; vertical-align: middle; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--primary-soft); color: var(--primary); padding: 1px 8px; border-radius: 999px; margin-left: 6px; font-weight: 600; }
.nav .btn { color: #fff; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.tier.current { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.tier-big { font-family: var(--serif); font-size: 56px; font-weight: 600; line-height: 1; margin-top: 10px; color: var(--primary); }
.tier ul { margin: 16px 0 0; padding-left: 18px; }
.tier li { margin: 4px 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { border-top: 2px solid var(--primary); padding-top: 12px; }
.step-num { font-family: var(--serif); font-size: 30px; color: var(--gold); line-height: 1.2; }
.step strong { display: block; margin-top: 4px; font-weight: 500; font-size: 17px; }
.step p { margin: 4px 0 0; font-size: 14px; }

.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { border: 0; background: var(--card); padding: 7px 14px; cursor: pointer; font-size: 15px; }
.view-toggle button[aria-pressed="true"] { background: var(--primary); color: #fff; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: 13px; color: var(--muted); font-weight: 500; background: var(--bg); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a:hover { color: var(--primary); }
.table-product { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.table-thumb { width: 44px; height: 44px; background: var(--stage); border-radius: var(--radius); padding: 6px; flex: none; }

.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-box { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.tier-row { display: flex; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.tier-row:last-child { border-bottom: 0; }
.tier-row.current { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.margin-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.h-sm { font-size: 28px; margin: 28px 0 2px; }
.detail-media > .meta { margin: 8px 0 0; }

.matrix { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.matrix-row { display: grid; grid-template-columns: 1fr 72px 64px 96px; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.matrix-head { font-size: 13px; color: var(--muted); background: var(--bg); }
.matrix-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.matrix-row.previewing { background: var(--primary-soft); }
.matrix-shade { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; min-height: 32px; }
.matrix-shade:hover { color: var(--primary); }
.matrix-shade i { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(43, 26, 34, .18); }
.matrix-qty { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 8px; text-align: right; background: #fff; }
.matrix-qty:disabled { background: var(--bg); color: var(--muted); }
.out { color: var(--danger); font-size: 13px; }
.matrix-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; flex-wrap: wrap; background: var(--bg); }
.matrix-total strong { font-size: 18px; font-variant-numeric: tabular-nums; }

.min-progress { margin-top: 12px; }
.bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; background: var(--primary); }
button.btn:disabled { opacity: .45; cursor: not-allowed; }

.invoice-actions { margin: 0 auto 16px; max-width: 900px; }
.invoice { max-width: 900px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.invoice-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.invoice-brand { font-family: var(--serif); font-size: 34px; color: var(--primary); font-weight: 600; line-height: 1.1; }
.invoice-meta { text-align: right; display: grid; justify-items: end; gap: 2px; }
.invoice-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0 24px; }
.invoice-sum { margin-left: auto; max-width: 340px; margin-top: 16px; }

@media print {
  .topbar, .footer, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  main.container { padding: 0; max-width: none; }
  .invoice { border: 0; padding: 0; max-width: none; }
  .table-wrap { border: 0; overflow: visible; }
}

@media (max-width: 960px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .nav { margin-left: auto; }
  .grid, .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero, .finder-band, .detail, .two-col { grid-template-columns: 1fr; }
  .hero { padding: 36px 24px; }
  .finder-band { padding: 32px 24px; }
  .hero .hero-title { font-size: 46px; }
  .hero-art { max-width: 380px; }
  .sticky { position: static; }
}
@media (max-width: 600px) {
  .nav-main, .nav { gap: 14px; font-size: 14px; }
  .topbar { position: static; }
  .nav { order: 1; margin-left: auto; }
  .nav-main { order: 2; flex-basis: 100%; }
  .search { order: 3; }
  .grid, .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .row-2, .result-list { grid-template-columns: 1fr; }
  .hero .hero-title { font-size: 40px; }
  .page-title, .detail h1, .finder h1 { font-size: 34px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item > .price { grid-column: 2; }
  .filters, .filters .select { width: 100%; }
  .filters .view-toggle { width: 100%; }
  .view-toggle button { flex: 1; }
  .tiers, .steps, .invoice-cols { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  .matrix-row { grid-template-columns: 1fr 56px 84px; }
  .matrix-row .col-sku { display: none; }
  .detail { gap: 24px; }
  .detail-media .thumb { aspect-ratio: 16 / 10; padding: 6%; }
  .tones .tone { height: 44px; }
  .invoice { padding: 20px; }
  .invoice-meta { text-align: left; justify-items: start; }
}
@media (max-width: 960px) and (min-width: 601px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Banner carousel ---------- */
.hero .hero-title { margin: 12px 0 14px; }
.hero.has-btn .btn:not(.btn-outline) { background: var(--hero-btn); border-color: var(--hero-btn); color: var(--hero-btn-text); }
.hero.has-btn .btn:not(.btn-outline):hover { filter: brightness(.92); }
.hero.has-btn:not(.is-light) .btn-outline { color: var(--hero-btn); border-color: var(--hero-btn); }
.carousel { position: relative; }
.carousel-track { display: grid; touch-action: pan-y; }
.carousel-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.carousel-slide.is-active { opacity: 1; visibility: visible; }
.carousel-slide > .hero { height: 100%; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font-size: 22px; line-height: 1; display: grid; place-items: center; padding: 0 0 3px; }
.carousel-btn:hover { border-color: var(--primary); color: var(--primary); }
.carousel-dots { display: flex; gap: 2px; }
.carousel-dot { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.carousel-dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--border); transition: width .2s, background-color .2s; }
.carousel-dot[aria-current="true"]::before { width: 22px; background: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}

/* ---------- Dialog konfirmasi ---------- */
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1e18; border-color: #8f1e18; }
.ui-dialog { border: 0; padding: 0; border-radius: 10px; background: var(--card); color: var(--text); width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(43, 26, 34, .28); overflow: hidden; }
.ui-dialog::backdrop { background: rgba(43, 26, 34, .48); }
.ui-dialog[open] { animation: ui-dialog-in .18s ease-out; }
@keyframes ui-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.ui-dialog-box { padding: 24px; border-top: 4px solid var(--primary); }
.ui-dialog.is-danger .ui-dialog-box { border-top-color: var(--danger); }
.ui-dialog-title { font-size: 28px; margin: 0 0 8px; }
.ui-dialog-message { margin: 0; color: var(--muted); }
.ui-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .ui-dialog-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ui-dialog[open] { animation: none; }
}
