/* Dicommerce: halaman akun. Memakai token tema Jenaka bila ada, dengan nilai cadangan. */
.dicom-page { --dc-bg: var(--bg, #fff); --dc-surface: var(--surface, #f4f4f2); --dc-line: var(--line, #e6e6e3); --dc-accent: var(--accent, #F5C542); }
.dicom-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.center-text { text-align: center; }
.ink { color: var(--ink, #111); }

/* Masuk / daftar */
.dicom-auth-wrap { display: flex; flex-wrap: wrap; min-height: 100vh; min-height: 100dvh; }
.dicom-auth-side { flex: 1 1 520px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px 56px; background: var(--dc-surface); border-right: 1px solid var(--dc-line); }
.dicom-auth-title { font-size: clamp(40px, 4.4vw, 64px); max-width: 560px; }
.dicom-auth-lead { font-size: 18px; max-width: 420px; }
.dicom-auth-img { height: 240px; border-radius: var(--r-lg, 18px); }
.dicom-auth-main { flex: 1 1 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 24px; }
.dicom-auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; max-width: 420px; }
.dicom-auth-mobile-brand { display: none; }
.dicom-auth-box { width: 100%; max-width: 420px; }
.dicom-pw { position: relative; }
.dicom-pw .input { padding-right: 110px; }
.dicom-pw button { position: absolute; right: 8px; top: 7px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--dc-surface); color: inherit; cursor: pointer; }
.dicom-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft, #3d3d3d); cursor: pointer; }
.dicom-check input { margin-top: 3px; accent-color: var(--dc-accent); width: 16px; height: 16px; flex: none; }
.dicom-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.dicom-meter i { height: 4px; border-radius: 4px; background: var(--dc-line); }
.dicom-meter[data-score="1"] i:nth-child(-n+1), .dicom-meter[data-score="2"] i:nth-child(-n+2),
.dicom-meter[data-score="3"] i:nth-child(-n+3), .dicom-meter[data-score="4"] i { background: var(--dc-accent); }
.dicom-auth-box .notice { margin-bottom: 18px; }
.cf-turnstile { min-height: 65px; }
@media (max-width: 1020px) {
  .dicom-auth-side { display: none; }
  .dicom-auth-main { justify-content: flex-start; padding-top: 24px; }
  .dicom-auth-mobile-brand { display: block; }
}

/* Dashboard */
.dicom-dash { padding: 40px 0 112px; min-height: 70vh; }
.dicom-dash-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.dicom-dash-nav { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--hdr-h, 72px) + 24px); }
.dicom-dash-user { display: flex; gap: 12px; align-items: center; padding: 4px 12px 20px; min-width: 0; }
.dicom-avatar { width: 42px; height: 42px; flex: none; border-radius: 999px; background: var(--dc-accent); color: var(--on-accent, #111); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; }
.dicom-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dicom-dash-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--soft, #3d3d3d); }
.dicom-dash-link:hover { background: var(--dc-surface); color: var(--ink, #111); }
.dicom-dash-link.is-on { background: var(--dc-surface); color: var(--ink, #111); box-shadow: inset 3px 0 0 var(--dc-accent); }
[data-theme="dark"] .dicom-dash-link.is-on, [data-theme="dark"] .dicom-dash-link:hover { background: #1E1E1E; }
.dicom-dash-body { flex: 999 1 560px; min-width: 0; }
.dicom-stats { gap: 12px; }
.dicom-stat { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.dicom-stat-n { font-size: 32px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.dicom-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px; }
.dicom-pad { padding: 28px; }
.dicom-prefs { padding-top: 6px; border-top: 1px solid var(--dc-line); padding-top: 18px; }
@media (max-width: 760px) {
  .dicom-dash-nav { position: static; max-width: none; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .dicom-dash-user { display: none; }
  .dicom-dash-link { white-space: nowrap; border: 1px solid var(--dc-line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
  .dicom-dash-link.is-on { box-shadow: none; background: var(--ink, #111); color: var(--bg, #fff); }
  .dicom-pad, .dicom-empty { padding: 22px; }
}
.dicom-dash .card[id] { scroll-margin-top: calc(var(--hdr-h, 72px) + 24px); }
.dicom-dash .notice { margin: 0; }

/* Sisi kiri halaman masuk: grid & titik sangat tipis, memudar ke tepi. */
.dicom-auth-side { position: relative; overflow: hidden; isolation: isolate; }
.dicom-auth-side > * { position: relative; z-index: 1; }
.dicom-auth-side > .dicom-auth-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  --g: color-mix(in srgb, var(--ink, #111) 7%, transparent);
  --d: color-mix(in srgb, var(--ink, #111) 16%, transparent);
  background-image:
    radial-gradient(circle at 1px 1px, var(--d) 1.2px, transparent 1.6px),
    linear-gradient(to right, var(--g) 1px, transparent 1px),
    linear-gradient(to bottom, var(--g) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 48px 48px;
  background-position: -1px -1px, -1px 0, 0 -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 55%, #000 25%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 70% at 30% 55%, #000 25%, transparent 85%);
}
.dicom-auth-side::after { content: ""; position: absolute; z-index: 0; width: 520px; height: 520px; left: -140px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--dc-accent) 16%, transparent) 0%, transparent 65%); pointer-events: none; }
.dicom-auth-foot { margin: 0; }

/* ---------- Produk ---------- */
.dc-product { padding: 32px 0 112px; }
.dc-crumb { margin-bottom: 24px; }
.dc-product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); grid-template-areas: "main buy" "body buy"; gap: 32px 48px; align-items: start; }
.dc-product-main { grid-area: main; }
.dc-product-body { grid-area: body; max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.dc-buy { grid-area: buy; position: sticky; top: calc(var(--hdr-h, 72px) + 24px); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.dc-title { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.035em; line-height: 1.12; }
.dc-media { display: flex; flex-direction: column; gap: 16px; }
.dc-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 560px; }
.dc-gallery.has-many { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.dc-gallery.has-many > :first-child { grid-column: 1 / -1; }
.dc-gallery .ph, .dc-trailer { border-radius: var(--r-lg, 18px); }
.dc-trailer { border: 0; cursor: pointer; padding: 0; width: 100%; }
.dc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; margin: 0; padding: 16px 0; border-top: 1px solid var(--dc-line); border-bottom: 1px solid var(--dc-line); }
.dc-facts dd { margin: 4px 0 0; }
.dc-legend { margin-bottom: 4px; }
.dc-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--dc-line); border-radius: 12px; cursor: pointer; }
.dc-opt:has(input:checked), .dc-opt.is-on { border-color: var(--dc-accent); box-shadow: inset 0 0 0 1px var(--dc-accent); }
.dc-opt input { accent-color: var(--dc-accent); width: 18px; height: 18px; flex: none; margin: 0; }
.dc-opt.is-off { opacity: .5; cursor: not-allowed; }
.dc-warn { color: var(--warn, #9A5B00); }
.dc-stepper { display: inline-flex; align-items: center; border: 1px solid var(--dc-line); border-radius: 999px; height: 42px; }
.dc-stepper button { width: 40px; height: 40px; border: 0; background: none; color: inherit; font-size: 18px; cursor: pointer; }
.dc-stepper input { width: 44px; text-align: center; border: 0; background: none; color: inherit; font: 600 15px var(--f-ui, sans-serif); -moz-appearance: textfield; }
.dc-stepper input::-webkit-inner-spin-button, .dc-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.dc-total { font-size: 28px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.gap-2 { gap: 2px; }

/* ---------- Checkout ---------- */
.dc-checkout { padding: 48px 0 112px; }
.dc-co-head { margin-bottom: 28px; }
.dc-co-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 400px); gap: 32px; align-items: start; }
.dc-co-card { padding: 28px; }
.dc-step { display: inline-flex; width: 26px; height: 26px; border-radius: 999px; align-items: center; justify-content: center; background: var(--dc-accent); color: var(--on-accent, #111); font-size: 14px; margin-right: 6px; }
.dc-co-sum { padding: 28px; position: sticky; top: calc(var(--hdr-h, 72px) + 24px); }
.dc-sum-img { width: 52px; flex: none; border-radius: 8px; }
.dc-textarea { min-height: 90px; }
.dc-checkout .notice { margin-bottom: 20px; }

/* ---------- Halaman pesanan ---------- */
.dc-order { padding: 56px 0 112px; }
.dc-pay { padding: 28px; }
.dc-amount { font-size: clamp(34px, 5vw, 46px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.dc-amount mark { background: var(--dc-accent); color: var(--on-accent, #111); border-radius: 8px; padding: 0 6px; margin-left: 2px; }
.dc-bank { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--dc-line); border-radius: 12px; }
.dc-acc { font-size: 20px; letter-spacing: .02em; }
.dc-file { padding-top: 11px; }
.dc-status { height: 30px; padding: 0 14px; font-size: 13px; }
.dc-confirm { padding-top: 18px; border-top: 1px solid var(--dc-line); }

/* ---------- Tonton ---------- */
.dc-watch { padding: 32px 0 112px; }
.dc-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-lg, 18px); overflow: hidden; }
.dc-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dc-watch-body { max-width: 760px; }

/* ---------- Dashboard: isi tab ---------- */
.dicom-alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-color: var(--dc-accent); }
.dicom-pad-0 { padding: 4px 0; }
.dicom-card-head { padding: 14px 20px; }
.dicom-scroll { overflow-x: auto; }
.dicom-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dicom-table th { text-align: left; font-weight: 500; color: var(--muted, #5c5c5c); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 10px 20px; border-bottom: 1px solid var(--dc-line); }
.dicom-table td { padding: 14px 20px; border-bottom: 1px solid var(--dc-line); vertical-align: middle; }
.dicom-table tr:last-child td { border-bottom: 0; }
.dicom-grid { gap: 20px; }
.dicom-media-card { overflow: hidden; display: flex; flex-direction: column; }
.dicom-media-card .ph { border-radius: 0; }
.dicom-pad-sm { padding: 16px; }
.dicom-list { padding: 4px 20px; }
.dicom-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--dc-line); }
.dicom-row:last-child { border-bottom: 0; }
.dicom-file { width: 46px; aspect-ratio: 3 / 4; border-radius: 6px; flex: none; font-size: 10px; font-weight: 700; }
.dicom-ticket { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 20px; }
.dicom-code { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px dashed var(--dc-line); border-radius: 10px; }
.dicom-code .num { font-size: 18px; letter-spacing: .06em; }
.dicom-code.is-blur .num { filter: blur(4px); user-select: none; }

@media (max-width: 1020px) {
  .dc-product-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "buy" "body"; }
  .dc-buy, .dc-co-sum { position: static; }
  .dc-co-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .dc-buy, .dc-co-card, .dc-co-sum, .dc-pay { padding: 20px; }
  .dicom-table th, .dicom-table td { padding: 12px 14px; }
}

/* ---------- Halaman produk v0.3 (judul di atas, gambar 3:2, kotak beli) ---------- */
.dc-product { padding: 28px 0 104px; }
.dc-crumb { margin-bottom: 18px; }
.dc-p-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; max-width: 900px; }
.dc-product .dc-title { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.04em; line-height: 1.06; }
.dc-p-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--muted, #5c5c5c); }
.dc-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.dc-product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: none; gap: 40px; align-items: start; }
.dc-product-main { grid-area: auto; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dc-stage { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-lg, 18px); overflow: hidden; background: var(--surface, #f4f4f2); border: 1px solid var(--line, #e6e6e3); }
.dc-stage-img, .dc-stage-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dc-stage-ph { display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.dc-sale { position: absolute; top: 16px; left: 16px; height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: #16A34A; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.dc-trailer-btn { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 6px; border: 0; border-radius: 999px; background: rgba(17,17,17,.78); color: #fff; font: 600 15px var(--f-ui, sans-serif); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dc-trailer-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent, #F5C542); color: #111; }
.dc-trailer-btn:hover { background: rgba(17,17,17,.92); }
.dc-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.dc-thumb { flex: none; width: 84px; aspect-ratio: 1; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface); cursor: pointer; opacity: .65; transition: opacity .15s, border-color .15s; }
.dc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dc-thumb.is-on, .dc-thumb:hover { opacity: 1; border-color: var(--accent, #F5C542); }
.dc-product-body { grid-area: auto; max-width: 760px; display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.dc-h2 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.dc-desc { color: var(--soft); }
.dc-event { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg, 18px); }
.dc-event-date { flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--accent, #F5C542); color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; font-weight: 600; }
.dc-event-day { font-size: 24px; letter-spacing: -.03em; }
.dc-event .stack { flex: 1; min-width: 0; }
.dc-event-map { flex: none; }

.dc-buy { grid-area: auto; position: sticky; top: calc(var(--hdr-h, 72px) + 20px); padding: 0; display: flex; flex-direction: column; gap: 12px; background: none; border: 0; box-shadow: none; }
.dc-buy-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--r-lg, 18px); border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
[data-theme="dark"] .dc-buy-card { background: #171717; }
.dc-badge-sale { background: #16A34A; color: #fff; font-weight: 600; }
.dc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.dc-from { width: 100%; }
.dc-price-now { font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.dc-price-old { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.dc-excerpt { font-size: 14px; line-height: 1.5; color: var(--soft); }
.dc-facts-list { display: flex; flex-direction: column; margin: 0; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dc-facts-list li { display: grid; grid-template-columns: 20px 76px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; }
.dc-facts-list li + li { border-top: 1px dashed var(--line); }
.dc-facts-list .dc-ic { color: var(--muted); }
.dc-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-chip { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.dc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dc-chip:has(input:checked) { border-color: var(--accent, #F5C542); box-shadow: inset 0 0 0 1px var(--accent, #F5C542); background: color-mix(in srgb, var(--accent, #F5C542) 12%, transparent); }
.dc-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dc-chip.is-off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.dc-buy-row { display: flex; gap: 10px; align-items: stretch; }
.dc-buy-row .dc-stepper { height: auto; border-radius: 12px; flex: none; }
.dc-buy-row .dc-stepper button { height: 100%; width: 38px; }
.dc-buy-btn { flex: 1; border-radius: 12px; height: 52px; font-weight: 600; }
.dc-subtotal { padding-top: 2px; }
.dc-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dc-perk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--soft); text-transform: uppercase; letter-spacing: .02em; }
.dc-perk .dc-ic { color: var(--accent-ink, #8A6A00); }
[data-theme="dark"] .dc-perk .dc-ic { color: var(--accent, #F5C542); }
.dc-seller { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.dc-seller-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.dc-seller-dot { background: var(--accent, #F5C542); display: block; }
.dc-soc { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.dc-soc:hover { border-color: var(--accent); }
.dc-related { margin-top: 88px; display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 1020px) {
  .dc-product-grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .dc-product-main { display: contents; }
  .dc-stage { order: 1; } .dc-thumbs { order: 2; } .dc-buy { order: 3; position: static; width: 100%; } .dc-product-body { order: 4; margin-top: 24px; }
  .dc-related { margin-top: 64px; }
}
@media (max-width: 640px) {
  .dc-product { padding-top: 20px; }
  .dc-p-head { margin-bottom: 20px; }
  .dc-stage { border-radius: 14px; }
  .dc-buy-card { padding: 20px; }
  .dc-price-now { font-size: 30px; }
  .dc-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-perk { flex-direction: row; justify-content: flex-start; min-height: 0; padding: 12px; text-align: left; }
  .dc-event { flex-wrap: wrap; }
}

/* ---------- v0.4: lebih rapat, batas usia, simpan ---------- */
.dc-p-head { gap: 10px; margin-bottom: 20px; }
.dc-product-grid { gap: 24px; grid-template-columns: minmax(0, 1fr) 372px; }
.dc-age { position: absolute; top: 14px; left: 14px; min-width: 44px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 8px; background: rgba(17,17,17,.78); color: #fff; border: 1.5px solid rgba(255,255,255,.85); font-size: 13px; font-weight: 700; letter-spacing: .02em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dc-age-badge { background: transparent; border: 1px solid var(--line); font-weight: 600; }
.dc-buy-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.dc-fav-page { flex: none; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; margin-left: auto; }
.dc-fav-page:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.dc-fav { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: inherit; }
.dc-fav.is-on { color: #F43F5E; } .dc-fav.is-on svg { fill: currentColor; }
.dc-fav-page.is-on { border-color: color-mix(in srgb, #F43F5E 45%, transparent); }
@media (max-width: 1020px) { .dc-product-grid { gap: 16px; } }

/* ---------- Dashboard: ikon menu + bilah bawah di HP/tablet ---------- */
.dicom-dash-label { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.dicom-ic { flex: none; opacity: .8; }
.dicom-dash-link.is-on .dicom-ic { opacity: 1; color: var(--accent-ink, #8A6A00); }
[data-theme="dark"] .dicom-dash-link.is-on .dicom-ic { color: var(--dc-accent, #F5C542); }
.dicom-dash-sep { display: block; height: 1px; background: var(--dc-line); margin: 10px 14px; }
.dicom-tabbar { display: none; }
@media (max-width: 1020px) {
  .dicom-dash { padding-top: 24px; padding-bottom: 40px; }
  .dicom-dash-nav { display: none; }
  /* Menempel di bawah layar, di luar konten (dicetak langsung di <body>). */
  .dicom-tabbar {
    display: flex; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    margin: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
    background: #FFFFFF; border-top: 1px solid #E6E6E3;
  }
  [data-theme="dark"] .dicom-tabbar { background: #141414; border-top-color: #262626; }
  body.has-tabbar { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .dicom-tabbar > a, .dicom-tabbar-more { flex: 1 1 0; min-width: 0; }
  .dicom-tabbar-more { display: flex; }
  .dicom-tabbar-a {
    flex: 1 1 0; min-width: 0; height: 52px; margin: 0; padding: 0 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 0; border-radius: 12px; background: none; cursor: pointer;
    font: 500 11px/1.2 var(--f-ui, system-ui, sans-serif); color: #7A7A7A; text-decoration: none;
    -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
  }
  .dicom-tabbar-a > span:last-child { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dicom-tabbar-a .dicom-ic { width: 22px; height: 22px; }
  .dicom-tabbar-a.is-on, .dicom-tabbar-a[aria-expanded="true"] { color: var(--ink, #111); font-weight: 600; }
  .dicom-tabbar-a.is-on .dicom-tabbar-ic { background: rgba(245, 197, 66, .22); }
  .dicom-tabbar-a.is-on .dicom-ic { opacity: 1; color: var(--accent-ink, #8A6A00); }
  [data-theme="dark"] .dicom-tabbar-a { color: #8F8F8F; }
  [data-theme="dark"] .dicom-tabbar-a.is-on, [data-theme="dark"] .dicom-tabbar-a[aria-expanded="true"] { color: #fff; }
  [data-theme="dark"] .dicom-tabbar-a.is-on .dicom-ic { color: var(--dc-accent, #F5C542); }
  .dicom-tabbar-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 28px; border-radius: 14px; }
  .dicom-tabbar-n { position: absolute; top: -3px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--dc-accent, #F5C542); color: #111; font: 700 10px/16px var(--f-ui, sans-serif); font-style: normal; text-align: center; }
  .dicom-sheet-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; background: rgba(0,0,0,.45); }
  .dicom-tabbar > a, .dicom-tabbar-more > button { position: relative; z-index: 2; }
  .dicom-sheet-backdrop[hidden], .dicom-sheet[hidden] { display: none; }
  .dicom-sheet {
    position: fixed; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 3;
    display: flex; flex-direction: column; gap: 2px; max-width: 520px; margin: 0 auto; padding: 8px;
    border-radius: 18px; border: 1px solid #E6E6E3; background: #FFFFFF; box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: dicom-up .18s ease-out;
  }
  [data-theme="dark"] .dicom-sheet { background: #1A1A1A; border-color: #2A2A2A; }
  .dicom-sheet-user { display: flex; gap: 12px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--dc-line); margin-bottom: 4px; }
  .dicom-sheet-a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; font-size: 15px; font-weight: 500; color: inherit; text-decoration: none; }
  .dicom-sheet-a:hover, .dicom-sheet-a.is-on { background: var(--dc-surface); }
  [data-theme="dark"] .dicom-sheet-a:hover, [data-theme="dark"] .dicom-sheet-a.is-on { background: #242424; }
  .dicom-sheet-a .grow { flex: 1; }
  html.sheet-open, html.sheet-open body { overflow: hidden; }
}
@keyframes dicom-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dicom-sheet { animation: none; } }

/* ---------- Dashboard: kartu e-tiket dengan QR ---------- */
.dicom-tix { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.dicom-tk { display: flex; gap: 18px; padding: 16px; align-items: stretch; }
.dicom-tk-qr { flex: none; width: 128px; height: 128px; padding: 8px; border-radius: 14px; background: #fff; display: grid; place-items: center; }
.dicom-tk-qr svg { width: 112px; height: 112px; display: block; }
.dicom-tk-qr.is-off { background: var(--dc-surface); border: 1px dashed var(--dc-line); color: var(--muted, #8f8f8f); font-size: 12px; text-align: center; }
[data-theme="dark"] .dicom-tk-qr.is-off { background: #1a1a1a; }
.dicom-tk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dicom-tk-title { font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.dicom-tk-meta { display: flex; flex-direction: column; font-size: 13px; color: var(--muted, #8f8f8f); }
.dicom-tk-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dicom-tk-code { font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.dicom-tk-code.is-blur { filter: blur(4px); user-select: none; }
@media (max-width: 480px) { .dicom-tk { flex-direction: column; } .dicom-tk-qr { width: 100%; height: auto; aspect-ratio: 1; max-width: 220px; margin: 0 auto; } .dicom-tk-qr svg { width: 100%; height: auto; } }

/* ---------- v0.6: tab Deskripsi / Ulasan, tag, bintang ---------- */
.dc-product-body { gap: 0; }
.dc-product-body .dc-event { margin-bottom: 22px; }
.dc-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--hdr-h, 72px) + 16px); }
.dc-tab { position: relative; padding: 0 0 12px; border: 0; background: none; color: var(--muted); font: 600 17px var(--f-ui, sans-serif); letter-spacing: -.01em; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.dc-tab:hover { color: var(--ink); }
.dc-tab.is-on { color: var(--ink); }
.dc-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.dc-tab-meta { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
[data-theme="dark"] .dc-tab-meta { color: var(--accent); }
.dc-panel { padding-top: 20px; }
.dc-desc { font-size: 15px; line-height: 1.55; }
.dc-desc > * + * { margin-top: 12px; }
.dc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.dc-tags .xs { margin-right: 4px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.dc-tags .chip { height: 32px; font-size: 13px; }
.dc-stars { position: relative; display: inline-flex; line-height: 0; vertical-align: middle; }
.dc-stars svg { fill: currentColor; flex: none; }
.dc-stars-bg { display: inline-flex; color: color-mix(in srgb, var(--ink) 18%, transparent); }
.dc-stars-fg { position: absolute; inset: 0 auto 0 0; display: inline-flex; width: var(--r, 0%); overflow: hidden; color: #F5B301; }
.dc-p-rate { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.dc-p-rate b { color: var(--ink); }
.dc-p-rate:hover span { text-decoration: underline; }
.dc-rv-sum { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.dc-rv-score { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.dc-rv-avg { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.dc-rv-bars { display: flex; flex-direction: column; gap: 6px; }
.dc-rv-bar { display: grid; grid-template-columns: 26px minmax(0, 1fr) 26px; gap: 10px; align-items: center; }
.dc-rv-track { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.dc-rv-track i { display: block; height: 100%; background: #F5B301; border-radius: 3px; }
.dc-rv-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.dc-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0; }
.dc-rate input { position: absolute; opacity: 0; pointer-events: none; }
.dc-rate label { cursor: pointer; color: color-mix(in srgb, var(--ink) 20%, transparent); transition: color .12s, transform .12s; }
.dc-rate label svg { fill: currentColor; display: block; }
.dc-rate label:hover, .dc-rate label:hover ~ label, .dc-rate input:checked ~ label { color: #F5B301; }
.dc-rate label:hover { transform: scale(1.08); }
.dc-rate input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
.dc-rv-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; }
.dc-rv { padding: 16px 0; border-top: 1px solid var(--line); }
.dc-rv-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #111; font-weight: 700; font-size: 14px; flex: none; }
.dc-rv-text { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--soft); }
@media (max-width: 560px) { .dc-rv-sum { grid-template-columns: minmax(0, 1fr); } }

/* Produk lainnya: garis di bawah judul, tautan teks + panah */
.dc-related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dc-more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--soft); }
.dc-more-link:hover { color: var(--ink); }
.dc-more-link svg { transition: transform .15s; }
.dc-more-link:hover svg { transform: translateX(3px); }

/* Arsip tag produk */
.dc-archive { padding: 28px 0 104px; }
.dc-archive-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.dc-hash { color: var(--accent-ink); margin-right: 2px; }
[data-theme="dark"] .dc-hash { color: var(--accent); }
.dc-archive-tags { margin-bottom: 28px; }

/* Kode promo di checkout */
.dc-promo { display: flex; flex-direction: column; gap: 6px; }
.dc-promo-row { display: flex; gap: 8px; }
.dc-promo-row .input { flex: 1; min-width: 0; height: 42px; text-transform: uppercase; letter-spacing: .04em; }
.dc-promo-row .btn { height: 42px; flex: none; }
.dc-promo-msg:empty { display: none; }
.dc-promo-msg.is-ok { color: var(--ok, #18794E); }
.dc-promo-msg.is-err { color: var(--err, #C62828); }
.dc-ok { color: var(--ok, #18794E); font-weight: 600; }
