/* ==========================================================================
   Laporku — Laporan Keuangan via WhatsApp
   Tema terang modern ala SaaS: gradient indigo/violet + kartu kaca.
   ========================================================================== */

:root {
  --indigo: #4F46E5;
  --violet: #8B5CF6;
  --ink: #1F1B3A;
  --ink-2: #635F82;
  --ink-3: #8B88A6;
  --line: rgba(31, 27, 58, .10);
  --card: rgba(255, 255, 255, .62);
  --card-solid: #ffffff;
  --ok: #0F9D63;
  --ok-bg: rgba(15, 157, 99, .10);
  --warn: #B7791F;
  --warn-bg: rgba(183, 121, 31, .12);
  --danger: #D63B4A;
  --danger-bg: rgba(214, 59, 74, .10);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 46px -22px rgba(31, 27, 58, .35);
  --shadow-sm: 0 10px 26px -18px rgba(31, 27, 58, .40);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #F3F0FF;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.public { background: linear-gradient(160deg, #F6F3FF 0%, #F1F0FF 45%, #F7F4FF 100%); }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .35em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 .8em; }

.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }

/* ---------- Latar blob gradient ---------- */
.bg-blobs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 480px; height: 480px; background: #C7BFFF; top: -160px; left: -120px; }
.b2 { width: 420px; height: 420px; background: #FFD1EC; top: 120px; right: -140px; opacity: .45; }
.b3 { width: 520px; height: 520px; background: #BFE3FF; bottom: -200px; left: 25%; opacity: .40; }
.b4 { width: 360px; height: 360px; background: #DCD1FF; bottom: 60px; right: 12%; opacity: .35; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(120deg, var(--indigo), var(--violet)); color: #fff; box-shadow: 0 12px 26px -14px rgba(79, 70, 229, .8); }
.btn-primary:hover { box-shadow: 0 16px 30px -14px rgba(79, 70, 229, .95); }
.btn-ghost { background: rgba(255, 255, 255, .70); border-color: var(--line); color: var(--ink); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: #fff; }
.btn-outline { background: transparent; border-color: rgba(79, 70, 229, .35); color: var(--indigo); }
.btn-danger { background: #fff; border-color: rgba(214, 59, 74, .35); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-ok { background: linear-gradient(120deg, #12A167, #0F9D63); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Kartu kaca ---------- */
.card {
  background: var(--card);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 22px 12px; flex-wrap: wrap;
}
.card-title { font-size: 17px; margin: 0; }
.card-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.card-body { padding: 8px 22px 22px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Badge & alert ---------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 600; white-space: nowrap;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-muted { background: rgba(31, 27, 58, .07); color: var(--ink-2); }

.alert {
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px;
  font-size: 14px; border: 1px solid transparent;
}
.alert-info { background: rgba(79, 70, 229, .08); border-color: rgba(79, 70, 229, .18); color: #37308F; }
.alert-ok, .alert-success { background: var(--ok-bg); border-color: rgba(15, 157, 99, .20); color: #0A6B44; }
.alert-warn { background: var(--warn-bg); border-color: rgba(183, 121, 31, .22); color: #8A5B14; }
.alert-error { background: var(--danger-bg); border-color: rgba(214, 59, 74, .22); color: #A32A37; }

/* ---------- Formulir ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }

.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  border: 1px solid rgba(31, 27, 58, .14);
  background: rgba(255, 255, 255, .85); color: var(--ink); font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: rgba(79, 70, 229, .55);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); background: #fff;
}
.input-sm { padding: 8px 11px; font-size: 13.5px; border-radius: 10px; }
.textarea { min-height: 96px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }

/* ---------- Tabel ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); font-weight: 700; }
.table tbody tr:hover { background: rgba(255, 255, 255, .55); }
.table .num, .table .right { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.amount-in { color: var(--ok); font-weight: 600; }
.amount-out { color: var(--danger); font-weight: 600; }
.row-actions { display: flex; gap: 6px; }
.table-empty { padding: 26px; text-align: center; color: var(--ink-2); }

/* ==========================================================================
   Halaman publik (landing / daftar / login)
   ========================================================================== */
.pub-nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px) saturate(160%);
  background: rgba(247, 245, 255, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .8);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.brand-link { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand-link:hover { text-decoration: none; }
.brand-logo-sm, .brand-logo {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(130deg, var(--indigo), var(--violet));
  box-shadow: 0 10px 20px -12px rgba(79, 70, 229, .9);
}
.brand-text { font-size: 17px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255, 255, 255, .85); color: var(--indigo); text-decoration: none; }
.nav-cta { display: flex; gap: 8px; }

.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(79, 70, 229, .18);
  color: var(--indigo); font-size: 13px; font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; margin-bottom: 16px; }
.hero p.lead { font-size: 17px; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .hs strong { display: block; font-size: 24px; }
.hero-stats .hs span { font-size: 13px; color: var(--ink-2); }

/* Mock chat WhatsApp */
.phone {
  background: #fff; border-radius: 26px; padding: 14px; border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 60px -30px rgba(31, 27, 58, .55); max-width: 400px; margin-left: auto;
}
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; border-bottom: 1px solid var(--line); }
.phone-avatar { width: 36px; height: 36px; border-radius: 50%; background: #E7E3FF; display: grid; place-items: center; font-weight: 700; color: var(--indigo); }
.phone-bar .who { font-weight: 700; font-size: 14px; }
.phone-bar .on { font-size: 12px; color: var(--ok); }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 6px 6px; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow-sm); }
.bubble.in { align-self: flex-start; background: #F1F0F8; border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: linear-gradient(120deg, #DCF8C6, #D3F5BF); border-bottom-right-radius: 4px; }
.bubble .t { display: block; font-size: 11px; color: var(--ink-3); text-align: right; margin-top: 3px; }
.bubble b { font-weight: 700; }
.bubble pre { margin: 6px 0 0; font: inherit; white-space: pre-wrap; }

.section { padding: 54px 0; }
.section-head { max-width: 42em; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head p { color: var(--ink-2); font-size: 16px; margin: 0; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature {
  background: var(--card); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .75); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(130deg, rgba(79, 70, 229, .12), rgba(139, 92, 246, .16)); margin-bottom: 14px;
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 14px; margin: 0; }

.steps { counter-reset: step; }
.step {
  background: var(--card); border: 1px solid rgba(255, 255, 255, .75); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm); position: relative;
}
.step .badge-num {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(130deg, var(--indigo), var(--violet)); margin-bottom: 14px;
}
.step h3 { font-size: 16px; }
.step p { color: var(--ink-2); font-size: 14px; margin: 0; }

.pricing { align-items: stretch; }
.price-card {
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 20px; padding: 26px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
.price-card.featured { border-color: rgba(79, 70, 229, .35); box-shadow: 0 28px 60px -30px rgba(79, 70, 229, .75); }
.price-card .badge-top {
  position: absolute; top: -13px; left: 22px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: linear-gradient(120deg, var(--indigo), var(--violet)); color: #fff;
}
.price-card h3 { font-size: 18px; margin: 0; }
.price-amount { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.price-amount span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.price-desc { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.price-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.price-features li { font-size: 14px; padding-left: 24px; position: relative; color: var(--ink); }
.price-features li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700;
}
.price-card .btn { margin-top: auto; }

.faq-item {
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.faq-item summary { cursor: pointer; font-weight: 650; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--indigo); font-weight: 700; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }

.cta-band {
  background: linear-gradient(120deg, rgba(79, 70, 229, .95), rgba(139, 92, 246, .92));
  color: #fff; border-radius: 24px; padding: 40px; text-align: center;
  box-shadow: 0 30px 70px -34px rgba(79, 70, 229, .9);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); }
.cta-band .btn { background: #fff; color: var(--indigo); }

.pub-foot { margin-top: 60px; padding: 34px 0 46px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.foot-inner { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.foot-brand { font-weight: 700; margin-bottom: 4px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot-contact { font-size: 14px; color: var(--ink-2); }

/* ==========================================================================
   Area aplikasi
   ========================================================================== */
.app .layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.sidebar {
  width: 264px; flex: 0 0 264px; padding: 20px 16px;
  background: rgba(255, 255, 255, .58); backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, .8);
  display: flex; flex-direction: column; gap: 18px;
}
.brand-box { display: flex; align-items: center; gap: 12px; }
.brand-name { font-weight: 700; font-size: 15px; }
.brand-sub { font-size: 11.5px; color: var(--ink-3); }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  color: var(--ink-2); font-weight: 600; font-size: 14px;
}
.nav-item:hover { background: rgba(255, 255, 255, .8); color: var(--ink); text-decoration: none; }
.nav-item.active { background: linear-gradient(120deg, rgba(79, 70, 229, .14), rgba(139, 92, 246, .16)); color: var(--indigo); }
.nav-ico { width: 20px; text-align: center; }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 14px 12px 4px; }
.sidebar-foot { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: linear-gradient(130deg, var(--indigo), var(--violet)); color: #fff; font-weight: 700;
}
.user-name { font-size: 14px; font-weight: 650; line-height: 1.2; }
.user-role { font-size: 12px; color: var(--ink-3); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 18px 26px;
  background: rgba(255, 255, 255, .45); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .8); position: sticky; top: 0; z-index: 10;
}
.page-title { font-size: 19px; margin: 0; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.clock { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.icon-btn {
  display: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .8);
  border-radius: 10px; padding: 8px 11px; font-size: 16px; cursor: pointer;
}
.inline-form { margin: 0; }
.content { padding: 26px; flex: 1; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 26px; }
.kpi {
  background: var(--card); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .75); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.kpi-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 700; }
.kpi-value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.kpi-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.kpi-ok .kpi-value { color: var(--ok); }
.kpi-danger .kpi-value { color: var(--danger); }
.kpi-brand .kpi-value { background: linear-gradient(120deg, var(--indigo), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Grafik */
.chart { display: grid; gap: 10px; }
.chart-legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot-in { background: linear-gradient(120deg, var(--indigo), var(--violet)); }
.dot-out { background: #FFB4C0; }
.chart-bars { display: flex; gap: 10px; align-items: flex-end; overflow-x: auto; padding-bottom: 6px; }
.chart-col { flex: 1 0 62px; text-align: center; }
.chart-stack { height: 150px; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.bar { width: 16px; border-radius: 6px 6px 3px 3px; transition: opacity .15s; }
.bar-in { background: linear-gradient(180deg, var(--violet), var(--indigo)); }
.bar-out { background: linear-gradient(180deg, #FFC9D2, #FF8FA3); }
.bar:hover { opacity: .8; }
.chart-label { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.chart-profit { font-size: 11.5px; color: var(--ink-3); }
.chart-profit.pos { color: var(--ok); }
.chart-profit.neg { color: var(--danger); }

/* Daftar kategori */
.cat-list { display: grid; gap: 14px; }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.cat-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cat-bar { height: 8px; border-radius: 6px; background: rgba(31, 27, 58, .07); overflow: hidden; }
.cat-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(120deg, var(--indigo), var(--violet)); }
.cat-amount { font-weight: 700; white-space: nowrap; }

/* Login & daftar */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; position: relative; z-index: 1; }
.auth-card {
  width: 100%; max-width: 520px; background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px; box-shadow: var(--shadow); padding: 30px;
}
.auth-card.wide { max-width: 860px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .brand-logo { margin: 0 auto 12px; width: 46px; height: 46px; }
.auth-title { font-size: 22px; }
.auth-sub { color: var(--ink-2); font-size: 14px; }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 18px; }

.tabs { display: flex; gap: 6px; padding: 5px; background: rgba(31, 27, 58, .05); border-radius: 13px; margin-bottom: 20px; }
.tabs a, .tabs button {
  flex: 1; text-align: center; padding: 9px 12px; border-radius: 10px; border: 0; background: transparent;
  font: inherit; font-weight: 650; color: var(--ink-2); cursor: pointer; font-size: 14px;
}
.tabs a:hover, .tabs button:hover { text-decoration: none; color: var(--ink); }
.tabs .active { background: #fff; color: var(--indigo); box-shadow: var(--shadow-sm); }

/* Pilihan paket (pendaftaran & perpanjangan) */
.pkg-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pkg-option {
  border: 1.5px solid rgba(31, 27, 58, .12); border-radius: 16px; padding: 16px 18px;
  background: rgba(255, 255, 255, .85); cursor: pointer; display: block; position: relative;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.pkg-option:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pkg-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pkg-option.selected { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.pkg-option .po-name { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.pkg-option .po-price { font-size: 21px; font-weight: 800; margin: 8px 0 2px; }
.pkg-option .po-price small { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pkg-option ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.pkg-option .po-badge {
  font-size: 11px; font-weight: 700; color: #fff; padding: 2px 9px; border-radius: 999px;
  background: linear-gradient(120deg, var(--indigo), var(--violet));
}

.pay-box {
  background: rgba(79, 70, 229, .06); border: 1px dashed rgba(79, 70, 229, .3);
  border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14px; margin-bottom: 18px;
}
.pay-box pre { margin: 6px 0 0; font: inherit; white-space: pre-wrap; }

.code-inline { background: rgba(31, 27, 58, .06); padding: 2px 7px; border-radius: 6px; font-size: 13px; }
.mono { font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }

.copy-field { display: flex; gap: 8px; align-items: stretch; }
.copy-field .input { flex: 1; font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }

.steps-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps-list li { display: flex; gap: 12px; font-size: 14px; }
.steps-list .n {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center;
  background: rgba(79, 70, 229, .12); color: var(--indigo); font-weight: 700; font-size: 13px;
}

.pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager-item { padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); font-size: 13.5px; }
.pager-item.active { background: linear-gradient(120deg, var(--indigo), var(--violet)); color: #fff; border-color: transparent; }

.wa-log { display: grid; gap: 12px; max-height: 520px; overflow-y: auto; }
.wa-line { background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.wa-line .meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.wa-line .msg { font-size: 14px; white-space: pre-wrap; margin-top: 4px; }
.wa-line .rep { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; }
.wa-line.in { border-left: 3px solid var(--indigo); }
.wa-line.out { border-left: 3px solid var(--ok); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.chip.done { background: var(--ok-bg); border-color: rgba(15, 157, 99, .25); color: var(--ok); }
.chip.todo { background: var(--danger-bg); border-color: rgba(214, 59, 74, .2); color: var(--danger); }

.grid-2-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

/* ============================================================
   Template pesan WhatsApp (Pengaturan → Template Pesan)
   Pratinjau meniru gelembung chat WhatsApp versi terang.
   ============================================================ */
.wa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.wa-card { display: flex; flex-direction: column; gap: 10px; }
.wa-card > .wa-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.wa-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em; text-transform: none;
  color: var(--indigo); background: rgba(79, 70, 229, .10); border: 1px solid rgba(79, 70, 229, .22);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.wa-phone {
  border-radius: 14px; padding: 14px; border: 1px solid var(--line); background: #efeae2;
  background-image: radial-gradient(rgba(31, 27, 58, .05) 1px, transparent 1px);
  background-size: 16px 16px; box-shadow: var(--shadow-sm);
}
.wa-bubble {
  background: #d9fdd3; color: #111b21; border-radius: 12px 12px 12px 3px;
  padding: 10px 13px; font-size: 13.5px; line-height: 1.55; word-break: break-word;
  box-shadow: 0 1px 2px rgba(31, 27, 58, .12); max-height: 420px; overflow: auto;
}
.wa-bubble b { font-weight: 700; color: #0b1418; }
.wa-bubble i { font-style: italic; color: #3b4a54; }
.wa-bubble .wa-a { color: #027eb5; text-decoration: underline; }
.wa-meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 6px; font-size: 10.5px; color: #667781; }
.wa-meta .wa-tick { color: #53bdeb; font-size: 11px; }

.tpl-group {
  margin: 28px 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.tpl-row {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 20px; align-items: start;
  padding: 18px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .55);
}
.tpl-edit { min-width: 0; }
.tpl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tpl-title { font-size: 15px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tpl-textarea {
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.65; min-height: 260px; white-space: pre-wrap;
}

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .tpl-row { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 40; transform: translateX(-105%);
    transition: transform .22s ease; box-shadow: var(--shadow); background: rgba(250, 249, 255, .97);
  }
  .sidebar.open { transform: translateX(0); }
  .icon-btn { display: inline-block; }
  .content, .topbar { padding-left: 18px; padding-right: 18px; }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
  .section { padding: 38px 0; }
  .cta-band { padding: 28px 20px; }
  .nav-cta .btn-ghost { display: none; }
  .content { padding: 16px; }
  .card-head, .card-body { padding-left: 16px; padding-right: 16px; }
  .kpi-value { font-size: 22px; }
}
