/* =========================================================
   BukuKas Pro — Stylesheet utama
   Desain modern, responsif, siap hosting (tanpa CDN).
   ========================================================= */
:root {
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-dark: #3730a3;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f2f4f9;
  --card: #ffffff;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --bad: #dc2626;
  --bad-bg: #fef2f2;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .05);
  --sidebar-w: 248px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }
small.hint, .muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.c-ok { color: var(--ok); }
.c-bad { color: var(--bad); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; border: 1.5px solid transparent;
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s;
  text-decoration: none !important; line-height: 1.2; white-space: nowrap;
}
.btn-primary { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, .3); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-secondary { background: #eef2ff; color: var(--brand); }
.btn-secondary:hover { background: #e0e7ff; }
.btn-outline { background: #fff; color: var(--ink-soft); border-color: #d3d8e3; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: #eef0f6; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-danger-ghost { background: transparent; color: var(--bad); }
.btn-danger-ghost:hover { background: var(--bad-bg); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-xs { padding: 4px 9px; font-size: 11.5px; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-locked { opacity: .75; }
.inline { display: inline; }
button.btn { border: 1.5px solid transparent; }

/* ---------- Alert ---------- */
.alert { padding: 11px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px; border: 1px solid; }
.alert-success { background: var(--ok-bg); border-color: #a7f3d0; color: #047857; }
.alert-error { background: var(--bad-bg); border-color: #fecaca; color: #b91c1c; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.notice { padding: 11px 15px; border-radius: 10px; margin-bottom: 18px; font-size: 13.5px; border: 1px solid; }
.notice.info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* ---------- Shell aplikasi ---------- */
.app-body { min-height: 100vh; }
.app-shell { display: flex; min-height: 100vh; }
.nav-toggle { display: none; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(165deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
  color: #e0e7ff; display: flex; flex-direction: column; padding: 20px 14px; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: #fff; padding: 4px 10px 16px; }
.brand .brand-ic { width: 30px; height: 30px; color: #a5b4fc; }
.brand-light { color: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: #c7d2fe; font-size: 13.8px; font-weight: 600; transition: .15s;
}
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active { background: #fff; color: var(--brand-dark); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.nav-ic { width: 19px; height: 19px; flex-shrink: 0; }
.nav-logout { margin-top: 6px; color: #fda4af; }
.nav-logout:hover { background: rgba(253, 164, 175, .12); color: #fecdd3; }
.plan-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 13px; margin-top: 14px; }
.plan-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.plan-price { font-size: 11.5px; color: #c7d2fe; }
.quota-row { display: flex; justify-content: space-between; font-size: 12px; color: #c7d2fe; margin-bottom: 5px; }
.quota-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.16); margin-bottom: 10px; overflow: hidden; }
.quota-bar span { display: block; height: 100%; background: linear-gradient(90deg, #34d399, #a5b4fc); border-radius: 4px; }

.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 26px;
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.page-title { font-size: 18px; font-weight: 800; }
.nav-burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 6px; }
.nav-burger span { width: 20px; height: 2.4px; background: var(--ink); border-radius: 2px; }
.user-chip { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; font-size: 13px;
}
.user-meta { line-height: 1.25; }
.user-meta b { font-size: 13px; display: block; }
.user-meta small { color: var(--muted); font-size: 11.5px; }

.main { padding: 24px 26px; flex: 1; max-width: 1280px; width: 100%; margin: 0 auto; }
.app-footer { padding: 16px 26px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); background: var(--card); }

/* ---------- Page head & kartu ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { font-size: 21px; font-weight: 800; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #eef0f5; margin-bottom: 20px; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px 0; gap: 10px; }
.card-head h3 { font-size: 15px; font-weight: 700; }
.card-body { padding: 14px 18px 18px; }
.link-sm { font-size: 12.5px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2-1 { display: grid; grid-template-columns: 1.8fr 1fr; gap: 20px; align-items: start; }
.grid-2-1 > .card { margin-bottom: 0; }

/* ---------- Stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; border: 1px solid #eef0f5; }
.stat-card small { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; display: block; margin-bottom: 6px; }
.stat-card b { font-size: 20px; font-weight: 800; display: block; }
.stat-card span { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }

/* ---------- Tabel ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; padding: 10px 14px; background: #f8f9fd; color: var(--muted);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 10px 14px; border-bottom: 1px solid #f0f2f7; vertical-align: middle; }
.table tbody tr:hover { background: #fafbff; }
.table .ta-r { text-align: right; }
.table .ta-c { text-align: center; }
.row-total-line td { background: #f8f9fd; }
.cat-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.cat-badge .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.item-tag { background: #eef2ff; color: var(--brand); font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.item-lines { margin-top: 4px; font-size: 12px; color: var(--muted); }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-admin { background: #fef3c7; color: #92400e; }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty p { margin-bottom: 12px; }

/* ---------- Filter & pager ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 16px; align-items: center; }
.filter-bar input, .filter-bar select { min-width: 120px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; color: var(--muted); font-size: 13px; }

/* ---------- Form ---------- */
.form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin: 13px 0 5px; }
.form input[type=text], .form input[type=email], .form input[type=password],
.form input[type=number], .form input[type=date], .form input[type=file], .form select, .filter-bar input, .filter-bar select {
  width: 100%; padding: 9px 12px; border: 1.5px solid #d7dbe4; border-radius: 10px; font-size: 13.8px;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
.form input:focus, .form select:focus, .filter-bar input:focus, .filter-bar select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .14);
}
.form input[disabled] { background: #f3f4f6; color: var(--muted); }
.form .filter-bar input, .form .filter-bar select { width: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; }
.seg-radio { display: flex; gap: 10px; }
.radio-pill {
  flex: 1; text-align: center; border: 1.5px solid #d7dbe4; border-radius: 10px; padding: 9px 10px;
  cursor: pointer; font-weight: 600; font-size: 13px; margin: 0 !important; background: #fff;
}
.radio-pill:has(input:checked) { border-color: var(--brand); background: #eef2ff; color: var(--brand-dark); }
.radio-pill input { margin-right: 6px; }
.color-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.swatch { width: 30px; height: 30px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.swatch input { display: none; }
.swatch:has(input:checked) { outline: 3px solid rgba(17, 24, 39, .25); outline-offset: 2px; }

/* ---------- Item rows ---------- */
.items-box { margin-top: 16px; border: 1.5px dashed #cdd4e1; border-radius: 12px; padding: 14px; background: #fafbfe; }
.items-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.items-table input { min-width: 70px; padding: 7px 10px; }
.items-table .row-total { font-weight: 700; white-space: nowrap; }
.row-del { font-size: 15px; }

/* ---------- Kotak terkunci & upgrade ---------- */
.locked-note {
  margin-top: 14px; background: var(--warn-bg); border: 1px solid #fde68a; color: #92400e;
  padding: 11px 14px; border-radius: 10px; font-size: 13px;
}
.upgrade-hero { max-width: 560px; margin: 60px auto; text-align: center; background: var(--card); padding: 44px 36px; border-radius: 18px; box-shadow: var(--shadow); }
.upgrade-icon { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 22px; background: #eef2ff; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.upgrade-icon svg { width: 38px; height: 38px; }
.upgrade-hero h2 { font-size: 20px; margin-bottom: 10px; }
.upgrade-hero p { color: var(--muted); margin-bottom: 20px; }
.upgrade-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Chart & donut ---------- */
.chart-svg { width: 100%; height: auto; display: block; }
.donut-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.donut-wrap .chart-svg { max-width: 210px; }
.donut-legend { list-style: none; flex: 1; min-width: 180px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px; border-bottom: 1px dashed #eef0f5; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.donut-legend .dl-name { flex: 1; font-weight: 600; }
.donut-legend .dl-val { color: var(--muted); }
.donut-empty { color: var(--muted); text-align: center; padding: 30px 0; }

/* ---------- Promo / faq ---------- */
.promo-card { background: linear-gradient(130deg, #eef2ff, #fdf2f8); border: 1px solid #e0e7ff; }
.promo-card h3 { margin-bottom: 8px; }
.promo-card p { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 10px; }
.promo-card .btn { margin-top: 6px; }
.faq details { border-bottom: 1px solid #eef0f5; padding: 10px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 13.8px; }
.faq p { color: var(--muted); font-size: 13.2px; margin-top: 8px; }
.kop-details { margin-top: 16px; border: 1.5px dashed #cdd4e1; border-radius: 12px; padding: 12px 14px; background: #fafbfe; }
.kop-details summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.terbilang-preview { margin-top: 14px; background: var(--ok-bg); border: 1px solid #a7f3d0; color: #047857; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-style: italic; display: none; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-card {
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow); border: 1.5px solid #eef0f5;
  padding: 22px 20px; position: relative; display: flex; flex-direction: column;
}
.price-card.hot { border-color: #f59e0b; box-shadow: 0 10px 30px rgba(245, 158, 11, .18); }
.price-card.current { outline: 3px solid rgba(79, 70, 229, .35); }
.hot-tag, .cur-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: #f59e0b; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.cur-tag { background: var(--brand); }
.price-card h3 { font-size: 16px; font-weight: 800; }
.price { margin: 8px 0 4px; }
.price b { font-size: 22px; font-weight: 800; }
.price span { color: var(--muted); font-size: 12px; margin-left: 4px; }
.tagline { color: var(--muted); font-size: 12.3px; min-height: 34px; margin-bottom: 10px; }
.price-card ul { list-style: none; flex: 1; margin: 6px 0 16px; }
.price-card li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.6px; padding: 4.5px 0; }
.price-card li small { color: var(--muted); }
.price-card li .ck {
  width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; flex-shrink: 0; margin-top: 2px;
}
.price-card li.on .ck { background: var(--ok-bg); color: var(--ok); }
.price-card li.off .ck { background: #f3f4f6; color: #9ca3af; }
.price-card li.off { color: #9ca3af; }
.app-pricing { margin-bottom: 24px; }

/* ---------- Plan badge ---------- */
.plan-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: #f1f5f9; color: #475569; }
.plan-badge[data-plan="reguler"] { background: #f1f5f9; color: #475569; }
.plan-badge[data-plan="basic"] { background: #e0f2fe; color: #0369a1; }
.plan-badge[data-plan="standar"] { background: #ede9fe; color: #6d28d9; }
.plan-badge[data-plan="premium"] { background: #fef3c7; color: #b45309; }

/* ---------- Halaman auth ---------- */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 26px; background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fdf2f8 100%); }
.auth-card {
  display: grid; grid-template-columns: 380px 1fr; max-width: 920px; width: 100%;
  background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(30, 27, 75, .16);
}
.auth-card.compact { max-width: 840px; }
.auth-side { background: linear-gradient(160deg, #1e1b4b, #4338ca); color: #fff; padding: 38px 32px; display: flex; flex-direction: column; }
.auth-side h2 { font-size: 20px; margin: 22px 0 12px; line-height: 1.35; }
.auth-side ul { list-style: none; margin: 0 0 18px; }
.auth-side li { padding: 6px 0; color: #c7d2fe; font-size: 13.4px; }
.auth-side li::before { content: "\2713"; color: #34d399; font-weight: 800; margin-right: 9px; }
.auth-side-p { color: #c7d2fe; font-size: 13.5px; }
.auth-side-foot { margin-top: auto; font-size: 13px; color: #c7d2fe; }
.auth-side-foot a { color: #fff; font-weight: 700; text-decoration: underline; }
.auth-main { padding: 38px 36px; }
.auth-main h1 { font-size: 22px; margin-bottom: 4px; }
.auth-sub { color: var(--muted); margin-bottom: 16px; font-size: 13.5px; }
.auth-alt { margin-top: 16px; color: var(--muted); font-size: 12.5px; }

/* ---------- Landing ---------- */
.land-body { background: #fff; color: var(--ink); }
.land-nav {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 5vw;
  position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); z-index: 50;
}
.land-nav .brand { color: var(--brand-dark); padding: 0; font-size: 18px; }
.land-nav .brand-ic { width: 28px; height: 28px; color: var(--brand); }
.land-nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.land-nav-links a { color: var(--ink-soft); }
.land-nav-links a:hover { color: var(--brand); }
.land-nav-links .link-login { color: var(--brand); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; padding: 72px 5vw 64px; max-width: 1280px; margin: 0 auto; }
.hero .pill {
  display: inline-block; background: #eef2ff; color: var(--brand); font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .3px;
}
.hero h1 { font-size: 40px; line-height: 1.16; font-weight: 900; letter-spacing: -.5px; margin-bottom: 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--ink-soft); font-size: 15.5px; max-width: 540px; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-points { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 12.8px; }
.hero-points li::before { content: "\2713"; color: var(--ok); font-weight: 800; margin-right: 6px; }

.hero-card {
  background: linear-gradient(160deg, #1e1b4b, #4338ca); border-radius: 22px; padding: 22px;
  color: #e0e7ff; box-shadow: 0 30px 70px rgba(49, 46, 129, .35); position: relative;
}
.hc-top { display: flex; gap: 6px; margin-bottom: 14px; }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.hc-title { font-weight: 700; color: #fff; margin-bottom: 14px; }
.hc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.hc-stat { background: rgba(255,255,255,.09); border-radius: 12px; padding: 10px 14px; }
.hc-stat small { display: block; font-size: 10.5px; color: #a5b4fc; }
.hc-stat b { font-size: 15px; color: #fff; }
.hc-stat.ok b { color: #6ee7b7; } .hc-stat.bad b { color: #fda4af; }
.hc-bars { display: flex; gap: 12px; align-items: flex-end; height: 110px; margin: 6px 4px 16px; }
.hc-bar { flex: 1; display: flex; gap: 4px; align-items: flex-end; height: 100%; }
.hc-bar i, .hc-bar em { display: block; width: 50%; border-radius: 4px 4px 0 0; height: var(--h); }
.hc-bar i { background: #34d399; } .hc-bar em { background: #fb7185; }
.hc-row { display: flex; justify-content: space-between; font-size: 12.8px; padding: 8px 4px; border-top: 1px solid rgba(255,255,255,.12); }
.hc-row .ok { color: #6ee7b7; } .hc-row .bad { color: #fda4af; }
.hc-badge-kw {
  margin-top: 12px; background: rgba(52, 211, 153, .16); border: 1px dashed #34d399; color: #a7f3d0;
  font-size: 11.5px; padding: 8px 12px; border-radius: 10px; font-weight: 600;
}

.land-section { padding: 64px 5vw; max-width: 1280px; margin: 0 auto; }
.land-section.alt { background: #f8f9fd; width: 100%; max-width: none; }
.land-section.alt > .section-head, .land-section.alt > .grid-3, .land-section.alt > .steps, .land-section.alt > .pricing-grid { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 { font-size: 28px; font-weight: 900; letter-spacing: -.3px; }
.section-head p { color: var(--muted); margin-top: 8px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type-card, .feat-card, .step { background: #fff; border: 1px solid #eef0f5; border-radius: 16px; padding: 24px 22px; box-shadow: 0 2px 10px rgba(17,24,39,.04); }
.land-section.alt .type-card, .land-section.alt .feat-card, .land-section.alt .step { box-shadow: var(--shadow); }
.type-ic, .feat-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 19px; margin-bottom: 14px; }
.type-card h3, .feat-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.type-card p, .feat-card p { color: var(--muted); font-size: 13.2px; }
.steps .step { text-align: center; }
.step-n {
  width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 900; font-size: 17px;
}
.step h3 { margin-bottom: 8px; font-size: 15.5px; }
.step p { color: var(--muted); font-size: 13.2px; }
.land-footer { border-top: 1px solid var(--line); padding: 26px 5vw; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.land-footer a { color: var(--ink-soft); font-weight: 600; }

/* ---------- Kwitansi ---------- */
.kwitansi-body { background: #e9ecf3; }
.kw-toolbar { display: flex; gap: 8px; max-width: 820px; margin: 18px auto; align-items: center; padding: 0 14px; }
.kw-paper {
  background: #fff; max-width: 820px; margin: 0 auto 40px; padding: 34px 40px 40px;
  border-radius: 8px; box-shadow: 0 12px 40px rgba(17, 24, 39, .12); position: relative; overflow: hidden;
}
.kw-paper::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.kw-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.kw-co { display: flex; gap: 14px; align-items: center; }
.kw-logo { width: 74px; height: 74px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); padding: 4px; background: #fff; }
.kw-co-name { font-size: 19px; font-weight: 900; }
.kw-co-sub { color: var(--muted); font-size: 12.5px; }
.kw-title { text-align: right; }
.kw-title-word { font-size: 26px; font-weight: 900; letter-spacing: 5px; color: var(--brand-dark); }
.kw-no, .kw-date { font-size: 13px; color: var(--ink-soft); }
.kw-rule { border: 0; border-top: 2.5px solid var(--brand-dark); margin: 14px 0 18px; }
.kw-row { display: flex; margin-bottom: 7px; font-size: 14px; }
.kw-label { width: 165px; color: var(--muted); flex-shrink: 0; }
.kw-val b { font-size: 15px; }
.kw-terbilang { font-style: italic; font-weight: 600; }
.kw-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13.5px; }
.kw-table th { background: var(--brand-dark); color: #fff; padding: 8px 10px; text-align: left; font-size: 12px; }
.kw-table td { border: 1px solid #dfe3ec; padding: 7px 10px; }
.kw-table .r { text-align: right; } .kw-table .c { text-align: center; }
.kw-total-label { font-weight: 900; letter-spacing: 2px; background: #eef2ff; }
.kw-total-val { font-weight: 900; font-size: 15px; background: #eef2ff; }
.kw-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 26px; gap: 20px; }
.kw-meta { font-size: 13.5px; color: var(--ink-soft); }
.kw-sign { text-align: center; font-size: 13.5px; min-width: 220px; }
.kw-sign-space { height: 64px; }
.kw-sign-name { font-weight: 800; border-top: 1.5px solid var(--ink-soft); padding-top: 6px; }
.kw-stamp {
  position: absolute; bottom: 90px; left: 48px; transform: rotate(-9deg);
  border: 3px solid var(--ok); color: var(--ok); font-weight: 900; font-size: 19px; letter-spacing: 3px;
  padding: 8px 22px; border-radius: 8px; opacity: .82;
}
.kw-stamp.warn { border-color: var(--bad); color: var(--bad); }
.pass-input { width: 120px; padding: 4px 8px; border: 1.5px solid #d7dbe4; border-radius: 8px; font-size: 12px; }
.plan-form select { width: auto; padding: 4px 8px; font-size: 12px; border-radius: 8px; }
.logo-preview { display: flex; justify-content: center; margin-bottom: 12px; }
.logo-preview img { max-width: 180px; max-height: 120px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.logo-empty { color: var(--muted); border: 2px dashed #d7dbe4; border-radius: 10px; padding: 26px 40px; font-size: 13px; }

/* ---------- Print ---------- */
.print-only { display: none; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .sidebar, .topbar, .no-print, .app-footer, .kw-toolbar, .filter-bar, .page-head, .nav-toggle { display: none !important; }
  .main { padding: 0 !important; max-width: none !important; }
  .main-wrap { display: block; }
  .card { box-shadow: none !important; border: 1px solid #d7dbe4 !important; break-inside: avoid; }
  .print-only { display: flex !important; }
  .print-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 16px; }
  .print-header .ph-right { text-align: right; }
  .print-header b { font-size: 16px; }
  .print-header div { font-size: 12px; color: #444; }
  .signature-row { display: flex; justify-content: flex-end; margin-top: 40px; }
  .sig-box { text-align: center; min-width: 220px; font-size: 13px; }
  .sig-space { height: 64px; }
  .sig-name { font-weight: 800; border-top: 1px solid #111; padding-top: 6px; }
  .kw-paper { box-shadow: none !important; max-width: none; border-radius: 0; margin: 0; }
  .kw-stamp { bottom: auto; top: 220px; }
  a[href]:after { content: ""; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2-1 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-card { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .sidebar {
    position: fixed; left: -290px; transition: left .25s ease; box-shadow: 20px 0 60px rgba(0,0,0,.25);
  }
  .nav-toggle:checked ~ .sidebar { left: 0; }
  .nav-burger { display: flex; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .main { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .user-meta { display: none; }
  .hero h1 { font-size: 30px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .land-nav-links a:not(.btn) { display: none; }
  .filter-bar input, .filter-bar select { width: 100% !important; }
  .table { font-size: 12.5px; }
  .table th, .table td { padding: 8px 9px; }
  .page-actions { width: 100%; }
  .kw-paper { padding: 22px; }
  .kw-head { flex-direction: column; }
  .kw-title { text-align: left; }
}
