/* =========================================================
   Nusa Kreasi Digital — satu stylesheet untuk situs publik & panel admin
   Palet: putih bersih, aksen indigo–violet, tipografi Plus Jakarta Sans.
   ========================================================= */

:root {
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-3: #2563eb;
  --brand-soft: #eef2ff;
  --brand-ink: #3730a3;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e9f2;
  --line-2: #eef1f7;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --ok: #0f9f6e;
  --ok-soft: #e7f8f1;
  --warn: #b45309;
  --warn-soft: #fef4e6;
  --danger: #dc2626;
  --danger-soft: #fdeaea;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 12px 32px -18px rgba(30, 41, 59, .28), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 30px 60px -30px rgba(49, 46, 129, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }

/* ---------------- Tombol ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.35rem; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; box-shadow: 0 12px 24px -14px rgba(79, 70, 229, .85);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 30px -14px rgba(79, 70, 229, .9); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: #c7cdfb; color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: #eef1f9; color: var(--ink); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-wa { background: #25d366; color: #06381d; }
.btn-wa:hover { color: #06381d; background: #1fc35c; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f7c9c9; }
.btn-danger:hover { background: #fbdcdc; }
.btn-sm { padding: .52rem .9rem; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------------- Badge & chip ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.badge-pending { background: var(--warn-soft); color: var(--warn); }
.badge-dibayar, .badge-terkirim, .badge-baru { background: #e8efff; color: #1d4ed8; }
.badge-selesai, .badge-deal, .badge-sukses, .badge-aktif { background: var(--ok-soft); color: var(--ok); }
.badge-batal, .badge-nonaktif, .badge-gagal { background: var(--danger-soft); color: var(--danger); }
.badge-draft, .badge-dihubungi, .badge-arsip { background: #f1f0fe; color: var(--brand-ink); }
.badge-soft { background: var(--brand-soft); color: var(--brand-ink); }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
}
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ---------------- Alert ---------------- */
.alert {
  padding: .85rem 1.1rem; border-radius: 12px; margin-bottom: 1.1rem;
  font-size: .92rem; font-weight: 500; border: 1px solid transparent;
}
.alert-success { background: var(--ok-soft); color: #086345; border-color: #bfe9d7; }
.alert-error, .alert-danger { background: var(--danger-soft); color: #9b1c1c; border-color: #f6caca; }
.alert-info { background: #eaf1ff; color: #1e40af; border-color: #cddcff; }
.alert-warning { background: var(--warn-soft); color: #92400e; border-color: #f6dfba; }

/* ---------------- Header publik ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -20px rgba(15, 23, 42, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.15rem;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 10px 18px -12px rgba(79, 70, 229, .9);
}
.brand-mark-img { background: #fff; border: 1px solid var(--line); padding: 4px; overflow: hidden; }
.brand-mark-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark-sm { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; font-size: .95rem; }
.brand-mark-lg { width: 52px; height: 52px; flex-basis: 52px; border-radius: 15px; font-size: 1.35rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: .74rem; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav > a:not(.btn) {
  padding: .5rem .8rem; border-radius: 10px; font-size: .92rem; font-weight: 600; color: var(--ink-2);
}
.site-nav > a:not(.btn):hover { background: var(--line-2); color: var(--ink); }
.site-nav > a.active { color: var(--brand-ink); background: var(--brand-soft); }
.site-nav .btn { margin-left: .4rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0; place-items: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(46rem 24rem at 82% -8%, rgba(124, 58, 237, .14), transparent 65%),
    radial-gradient(40rem 22rem at 0% 0%, rgba(37, 99, 235, .12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8f9ff 78%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-2);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, #c7d2fe, transparent);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(2rem, 5vw, 3.6rem); align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero-copy { min-width: 0; }
.hero-copy h1 { margin-bottom: .9rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .8rem; border-radius: 999px; background: #fff;
  border: 1px solid #dbe2fb; color: var(--brand-ink);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 159, 110, .15); }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand) 10%, var(--brand-2) 60%, var(--brand-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.06rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: .9rem; }
.hero-note {
  display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted); margin: 0 0 1.5rem;
}
.hero-note span { color: var(--ok); font-weight: 800; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 30rem; }
.hero-stats div { min-width: 0; padding-left: .9rem; border-left: 2px solid var(--brand-soft); }
.hero-stats strong { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: .78rem; color: var(--muted); }

/* Kartu audit gratis di hero */
.hero-aside { position: relative; min-width: 0; }
.hero-card {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.hero-card-head { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.1rem; }
.hero-card-ico {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.15rem; background: var(--brand-soft); border: 1px solid #dbe2fb;
}
.hero-card-head h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.hero-card-head p { margin: 0; line-height: 1.55; }
.hero-form { display: grid; gap: .6rem; margin-bottom: 1.1rem; }
.hero-field {
  display: flex; align-items: center; gap: .4rem; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .45rem .75rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.hero-field-prefix { font-size: .82rem; color: var(--muted); font-weight: 600; flex: 0 0 auto; }
.hero-field input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .9rem;
  color: var(--ink); padding: .35rem 0; outline: none;
}
.hero-checks { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .55rem; }
.hero-checks li { display: flex; gap: .55rem; font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.hero-checks i {
  width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: .62rem; font-weight: 800; background: var(--ok-soft); color: var(--ok); margin-top: .1rem;
}
.hero-card-foot {
  display: flex; align-items: center; gap: .6rem; padding-top: .9rem; border-top: 1px dashed var(--line);
  font-size: .76rem; color: var(--muted); line-height: 1.45;
}
.hero-dots { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.hero-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .3; }
.hero-dots i:nth-child(2) { opacity: .6; }
.hero-dots i:nth-child(3) { opacity: .95; }
.hero-tag {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .35rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem;
  font-size: .74rem; font-weight: 700; color: var(--brand-ink); box-shadow: var(--shadow);
}
.hero-tag-top { top: -14px; right: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.hero-tag-bottom { bottom: -14px; left: 18px; }

/* ---------------- Sections ---------------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-head { max-width: 42rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.bg-white { background: #fff; border-block: 1px solid var(--line-2); }

/* ---------------- Kartu layanan ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.grid-3 > *, .grid-2 > *, .grid-4 > * { min-width: 0; }
.service-card {
  display: flex; flex-direction: column; gap: .55rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6dbf7; }
.service-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.3rem; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: .4rem;
}
.service-card h3 { margin-bottom: .1rem; }
.service-card .service-desc { color: var(--muted); font-size: .9rem; margin-bottom: .4rem; }
.service-card .service-price { font-weight: 800; font-size: 1.05rem; color: var(--ink); margin-top: auto; padding-top: .6rem; }
.service-card .service-price small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.service-card .service-link { font-size: .85rem; font-weight: 700; }

.feature-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.feature-item .service-ico { width: 40px; height: 40px; font-size: 1.1rem; }
.feature-item h3 { font-size: 1rem; }
.feature-item p { margin: 0; font-size: .88rem; color: var(--muted); }

/* Proses */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: .82rem; font-weight: 800; margin-bottom: .8rem;
}
.step h3 { font-size: 1rem; margin-bottom: .3rem; }
.step p { margin: 0; font-size: .87rem; color: var(--muted); }

/* Produk */
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-cover {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(140deg, #eef2ff 0%, #f6f0ff 55%, #eaf2ff 100%);
  color: var(--brand-ink); font-size: 2.6rem;
  border-bottom: 1px solid var(--line-2);
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-cover .product-badge {
  position: absolute; top: .7rem; left: .7rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .7rem; font-weight: 800; padding: .2rem .6rem; color: var(--brand-ink);
}
.product-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem; flex: 1 1 auto; }
.product-body h3 { font-size: 1rem; margin: 0; }
.product-body p { font-size: .86rem; color: var(--muted); margin: 0; }
.product-price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; padding-top: .7rem; }
.product-price strong { font-size: 1.1rem; }
.product-price del { color: var(--muted); font-size: .85rem; }

/* Testimoni */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.quote-card p { font-size: .95rem; color: var(--ink-2); }
.quote-person { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; }
.quote-person .avatar { width: 38px; height: 38px; font-size: .9rem; }
.quote-person strong { display: block; font-size: .88rem; }
.quote-person small { color: var(--muted); font-size: .78rem; }
.stars { color: #f59e0b; letter-spacing: .1em; font-size: .85rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff;
  background: linear-gradient(125deg, #4338ca 0%, #6d28d9 55%, #4f46e5 100%);
  padding: clamp(2rem, 5vw, 3.2rem);
  box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .35;
}
.cta-band::before { width: 260px; height: 260px; right: -60px; top: -90px; background: radial-gradient(circle, #a78bfa, transparent 70%); }
.cta-band::after { width: 220px; height: 220px; left: -70px; bottom: -110px; background: radial-gradient(circle, #38bdf8, transparent 70%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #e0e7ff; position: relative; max-width: 34rem; }
.cta-band .btn { position: relative; }

/* FAQ */
.faq { display: grid; gap: .7rem; max-width: 46rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 1rem 1.15rem; }
.faq details[open] { border-color: #c7d2fe; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: .7rem 0 0; color: var(--ink-2); font-size: .9rem; }

/* ---------------- Formulir ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: .76rem; color: var(--muted); font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"],
input[type="password"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; padding: .72rem .85rem; font-family: inherit; font-size: .93rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 11px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(99, 102, 241, .12); }
textarea { resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: #9aa3b5; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.1rem; }
.form-actions .btn { flex: 0 0 auto; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.form-section + .form-section { margin-top: 1.2rem; }
.form-section h2, .form-section h3 { font-size: 1.05rem; }
.form-inline { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.form-inline .field { flex: 1 1 150px; }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: var(--shadow-sm); }
.checkbox { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.checkbox input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brand); }

/* ---------------- Footer ---------------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: clamp(2.4rem, 5vw, 3.6rem); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.4rem; }
.footer-grid > * { min-width: 0; }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .9rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .88rem; }
.footer-list a { color: var(--ink-2); }
.footer-list a:hover { color: var(--brand); }
.footer-contact li { display: flex; gap: .5rem; color: var(--ink-2); align-items: flex-start; }
.footer-contact .ico { flex: 0 0 auto; }
.brand-footer { margin-bottom: .8rem; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.socials a { font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  border-top: 1px solid var(--line-2); padding-block: 1.1rem; font-size: .82rem; color: var(--muted);
}
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 16px 30px -12px rgba(37, 211, 102, .75);
}
.wa-float:hover { color: #fff; transform: translateY(-2px); }

/* ---------------- Halaman dalam (publik) ---------------- */
.page-head {
  background:
    radial-gradient(38rem 20rem at 88% -20%, rgba(124, 58, 237, .13), transparent 62%),
    radial-gradient(30rem 18rem at 0% 0%, rgba(37, 99, 235, .1), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line-2);
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
}
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .5rem; }
.page-head p { color: var(--ink-2); max-width: 42rem; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--muted); margin-bottom: .9rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span.sep { opacity: .5; }

.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 2.6rem); align-items: start; }
.sticky-side { position: sticky; top: 96px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 1.1rem; }
.card h2, .card h3 { font-size: 1.1rem; }
.card-flush { padding: 0; overflow: hidden; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .45rem 0; color: var(--ink-2); }
.summary-row strong { color: var(--ink); }
.summary-total { border-top: 1px dashed var(--line); margin-top: .5rem; padding-top: .8rem; font-size: 1.05rem; }
.summary-total strong { font-size: 1.3rem; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 2.6rem); align-items: start; }
.product-thumb { aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center; font-size: 3.4rem; border: 1px solid var(--line); background: linear-gradient(140deg, #eef2ff, #f7f0ff 60%, #eaf2ff); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.check-list li { display: flex; gap: .55rem; align-items: flex-start; color: var(--ink-2); }
.check-list li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.prose { color: var(--ink-2); }
.prose h3 { margin-top: 1.4rem; font-size: 1.05rem; }
.prose ul { padding-left: 1.15rem; }
.prose strong { color: var(--ink); }
.notice { background: #f8f9ff; border: 1px dashed #cdd6f7; border-radius: 12px; padding: .9rem 1rem; font-size: .87rem; color: var(--ink-2); }
.empty { text-align: center; padding: 2.5rem 1.2rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Langkah pesanan */
.order-steps { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.order-steps .step-pill {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600;
  padding: .4rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.order-steps .step-pill.is-active { background: var(--brand-soft); border-color: #c7d2fe; color: var(--brand-ink); }

/* ---------------- Dokumen penawaran ---------------- */
.quote-page { background: #eef1f8; padding-block: clamp(1.2rem, 4vw, 2.6rem); }
.quote-doc {
  background: #fff; max-width: 860px; margin-inline: auto; border-radius: 18px;
  box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--line);
}
.quote-doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; border-bottom: 2px solid var(--ink); padding-bottom: 1.2rem; margin-bottom: 1.4rem; }
.quote-doc-head .brand-mark { width: 46px; height: 46px; }
.quote-doc-title { font-size: 1.5rem; margin: 0 0 .2rem; }
.quote-meta { font-size: .85rem; color: var(--muted); text-align: right; }
.quote-meta strong { color: var(--ink); }
.quote-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.4rem; }
.quote-parties > * { min-width: 0; }
.quote-parties h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .35rem; }
.quote-parties strong { font-size: .98rem; }
.quote-intro { font-size: .92rem; color: var(--ink-2); white-space: pre-line; margin-bottom: 1.2rem; }
.quote-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.quote-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); border-bottom: 1px solid var(--line); padding: .55rem .5rem; font-weight: 800;
}
.quote-table td { padding: .7rem .5rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.quote-table td.num, .quote-table th.num { text-align: right; white-space: nowrap; }
.quote-table .item-detail { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.quote-totals { margin-left: auto; width: min(320px, 100%); margin-top: 1.1rem; }
.quote-totals .summary-row { font-size: .88rem; }
.quote-terms { margin-top: 1.6rem; font-size: .82rem; color: var(--ink-2); white-space: pre-line; border-top: 1px dashed var(--line); padding-top: 1rem; }
.quote-sign { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; font-size: .85rem; }
.quote-sign > div { min-width: 0; }
.sign-line { margin-top: 2.6rem; border-top: 1px solid var(--ink); padding-top: .35rem; color: var(--muted); }
.quote-actions { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 860px; margin: 0 auto 1rem; }

/* ---------------- Panel admin ---------------- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100dvh; }
.admin-side {
  display: flex; flex-direction: column; height: 100dvh; overflow: hidden;
  background: #fff; border-right: 1px solid var(--line); padding: 1rem .8rem;
  position: sticky; top: 0;
}
.admin-brand { flex: 0 0 auto; display: flex; align-items: center; gap: .65rem; padding: .35rem .35rem 1rem; }
.admin-brand strong { display: block; font-size: .95rem; line-height: 1.25; }
.admin-brand small { color: var(--muted); font-size: .72rem; }
.admin-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .18rem; padding-right: .15rem; }
.admin-nav a {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 10px;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
}
.admin-nav a:hover { background: var(--line-2); color: var(--ink); }
.admin-nav a.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.nav-ico { width: 20px; display: inline-grid; place-items: center; font-size: .95rem; }
.admin-side-foot { flex: 0 0 auto; display: grid; gap: .35rem; padding-top: .7rem; margin-top: .4rem; border-top: 1px solid var(--line-2); }
.side-action { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border-radius: 10px; font-size: .85rem; font-weight: 600; color: var(--ink-2); background: var(--bg); }
.side-action:hover { background: var(--line-2); color: var(--ink); }
.side-action-logout { background: var(--danger-soft); color: #9b1c1c; }
.side-action-logout:hover { background: #fbdcdc; color: #7f1d1d; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .9rem;
  padding: .8rem 1.4rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-topbar h1 { font-size: 1.12rem; margin: 0; flex: 1 1 auto; }
.admin-user { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: .85rem; flex: 0 0 34px;
  overflow: hidden;
}
.avatar-photo { background: #fff; border: 1px solid var(--line); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-person { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.mini-person .cell-title, .mini-person .cell-sub { display: block; }
.sort-actions { display: inline-flex; flex-direction: column; gap: 2px; }
.sort-actions .icon-btn { padding: .05rem .35rem; line-height: 1.2; }
.topbar-actions { display: flex; gap: .4rem; }
.admin-content { padding: 1.4rem; display: flex; flex-direction: column; gap: 1.15rem; }
.admin-content > * { min-width: 0; }
.nav-toggle-dark { display: none; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.15rem; min-width: 0; }
.kpi .kpi-label { font-size: .78rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.kpi .kpi-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-top: .25rem; overflow-wrap: anywhere; }
.kpi .kpi-sub { font-size: .76rem; color: var(--muted); margin-top: .15rem; }
.kpi.kpi-brand { background: linear-gradient(135deg, #4338ca, #6d28d9); border-color: transparent; color: #fff; }
.kpi.kpi-brand .kpi-label, .kpi.kpi-brand .kpi-sub { color: #ddd6fe; }
.kpi.kpi-soft { background: var(--brand-soft); border-color: #dbe2fb; }

/* Kartu panel admin */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line-2); }
.panel-head h2 { font-size: 1rem; margin: 0; }
.panel-head .muted { font-size: .8rem; }
.panel-body { padding: 1.15rem; }
.panel-body.tight { padding: 0; }
.panel-foot { padding: .8rem 1.15rem; border-top: 1px solid var(--line-2); background: #fafbff; font-size: .82rem; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.15rem; align-items: start; }

/* Tabel */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 540px; }
table.data th {
  text-align: left; padding: .65rem .8rem; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); background: #fafbff; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: .7rem .8rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.data tbody tr:hover { background: #fcfdff; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data tr.total-row td { font-weight: 800; background: #fafbff; border-top: 1px solid var(--line); }
table.data .cell-title { font-weight: 700; color: var(--ink); }
table.data .cell-sub { font-size: .78rem; color: var(--muted); }
table.data .row-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.icon-btn {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 .5rem;
  border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: .8rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.icon-btn:hover { border-color: #c7cdfb; color: var(--brand-ink); background: #f8f9ff; }
.icon-btn.danger:hover { border-color: #f6caca; color: var(--danger); background: var(--danger-soft); }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.filter-bar .field { flex: 1 1 130px; }
.filter-bar .btn { flex: 0 0 auto; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .2rem; }
.tabs a, .tabs button {
  display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .84rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.tabs a.active, .tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Grafik batang CSS */
.chart { display: flex; align-items: flex-end; gap: .55rem; height: 168px; padding-top: .6rem; }
.chart .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; }
.chart .bars { display: flex; align-items: flex-end; gap: 3px; height: 100%; width: 100%; justify-content: center; }
.chart .bar { width: 42%; max-width: 20px; border-radius: 5px 5px 2px 2px; min-height: 3px; }
.chart .bar.income { background: linear-gradient(180deg, #6366f1, #4f46e5); }
.chart .bar.expense { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.chart .lbl { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .78rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.income { background: var(--brand); }
.legend i.expense { background: #f59e0b; }

/* Daftar ringkas */
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; }
.list-plain li { display: flex; align-items: center; gap: .7rem; padding: .7rem .3rem; border-bottom: 1px solid var(--line-2); min-width: 0; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain .li-main { flex: 1 1 auto; min-width: 0; }
.list-plain .li-title { font-size: .88rem; font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-plain .li-sub { font-size: .77rem; color: var(--muted); }
.list-plain .li-amount { font-size: .88rem; font-weight: 800; white-space: nowrap; }
.amount-in { color: var(--ok); }
.amount-out { color: var(--danger); }

/* Skor audit */
.score-ring {
  --score: 0deg;
  position: relative; width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--ring, #4f46e5) var(--score), #e8ecf6 0);
}
.score-ring::before { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.score-ring-in { position: relative; text-align: center; line-height: 1; }
.score-ring-in strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.score-ring-in small { display: block; font-size: .66rem; color: var(--muted); margin-top: .2rem; }
.score-ring.good { --ring: #10b981; }
.score-ring.mid { --ring: #f59e0b; }
.score-ring.bad { --ring: #ef4444; }
.score-ring.lg { width: 124px; height: 124px; flex-basis: 124px; }
.score-ring.lg .score-ring-in strong { font-size: 2rem; }
.score-ring.sm { width: 48px; height: 48px; flex-basis: 48px; }
.score-ring.sm .score-ring-in strong { font-size: .95rem; }
.score-ring.sm .score-ring-in small { display: none; }
.score-ring.sm::before { inset: 5px; }
.audit-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.audit-hero-meta { flex: 1 1 240px; min-width: 0; }
.audit-hero-meta h2 { font-size: 1.25rem; margin-bottom: .25rem; overflow-wrap: anywhere; }
.audit-hero-meta p { margin: 0; font-size: .85rem; color: var(--muted); }
.check-list-admin { display: grid; gap: .55rem; }
.check-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: .7rem; align-items: start; padding: .7rem .2rem; border-bottom: 1px solid var(--line-2); }
.check-row:last-child { border-bottom: 0; }
.check-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.check-dot.pass { background: var(--ok-soft); color: var(--ok); }
.check-dot.warn { background: var(--warn-soft); color: var(--warn); }
.check-dot.fail { background: var(--danger-soft); color: var(--danger); }
.check-title { font-size: .9rem; font-weight: 700; }
.check-detail { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.check-fix { font-size: .8rem; color: var(--brand-ink); background: var(--brand-soft); border-radius: 8px; padding: .4rem .6rem; margin-top: .35rem; }
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* Editor item penawaran */
.items-editor { display: grid; gap: .9rem; }
.item-row {
  display: grid;
  /* baris 1: uraian (lebar) + keterangan | baris 2: qty, satuan, harga, jumlah, hapus */
  grid-template-columns: 96px 110px minmax(0, 1fr) 150px 40px;
  grid-template-areas:
    "desc desc desc desc  desc"
    "detail detail detail detail detail"
    "qty unit price total remove";
  gap: .7rem .8rem; align-items: end;
  background: #fbfcff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.item-row:focus-within { border-color: #c7cdfb; box-shadow: 0 0 0 4px rgba(99, 102, 241, .07); }
.item-row > * { min-width: 0; }
.item-row .item-desc { grid-area: desc; }
.item-row .item-detail { grid-area: detail; }
.item-row .item-qty { grid-area: qty; }
.item-row .item-unit { grid-area: unit; }
.item-row .item-price { grid-area: price; }
.item-row .item-total {
  grid-area: total; font-size: .95rem; font-weight: 800; text-align: right;
  padding: .7rem .2rem; white-space: nowrap; border-top: 1px dashed var(--line);
}
.item-remove { grid-area: remove; align-self: end; height: 44px; width: 100%; }
.item-row .field { gap: .3rem; }
.item-row label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.item-row input, .item-row textarea, .item-row select { padding: .7rem .75rem; font-size: .92rem; }
.item-row .item-desc input { font-weight: 600; }
.item-row .item-price input { text-align: right; font-variant-numeric: tabular-nums; }
.quote-total-box { margin-top: 1rem; display: grid; gap: .5rem; justify-content: end; }
.quote-total-box .summary-row { display: grid; grid-template-columns: auto 160px; align-items: center; gap: .8rem; }
.quote-total-box input { padding: .45rem .55rem; font-size: .87rem; text-align: right; }
.total-strong { font-size: 1.1rem; font-weight: 800; }

/* Login */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(40rem 26rem at 80% 0%, rgba(124, 58, 237, .16), transparent 60%),
              radial-gradient(34rem 22rem at 0% 10%, rgba(37, 99, 235, .14), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); }
.login-card .brand { margin-bottom: 1.3rem; }
.login-card h1 { font-size: 1.35rem; margin-bottom: .3rem; }
.login-card > p { color: var(--muted); font-size: .88rem; margin-bottom: 1.3rem; }
.login-foot { margin-top: 1.2rem; font-size: .8rem; color: var(--muted); text-align: center; }


/* =========================================================
   ARTIKEL / BLOG — halaman publik
   ========================================================= */
.container-narrow { max-width: 880px; }
.page-head-blog { padding-bottom: 1.2rem; }
.blog-search { display: flex; gap: .5rem; margin: 1.2rem 0 .9rem; max-width: 520px; }
.blog-search input {
  flex: 1 1 auto; min-width: 0; padding: .7rem .95rem; font: inherit; font-size: .92rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
}
.blog-search input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.blog-cats { margin-top: .2rem; }
.blog-cats .chip { text-decoration: none; }
.blog-cats .chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-cat { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; text-decoration: none; }

.post-grid { gap: 1.5rem; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-cover { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eef2ff, #f5f3ff); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover-fallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-size: 2.2rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.post-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.15rem 1.25rem 1.35rem; }
.post-title { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--brand); }
.post-excerpt { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.post-meta { margin-top: auto; padding-top: .5rem; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .76rem; color: var(--muted); }
.post-featured { margin-bottom: 1.6rem; }
.post-card-big { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
.post-card-big .post-cover { aspect-ratio: auto; min-height: 240px; }
.post-card-big .post-body { padding: 1.8rem; gap: .7rem; }
.post-card-big .post-title { font-size: 1.45rem; }

.article-page { padding: 1.6rem 0 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.article-head { margin-bottom: 1.4rem; }
.article-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.22; letter-spacing: -.02em; margin: .7rem 0 .6rem; }
.article-lead { color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; margin: 0 0 1rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.avatar-sm { width: 28px; height: 28px; font-size: .72rem; }
.article-cover { margin: 0 0 1.6rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; display: block; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.4rem; align-items: start; }
.prose-article { font-size: 1.02rem; line-height: 1.78; color: var(--ink-2); min-width: 0; }
.prose-article > *:first-child { margin-top: 0; }
.prose-article p { margin: 0 0 1.1rem; }
.prose-article h2 { font-size: 1.35rem; margin: 2rem 0 .7rem; color: var(--ink); line-height: 1.3; }
.prose-article h3 { font-size: 1.12rem; margin: 1.6rem 0 .5rem; color: var(--ink); }
.prose-article ul, .prose-article ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose-article li { margin-bottom: .4rem; }
.prose-article a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose-article img { max-width: 100%; height: auto; border-radius: var(--radius-sm); display: block; margin: 1.2rem 0; }
.prose-article blockquote {
  margin: 1.4rem 0; padding: .9rem 1.2rem; border-left: 4px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2);
}
.prose-article blockquote p:last-child { margin-bottom: 0; }
.prose-article table { width: 100%; border-collapse: collapse; margin: 1.3rem 0; font-size: .9rem; }
.prose-article th, .prose-article td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.prose-article th { background: var(--bg); }
.prose-article code { background: #f1f5f9; padding: .12em .4em; border-radius: 6px; font-size: .88em; }
.article-aside { display: grid; gap: 1.1rem; position: sticky; top: 90px; min-width: 0; }
.toc-card, .cta-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.toc-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .6rem; }
.toc-list { margin: 0; padding-left: 1.1rem; font-size: .86rem; line-height: 1.55; display: grid; gap: .35rem; }
.toc-list a { color: var(--ink-2); text-decoration: none; }
.toc-list a:hover { color: var(--brand); }
.cta-card { background: linear-gradient(160deg, #eef2ff, #faf5ff); border-color: #e0e7ff; display: grid; gap: .55rem; }
.cta-card strong { font-size: .95rem; }
.cta-card p { margin: 0; font-size: .84rem; color: var(--ink-2); line-height: 1.6; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 2rem 0 0; }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.4rem 0 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-2); }
.article-related { border-top: 1px solid var(--line); }
.preview-bar { background: #fefce8; border-bottom: 1px solid #fde68a; }
.preview-bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; padding: .6rem 0; font-size: .85rem; color: #854d0e; }
.pager-public { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 2rem; }
.pager-public a { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; color: var(--ink-2); font-size: .85rem; background: #fff; }
.pager-public a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* =========================================================
   EDITOR ARTIKEL (admin)
   ========================================================= */
.article-form { display: block; }
.article-topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .9rem; margin-bottom: 1rem;
}
.article-topbar-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.article-topbar-info strong { font-size: .95rem; overflow-wrap: anywhere; }
.article-topbar-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.2rem; align-items: start; }
.article-main, .article-side { display: grid; gap: 1rem; min-width: 0; }
.article-side { position: sticky; top: 78px; }
.article-title-input {
  width: 100%; border: 0; font: inherit; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); padding: .2rem 0 .5rem; background: transparent;
}
.article-title-input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--brand); }
.article-title-input::placeholder { color: #cbd5e1; }
.permalink-row { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; font-size: .82rem; color: var(--muted); }
.permalink-base { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.permalink-row input {
  flex: 1 1 160px; min-width: 0; border: 0; border-bottom: 1px dashed var(--line);
  font: inherit; font-size: .82rem; color: var(--brand-ink); padding: .15rem .3rem; background: transparent;
}
.permalink-row input:focus { outline: none; border-bottom-color: var(--brand); }
.permalink-hint { margin: .45rem 0 0; }
.article-tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.article-tabs button {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; font: inherit; font-size: .86rem;
  font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer;
}
.article-tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.article-tabs button .score-ring { width: 26px; height: 26px; flex-basis: 26px; }
.article-tabs button .score-ring::before { inset: 3px; }
.article-tabs button .score-ring-in strong { font-size: .6rem; }
.article-tabs button .score-ring-in small { display: none; }
.article-tab-panel { margin-top: -.2rem; }
.article-editor { width: 100%; min-height: 320px; font: inherit; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem; }
.editor-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .6rem; font-size: .78rem; color: var(--muted); }
.editor-meta .dot { opacity: .5; }
.seo-score-head { display: flex; align-items: center; gap: .6rem; }
.seo-checks { display: grid; gap: .5rem; }
.seo-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .65rem; padding: .6rem .7rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; }
.seo-check-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; background: var(--muted); }
.seo-check.pass { border-color: #d1fae5; background: #f6fefa; }
.seo-check.pass .seo-check-ico { background: var(--ok); }
.seo-check.warn { border-color: #fde68a; background: #fffdf5; }
.seo-check.warn .seo-check-ico { background: #f59e0b; }
.seo-check.fail .seo-check-ico { background: var(--danger); }
.seo-check-body { min-width: 0; }
.seo-check-title { font-size: .86rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.seo-check-points { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--muted); }
.seo-check-detail { font-size: .78rem; color: var(--muted); margin-top: .15rem; overflow-wrap: anywhere; }
.seo-check-fix { font-size: .78rem; color: var(--brand-ink); margin-top: .3rem; }
.article-subhead { font-size: .95rem; margin: 1.5rem 0 .4rem; }
.chip-btn { cursor: pointer; font: inherit; font-size: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; color: var(--ink-2); text-decoration: none; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.serp-preview-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; background: #fff; }
.serp-site { font-size: .78rem; color: #4d5156; overflow-wrap: anywhere; }
.serp-title { font-size: 1.05rem; color: #1a0dab; line-height: 1.35; margin: .2rem 0; overflow-wrap: anywhere; }
.serp-desc { font-size: .84rem; color: #4d5156; line-height: 1.55; }
.serp-meters { display: grid; gap: .6rem; margin-top: 1rem; max-width: 420px; }
.serp-meter { font-size: .76rem; color: var(--muted); display: grid; gap: .25rem; }
.meter { height: 6px; border-radius: 999px; background: #eef1f7; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.cover-preview { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.cover-preview img { width: 100%; display: block; }
.cover-remove { position: absolute; top: .45rem; right: .45rem; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,23,42,.72); color: #fff; cursor: pointer; font-size: .8rem; }
.file-btn { position: relative; overflow: hidden; }
.check-line { display: flex; align-items: flex-start; gap: .5rem; font-size: .84rem; color: var(--ink-2); }
.check-line input { margin-top: .2rem; }
.seo-pill { display: inline-block; min-width: 34px; text-align: center; font-size: .76rem; font-weight: 800; padding: .18rem .45rem; border-radius: 999px; }
.seo-pill.good { background: var(--ok-soft); color: var(--ok); }
.seo-pill.mid { background: var(--warn-soft); color: var(--warn); }
.seo-pill.bad { background: var(--danger-soft); color: var(--danger); }
.pager { display: flex; flex-wrap: wrap; gap: .3rem; }
.pager a { padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .82rem; }
.pager a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 1080px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .article-aside { position: static; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-side { position: static; }
}
@media (max-width: 760px) {
  .post-card-big { grid-template-columns: minmax(0, 1fr); }
  .post-card-big .post-cover { min-height: 180px; aspect-ratio: 16 / 9; }
  .post-card-big .post-body { padding: 1.2rem; }
  .post-card-big .post-title { font-size: 1.2rem; }
  .article-topbar-actions { width: 100%; }
  .article-topbar-actions .btn { flex: 1 1 auto; }
  .article-title-input { font-size: 1.25rem; }
  .prose-article { font-size: .98rem; }
}


/* ---------------- Pengaturan: grup SEO ---------------- */
.seo-group { padding: 1rem 0; border-top: 1px solid var(--line-2); }
.seo-group:first-of-type { padding-top: 0; border-top: 0; }
.seo-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: .8rem; }
.seo-group-head h3 { font-size: .95rem; margin: 0; }
.seo-group-head .hint { font-size: .78rem; color: var(--muted); }
.seo-group .field > label { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.link-status {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  padding: .12rem .45rem; border-radius: 999px; border: 1px solid transparent;
}
.link-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.link-status.on { background: var(--ok-soft); color: #0b7a52; border-color: #bbecd9; }
.link-status.off { background: #f4f5f9; color: var(--muted); border-color: var(--line); }
.seo-checks-inline { display: flex; flex-wrap: wrap; gap: .45rem; }
.seo-chip {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--ink-2);
  background: #fbfcff; border: 1px solid var(--line); border-radius: 10px; padding: .4rem .65rem; min-width: 0;
}
.seo-chip a { color: var(--brand-ink); text-decoration: none; font-weight: 600; }
.seo-chip a:hover { text-decoration: underline; }
.seo-chip .dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.seo-chip .dot.ok { background: var(--ok); }
.seo-chip .dot.warn { background: #f59e0b; }

/* ---------------- Pengaturan: panel keamanan ---------------- */
.sec-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.sec-stat {
  display: grid; gap: .2rem; min-width: 0; padding: 1rem 1.1rem;
  background: #fbfcff; border: 1px solid var(--line); border-radius: 14px;
}
.sec-stat-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sec-stat strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sec-stat-sub { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.sec-subhead { font-size: .85rem; font-weight: 800; margin: 0 0 .6rem; }
.sec-table th, .sec-table td { white-space: nowrap; }
.sec-table td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 900px) { .sec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sec-stats { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- Logo & ikon (Pengaturan) ---------------- */
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.logo-slot { display: grid; gap: .7rem; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fcfcff; }
.logo-preview {
  width: 96px; height: 96px; border-radius: 18px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; overflow: hidden; padding: 8px;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo-preview-icon { width: 64px; height: 64px; border-radius: 14px; }
.logo-fallback {
  width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.7rem;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
}
.logo-fallback-sm { width: 48px; height: 48px; border-radius: 12px; font-size: 1.2rem; }
@media (max-width: 760px) { .logo-grid { grid-template-columns: minmax(0, 1fr); } }

/* Field "tambah baru" pada pilihan jenis/kategori */
.select-with-new { display: grid; gap: .45rem; }
.new-option-field { display: none; }
.new-option-field.is-open { display: grid; gap: .35rem; }
.new-option-field .hint { color: var(--brand-ink); }

/* ---------------- Responsif ---------------- */
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .hero-aside { margin-top: .6rem; }
  .hero-tag-top { top: -13px; right: 12px; }
  .hero-tag-bottom { bottom: -13px; left: 12px; }
  .admin-side {
    position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 70;
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg);
  }
  body.side-open .admin-side { transform: translateX(0); }
  .nav-toggle-dark { display: grid; }
  .admin-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .38); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.side-open .admin-backdrop { opacity: 1; pointer-events: auto; }
  .admin-user-name { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .audit-card { max-width: 460px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .sticky-side { position: static; }
  .product-hero { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Rentang 761–900px: nav desktop masih tampil tapi CTA header disembunyikan
   supaya header tidak melebar keluar layar (tablet kecil). */
@media (min-width: 761px) and (max-width: 900px) {
  .site-nav > .btn { display: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column;
    align-items: stretch; gap: .2rem; background: #fff; border-bottom: 1px solid var(--line);
    padding: .8rem 1.2rem 1.1rem; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .btn { margin: .5rem 0 0; }
  .header-inner { min-height: 66px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { gap: .7rem; }
  .hero-stats strong { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .quote-parties { grid-template-columns: minmax(0, 1fr); }
  .quote-sign { grid-template-columns: minmax(0, 1fr); }
  .item-row {
    grid-template-columns: 1fr 1fr 40px;
    grid-template-areas:
      "desc desc desc"
      "detail detail detail"
      "qty unit remove"
      "price price price"
      "total total total";
    padding: .85rem;
  }
  .item-row .item-price input { text-align: left; }
  .item-row .item-total { text-align: left; padding: .2rem 0 0; }
  .admin-content { padding: 1rem; }
  .admin-topbar { padding: .7rem 1rem; }
  .admin-topbar h1 { font-size: 1rem; }
  .topbar-actions .btn-outline { display: none; }
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-doc { border-radius: 12px; }
  .quote-doc-head { flex-direction: column; }
  .quote-meta { text-align: left; }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .audit-card-body { flex-direction: column; align-items: flex-start; }
  .filter-bar .field { flex: 1 1 100%; }
  .table-actions-mobile { display: flex; }
  .currency-input { font-size: .82rem; }
}

/* ---------------- Cetak ---------------- */
@media print {
  body { background: #fff; }
  .no-print, .site-header, .site-footer, .wa-float, .quote-actions, .admin-side, .admin-topbar { display: none !important; }
  .quote-page { padding: 0; background: #fff; }
  .quote-doc { box-shadow: none; border: 0; border-radius: 0; max-width: none; padding: 0; }
  .quote-table th { background: none; }
  a { color: var(--ink); }
  .print-block { display: block !important; }
  @page { margin: 16mm 14mm; }
}

/* ---------- Struktur SILO (panel audit SEO) ---------- */
.silo-pillar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  padding: .5rem .2rem .8rem; border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.silo-pillar strong { font-size: 1rem; }
.silo-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .76rem; color: var(--brand-ink); background: var(--brand-soft);
  padding: .18rem .45rem; border-radius: 6px; overflow-wrap: anywhere;
}
.silo-group { margin-top: .9rem; }
.silo-group-title { font-size: .84rem; font-weight: 700; color: var(--ink-2); margin-bottom: .45rem; }
.silo-group .table-wrap { border: 1px solid var(--line); border-radius: 11px; }
.silo-group table.data { min-width: 460px; }
.silo-group table.data th { background: #fbfcff; }
