/* Portal Langganan — gaya utama. Warna jenama (--brand, --accent) disuntik dari Tetapan. */
@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:where(:root) { --brand: #1e6b45; --accent: #e0a526; }
:root {
  --ink: #14201a; --ink-2: #33413a; --muted: #5d6a63; --line: #e3e0d6; --line-2: #ece9e1;
  --paper: #f6f4ee; --surface: #fff; --soft: #faf9f5;
  --brand-ink: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 25%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, #fff);
  --ok: #1d7a46; --ok-bg: #e5f4ea; --warn: #9a6000; --warn-bg: #fdf1d8; --bad: #b42318; --bad-bg: #fde8e6; --info: #1f5f9e; --info-bg: #e6f0fa;
  --r: 14px; --r-sm: 10px; --r-lg: 22px;
  --sh: 0 1px 2px rgba(20, 32, 26, .05), 0 6px 20px -8px rgba(20, 32, 26, .12);
  --sh-lg: 0 2px 4px rgba(20, 32, 26, .04), 0 24px 48px -16px rgba(20, 32, 26, .22);
  --head: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--line-2); padding: .1em .4em; border-radius: 6px; word-break: break-all; }
small { font-size: .84em; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, #fff); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.block { display: block; }
.t-bad { color: var(--bad); }
.t-big { font: 700 1.2rem var(--head); }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* ---------- Butang ---------- */
.btn { --b: var(--surface); --c: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 42px; padding: .55em 1.05em; border-radius: 11px; border: 1px solid transparent; background: var(--b); color: var(--c); font: 600 .95rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --b: var(--brand); --c: #fff; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { --b: var(--brand-ink); }
.btn-accent { --b: var(--accent); --c: #1d1503; }
.btn-dark { --b: var(--ink); --c: #fff; }
.btn-ghost { --b: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.btn-danger { --b: var(--bad); --c: #fff; }
.btn-sm { min-height: 34px; padding: .35em .75em; font-size: .86rem; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: .7em 1.4em; font-size: 1.02rem; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--brand-soft); }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.btn-row, .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row { margin-top: 14px; }
.link { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }

/* ---------- Lencana & mesej ---------- */
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .2em .65em; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--ink-2); vertical-align: middle; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-accent { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 55%, #000); }
.flashes { display: grid; gap: 10px; margin-bottom: 18px; }
.is-public .flashes { width: min(1160px, 100% - 40px); margin: 18px auto 0; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid; font-size: .95rem; margin-bottom: 14px; }
.flashes .flash { margin: 0; }
.flash .icon { margin-top: 2px; }
.flash a { color: inherit; font-weight: 700; }
.flash-success { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 25%, #fff); color: #134d2d; }
.flash-error { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 25%, #fff); color: #7a1a12; }
.flash-warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 25%, #fff); color: #6a4300; }
.flash-info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 22%, #fff); color: #173f66; }

/* ---------- Borang ---------- */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .tld-row label > small, .tld-row small { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
input, select, textarea { width: 100%; min-height: 44px; padding: .6em .8em; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 1rem/1.4 var(--body); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
input[type=color] { padding: 4px; height: 44px; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); margin: 0; flex: none; }
input[type=file] { padding: .45em; }
input:disabled { background: var(--soft); color: var(--muted); }
.help { color: var(--muted); font-size: .84rem; }
.stack { display: grid; gap: 16px; }
.grid2, .grid3 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); cursor: pointer; }
.check input { margin-top: 3px; }
.check span { display: grid; gap: 2px; }
.check small { color: var(--muted); }
.check-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.check-inline, .mini-check { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.input-row { display: flex; gap: 8px; }
.input-row > input { flex: 1; min-width: 0; }
.input-row.suffix, .input-row.prefix { gap: 0; }
.input-row.suffix > input { border-radius: 10px 0 0 10px; }
.input-row.suffix > span, .input-row.prefix > span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); font-weight: 600; white-space: nowrap; }
.input-row.suffix > span:last-child { border-left: 0; border-radius: 0 10px 10px 0; }
.input-row.prefix > span:first-child { border-right: 0; border-radius: 10px 0 0 10px; }
.input-row.prefix > input { border-radius: 0 10px 10px 0; max-width: 160px; }
textarea.code, pre.json { font: .85rem/1.5 ui-monospace, Menlo, monospace; background: #0f1a15; color: #d9eadf; border-radius: 12px; padding: 14px; overflow: auto; max-height: 520px; white-space: pre; }

/* =================================================================== */
/* LAMAN AWAM                                                            */
/* =================================================================== */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand-link { text-decoration: none; color: inherit; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font: 800 1.15rem var(--head); letter-spacing: -.02em; color: var(--ink); }
.brand-mark img { height: 34px; width: auto; border-radius: 8px; }
.mark-target { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; }
.mark-target .icon { width: 20px; height: 20px; }
.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 9px; }
.site-nav a:hover, .site-nav a.active { background: var(--surface); color: var(--ink); }
.head-cta { margin-left: auto; display: flex; gap: 8px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 56ch; }
.section { padding: 72px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.sec-head p { color: var(--muted); }

.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 68%, var(--accent-soft) 68%); }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .9rem; margin-top: 14px; }
.hero-note .icon { color: var(--ok); }

.domain-box { display: flex; gap: 10px; margin-top: 26px; background: var(--surface); padding: 8px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--sh-lg); max-width: 620px; }
.domain-box:not(.is-big) { box-shadow: none; margin-top: 8px; max-width: none; }
.domain-input { flex: 1; display: flex; align-items: center; gap: 10px; padding-left: 12px; min-width: 0; color: var(--muted); }
.domain-input input { border: 0; box-shadow: none !important; padding-left: 0; font-size: 1.08rem; min-width: 0; }
.domain-tlds { font-size: .82rem; font-weight: 700; color: var(--muted); white-space: nowrap; padding-right: 6px; }
.domain-results { margin-top: 14px; max-width: 620px; }
.panel .domain-results, .order-form .domain-results { max-width: none; }
.dres { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dres-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; animation: rise .25s ease both; }
.dres-row.is-available { border-color: color-mix(in srgb, var(--ok) 35%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 8%, transparent); }
.dres-row.is-taken { opacity: .62; }
.dres-row form { margin: 0; }
.dres-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.dres-name b { font-size: 1.05rem; overflow-wrap: anywhere; }
.dres-name small { width: 100%; color: var(--muted); }
.dres-price { text-align: right; display: grid; }
.dres-price small { color: var(--muted); font-size: .76rem; }
.domain-results.compact .dres-row { padding: 10px 12px; }
.dres-row.is-picked { border-color: var(--brand); background: var(--brand-soft); }
.loading { display: flex; gap: 10px; align-items: center; color: var(--muted); padding: 12px 4px; }
.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.hero-art { position: relative; min-height: 420px; }
.art-target { position: absolute; inset: 40px 30px 30px 60px; display: grid; place-items: center; }
.art-target span { position: absolute; border-radius: 50%; }
.art-target span:nth-child(1) { width: 340px; height: 340px; background: #f4f1e8; border: 1px solid var(--line); }
.art-target span:nth-child(2) { width: 270px; height: 270px; background: color-mix(in srgb, var(--brand) 14%, #fff); }
.art-target span:nth-child(3) { width: 200px; height: 200px; background: color-mix(in srgb, var(--brand) 40%, #fff); }
.art-target span:nth-child(4) { width: 130px; height: 130px; background: var(--brand); }
.art-target span:nth-child(5) { width: 62px; height: 62px; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); }
.art-card { position: absolute; z-index: 2; background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: var(--sh-lg); border: 1px solid var(--line-2); display: grid; gap: 2px; animation: float 6s ease-in-out infinite; }
.art-card b { font: 800 1.8rem var(--head); letter-spacing: -.03em; }
.art-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.art-sub { font-size: .78rem; color: var(--muted); }
.art-bar { display: block; height: 6px; border-radius: 9px; background: var(--line-2); margin-top: 6px; width: 150px; }
.art-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.art-a { top: 10px; left: 0; }
.art-b { bottom: 30px; right: 0; animation-delay: -2s; }
.art-c { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; top: 46%; left: -6px; padding: 10px 14px; animation-delay: -4s; }
.art-c .icon { color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
@keyframes float { 50% { transform: translateY(-8px); } }

.steps-sec { padding: 36px 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.steps li > .icon { width: 26px; height: 26px; color: var(--brand); margin-bottom: 10px; }
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }
.step-n { position: absolute; top: 16px; right: 18px; font: 800 2rem var(--head); color: var(--line); }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.feat > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.feat h3 { font-size: 1.12rem; }
.feat p { color: var(--muted); margin: 0; }

.pricing-sec { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand) 5%, transparent)); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.plan.is-hl { background: var(--ink); color: #f3f1ea; border-color: var(--ink); box-shadow: var(--sh-lg); }
.plan.is-hl .plan-desc, .plan.is-hl .plan-setup, .plan.is-hl .plan-price span { color: #b6c2bb; }
.plan.is-hl .plan-list .icon { color: var(--accent); }
.plan-flag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #1d1503; font-size: .76rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.plan-name { font: 800 1.3rem var(--head); display: flex; align-items: center; gap: 8px; margin: 0; }
.plan-desc { color: var(--muted); font-size: .94rem; margin: 0; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; margin-top: 10px; }
.plan-price b { font: 800 2.5rem var(--head); letter-spacing: -.04em; }
.plan-price span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.plan-setup { color: var(--muted); margin-bottom: 14px; }
.plan-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; font-size: .94rem; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .icon { color: var(--brand); margin-top: 3px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--ink-2); }
.cta-sec { padding-top: 24px; }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: 40px; position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid color-mix(in srgb, #fff 10%, transparent); }
.cta-box h2 { font-size: 2rem; }
.cta-box p { margin: 0; opacity: .85; }
.site-foot { background: var(--ink); color: #c9d3cd; margin-top: 72px; }
.site-foot .brand-mark { color: #fff; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 0 24px; }
.foot-row p { margin: 10px 0 0; color: #95a39b; }
.foot-links { display: grid; gap: 10px; align-content: start; }
.foot-links a { color: #e1e8e4; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #2a3832; padding: 18px 0 28px; font-size: .86rem; color: #8b9992; }

.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-head.compact { padding-bottom: 8px; }
.tld-prices { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; }
.tld-chip { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.tld-chip span { color: var(--muted); }

/* Pesanan */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-bottom: 40px; }
.order-form { display: grid; gap: 18px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; }
.step-card h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 12px; margin: 0; }
.step-card h2 span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .9rem; }
.step-card .plans { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.plan-pick { padding: 0; border-radius: var(--r); cursor: pointer; display: block; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick .plan-body { display: grid; gap: 4px; padding: 18px; border-radius: inherit; border: 2px solid transparent; height: 100%; }
.plan-pick .plan-name { font-size: 1.08rem; }
.plan-pick .plan-price { margin-top: 2px; }
.plan-pick .plan-price b { font-size: 1.7rem; }
.plan-pick .plan-desc { font-size: .86rem; }
.plan-pick.is-hl { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.plan-pick.is-hl .plan-desc, .plan-pick.is-hl .plan-setup, .plan-pick.is-hl .plan-price span { color: var(--muted); }
.plan-pick input:checked + .plan-body { border-color: var(--brand); background: var(--brand-soft); }
.plan-pick input:focus-visible + .plan-body { outline: 3px solid color-mix(in srgb, var(--brand) 45%, #fff); }
.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.opt span { display: grid; gap: 2px; }
.opt small { color: var(--muted); }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.dk { display: none; }
.order-form[data-kind="new"] .dk-new, .order-form[data-kind="own"] .dk-own, .order-form[data-kind="subdomain"] .dk-subdomain { display: block; }
.order-sum { position: sticky; top: 88px; }
.sum-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh); }
.sum-card h2 { font-size: 1.2rem; }
.sum-card dl { margin: 0 0 14px; display: grid; gap: 10px; }
.sum-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.sum-card dt { color: var(--ink-2); min-width: 0; word-break: break-word; }
.sum-card dd { margin: 0; font-weight: 700; white-space: nowrap; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px dashed var(--line); margin-bottom: 6px; }
.sum-total b { font: 800 1.8rem var(--head); }
.sum-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .84rem; margin: 12px 0 0; }
.show-sm { display: none; }

/* Invois / bayaran */
.pay-wrap { display: grid; place-items: center; padding-top: 40px; }
.invoice-card { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-lg); display: grid; gap: 16px; }
.invoice-card header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.invoice-card h1 { font-size: 1.6rem; margin: 0; }
.invoice-card header p { margin: 0; }
.invoice-card .eyebrow { margin-bottom: 6px; }
.pay-state { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; }
.pay-state .icon { width: 24px; height: 24px; }
.pay-state div { display: grid; }
.pay-state span { font-size: .84rem; }
.pay-state.is-ok { background: var(--ok-bg); color: var(--ok); }
.pay-state.is-due { background: var(--warn-bg); color: var(--warn); }
.pay-state.is-muted { background: var(--line-2); color: var(--muted); }
.lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lines td, .lines th { padding: 10px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.lines .num { text-align: right; white-space: nowrap; padding-left: 16px; }
.lines tfoot th { border-bottom: 0; font: 800 1.15rem var(--head); padding-top: 14px; }

/* Cetak */
.is-print { background: #fff; }
.print-doc { width: min(760px, 100% - 40px); margin: 40px auto; display: grid; gap: 24px; }
.print-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 20px; }
.print-head p { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
.print-meta { text-align: right; }
.print-meta h1 { font-size: 1.8rem; letter-spacing: .08em; margin: 0 0 6px; }
.print-to { display: grid; gap: 2px; }
.print-to small { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.print-to span { color: var(--ink-2); }
.print-paid { display: flex; gap: 8px; align-items: center; color: var(--ok); font-weight: 700; }
@media print { .no-print { display: none !important; } .print-doc { margin: 0; width: 100%; } }

/* Halaman ringkas (log masuk) */
.bare { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 32px 16px; background: radial-gradient(800px 400px at 50% -10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent); }
.bare-card { width: min(440px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-lg); }
.bare-card.wide { width: min(720px, calc(100vw - 32px)); }
.bare-card h1 { font-size: 1.7rem; }
.bare-card .flashes { margin-bottom: 16px; }
.bare-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; font-size: .92rem; }
.bare-links a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.setup-h { font-size: 1.05rem; margin: 22px 0 10px; }
.setup-checks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.setup-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; background: var(--soft); font-size: .93rem; }
.setup-checks li span { display: grid; }
.setup-checks li small { color: var(--muted); }
.setup-checks .ok .icon { color: var(--ok); }
.setup-checks .warn { background: var(--warn-bg); } .setup-checks .warn .icon { color: var(--warn); }
.setup-checks .bad { background: var(--bad-bg); } .setup-checks .bad .icon { color: var(--bad); }

/* =================================================================== */
/* PANEL (ADMIN & PELANGGAN)                                             */
/* =================================================================== */
.is-panel { background: #f3f2ed; }
.panel { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #0f1b16; color: #d3ddd7; display: flex; flex-direction: column; padding: 18px 14px; gap: 6px; }
.is-customer .side { background: var(--surface); color: var(--ink-2); border-right: 1px solid var(--line); }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; }
.side .brand-mark { color: #fff; font-size: 1.05rem; }
.is-customer .side .brand-mark { color: var(--ink); }
.side-close { display: none; background: transparent; border-color: #2b3a33; color: inherit; }
.side-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #7f8f87; margin: 6px 10px 4px; }
.side-nav { display: grid; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem; }
.side-link .icon { opacity: .8; }
.side-link:hover { background: #1a2a23; color: #fff; }
.is-customer .side-link:hover { background: var(--brand-soft); color: var(--ink); }
.side-link.active { background: var(--brand); color: #fff; }
.side-link.active .icon { opacity: 1; }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #22322b; }
.is-customer .side-foot { border-color: var(--line); }
.scrim { display: none; }
.panel-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 0 28px; background: color-mix(in srgb, #f3f2ed 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-title { font-size: 1.35rem; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-right form { margin: 0; }
.menu-btn { display: none; }
.who { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 50%, #000); font-weight: 800; }
.who-text { display: grid; line-height: 1.2; }
.who-text small { color: var(--muted); }
.panel-content { padding: 26px 28px 40px; display: grid; gap: 20px; align-content: start; }
.panel-foot { padding: 14px 28px 24px; color: var(--muted); font-size: .82rem; margin-top: auto; }
.page-intro h2 { font-size: 1.6rem; margin: 0; }
.page-intro p { margin: 4px 0 0; }
.page-note { margin: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-foot { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 16px; }
.card-foot .field { flex: 1; min-width: 200px; }
.card-attn { border-color: color-mix(in srgb, var(--accent) 50%, #fff); box-shadow: 0 0 0 4px var(--accent-soft); }
.card-danger { border-color: color-mix(in srgb, var(--bad) 30%, #fff); }
.card-danger h2 { color: var(--bad); }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .8rem; font-family: var(--body); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 6px; min-width: 0; }
.stat-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.stat-top .icon { color: var(--brand); }
.stat b { font: 800 1.75rem var(--head); letter-spacing: -.03em; overflow-wrap: anywhere; }
.stat small { color: var(--muted); }
.stat-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.stat-brand .stat-top, .stat-brand small, .stat-brand .stat-top .icon { color: color-mix(in srgb, #fff 78%, var(--brand)); }
.stat-bad b { color: var(--bad); }

.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; overflow-wrap: anywhere; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--soft); }
.table td > a { font-weight: 600; text-decoration: none; }
.table td small.block { margin-top: 2px; }
.cell { min-width: 0; }
.table-empty { color: var(--muted); margin: 6px 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters select { width: auto; min-width: 170px; }
.search-field { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding-left: 12px; color: var(--muted); }
.search-field input { border: 0; box-shadow: none !important; padding-left: 0; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--ink); border-color: var(--brand); }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0 0 14px; }
.kv div { display: grid; gap: 2px; min-width: 0; }
.kv dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tasks a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
.tasks a:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.tasks a > .icon:first-child { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 55%, #000); }
.tasks span { display: grid; min-width: 0; }
.tasks small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-line { font-weight: 500; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin-bottom: 8px; }
.empty h3 { color: var(--ink); font-size: 1.05rem; margin: 0 0 4px; }
.empty p { margin: 0; }

.cust-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cust-head h2 { font-size: 1.7rem; margin: 6px 0 2px; }
.cust-head p { margin: 0; }
.back { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; font-size: .9rem; color: var(--muted); }

.sub-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 16px; }
.sub-card.is-active { border-top: 4px solid var(--ok); }
.sub-card.is-warning { border-top: 4px solid var(--warn); }
.sub-card.is-readonly { border-top: 4px solid var(--bad); }
.sub-card.is-pending_install { border-top: 4px solid var(--info); }
.sub-card .flash { margin: 0; }
.sub-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sub-top .eyebrow { margin-bottom: 4px; }
.sub-top h2 { font-size: 2rem; margin: 0; }
.sub-top h2 small { font-size: .9rem; color: var(--muted); font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sub-grid > div { background: var(--soft); border-radius: 12px; padding: 14px; display: grid; gap: 2px; min-width: 0; }
.sub-grid span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.sub-grid b { font: 800 1.25rem var(--head); }
.sub-grid small { color: var(--muted); }
.help-links { display: flex; flex-wrap: wrap; gap: 8px; }
.code-list { padding-left: 18px; }
.howto { padding-left: 20px; margin: 0 0 16px; display: grid; gap: 6px; color: var(--ink-2); }
.code-box { position: relative; }
.code-box pre { margin: 0; padding-top: 46px !important; font: .85rem/1.6 ui-monospace, Menlo, monospace; background: #0f1a15; color: #cfe6d7; padding: 16px; border-radius: 12px; overflow-x: auto; }
.code-box .btn { position: absolute; top: 8px; right: 8px; }

.plan-edit { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--soft); }
.plan-edit summary { cursor: pointer; padding: 14px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-edit summary small { margin-left: auto; }
.plan-edit form { padding: 0 16px 16px; }
.tld-table { display: grid; gap: 10px; margin-bottom: 14px; }
.tld-row { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); margin: 0; display: grid; gap: 12px; }
.tld-top { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 16px; align-items: center; }
.tld-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tld-row label { display: grid; gap: 4px; min-width: 0; }
.tld-row label > small { font-weight: 600; font-size: .8rem; color: var(--ink-2); }
.tld-row input, .tld-row select { min-height: 38px; padding: .4em .6em; font-size: .92rem; }
.tld-name { display: grid; gap: 4px; }
.tld-row label.mini-check { display: inline-flex; gap: 8px; }
.tld-name b { font: 800 1.25rem var(--head); }
.tld-cost, .tld-sell { display: grid; gap: 1px; min-width: 0; }
.tld-cost small, .tld-sell small { color: var(--muted); font-size: .78rem; }
.tld-cost b { font-weight: 700; }
.tld-sell b { font: 800 1.25rem var(--head); color: var(--brand); }
.pair { display: flex; gap: 6px; }
.pair select { width: 82px; flex: none; }
.add-tld input { width: 200px; }

/* =================================================================== */
/* RESPONSIF                                                             */
/* =================================================================== */
@media (max-width: 1200px) {
  .tld-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); z-index: 50; transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--sh-lg); }
  .menu-open .side { transform: none; }
  .side-close, .menu-btn { display: inline-grid; }
  .scrim { position: fixed; inset: 0; background: rgba(10, 18, 14, .45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; display: block; }
  .menu-open .scrim { opacity: 1; pointer-events: auto; }
  .menu-open { overflow: hidden; }
  .topbar { padding: 0 16px; }
  .panel-content { padding: 20px 16px 32px; }
  .panel-foot { padding: 12px 16px 20px; }
  .who-text { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .order-sum { position: static; }
  .site-nav { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .section { padding: 48px 0; }
  .head-row { min-height: 60px; gap: 10px; }
  .hide-sm { display: none !important; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .feats, .steps { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 1.35rem; }
  .sub-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 32px; }
  .domain-box { flex-direction: column; padding: 10px; }
  .domain-input { padding: 0 6px; border-bottom: 1px solid var(--line-2); }
  .domain-box .btn { width: 100%; }
  .dres-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dres-price { text-align: left; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .dres-row > .btn, .dres-row > form { grid-column: 1 / -1; }
  .dres-row > .btn, .dres-row > form .btn { width: 100%; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 28px; }
  .step-card, .card { padding: 16px; }
  .plan { padding: 22px; }
  .plan.plan-pick { padding: 0; }
  .topbar-title { font-size: 1.1rem; }
  .table-wrap { margin: 0; padding: 0; overflow: visible; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; margin-bottom: 10px; background: var(--surface); }
  .table tbody tr:hover { background: var(--surface); }
  .table td { display: grid; grid-template-columns: 38% minmax(0, 1fr); justify-items: start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
  .table td:last-child { border-bottom: 0; }
  .table td::before { content: attr(data-label); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }
  .table td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .table td[data-label=""]::before { display: none; }
  .filters > * { flex: 1 1 100%; }
  .filters select { width: 100%; }
  .tld-row { display: flex; flex-direction: column; }
  .tld-top { display: contents; }
  .tld-top .btn { order: 10; width: 100%; }
  .tld-fields { order: 5; }
  .tld-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-foot { flex-direction: column; align-items: stretch; }
  .form-actions .btn { flex: 1; }
  .invoice-card { padding: 20px; }
  .head-cta .btn { padding: .5em .8em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.panel-content > * { min-width: 0; } .cust-head > div { min-width: 0; } .cust-head p, .cust-head h2 { overflow-wrap: anywhere; }

/* ---------- Resit & projek ---------- */
.rc-tabs { margin: -4px 0 18px; }
.rc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.rc-main { display: grid; gap: 20px; min-width: 0; }
.rc-main > .card { margin: 0; }
.rc-summary { position: sticky; top: 84px; padding: 20px; display: grid; gap: 10px; }
.rc-summary h2 { margin: 0 0 6px; }
.rc-step { display: inline-grid; place-items: center; min-width: 32px; height: 26px; padding: 0 6px; margin-right: 6px; border-radius: 8px; background: var(--accent); color: #111; font-size: .78rem; font-weight: 900; vertical-align: 2px; }
.rc-sum { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rc-grand { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 10px 0; padding: 14px 16px; background: var(--accent); color: #111; border: 2px solid #111; border-radius: 14px; font-weight: 700; }
.rc-grand strong { font-size: 1.45rem; font-weight: 900; white-space: nowrap; }
.rc-item { display: grid; grid-template-columns: minmax(0, 1fr) 92px 132px 118px 40px; gap: 10px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rc-item .field { margin: 0; }
.rc-item textarea { min-height: 46px; }
.rc-line { font-weight: 800; text-align: right; padding-bottom: 12px; white-space: nowrap; }
.rc-remove { margin-bottom: 4px; }
.rc-remove:disabled { opacity: .3; }
#rc-add { margin-top: 14px; }
.rc-projpick { align-items: end; }
.rc-projpick .field { flex: 1 1 280px; margin: 0; }
.rc-actions { margin: -6px 0 18px; }
.rc-view { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.rc-side { display: grid; gap: 20px; min-width: 0; }
.rc-side > .card, .rc-view > .card { margin: 0; }
.rc-preview { padding: 6px 4px; }
.rc-phead { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 3px solid var(--accent); }
.rc-phead img { width: 54px; height: 54px; object-fit: contain; display: block; margin-bottom: 6px; }
.rc-phead h3 { margin: 2px 0; font-size: 1.25rem; }
.rc-phead p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.rc-right { text-align: right; }
.rc-pinfo { margin-bottom: 16px; }
.rc-pinfo p { margin: 4px 0; }
.rc-pname { display: block; font-size: 1.1rem; margin-top: 4px; }
.rc-lines { width: 100%; }
.rc-lines th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; background: #111; color: #fff; padding: 10px; }
.rc-lines th.num, .rc-lines td.num { text-align: right; white-space: nowrap; }
.rc-lines td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rc-ptotal { width: min(100%, 360px); margin: 16px 0 10px auto; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.rc-proof { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.rc-proof img, .rc-pdf { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1.5px solid #111; display: grid; place-items: center; background: #111; color: var(--accent); font-weight: 900; font-size: .8rem; }
.rc-proof b { overflow-wrap: anywhere; }
.rc-recipient { font-weight: 800; overflow-wrap: anywhere; padding: 10px 12px; background: var(--soft); border-radius: 10px; }
.rc-void, .rc-notes { padding: 16px 20px; }
.rc-void summary, .rc-notes summary { cursor: pointer; font-weight: 800; }
.rc-import { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid #111; border-radius: 12px; margin: 10px 0; }
.rc-import b { overflow-wrap: anywhere; }
.rc-upload { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.rc-stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .rc-view { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .rc-grid { grid-template-columns: minmax(0, 1fr); } .rc-summary { position: static; } }
@media (max-width: 640px) {
  .rc-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 40px; grid-template-areas: "desc desc desc" "qty price price" "line line rm"; row-gap: 8px; }
  .rc-item .rc-desc { grid-area: desc; }
  .rc-item > .field:nth-child(2) { grid-area: qty; }
  .rc-item > .field:nth-child(3) { grid-area: price; }
  .rc-item .rc-line { grid-area: line; text-align: left; padding: 0; align-self: center; }
  .rc-item .rc-remove { grid-area: rm; margin: 0; }
  .rc-phead { flex-direction: column; }
  .rc-right { text-align: left; }
  .rc-stats3 { grid-template-columns: minmax(0, 1fr); }
  .rc-import { flex-direction: column; align-items: stretch; }
  .rc-preview .table-wrap { overflow-x: auto !important; }
  .rc-lines th, .rc-lines td { padding: 9px 6px; font-size: .85rem; }
  .rc-lines { min-width: 470px; }
}
@media print { .rc-tabs, .rc-actions, .rc-side { display: none; } }
.rc-perms { display: grid; gap: 8px; }
.rc-perms .check input:disabled + span { opacity: .75; }
/* ---------- Hebahan e-mel ---------- */
.mail-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mail-tools .search-field { flex: 1 1 240px; }
.mail-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--soft); border-radius: 10px; margin-bottom: 8px; }
.mail-list { max-height: 460px; overflow-y: auto; border: 1.5px solid #111; border-radius: 12px; }
.mail-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mail-row:last-child { border-bottom: 0; }
.mail-row:hover { background: #fafaf7; }
.mail-row:has(input:checked) { background: var(--accent-soft); }
.mail-row input { width: 18px; height: 18px; accent-color: #111; }
.mail-row b, .mail-row small { display: block; overflow-wrap: anywhere; }
.mail-row small { color: var(--muted); }
.mail-row.is-out { opacity: .55; cursor: not-allowed; }
.mail-src { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.mail-meter { height: 14px; border: 1.5px solid #111; border-radius: 999px; overflow: hidden; background: #fff; margin-bottom: 16px; }
.mail-meter span { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.mail-prog { margin-bottom: 20px; }
.mail-img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1.5px solid #111; margin-bottom: 12px; }
@media (max-width: 640px) { .mail-row { grid-template-columns: 22px minmax(0, 1fr); } .mail-src { grid-column: 2; justify-content: flex-start; } }
.mail-grid { grid-template-columns: minmax(0, 1fr) 400px; }
.mail-frame { border: 1.5px solid #111; border-radius: 14px; overflow: hidden; background: #f4f4f2; }
.mail-frame iframe { display: block; width: 100%; height: 560px; border: 0; background: #fff; }
.rc-summary .mail-frame iframe { height: 520px; }
.tpl-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tpl-opt { position: relative; display: grid; gap: 4px; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.tpl-opt input { position: absolute; opacity: 0; }
.tpl-opt:has(input:checked) { border: 2px solid #111; box-shadow: 4px 4px var(--accent); background: var(--accent-soft); }
.tpl-opt:has(input:focus-visible) { outline: 3px solid var(--accent); }
.tpl-opt b { font-size: .9rem; }
.tpl-opt small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.tpl-thumb { display: grid; gap: 4px; height: 92px; padding: 8px; border-radius: 10px; border: 1px solid #ddd; background: #f4f4f2; margin-bottom: 4px; align-content: start; }
.tpl-thumb i { display: block; height: 8px; border-radius: 3px; background: #d9d9d4; }
.tpl-thumb i:nth-child(3) { width: 70%; } .tpl-thumb i:nth-child(4) { width: 45%; height: 12px; border-radius: 5px; }
.tpl-klasik i:first-child { height: 14px; background: #111; box-shadow: 0 4px 0 #b8e84e; margin-bottom: 4px; } .tpl-klasik i:nth-child(4) { background: #b8e84e; }
.tpl-promosi i:first-child { height: 32px; background: #b8e84e; border: 1.5px solid #111; } .tpl-promosi i:nth-child(4) { width: 100%; background: #111; }
.tpl-poster { justify-items: center; } .tpl-poster i:first-child { width: 100%; height: 38px; background: linear-gradient(135deg, #b8e84e, #6fbf2a); border: 1.5px solid #111; } .tpl-poster i:nth-child(4) { background: #111; }
.tpl-gelap { background: #0b0b0b; border-color: #0b0b0b; } .tpl-gelap i { background: #3a3a3a; } .tpl-gelap i:first-child { height: 12px; background: #fff; width: 55%; } .tpl-gelap i:nth-child(4) { background: #b8e84e; }
.tpl-surat { background: #fff; } .tpl-surat i { height: 5px; } .tpl-surat i:first-child { width: 40%; height: 8px; background: #111; } .tpl-surat i:nth-child(4) { width: 30%; height: 5px; background: #111; }
@media (max-width: 1200px) { .tpl-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .mail-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .tpl-pick { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .tpl-opt { flex: 0 0 46%; scroll-snap-align: start; } .mail-frame iframe, .rc-summary .mail-frame iframe { height: 480px; } }
/* ---------- Pembantu AI ---------- */
.ai-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ai-layout > .card, .ai-layout aside > .card { margin: 0; }
.ai-card-main { padding: 0 !important; overflow: hidden; }
.ai-wrap { display: grid; gap: 10px; padding: 16px; }
.ai-log { height: min(62vh, 640px); overflow-y: auto; display: grid; gap: 12px; align-content: start; padding: 6px 4px 10px; }
.ai-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 92%; }
.ai-msg.is-user { margin-left: auto; justify-content: flex-end; }
.ai-av { flex: none; width: 32px; height: 32px; border-radius: 10px; background: #111; color: var(--accent); display: grid; place-items: center; font: 900 .72rem/1 Arial, sans-serif; }
.ai-bubble { padding: 10px 14px; border-radius: 16px; background: var(--soft); border: 1.5px solid #111; line-height: 1.55; overflow-wrap: anywhere; min-width: 0; }
.ai-bubble p { margin: 0 0 6px; } .ai-bubble p:last-child { margin: 0; } .ai-bubble ul { margin: 4px 0 8px; padding-left: 20px; }
.ai-msg.is-user .ai-bubble { background: var(--accent); border-color: #111; border-bottom-right-radius: 4px; }
.ai-msg:not(.is-user) .ai-bubble { border-top-left-radius: 4px; }
.ai-err { background: var(--bad-bg) !important; border-color: var(--bad) !important; color: var(--bad); }
.ai-typing { display: flex; gap: 5px; padding: 14px 16px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: #111; animation: aiDot 1s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; } .ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-card { flex: 1; min-width: 0; max-width: 420px; border: 2px solid #111; border-radius: 16px; padding: 14px 16px; background: #fff; box-shadow: 4px 4px var(--accent); display: grid; gap: 6px; }
.ai-card ul { margin: 2px 0; padding-left: 18px; font-size: .92rem; }
.ai-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; font-size: .88rem; }
.ai-card-head .icon { vertical-align: -3px; }
.ai-card-total { display: flex; justify-content: space-between; padding: 8px 10px; background: var(--accent-soft); border-radius: 10px; }
.ai-card-total b { font-size: 1.1rem; }
.ai-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-chip { border: 1.5px solid #111; background: #fff; border-radius: 999px; padding: 6px 12px; font: 700 .85rem var(--body); cursor: pointer; }
.ai-chip:hover { background: var(--accent-soft); }
.ai-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ai-form textarea { resize: vertical; min-height: 52px; max-height: 200px; }
@media (max-width: 1100px) { .ai-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .ai-msg { max-width: 100%; } .ai-log { height: 60vh; } .ai-form { grid-template-columns: minmax(0, 1fr); } .ai-wrap { padding: 10px; } }
/* ---------- Kod promo ---------- */
.promo-form { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; }
.promo-form input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.promo-applied { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 2px dashed #111; border-radius: 12px; background: var(--accent-soft); margin: 0 0 14px; }
.promo-applied span { flex: 1; }
.promo-code { font: 800 .9rem/1 ui-monospace, Menlo, Consolas, monospace; background: #111; color: var(--accent); padding: 3px 7px; border-radius: 6px; letter-spacing: .05em; white-space: nowrap; }
.rc-promo { max-width: 460px; }
.mail-rand { display: inline-flex; gap: 6px; align-items: center; }
.mail-rand input { width: 64px; padding: 6px 8px; }
/* Arahan suara */
.ai-btns { display: flex; gap: 8px; align-items: stretch; }
.ai-mic { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 46px; border: 2px solid #111; border-radius: 12px; background: #fff; font: 800 .95rem var(--body); cursor: pointer; white-space: nowrap; }
.ai-mic .icon { width: 20px; height: 20px; }
.ai-mic:hover { background: var(--accent-soft); }
.ai-mic.is-rec { background: #e5372b; border-color: #a31d14; color: #fff; animation: aiPulse 1.2s infinite; }
.ai-mic.is-busy { opacity: .7; cursor: progress; }
.ai-mic:disabled { opacity: .45; cursor: not-allowed; }
@keyframes aiPulse { 0% { box-shadow: 0 0 0 0 rgba(229, 55, 43, .5); } 70% { box-shadow: 0 0 0 12px rgba(229, 55, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 55, 43, 0); } }
.ai-voice-opts { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .88rem; }
@media (max-width: 640px) { .ai-btns { display: grid; grid-template-columns: 1fr 1fr; } .ai-mic { justify-content: center; min-height: 52px; font-size: 1rem; } }
@media (max-width: 640px) {
  .ai-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px 2px; }
  .ai-chips::-webkit-scrollbar { display: none; }
  .ai-chip { flex: none; white-space: nowrap; }
  .ai-log { height: calc(100dvh - 360px); min-height: 300px; }
  .ai-voice-opts { font-size: .8rem; }
}
/* ---------- FazToken ---------- */
.ft-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; margin-bottom: 20px; border: 2px solid #111; border-radius: 20px; background: #111; color: #fff; box-shadow: 5px 5px var(--accent); }
.ft-hero .eyebrow { color: #bbb; margin: 0; }
.ft-big { display: block; font: 900 2.4rem/1.1 var(--head); color: var(--accent); letter-spacing: -.02em; }
.ft-hero small { color: #bbb; }
.ft-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ft-pack { display: grid; gap: 4px; justify-items: start; padding: 16px; border: 2px solid #111; border-radius: 16px; background: #fff; }
.ft-pack b { font: 900 1.25rem var(--head); }
.ft-pack span { color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.ft-how { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1.5px solid #111; margin-bottom: 16px; font-size: .9rem; }
.ft-how ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.aiclub-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 180px; }
.aiclub-form input, .aiclub-form select { padding: 7px 9px; font-size: .88rem; }
.ai-warn { color: #8a5a00; display: flex; gap: 4px; align-items: center; margin-top: 2px; } .ai-warn svg { width: 14px; height: 14px; flex: none; }

/* ---------- Pendapatan ---------- */
.inc-filter { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.inc-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.inc-tab { padding: 7px 13px; border: 1.5px solid #111; border-radius: 999px; font-weight: 800; font-size: .86rem; color: #111; text-decoration: none; background: #fff; }
.inc-tab:hover { background: #f3f3f3; }
.inc-tab.is-on { background: #111; color: #fff; }
.inc-custom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inc-custom input[type=date] { padding: 6px 8px; font-size: .86rem; width: auto; }
.stat-link { color: inherit; text-decoration: none; }
.stat-link:hover { text-decoration: underline; }
.inc-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 220px; padding: 6px 2px 0; }
.inc-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.inc-val { font-size: .66rem; font-weight: 800; color: #444; white-space: nowrap; margin-bottom: 3px; }
.inc-stack { width: 100%; max-width: 38px; min-height: 2px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; overflow: hidden; background: #eee; }
.inc-stack i { display: block; min-height: 0; }
.inc-i { background: #111; }
.inc-r { background: var(--lime, #b8e84e); }
.inc-bar small { margin-top: 6px; font-size: .7rem; color: #666; white-space: nowrap; }
.inc-legend { display: flex; gap: 16px; margin-top: 12px; font-size: .82rem; color: #555; }
.inc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.inc-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid #111; }
.inc-cats { display: grid; gap: 8px; }
.inc-cat { display: grid; gap: 6px; padding: 10px 12px; border: 1.5px solid #e3e3e3; border-radius: 12px; color: #111; text-decoration: none; }
.inc-cat:hover, .inc-cat.is-on { border-color: #111; }
.inc-cat.is-on { background: #f5ffdf; }
.inc-cat-top { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.inc-meter { height: 6px; background: #eee; border-radius: 99px; overflow: hidden; }
.inc-meter i { display: block; height: 100%; background: #111; border-radius: 99px; }
.inc-top { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: t; }
.inc-top li { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; counter-increment: t; }
.inc-top li span::before { content: counter(t) ". "; color: #888; }
.inc-ov { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 640px) {
  .inc-chart { gap: 3px; height: 180px; }
  .inc-val { display: none; }
  .inc-bar small { font-size: .6rem; }
}
.inc-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
.inc-ref, .inc-amt { white-space: nowrap; }
.inc-main .table td .badge { margin-top: 5px; }
