/* ============================================================
   TUKANG BANGUNAN — UI (putih + biru logistik, mobile first)
   Default: LIGHT MODE (dikunci). Toggle gelap tersedia di kanan atas.
   ============================================================ */

:root {
  /* TEMA BIRU MUDA (round 37): biru langit cerah + segar, tetap kontras AA.
     --blue dipakai untuk teks/tautan di atas putih → 5.0:1 dengan #ffffff. */
  --blue: #0374b5;
  --blue-2: #0369a1;
  --blue-soft: #e6f6ff;
  --blue-soft-2: #f2fbff;
  --sky: #38bdf8;
  --sky-2: #7dd3fc;
  --mint: #22d3ee;
  --bg: #ffffff;
  --bg-soft: #f4fbff;
  --card: #ffffff;
  /* latar aplikasi: gradien biru sangat muda -> putih (lebih cerah & fresh) */
  --bg-grad: linear-gradient(180deg, #e2f6ff 0%, #effbff 32%, #f7fdff 64%, #ffffff 100%);
  --sky-fixed: #e2f6ff;
  /* kartu putih transparan */
  --card-glass: rgba(255, 255, 255, .78);
  --card-glass-strong: rgba(255, 255, 255, .90);
  --glass-line: rgba(3, 116, 181, .13);
  --icon-blue: #0369a1;
  --ink: #0a1a33;
  --ink-2: #1f3a61;
  --muted: #5b6b80;
  --line: #e2e8f2;
  --line-2: #eef2f8;
  --green: #067a3e;
  --green-soft: #e5f8ed;
  --red: #c81e1e;
  --red-soft: #fdecec;
  --amber: #b45309;
  --amber-soft: #fef3e2;
  --shadow: 0 6px 18px rgba(7, 63, 92, .08);
  --shadow-lg: 0 14px 40px rgba(7, 63, 92, .16);
  --r: 16px;
  --r-sm: 12px;
  --on-accent: #ffffff;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --blue: #7dd3fc;
  --blue-2: #bae6fd;
  --blue-soft: #0b2c3f;
  --blue-soft-2: #08202e;
  --sky: #38bdf8;
  --sky-2: #7dd3fc;
  --mint: #22d3ee;
  --bg: #0b1220;
  --bg-soft: #0a101c;
  --card: #131d31;
  --ink: #eef4ff;
  --ink-2: #cfdcf2;
  --muted: #93a4bd;
  --line: #24314b;
  --line-2: #1b2539;
  --green: #37d28a;
  --green-soft: #10331f;
  --red: #ff6b6b;
  --red-soft: #3a1616;
  --amber: #f0b464;
  --amber-soft: #33260f;
  --on-accent: #05101f;
  --bg-grad: linear-gradient(180deg, #0d3149 0%, #0a2234 42%, #071a26 100%);
  --sky-fixed: #0d3149;
  --card-glass: rgba(19, 29, 49, .78);
  --card-glass-strong: rgba(19, 29, 49, .92);
  --glass-line: rgba(255, 255, 255, .09);
  --icon-blue: #7dd3fc;
  --shadow: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html [hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg-grad) fixed;
  background-color: var(--sky-fixed);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

h1, h2, h3, h4 { margin: 0 0 6px; color: var(--ink); font-weight: 800; letter-spacing: -.2px; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15.5px; }
p { margin: 0 0 8px; color: var(--ink-2); }
a { color: var(--blue); text-decoration: none; }
small, .small { font-size: 12.5px; color: var(--muted); }
strong { color: var(--ink); }
.ic { flex: 0 0 auto; vertical-align: -4px; }
.flip { transform: rotate(180deg); }
.only-dark { display: none; }
html[data-theme="dark"] .only-light { display: none; }
html[data-theme="dark"] .only-dark { display: inline-flex; }

.shell {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-grad) fixed;
  background-color: var(--sky-fixed);
  overflow: hidden;
}
@media (min-width: 700px) {
  body { background: var(--bg-grad) fixed; background-color: var(--sky-fixed); }
  .shell { box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
}

/* ---------------- APPBAR ---------------- */
.appbar {
  flex: 0 0 auto;
  background: var(--card-glass-strong);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-2);
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-height: 52px;
}
.topbar-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 16.5px;
  color: var(--ink);
  letter-spacing: -.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-dot {
  width: 9px; height: 9px; border-radius: 3px;
  background: linear-gradient(135deg, var(--blue), #59a6ff);
  display: inline-block;
  flex: 0 0 auto;
}
.topbar-actions { display: flex; align-items: center; gap: 2px; }
.iconbtn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 0; background: transparent; color: var(--ink-2);
  border-radius: 12px; cursor: pointer;
  transition: background .15s;
}
.iconbtn:active { background: var(--blue-soft); }
.iconbtn-danger { color: var(--red); }
.bell-badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 16px;
  border-radius: 8px; text-align: center;
}

/* Tabs */
.tabbar {
  display: flex;
  gap: 6px;
  padding: 0 10px 9px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-family: var(--ff);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: .16s;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  line-height: 1;
}
.tab .ic { flex: 0 0 auto; }
/* tab tautan (halaman plain, mis. admin-chats.php) */
a.tab:hover { border-color: var(--blue); color: var(--blue-2); }
a.tab.active:hover { color: var(--on-accent); }
/* tab chat: ikon gelembung gaya Signal + status aktif saat panel terbuka */
.tab-chat { border-color: rgba(58, 118, 240, .38); color: var(--blue-2); background: var(--blue-soft); }
.tab-chat .ic { color: var(--blue-2); }
html.chat-open .tab-chat { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
html.chat-open .tab-chat .ic { color: var(--on-accent); }
.drawer-item-chat .ic { color: var(--blue-2); }
.tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--on-accent);
  box-shadow: 0 4px 12px rgba(3, 105, 161, .28);
}

/* ---------------- SWIPE AREA ---------------- */
.swipe {
  flex: 1 1 auto;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}
.swipe::-webkit-scrollbar { display: none; }
.pane {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 14px 14px calc(28px + var(--safe-b));
}
.pane-inner { display: flex; flex-direction: column; gap: 14px; max-width: 620px; margin: 0 auto; }

/* ---------------- KOMPONEN UMUM ---------------- */
.card {
  background: var(--card-glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  padding: 15px;
  box-shadow: 0 6px 20px rgba(16, 42, 90, .07);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.card-tight { padding: 12px; }
.card-flat { box-shadow: none; }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin: 4px 2px 0;
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .6px; color: var(--muted);
}
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.divider { height: 1px; background: var(--line-2); margin: 12px 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.av { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.av-ini {
  background: linear-gradient(135deg, var(--blue), #4f9bff);
  color: #fff; font-weight: 800;
}

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 800;
  padding: 4px 9px; border-radius: 999px;
  white-space: nowrap;
}
.badge-blue { background: var(--blue-soft); color: var(--blue-2); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-gray { background: var(--bg-soft); color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot.green { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dot.red { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.stars { display: inline-flex; gap: 1px; color: #d7deea; vertical-align: -2px; }
html[data-theme="dark"] .stars { color: #37415a; }
.stars .star { display: inline-flex; }
.stars .starbox { position: relative; display: inline-block; flex: 0 0 auto; }
.stars .starbox > svg { position: absolute; top: 0; left: 0; display: block; }
.stars .sgold { position: absolute; top: 0; left: 0; display: block; }
.stars .sfill { fill: #f5a623; }
html[data-theme="dark"] .stars .sfill { fill: #ffc247; }
.stars .sbase { opacity: .2; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--ff); font-size: 14.5px; font-weight: 800;
  padding: 12px 16px; cursor: pointer; text-align: center;
  transition: transform .12s, box-shadow .15s;
  min-height: 46px;
}
.btn:active { transform: scale(.985); }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: var(--on-accent);
  box-shadow: 0 8px 18px rgba(3, 105, 161, .28);
}
.btn-outline { background: var(--card); border-color: var(--blue); color: var(--blue); }
.btn-soft { background: var(--blue-soft); color: var(--blue-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-soft { background: var(--red-soft); color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
/* tema gelap: var(--green)/var(--red) versi terang → teks putih tidak terbaca */
html[data-theme="dark"] .btn-green { background: #0e6b3f; color: #ffffff; }
html[data-theme="dark"] .btn-danger { background: #a12222; color: #ffffff; }
.btn-green-soft { background: var(--green-soft); color: var(--green); }
.btn-amber-soft { background: var(--amber-soft); color: var(--amber); }
.btn-sm { min-height: 38px; padding: 8px 12px; font-size: 13.2px; border-radius: 10px; }
.btn-xs { min-height: 32px; padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-wa { background: #25d366; color: #06381a; }
.btn-icon-only { padding: 10px; min-width: 42px; }

/* Forms */
label.field, .field { display: block; margin-bottom: 11px; }
.field-label {
  display: block; font-size: 12.8px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px;
}
.input, select.input, textarea.input {
  width: 100%;
  font-family: var(--ff); font-size: 16px; color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  min-height: 46px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #9aa8bd; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea.input { resize: vertical; min-height: 84px; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}
.input-hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.filebox {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  position: relative; overflow: hidden;
}
.filebox input[type=file] {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
  cursor: pointer;
}
.filebox .fb-ic { color: var(--blue); }
.filebox small { display: block; font-weight: 500; }
.checkline {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 11px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--card);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; margin-bottom: 8px;
}
.checkline input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--blue); }
.checkline.on { border-color: var(--blue); background: var(--blue-soft-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }

/* switch */
.switch { position: relative; display: inline-flex; align-items: center; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch .track {
  width: 52px; height: 30px; border-radius: 999px;
  background: #cfd8e6; position: relative; transition: .2s; flex: 0 0 auto;
}
html[data-theme="dark"] .switch .track { background: #2c3a54; }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  transition: transform .2s;
}
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(22px); }


/* ---------------- HEADER MEREK (BERANDA CUSTOMER) ---------------- */
.topbar-title.is-brand { gap: 9px; }
.brand-logo { display: flex; flex: 0 0 auto; }
.logomark { flex: 0 0 auto; border-radius: 22%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; min-width: 0; }
.bt-top { display: flex; align-items: baseline; gap: 5px; font-size: 15px; font-weight: 900; letter-spacing: .3px; }
.bt-hk { color: #1b2138; }
.bt-pr { color: #8a6100; }
html[data-theme="dark"] .bt-hk { color: #e8ecf7; }
html[data-theme="dark"] .bt-pr { color: #ffc61a; }
.bt-sub { font-size: 8.6px; font-weight: 800; letter-spacing: 2.5px; color: #5c6b83; margin-top: 2px; }
html[data-theme="dark"] .bt-sub { color: #8fa1ba; }

/* ---------------- BERANDA PEMESANAN CUSTOMER ---------------- */
/* blok judul + pencarian: 1 kolom di HP, judul & pencarian berdampingan di layar lebar
   supaya tidak ada ruang kosong besar di kanan. */
.cust-hero { display: block; }
.cust-head { padding: 2px 2px 0; }
.cust-title {
  font-size: 22.5px; font-weight: 900; letter-spacing: -.6px;
  line-height: 1.2; color: var(--ink); margin: 0 0 5px;
}
.cust-sub { font-size: 12.8px; color: var(--muted); margin: 0 0 11px; line-height: 1.45; }

.spec-search {
  display: flex; align-items: center; gap: 7px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--glass-line);
  padding: 0 1px 9px;
  margin: 0 0 12px;
  color: var(--blue);
  cursor: text;
}
.spec-search .ic { flex: 0 0 auto; color: var(--blue); width: 16px; height: 16px; }
.spec-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-family: var(--ff); font-size: 16px; font-weight: 700;
  color: var(--blue-2); padding: 0; margin: 0;
  text-overflow: ellipsis;
}
/* placeholder dibuat lebih kecil (tapi input tetap 16px supaya iOS tidak auto-zoom)
   agar seluruh teks petunjuk terbaca penuh dalam satu baris */
.spec-search input::placeholder {
  color: var(--blue); opacity: .95; font-weight: 700;
  font-size: 13px; letter-spacing: 0;
}

.big-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big-cat {
  border: 0; border-radius: 16px; cursor: pointer;
  padding: 16px 10px 15px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 11px; min-height: 140px;
  font-family: var(--ff); font-size: 14.5px; font-weight: 900;
  line-height: 1.25; text-align: center; text-decoration: none;
  color: #0a1a33;
  box-shadow: 0 8px 18px rgba(16, 42, 90, .16);
  transition: transform .12s;
}
.big-cat.amber { background: linear-gradient(160deg, #ffcd45 0%, #ffb40a 100%); }
.big-cat.cyan { background: linear-gradient(160deg, #35c6f6 0%, #04aee8 100%); }
.big-cat.amber .bc-ic { color: #1a1206; }
.big-cat.cyan .bc-ic { color: #04202b; }
.big-cat:active { transform: scale(.98); }
.big-cat .bc-ic { display: flex; }
.big-cat .bc-ic svg { width: 54px; height: 54px; stroke-width: 1.65; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* semua baris sama tinggi supaya grid rapi walau nama layanan panjang */
  grid-auto-rows: 1fr;
  gap: 8px; margin-top: 12px;
}
/* kartu spesialisasi: putih transparan, ikon garis biru tua di lingkaran putih
   (gaya minimalis seragam, seperti app tukang.com)
   4 kolom per baris: ikon & huruf diperkecil proporsional agar nama layanan
   tetap terbaca utuh di layar 320px. */
.spec-card {
  position: relative;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-line);
  border-radius: 13px;
  padding: 10px 4px 9px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; text-decoration: none; color: var(--ink);
  box-shadow: 0 6px 16px rgba(16, 42, 90, .09);
  transition: transform .12s, box-shadow .15s;
  min-height: 110px;
}
.spec-card:active { transform: scale(.975); box-shadow: 0 3px 10px rgba(16, 42, 90, .1); }
.spec-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* lingkaran ikon: putih bersih + cincin biru tipis */
.spec-ic {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  /* lingkaran putih dengan tepi biru sangat tipis supaya tetap terlihat di kartu putih */
  background: linear-gradient(180deg, #ffffff 52%, #e9f3ff 100%);
  color: var(--icon-blue);
  border: 1.3px solid rgba(3, 105, 161, .30);
  box-shadow: 0 3px 9px rgba(16, 42, 90, .14);
}
.spec-ic .ic { width: 19px; height: 19px; stroke-width: 1.8; }
html[data-theme="dark"] .spec-ic {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(143, 184, 255, .28);
  box-shadow: none;
}
.spec-name {
  font-size: 10.2px; font-weight: 800; line-height: 1.27;
  letter-spacing: -.1px;
  color: var(--ink); flex: 1;
  display: flex; align-items: center; justify-content: center;
  /* kata panjang dipatahkan hanya bila benar-benar tidak muat di kartu 4 kolom */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.pesan-link {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9.9px; font-weight: 900; color: var(--blue-2);
  white-space: nowrap;
  line-height: 1.2;
}
.pesan-link .ic { width: 10px; height: 10px; }
html[data-theme="dark"] .pesan-link { color: var(--blue-2); }
.pesan-link .ic { transform: translateY(0); }

.cust-empty {
  grid-column: 1 / -1; text-align: center; padding: 22px 10px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.cust-foot {
  margin: 16px 0 2px; text-align: center;
  font-size: 12.4px; color: var(--muted);
}
.cust-foot a { font-weight: 800; }

/* ---------------- BERANDA ---------------- */
.hero {
  background: linear-gradient(135deg, #0374b5, #0e7490);
  color: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(3, 105, 161, .3);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.hero h2, .hero p { color: #fff; }
.hero .small { color: rgba(255, 255, 255, .9); }
.hero-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, .2);
  padding: 5px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; margin-bottom: 8px;
}

.service-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: left;
  width: 100%;
  font-family: var(--ff);
  cursor: pointer;
  color: var(--ink);
  transition: .16s;
}
.service-card:active { transform: scale(.99); border-color: var(--blue); }
.service-ic {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue); flex: 0 0 auto;
}
.service-ic.green { background: var(--green-soft); color: var(--green); }
.service-ic.amber { background: var(--amber-soft); color: var(--amber); }
.service-title { font-weight: 800; font-size: 15.5px; color: var(--ink); }
.service-sub { font-size: 12.3px; color: var(--muted); margin-top: 2px; }
.service-price { font-weight: 800; color: var(--blue); font-size: 13.5px; margin-top: 4px; }

/* job card — pemisah jelas antar kartu + warna khas per spesialisasi */
.job-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--jc-accent, var(--blue));
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 9px;
}
.job-card + .job-card { margin-top: 6px; }
.job-card .job-head { padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.job-card.is-active { border-color: var(--jc-accent, var(--blue)); border-left-color: var(--jc-accent, var(--blue)); }
.job-card .job-cat { background: var(--jc-soft, var(--blue-soft)); color: var(--jc-ink, var(--blue-2)); }

/* nada warna kartu order (samakan dengan warna spesialisasi di beranda) */
.job-card[data-tone="p-pink"]    { --jc-accent: #e33b63; --jc-soft: #ffe1e7; --jc-ink: #a01033; }
.job-card[data-tone="p-cream"]   { --jc-accent: #c98a00; --jc-soft: #fff1cf; --jc-ink: #7d5400; }
.job-card[data-tone="p-lav"]     { --jc-accent: #7c47e8; --jc-soft: #eee1ff; --jc-ink: #55229e; }
.job-card[data-tone="p-peach"]   { --jc-accent: #e06818; --jc-soft: #ffe6d3; --jc-ink: #9c4000; }
.job-card[data-tone="p-magenta"] { --jc-accent: #d4287a; --jc-soft: #ffdcf0; --jc-ink: #96114f; }
.job-card[data-tone="p-sky"]     { --jc-accent: #0b83b8; --jc-soft: #d5effd; --jc-ink: #075b80; }
.job-card[data-tone="p-lemon"]   { --jc-accent: #a88000; --jc-soft: #fff7c2; --jc-ink: #6f5300; }
.job-card[data-tone="p-mint"]    { --jc-accent: #0a9563; --jc-soft: #d5f6e5; --jc-ink: #056142; }
.job-card[data-tone="p-amber"]   { --jc-accent: #d99a00; --jc-soft: #fff0c2; --jc-ink: #6b4a00; }
.job-card[data-tone="p-cyan"]    { --jc-accent: #0b9fc4; --jc-soft: #d3f2fb; --jc-ink: #05647c; }
html[data-theme="dark"] .job-card[data-tone="p-pink"]    { --jc-soft: rgba(227, 59, 99, .2);  --jc-ink: #ffb3c4; }
html[data-theme="dark"] .job-card[data-tone="p-cream"]   { --jc-soft: rgba(201, 138, 0, .22);  --jc-ink: #ffd88a; }
html[data-theme="dark"] .job-card[data-tone="p-lav"]     { --jc-soft: rgba(124, 71, 232, .24); --jc-ink: #cdb0ff; }
html[data-theme="dark"] .job-card[data-tone="p-peach"]   { --jc-soft: rgba(224, 104, 24, .22); --jc-ink: #ffbe8f; }
html[data-theme="dark"] .job-card[data-tone="p-magenta"] { --jc-soft: rgba(212, 40, 122, .22); --jc-ink: #ffa8d3; }
html[data-theme="dark"] .job-card[data-tone="p-sky"]     { --jc-soft: rgba(11, 131, 184, .24); --jc-ink: #94d7ff; }
html[data-theme="dark"] .job-card[data-tone="p-lemon"]   { --jc-soft: rgba(168, 128, 0, .22);  --jc-ink: #ffe98a; }
html[data-theme="dark"] .job-card[data-tone="p-mint"]    { --jc-soft: rgba(10, 149, 99, .22);  --jc-ink: #8ff0c6; }
html[data-theme="dark"] .job-card[data-tone="p-amber"]   { --jc-soft: rgba(217, 154, 0, .22);  --jc-ink: #ffd76e; }
html[data-theme="dark"] .job-card[data-tone="p-cyan"]    { --jc-soft: rgba(11, 159, 196, .22); --jc-ink: #8ce6ff; }

/* kotak info rekening / transfer bank */
.bank-box {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12.8px;
}
.bank-box .row-between { gap: 10px; }
.bank-box .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3px; }
.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.job-title { font-weight: 800; font-size: 15px; color: var(--ink); }
.job-cat {
  font-size: 11.5px; font-weight: 800; color: var(--blue-2);
  background: var(--blue-soft); padding: 3px 8px; border-radius: 7px;
  display: inline-block;
}
.meta { display: flex; align-items: flex-start; gap: 6px; font-size: 12.7px; color: var(--ink-2); }
.meta .ic { color: var(--muted); margin-top: 1px; }
.job-desc {
  font-size: 12.8px; color: var(--ink-2); background: var(--bg-soft);
  border-radius: 10px; padding: 9px 10px; white-space: pre-wrap;
}
.job-price { font-size: 18px; font-weight: 800; color: var(--blue); }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.job-actions .btn { flex: 1 1 45%; }
.hidden-note {
  font-size: 11.5px; color: var(--muted); background: var(--bg-soft);
  border: 1px dashed var(--line); border-radius: 9px; padding: 7px 9px;
}
.pay-box {
  background: var(--blue-soft-2);
  border: 1px solid var(--blue-soft);
  border-radius: var(--r-sm);
  padding: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.pay-box strong { color: var(--blue-2); }

/* stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  background: var(--card-glass); border: 1px solid var(--glass-line);
  border-radius: 14px; padding: 12px;
  box-shadow: 0 6px 18px rgba(16, 42, 90, .07);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.stat-ic {
  width: 30px; height: 30px; border-radius: 9px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 7px;
  background: var(--blue-soft); color: var(--blue);
}
.stat-green .stat-ic { background: var(--green-soft); color: var(--green); }
.stat-amber .stat-ic { background: var(--amber-soft); color: var(--amber); }
.stat-red .stat-ic { background: var(--red-soft); color: var(--red); }
.stat-val { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.stat-label { font-size: 11.3px; color: var(--muted); margin-top: 2px; }

/* wallet */
.wallet-card {
  background: linear-gradient(135deg, #0374b5, #0369a1 58%, #0e7490);
  border-radius: 20px; padding: 18px; color: #fff;
  box-shadow: 0 12px 26px rgba(7, 89, 133, .32);
}
.wallet-card .wl { font-size: 12px; color: rgba(255, 255, 255, .85); font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.wallet-card .wv { font-size: 27px; font-weight: 900; letter-spacing: -.6px; color: #fff; margin: 3px 0 12px; }
.wallet-card .btn { flex: 1; }
/* Tombol aksi dompet: pil putih + teks/ikon biru tua -> kontras tinggi di semua tema */
.wallet-actions { display: flex; gap: 10px; }
.wallet-actions .btn {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid #ffffff;
  color: #075985;
  font-weight: 900;
  font-size: 13.2px;
  letter-spacing: .1px;
  box-shadow: 0 8px 18px rgba(4, 22, 54, .28);
}
.wallet-actions .btn .ic { color: #075985; stroke-width: 2.1; }
.wallet-actions .btn:active { transform: translateY(1px); }
.wallet-actions .btn.btn-soft,
.wallet-actions .btn.btn-ghost { background: #ffffff; color: #075985; }
html[data-theme="dark"] .wallet-actions .btn,
html[data-theme="dark"] .wallet-actions .btn.btn-soft,
html[data-theme="dark"] .wallet-actions .btn.btn-ghost {
  background: #f6fcff; border-color: #f6fcff; color: #075985;
}
html[data-theme="dark"] .wallet-actions .btn .ic { color: #075985; }
.wallet-card .wl, .wallet-card .wv { text-shadow: 0 1px 2px rgba(3, 18, 45, .28); }

/* list rows */
.rowitem {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2);
}
.rowitem:last-child { border-bottom: 0; }
.rowitem-main { flex: 1; min-width: 0; }
.rowitem-title { font-weight: 700; font-size: 13.8px; color: var(--ink); }
.rowitem-sub { font-size: 11.8px; color: var(--muted); }

/* empty state + animasi radar menunggu order */
.empty {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 16px 20px;
  box-shadow: var(--shadow);
}
.empty-title { font-weight: 800; color: var(--ink); margin-top: 6px; }
.empty-sub { font-size: 12.8px; color: var(--muted); }
.empty-sm { font-size: 13px; color: var(--muted); padding: 10px 0; }

/* radar card (beranda mitra: menunggu order) */
.radar-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 14px 0 16px;
  text-align: center;
  color: #e8f6fe;
  background:
    radial-gradient(72% 58% at 50% 44%, rgba(79, 70, 229, .34) 0%, rgba(10, 20, 40, 0) 72%),
    radial-gradient(90% 70% at 10% 6%, rgba(56, 189, 248, .20) 0%, rgba(10, 20, 40, 0) 62%),
    radial-gradient(85% 70% at 92% 94%, rgba(236, 72, 153, .18) 0%, rgba(10, 20, 40, 0) 62%),
    linear-gradient(160deg, #0d1730 0%, #111d38 55%, #0a1322 100%);
  box-shadow: 0 16px 34px rgba(10, 24, 48, .32);
  border: 1px solid rgba(130, 175, 255, .18);
}
.radar-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170, 210, 255, .6), transparent);
}
.radar-live {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 900; letter-spacing: 1.4px;
  color: #7dffb5; background: rgba(125, 255, 181, .12);
  border: 1px solid rgba(125, 255, 181, .34);
  padding: 3px 8px; border-radius: 999px;
}
.radar-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7dffb5; box-shadow: 0 0 8px rgba(125, 255, 181, .9);
  animation: liveDot 1.5s ease-in-out infinite;
}
@keyframes liveDot { 50% { opacity: .25; transform: scale(.75); } }
.radar-card.is-idle .radar-live { color: #ffb3b3; background: rgba(255, 150, 150, .1); border-color: rgba(255, 150, 150, .3); }
.radar-card.is-idle .radar-live i { background: #ffb3b3; box-shadow: none; animation: none; }

/* lingkaran radar memenuhi lebar kotak (full ke tepi kartu) */
.radar {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.radar-map {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: .62;
  filter: saturate(1.05) contrast(1.02);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, rgba(0, 0, 0, .35) 92%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 50%, #000 62%, rgba(0, 0, 0, .35) 92%, transparent 100%);
}
.radar-halo {
  position: absolute; inset: 6%; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 160, 255, .20) 0%, rgba(94, 160, 255, .07) 46%, rgba(94, 160, 255, 0) 72%);
  animation: haloBreathe 5.2s ease-in-out infinite;
}
@keyframes haloBreathe { 50% { opacity: .55; transform: scale(1.04); } }
.radar-rings { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; color: rgba(150, 210, 255, .5); }
.radar-rot {
  position: absolute; inset: 3%; z-index: 1; border-radius: 50%;
  border: 1px dashed rgba(140, 205, 255, .34);
  animation: radarSpin 26s linear infinite;
}
@keyframes radarSpin { to { transform: rotate(-360deg); } }
.radar-sweep {
  position: absolute; inset: 0; z-index: 2; border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(140, 210, 255, .70) 0deg,
    rgba(96, 175, 245, .34) 20deg,
    rgba(96, 175, 245, .12) 46deg,
    rgba(96, 175, 245, .04) 66deg,
    rgba(96, 175, 245, 0) 84deg,
    rgba(96, 175, 245, 0) 360deg);
  animation: radarSweep 3.6s linear infinite;
  will-change: transform;
}
.radar-sweep::after {
  content: ""; position: absolute; top: 1.5%; left: 50%;
  width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: #eaf6ff;
  box-shadow: 0 0 10px 3px rgba(150, 210, 255, .8);
}
@keyframes radarSweep { to { transform: rotate(360deg); } }
.radar-pulse {
  position: absolute; z-index: 2; top: 50%; left: 50%;
  width: 66%; height: 66%; margin: -33% 0 0 -33%;
  border-radius: 50%;
  border: 1.4px solid rgba(130, 200, 255, .55);
  animation: radarPulse 3.6s ease-out infinite;
}
.radar-pulse.p2 { animation-delay: 1.8s; border-color: rgba(255, 198, 26, .4); }
@keyframes radarPulse {
  0% { transform: scale(.34); opacity: 0; }
  14% { opacity: .75; }
  100% { transform: scale(1.05); opacity: 0; }
}
.radar-core {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff3c4, #ffc61a 62%, #e8a300);
  box-shadow: 0 0 0 6px rgba(255, 198, 26, .14), 0 0 18px rgba(255, 198, 26, .7);
  animation: radarCore 2.4s ease-in-out infinite;
}
@keyframes radarCore { 50% { transform: scale(.84); opacity: .88; } }

.radar-blip {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  z-index: 4;
  opacity: 0;
  background: var(--tbg, #d5effd);
  color: var(--tfg, #0a6ea0);
  border: 1.5px solid rgba(255, 255, 255, .55);
  box-shadow: 0 4px 12px rgba(4, 12, 28, .45), 0 0 0 3px var(--tglow, rgba(86, 178, 255, .22));
  transition: opacity .34s ease;
}
.radar-blip.on { opacity: 1; }
/* ikon hilang dulu di tempat lama, baru muncul di posisi baru (tanpa geser) */
.radar-blip.is-out { opacity: 0; }
.radar-blip::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--tglow, rgba(86, 178, 255, .5));
  animation: blipPing 2.6s ease-out infinite;
  animation-delay: var(--ping-delay, 0s);
}
.radar-blip .ic { stroke-width: 1.9; position: relative; }
.radar-blip.pop .ic { animation: blipPop .5s cubic-bezier(.2, 1.5, .4, 1); }
/* palet warna = palet kartu beranda customer */
.radar-blip[data-tone="p-pink"]    { --tbg: #ffe1e7; --tfg: #cf1239; --tglow: rgba(255, 120, 150, .5); }
.radar-blip[data-tone="p-cream"]   { --tbg: #fff1cf; --tfg: #a86200; --tglow: rgba(255, 206, 110, .5); }
.radar-blip[data-tone="p-lav"]     { --tbg: #eee1ff; --tfg: #6d33e0; --tglow: rgba(176, 140, 255, .5); }
.radar-blip[data-tone="p-peach"]   { --tbg: #ffe6d3; --tfg: #bd5200; --tglow: rgba(255, 160, 100, .5); }
.radar-blip[data-tone="p-magenta"] { --tbg: #ffdcf0; --tfg: #c01b63; --tglow: rgba(255, 120, 190, .5); }
.radar-blip[data-tone="p-sky"]     { --tbg: #d5effd; --tfg: #0a6ea0; --tglow: rgba(110, 200, 255, .5); }
.radar-blip[data-tone="p-lemon"]   { --tbg: #fff7c2; --tfg: #8f6600; --tglow: rgba(255, 232, 110, .5); }
.radar-blip[data-tone="p-mint"]    { --tbg: #d5f6e5; --tfg: #06774f; --tglow: rgba(90, 225, 165, .5); }
.radar-blip[data-tone="p-amber"]   { --tbg: #ffcd45; --tfg: #442c00; --tglow: rgba(255, 205, 69, .55); }
.radar-blip[data-tone="p-cyan"]    { --tbg: #35c6f6; --tfg: #04202b; --tglow: rgba(53, 198, 246, .55); }
@keyframes blipPing {
  0% { transform: scale(.86); opacity: .85; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}
@keyframes blipPop {
  0% { transform: scale(.4) rotate(-18deg); opacity: .2; }
  60% { transform: scale(1.16) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
/* teks bergulir: tiap 3 detik naik (slide) */
.radar-slider {
  position: relative; z-index: 3;
  height: 92px;
  margin: 10px auto 0;
  padding: 0 18px;
  max-width: 420px;
  overflow: hidden;
}
.radar-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
  opacity: 0;
  transform: translateY(70%);
  transition: transform .55s cubic-bezier(.3, .9, .3, 1), opacity .45s ease;
  will-change: transform, opacity;
}
.radar-slide.is-active { opacity: 1; transform: translateY(0); }
.radar-slide.is-prev { opacity: 0; transform: translateY(-70%); }
.radar-slide.is-next { opacity: 0; transform: translateY(70%); }
.radar-title {
  font-size: 15.8px; font-weight: 900; line-height: 1.24;
  letter-spacing: -.2px; color: #ffffff; margin: 0 auto;
}
.radar-sub { font-size: 12.5px; line-height: 1.4; color: rgba(216, 230, 250, .86); margin-top: 7px; }
.radar-sub strong { color: #ffc61a; }
.radar-card.is-idle .radar-sweep,
.radar-card.is-idle .radar-rot,
.radar-card.is-idle .radar-pulse,
.radar-card.is-idle .radar-core,
.radar-card.is-idle .radar-halo,
.radar-card.is-idle .radar-blip::before { animation: none; }
.radar-card.is-idle .radar-sweep { opacity: .22; }
.radar-card.is-idle .radar-map { opacity: .4; }
.radar-card.is-idle .radar-halo { opacity: .5; }
.radar-card.is-idle .radar-blip.on { opacity: .45; }
@media (prefers-reduced-motion: reduce) {
  .radar-sweep, .radar-rot, .radar-pulse, .radar-core, .radar-halo, .radar-blip::before { animation-duration: 14s; }
  .radar-blip { transition-duration: .1s; }
}

/* rating modal */
.star-pick { display: flex; gap: 6px; justify-content: center; margin: 10px 0 4px; }
.star-pick button {
  border: 0; background: transparent; padding: 3px; cursor: pointer; color: #d7deea;
}
html[data-theme="dark"] .star-pick button { color: #37415a; }
.star-pick button.on { color: #f5a623; }

/* ---------------- DRAWER ---------------- */
.scrim {
  position: fixed; inset: 0; background: rgba(8, 18, 36, .5);
  z-index: 60; backdrop-filter: blur(1.5px);
  animation: fadeIn .18s ease;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 82%; max-width: 320px;
  background: var(--card);
  z-index: 70;
  transform: translateX(-102%);
  transition: transform .26s cubic-bezier(.3, .8, .3, 1);
  display: flex; flex-direction: column;
  box-shadow: 8px 0 30px rgba(8, 18, 36, .18);
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-top {
  position: relative;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 14px;
  background: linear-gradient(135deg, var(--blue), #3f8fff);
  color: #fff;
}
.drawer-brand { font-size: 17px; font-weight: 900; letter-spacing: -.3px; color: #fff; }
.drawer-close {
  position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 8px;
  color: #fff;
}
.drawer-user { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.drawer-name { font-weight: 800; color: #fff; font-size: 14.5px; }
.drawer-status { font-size: 11.8px; color: rgba(255, 255, 255, .92); display: flex; align-items: center; gap: 6px; }
.drawer-status .dot.green { background: #7dffb5; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.drawer-status .dot.red { background: #ffb3b3; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.drawer-nav { flex: 1; overflow-y: auto; padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 2px; }
.drawer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px; border: 0; background: transparent;
  border-radius: 12px; color: var(--ink-2);
  font-family: var(--ff); font-size: 14px; font-weight: 700;
  cursor: pointer; text-align: left; width: 100%;
}
.drawer-item.active { background: var(--blue-soft); color: var(--blue-2); }
.drawer-item .ic { color: currentColor; }
.drawer-bottom {
  padding: 10px 14px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 8px;
}
.btn-ghost-logout {
  display: flex; align-items: center; gap: 9px;
  padding: 12px; border-radius: 12px;
  background: var(--red-soft); color: var(--red);
  font-weight: 800; font-size: 14px;
}
.drawer-ver { font-size: 11px; color: var(--muted); text-align: center; }

/* ---------------- NOTIF PANEL ---------------- */
.notif-panel {
  position: fixed; z-index: 65;
  top: calc(58px + env(safe-area-inset-top, 0px));
  right: max(10px, calc(50vw - 300px));
  left: auto;
  width: min(360px, calc(100vw - 20px));
  max-height: 68vh;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  animation: dropIn .18s ease;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border-bottom: 1px solid var(--line-2);
  color: var(--ink);
}
.notif-list { overflow-y: auto; padding: 6px 10px 10px; }
.notif-item {
  display: flex; gap: 9px; padding: 9px 4px;
  border-bottom: 1px solid var(--line-2);
}
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: var(--blue-soft-2); border-radius: 10px; padding: 9px 8px; }
.notif-ic {
  width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.notif-title { font-size: 13px; font-weight: 800; color: var(--ink); }
.notif-body { font-size: 12.3px; color: var(--ink-2); }
.notif-time { font-size: 10.8px; color: var(--muted); margin-top: 2px; }

/* ---------------- TOAST / SHEET / MODAL ---------------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: calc(68px + env(safe-area-inset-top, 0px));
  z-index: 90;
  pointer-events: none;
  background: #0f2747; color: #fff;
  padding: 11px 16px; border-radius: 12px;
  font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 28px);
  animation: dropIn .2s ease;
}
.toast-error { background: var(--red); }
.toast-ok { background: #0f2747; }
html[data-theme="dark"] .toast-ok { background: #1d3a63; }

.sheet { position: fixed; inset: 0; z-index: 88; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 18, 36, .5); backdrop-filter: blur(2px); }
.sheet-inner {
  position: relative;
  width: 100%; max-width: 620px;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(18px + var(--safe-b));
  max-height: 92dvh; overflow-y: auto;
  animation: sheetUp .24s cubic-bezier(.3, .8, .3, 1);
  box-shadow: 0 -10px 40px rgba(8, 18, 36, .25);
}
.sheet-grip { width: 44px; height: 4px; border-radius: 3px; background: var(--line); margin: 6px auto 12px; }
.sheet-title { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; color: var(--ink); }
.sheet-sub { font-size: 12.8px; color: var(--muted); margin-bottom: 14px; }
.sheet-actions { display: flex; gap: 9px; margin-top: 14px; }
.sheet-actions .btn { flex: 1; }

@keyframes sheetUp { from { transform: translateY(28px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@keyframes dropIn { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- DETAIL / ACCORDION ---------------- */
details.acc {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft); padding: 0; overflow: hidden;
}
details.acc > summary {
  list-style: none; cursor: pointer; padding: 10px 12px;
  font-size: 12.8px; font-weight: 800; color: var(--blue-2);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc[open] > summary { border-bottom: 1px solid var(--line); }
details.acc .acc-body { padding: 11px 12px; }

/* ---------------- AUTH / LANDING ---------------- */
.auth-wrap {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(24px + var(--safe-b));
  background:
    radial-gradient(900px 380px at 100% -8%, #d6ecfb 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(700px 320px at -10% 110%, #e5eeff 0%, rgba(255, 255, 255, 0) 60%),
    var(--bg);
  max-width: 620px; margin: 0 auto;
}
.auth-top { display: flex; align-items: center; justify-content: space-between; }
.auth-logo { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 16px; color: var(--ink); }
.auth-hero { margin: 22px 0 6px; }
.auth-hero h1 { font-size: 26px; line-height: 1.18; letter-spacing: -.7px; }
.auth-hero p { font-size: 13.5px; color: var(--muted); }
.role-card {
  display: flex; flex-direction: column; gap: 7px;
  text-align: left; width: 100%;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow); cursor: pointer;
  font-family: var(--ff); color: var(--ink);
  transition: .16s;
}
.role-card:active { border-color: var(--blue); transform: scale(.99); }
.role-card .rc-head { display: flex; align-items: center; gap: 12px; }
.role-card .rc-ic {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.role-card.special .rc-ic { background: var(--amber-soft); color: var(--amber); }
.role-card .rc-title { font-weight: 900; font-size: 16px; color: var(--ink); }
.role-card .rc-sub { font-size: 12.5px; color: var(--muted); }
.role-card .rc-cta {
  margin-top: 4px; font-size: 12.8px; font-weight: 800; color: var(--blue);
  display: flex; align-items: center; gap: 4px;
}
.auth-note {
  font-size: 11.8px; color: var(--muted); line-height: 1.5;
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: 12px; padding: 10px 12px;
}
.auth-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: auto; padding-top: 16px; }

.page-head-nav {
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: var(--card); border-bottom: 1px solid var(--line-2);
  position: sticky; top: 0; z-index: 20;
}
.backlink {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 800; color: var(--ink-2);
}
.form-wrap { max-width: 620px; margin: 0 auto; padding: 14px 14px calc(30px + var(--safe-b)); display: flex; flex-direction: column; gap: 13px; }

/* admin helpers */
.subbar { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.subbar::-webkit-scrollbar { display: none; }
.subbar a, .subbar button {
  flex: 0 0 auto; font-size: 12px; font-weight: 800;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  font-family: var(--ff); cursor: pointer;
}
.subbar .on { background: var(--ink); color: #fff; border-color: var(--ink); }
html[data-theme="dark"] .subbar .on { background: var(--blue); border-color: var(--blue); color: #04101f; }
.mini-note { font-size: 11.5px; color: var(--muted); }
.ktp-thumb {
  width: 100%; max-height: 150px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 11.5px; font-weight: 700; padding: 4px 9px;
  border-radius: 999px; background: var(--blue-soft); color: var(--blue-2);
}
.charts { display: flex; flex-direction: column; gap: 9px; }
.bar-row { font-size: 12px; color: var(--ink-2); }
.bar-track { height: 9px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; margin-top: 4px; border: 1px solid var(--line-2); }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), #5aa3ff); }
.table-wrap { overflow-x: auto; }
table.mini { width: 100%; border-collapse: collapse; font-size: 12.3px; }
table.mini th, table.mini td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.mini th { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }

/* indikator kompresi foto (upload kamera HP) */
.filebox.is-uploading { border-style: solid; border-color: var(--blue); background: var(--blue-soft-2); }
.filebox.is-uploading::after {
  content: "Mengoptimalkan foto…";
  position: absolute; right: 10px; bottom: 4px;
  font-size: 10.5px; font-weight: 800; color: var(--blue);
}

/* ---------------- LOGIN ADMIN (tanpa menampilkan email) ---------------- */
.admin-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 14px auto 0; padding: 9px 14px;
  width: fit-content;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--muted);
  font-size: 12.5px; font-weight: 800; text-decoration: none;
  transition: color .15s, border-color .15s;
}
.admin-link:active { color: var(--blue); border-color: var(--blue); }
.admin-link .ic { color: currentColor; }
.admin-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin: 18px 0 16px;
}
.admin-head-ic {
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

/* ============================================================
   HALAMAN PUBLIK (portofolio & kepatuhan) + FOOTER LEGAL
   ============================================================ */
.appfoot {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  padding: 7px 12px calc(7px + env(safe-area-inset-bottom, 0px));
  background: var(--card);
  border-top: 1px solid var(--line-2);
  overflow-x: auto; scrollbar-width: none;
}
.appfoot::-webkit-scrollbar { display: none; }
.appfoot a {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.appfoot a:active { color: var(--blue); }

.public-body {
  background: var(--bg-grad) fixed;
  background-color: var(--sky-fixed);
  /* html, body { height:100% } membuat tinggi body terkunci setinggi layar, sehingga
     elemen sticky (header + teks berjalan) berhenti menempel begitu halaman di-scroll
     melewati satu layar. height:auto membiarkan body tumbuh setinggi isi → sticky
     berjalan sepanjang halaman; min-height tetap menjaga footer menempel di bawah. */
  height: auto;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
.pubbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(9px + env(safe-area-inset-top, 0px)) 14px 9px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
}
.pubbrand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: 1; min-width: 0; }
.pubbrand-logo { display: flex; }
.pubbar-actions { display: flex; align-items: center; gap: 6px; }
.pubmain { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 16px 14px 30px; }

.pub-head { margin-bottom: 16px; }
.pub-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue-soft); color: var(--blue-2);
  font-size: 11.5px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px; margin-bottom: 9px;
}
.pub-head h1 {
  font-size: 25px; line-height: 1.18; letter-spacing: -.7px; margin: 0 0 8px;
}
.pub-lead { font-size: 13.8px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ---------- PORTFOLIO ---------- */
.pf-hero {
  background: linear-gradient(150deg, #0374b5, #0369a1 52%, #0e7490);
  border-radius: 20px; padding: 20px 18px; color: #fff;
  box-shadow: 0 14px 30px rgba(7, 89, 133, .28);
  margin-bottom: 16px;
}
.pf-hero h1 { color: #fff; font-size: 23px; letter-spacing: -.6px; margin: 0 0 8px; }
.pf-hero .pub-lead { color: rgba(255, 255, 255, .93); }
.pf-hero .pub-kicker { background: rgba(255, 255, 255, .2); color: #fff; }
.pf-stats { display: flex; gap: 22px; margin: 14px 0 16px; }
.pf-stats div { display: flex; flex-direction: column; }
.pf-stats b { font-size: 21px; line-height: 1.1; color: #fff; }
.pf-stats span { font-size: 11.5px; color: rgba(255, 255, 255, .85); }
.pf-cta { display: flex; gap: 9px; flex-wrap: wrap; }
.pf-hero .btn-ghost { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; }
.pf-hero .btn-primary { background: #fff; color: #075985; box-shadow: 0 6px 16px rgba(0, 0, 0, .16); }

.pf-filter { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.pf-filter::-webkit-scrollbar { display: none; }
.pf-filter button {
  flex: 0 0 auto; font-family: var(--ff); font-size: 12.3px; font-weight: 800;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
}
.pf-filter button.on { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }

.pf-list { display: flex; flex-direction: column; gap: 16px; }
.pf-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
}
.pf-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.pf-loc { font-size: 11.8px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.pf-num { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.pf-card h2 { font-size: 17.5px; margin: 0 0 6px; letter-spacing: -.3px; }
.pf-summary { font-size: 13.4px; color: var(--muted); margin: 0 0 12px; }

.pf-media {
  display: flex; gap: 9px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 6px; margin-bottom: 12px;
  scrollbar-width: none;
}
.pf-media::-webkit-scrollbar { display: none; }
.pf-item {
  flex: 0 0 82%; margin: 0; scroll-snap-align: start;
  border-radius: 14px; overflow: hidden; background: var(--bg-soft);
  border: 1px solid var(--line-2); cursor: zoom-in; position: relative;
}
.pf-item img, .pf-item video {
  width: 100%; height: 190px; object-fit: cover; display: block;
}
.pf-item.is-video { cursor: default; flex-basis: 92%; }
.pf-item figcaption {
  font-size: 11.4px; color: var(--muted); padding: 6px 9px;
  background: var(--card); border-top: 1px solid var(--line-2);
}
@media (min-width: 620px) {
  .pf-item { flex-basis: 48%; }
}

.pf-desc { font-size: 13.6px; color: var(--ink-2); }
.pf-desc ul, .pf-desc ol { padding-left: 20px; margin: 6px 0; }
.pf-desc li { margin-bottom: 4px; }
.pf-desc h3 { font-size: 14.5px; margin: 10px 0 4px; }
.pf-custom { margin-top: 10px; }
.pf-custom .pf-note {
  border-left: 3px solid var(--blue); background: var(--blue-soft-2);
  padding: 9px 12px; border-radius: 0 10px 10px 0; font-size: 12.8px; color: var(--ink-2);
}
.pf-custom .pf-badge {
  display: inline-flex; gap: 5px; align-items: center;
  background: var(--green-soft); color: var(--green);
  font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px;
}
.pf-card-foot { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.pf-card-foot .btn { flex: 1 1 auto; }

.pf-bottom {
  margin-top: 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; text-align: center; box-shadow: var(--shadow);
}
.pf-bottom h2 { font-size: 17px; margin: 0 0 6px; }
.pf-bottom p { font-size: 13.2px; color: var(--muted); margin: 0 0 13px; }
.pf-bottom .pf-cta { justify-content: center; }

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6, 12, 24, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lightbox img { max-width: 100%; max-height: 86dvh; border-radius: 10px; }
.lb-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; display: flex;
  align-items: center; justify-content: center; cursor: pointer;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* ---------- HALAMAN LEGAL ---------- */
.legal {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; box-shadow: var(--shadow);
}
.legal h2 { font-size: 16px; margin: 20px 0 8px; }
.legal h2:first-of-type { margin-top: 14px; }
.legal p, .legal li { font-size: 13.6px; color: var(--ink-2); line-height: 1.62; }
.legal ul, .legal ol { padding-left: 20px; margin: 6px 0 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); font-weight: 700; }
.legal-toc {
  background: var(--bg-soft); border: 1px solid var(--line-2);
  border-radius: 13px; padding: 12px 14px;
}
.legal-toc b { font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.legal-toc ol { margin: 7px 0 0; padding-left: 18px; }
.legal-toc li { font-size: 12.8px; margin-bottom: 3px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 12.8px; margin: 8px 0 14px; }
.legal-table th, .legal-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2);
  vertical-align: top; color: var(--ink-2);
}
.legal-table th { color: var(--ink); font-weight: 800; background: var(--bg-soft); width: 34%; }
.legal-highlight {
  background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  border-radius: 13px; padding: 12px 14px; margin: 10px 0 14px;
}
.legal-highlight p { margin: 0; color: var(--ink); }
.legal-nav { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.legal-nav a {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 14px; font-size: 13px; font-weight: 800; color: var(--ink-2); text-decoration: none;
}
.contact-box { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.contact-box a {
  display: flex; align-items: center; gap: 9px;
  background: var(--blue-soft-2); border: 1px solid var(--blue-soft);
  border-radius: 12px; padding: 11px 13px; font-size: 13px; font-weight: 800;
  color: var(--blue-2); text-decoration: none;
}

.contact-cards { display: flex; flex-direction: column; gap: 11px; margin-bottom: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
}
.contact-card .cc-ic {
  width: 48px; height: 48px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue);
}
.contact-card.wa .cc-ic { background: #dcf8e8; color: #0f9d58; }
html[data-theme="dark"] .contact-card.wa .cc-ic { background: #123322; color: #4ade80; }
.contact-card .cc-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.contact-card b { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.contact-card .cc-body span { font-size: 14.5px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.contact-card small { font-size: 11.5px; color: var(--muted); }

/* langkah cara order */
.steps { display: flex; flex-direction: column; gap: 13px; margin-bottom: 20px; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 16px 16px 16px; box-shadow: var(--shadow);
}
.step-num {
  position: absolute; top: -11px; left: 14px;
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
}
.step h3 { margin: 8px 0 6px; font-size: 15.5px; }
.step p, .step li { font-size: 13.3px; color: var(--ink-2); }
.step ul { padding-left: 18px; margin: 4px 0 8px; }
.pay-note {
  display: flex; align-items: flex-start; gap: 6px;
  background: var(--green-soft); color: var(--green);
  border-radius: 10px; padding: 9px 11px; font-size: 12.2px; font-weight: 700; margin-top: 8px;
}
.faq { margin-bottom: 20px; }
.faq h2 { font-size: 17px; margin: 0 0 10px; }
.faq .acc { margin-bottom: 9px; background: var(--card); border-color: var(--line); }

.fab-wa {
  position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #052e16;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22); z-index: 40;
}

/* footer situs */
.sitefooter {
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  text-align: center;
}
.sitefooter.compact { margin-top: auto; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.legal-links a {
  font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none;
}
.legal-links a:active { color: var(--blue); }
.sf-contact { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.sf-contact a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--blue-2); text-decoration: none;
}
.sf-copy { font-size: 11px; color: var(--muted); }

/* landing: tombol tambahan */
.landing-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.role-card.portfolio .rc-ic { background: var(--green-soft); color: var(--green); }
.role-card.portfolio .rc-cta { color: var(--green); }

/* ============================================================
   ADMIN: WEB BUILDER PORTOFOLIO
   ============================================================ */
.rte { border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--card); }
.rte-toolbar {
  display: flex; gap: 2px; flex-wrap: wrap; padding: 5px;
  border-bottom: 1px solid var(--line-2); background: var(--bg-soft);
}
.rte-toolbar button {
  min-width: 32px; height: 30px; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink-2); cursor: pointer;
  font-family: var(--ff); font-size: 13px; font-weight: 800;
}
.rte-toolbar button:active { background: var(--blue-soft); color: var(--blue-2); }
.rte-area {
  min-height: 150px; max-height: 380px; overflow-y: auto;
  padding: 11px 12px; font-size: 14.5px; color: var(--ink);
  outline: none; line-height: 1.55;
}
.rte-area:empty::before {
  content: attr(data-placeholder); color: #9aa8bd; pointer-events: none;
}
.rte-area ul, .rte-area ol { padding-left: 20px; margin: 5px 0; }
.rte-area h3 { font-size: 15px; margin: 8px 0 4px; }
.rte-area a { color: var(--blue); }

textarea.code, input.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.8px; line-height: 1.5;
}

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center; cursor: pointer; position: relative;
  border: 2px dashed var(--line); border-radius: 14px;
  padding: 20px 14px; background: var(--bg-soft); margin-top: 10px;
  transition: border-color .15s, background .15s;
}
.dropzone .dz-ic { color: var(--blue); }
.dropzone .dz-title { font-size: 13.4px; font-weight: 800; color: var(--ink); }
.dropzone .dz-sub { font-size: 11.4px; color: var(--muted); }
.dropzone.dragover { border-color: var(--blue); background: var(--blue-soft-2); }
.dropzone.is-uploading { pointer-events: none; opacity: .8; }
.dz-progress {
  display: block; width: 100%; height: 7px; border-radius: 5px;
  background: var(--line); overflow: hidden; margin-top: 8px;
}
.dz-progress i { display: block; height: 100%; width: 0%; background: var(--blue); transition: width .2s; }
.dz-status { font-size: 12px; color: var(--muted); margin-top: 7px; }

.pf-gallery-admin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 10px; }
.pf-thumb { position: relative; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.pf-thumb img, .pf-thumb video { width: 100%; height: 88px; object-fit: cover; display: block; }
.pf-thumb-tag {
  position: absolute; left: 5px; bottom: 5px;
  background: rgba(0, 0, 0, .68); color: #fff;
  font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 4px;
}
.pf-thumb-del {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: rgba(220, 38, 38, .92); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pf-cover {
  width: 46px; height: 46px; border-radius: 11px; object-fit: cover;
  border: 1px solid var(--line); flex: 0 0 auto;
}
.pf-cover-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--muted);
}

/* ============================================================
   PEMBAYARAN QRIS
   ============================================================ */
.qris-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 13px;
  box-shadow: var(--shadow);
}
.qris-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.qris-badge {
  background: linear-gradient(135deg, #0374b5, #0369a1);
  color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: 1.2px;
  padding: 5px 10px; border-radius: 7px;
}
html[data-theme="dark"] .qris-badge { background: linear-gradient(135deg, #7dd3fc, #bae6fd); color: #05121f; }
.qris-headtext { display: flex; flex-direction: column; min-width: 0; }
.qris-headtext b { font-size: 13.6px; color: var(--ink); line-height: 1.2; }
.qris-headtext small { font-size: 11.3px; color: var(--muted); font-weight: 700; letter-spacing: .2px; }

.qris-frame {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--line);
  padding: 6px;
  cursor: zoom-in;
}
.qris-frame img {
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  display: block;
  border-radius: 9px;
}
.qris-compact .qris-frame img { max-height: 300px; }

.qris-amount {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue-soft-2); border: 1px solid var(--blue-soft);
  border-radius: 11px; padding: 9px 12px; margin-top: 10px;
}
.qris-amount span { font-size: 12px; font-weight: 700; color: var(--muted); }
.qris-amount b { font-size: 17px; font-weight: 900; color: var(--blue-2); }

.qris-meta {
  display: flex; align-items: center; gap: 7px;
  margin-top: 9px; font-size: 11.6px; color: var(--muted);
}
.qris-meta code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.8px; font-weight: 700; color: var(--ink-2);
  background: var(--bg-soft); padding: 2px 7px; border-radius: 5px;
}
.qris-note {
  display: flex; align-items: flex-start; gap: 5px;
  font-size: 11.8px; color: var(--ink-2); margin: 9px 0 0; line-height: 1.5;
}
.qris-note .ic { color: var(--muted); margin-top: 2px; flex: 0 0 auto; }
.qris-warn {
  display: flex; align-items: flex-start; gap: 5px;
  margin-top: 9px; padding: 8px 10px; border-radius: 9px;
  background: var(--amber-soft); color: var(--amber);
  font-size: 11.5px; font-weight: 700; line-height: 1.45;
}
.qris-warn .ic { flex: 0 0 auto; margin-top: 1px; }

.pay-steps {
  margin-top: 12px; background: var(--bg-soft);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px;
}
.pay-steps b { font-size: 12.5px; color: var(--ink); display: block; margin-bottom: 5px; }
.pay-steps ol { margin: 0; padding-left: 18px; }
.pay-steps li { font-size: 12.4px; color: var(--ink-2); margin-bottom: 4px; line-height: 1.5; }

.qris-admin-preview {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line-2);
  border-radius: 13px; padding: 11px;
}
.qris-admin-preview > img {
  width: 104px; height: 138px; object-fit: cover;
  border-radius: 9px; border: 1px solid var(--line); background: #fff; flex: 0 0 auto;
}
.qris-admin-preview .grow { min-width: 0; }
@media (max-width: 380px) {
  .qris-admin-preview { flex-direction: column; }
  .qris-admin-preview > img { width: 100%; height: 160px; }
}

/* ============================================================
   MARQUEE PENGUMUMAN (di atas navigasi)
   ============================================================ */
.marquee-bar {
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  z-index: 25;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation-name: marqueeScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.marquee-text {
  display: inline-block;
  padding-right: 64px;
  font-size: 12.4px;
  font-weight: 800;
  letter-spacing: .1px;
  white-space: nowrap;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 40s !important; }
}

/* ============================================================
   CHAT INTERNAL — FLOATING WIDGET
   ============================================================ */
/* wrapper yang bisa digeser (posisi disimpan di localStorage) */
.chat-fab-wrap {
  position: fixed;
  left: 14px;
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  z-index: 46;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  touch-action: none;          /* supaya bisa di-drag tanpa ikut men-scroll halaman */
  -webkit-user-select: none;
  user-select: none;
  transition: filter .15s ease;
}
/* Tombol chat melayang disembunyikan selama pane Beranda aktif (customer & mitra);
   chat tetap bisa dibuka dari menu hamburger (drawer) maupun tab Chat. */
.chat-fab-wrap.is-tab-hidden { display: none !important; }

.chat-fab-wrap.is-dragging { filter: drop-shadow(0 12px 18px rgba(6, 24, 56, .4)); }
.chat-fab-wrap.is-dragging .chat-fab { transform: scale(1.06); }
.chat-fab-wrap.is-dragging .chat-fab-label { opacity: 0; }

.chat-fab {
  position: relative;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(7, 89, 133, .38);
  cursor: grab;
  padding: 0;
  transition: transform .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.chat-fab:active { transform: scale(.95); }
.chat-fab-wrap.is-dragging .chat-fab { cursor: grabbing; }
.chat-fab .chat-fab-ic { display: flex; }
.chat-fab .ic.tg { color: #fff; }
.chat-fab .ic.chat { color: #fff; }
html[data-theme="dark"] .chat-fab { background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #fff; }
.chat-fab-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #e11d48; color: #fff;
  font-size: 11px; font-weight: 900; line-height: 20px; text-align: center;
  border: 2px solid var(--card);
}
.chat-fab-label {
  position: static;
  background: var(--ink);
  color: var(--bg);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .15s ease;
}

.chat-panel {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  max-width: 620px;
  margin: 0 auto;
  animation: chatIn .18s ease;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.chat-panel-head {
  display: flex; align-items: center; gap: 9px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: linear-gradient(135deg, #0374b5, #0369a1);
  color: #fff;
}
.chat-panel-head b { font-size: 14.5px; color: #fff; display: block; line-height: 1.2; }
.chat-panel-head small { font-size: 11.3px; color: rgba(255, 255, 255, .88); }
.chat-panel-head .iconbtn { color: #fff; }
.chat-av {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(6, 24, 56, .22);
}
.chat-av .ic.tg { color: #fff; }
.chat-av .ic.chat { color: #fff; }
.chat-msgs {
  flex: 1; overflow-y: auto;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-soft);
  -webkit-overflow-scrolling: touch;
}
.chat-empty { text-align: center; font-size: 12.5px; color: var(--muted); margin: auto; }
.chat-day { align-self: center; font-size: 10.8px; font-weight: 800; color: var(--muted);
  background: var(--card); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.chat-bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13.6px;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
  position: relative;
}
.chat-bubble.them {
  align-self: flex-start;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.chat-bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, #0374b5, #0369a1);
  color: #fff;
  border-bottom-right-radius: 5px;
}
html[data-theme="dark"] .chat-bubble.me { color: #fff; }
.chat-bubble .chat-time { display: block; font-size: 9.8px; opacity: .72; margin-top: 3px; text-align: right; }
.chat-bubble img, .chat-bubble video { max-width: 100%; border-radius: 9px; display: block; margin-bottom: 4px; }
.chat-bubble .chat-file {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 12.5px; text-decoration: underline;
}
.chat-form {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
  background: var(--card);
  border-top: 1px solid var(--line-2);
}
.chat-input {
  flex: 1; min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: var(--ff); font-size: 16px; color: var(--ink);
  background: var(--bg-soft);
  outline: none;
}
.chat-input:focus { border-color: var(--blue); background: var(--card); }
.chat-tool, .chat-send {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--ink-2);
  font-size: 18px; cursor: pointer; flex: 0 0 auto;
}
.chat-send { background: linear-gradient(135deg, #0374b5, #0369a1); color: #fff; }
html[data-theme="dark"] .chat-send { color: #fff; }
.chat-emoji {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 2px; padding: 8px 10px;
  background: var(--card); border-top: 1px solid var(--line-2);
  max-height: 150px; overflow-y: auto;
}
.chat-emoji button {
  border: 0; background: transparent; font-size: 22px; line-height: 1;
  padding: 4px 0; cursor: pointer; border-radius: 8px;
}
.chat-emoji button:active { background: var(--blue-soft); }
.chat-attach {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 11px; background: var(--blue-soft-2);
  border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--blue-2); font-weight: 700;
}
.chat-attach button { margin-left: auto; border: 0; background: transparent; color: var(--red); font-weight: 900; cursor: pointer; }

/* ============================================================
   ADMIN CHATS (2 kolom)
   ============================================================ */
.chats-wrap {
  display: flex;
  height: calc(100dvh - 96px);
  overflow: hidden;
}
.chats-list {
  width: 40%; max-width: 300px;
  border-right: 1px solid var(--line-2);
  overflow-y: auto;
  background: var(--card);
  flex: 0 0 auto;
}
.chats-list-head {
  padding: 10px 12px; border-bottom: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 900; color: var(--ink);
  position: sticky; top: 0; background: var(--card); z-index: 2;
}
.chat-row {
  display: flex; gap: 9px; align-items: center;
  padding: 10px 11px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer; background: transparent; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; font-family: var(--ff);
}
.chat-row.active { background: var(--blue-soft-2); }
.chat-row-main { flex: 1; min-width: 0; }
.chat-row-name { font-size: 13px; font-weight: 800; color: var(--ink); }
.chat-row-prev { font-size: 11.3px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.chat-row-time { font-size: 10px; color: var(--muted); }
.chat-row-unread {
  min-width: 18px; height: 18px; border-radius: 9px;
  background: #e11d48; color: #fff; font-size: 10.5px; font-weight: 900;
  line-height: 18px; text-align: center; padding: 0 4px;
}
.chats-room { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg-soft); }
.chats-room-head {
  padding: 10px 12px; background: var(--card);
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 8px;
}
.chats-room-empty {
  margin: auto; text-align: center; padding: 20px; color: var(--muted); font-size: 13px;
}
.chats-room .chat-msgs { flex: 1; }
.chats-mobile-back { display: none; }
@media (max-width: 640px) {
  .chats-list { width: 100%; max-width: none; }
  .chats-wrap.room-open .chats-list { display: none; }
  .chats-wrap:not(.room-open) .chats-room { display: none; }
  .chats-mobile-back { display: inline-flex; }
}

.plainmain {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* info fee / net pada kartu orderan */
.netinfo {
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 9px 11px;
  font-size: 12.3px;
  color: var(--ink-2);
  display: flex; flex-direction: column; gap: 4px;
}
.netinfo .row-between { font-size: 12.3px; }
.netinfo b { font-weight: 900; }

/* mutasi saldo */
.mut-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 0; border-bottom: 1px solid var(--line-2);
}
.mut-row:last-child { border-bottom: 0; }
.mut-main { flex: 1; min-width: 0; }
.mut-nom { font-weight: 900; font-size: 13px; white-space: nowrap; }
.mut-nom.in { color: var(--green); }
.mut-nom.out { color: var(--red); }

/* marquee preview di admin */
.marquee-preview {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 12px 0;
  border: 1px solid var(--line);
}
.marquee-preview-track {
  display: flex; width: max-content;
  animation-name: marqueeScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.marquee-preview-track span {
  white-space: nowrap; padding-right: 60px;
  font-size: 13px; font-weight: 800;
}

/* color picker */
.color-row { display: flex; align-items: center; gap: 8px; }
.color-input { width: 56px; min-height: 44px; padding: 4px; height: 44px; cursor: pointer; }
.color-val {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--muted);
  background: var(--bg-soft); padding: 3px 7px; border-radius: 6px;
}
.pay-opt { align-items: flex-start; cursor: pointer; }
.pay-opt b { font-size: 13.6px; }
.pay-opt input[type=radio] { margin-top: 2px; }

/* kartu rating & ulasan pada orderan mitra */
.rate-card {
  background: linear-gradient(180deg, var(--amber-soft), var(--card) 85%);
  border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
  border-radius: 13px;
  padding: 11px 12px;
  display: flex; flex-direction: column; gap: 5px;
}
.rate-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rate-head .rowitem-title { display: inline-flex; align-items: center; gap: 5px; font-size: 12.8px; }
.rate-head .ic { color: var(--amber); }
.rate-text {
  font-size: 12.4px; color: var(--ink-2); margin: 2px 0 0;
  font-style: italic; line-height: 1.45;
}

/* ============================================================
   LANDING KATALOG PUBLIK (header + menu kanan)
   ============================================================ */
.landbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: var(--card-glass-strong);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(16, 42, 90, .03);
}
.landbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 1; min-width: 0; }
.landbrand .brand-text { line-height: 1.06; }
.landbrand .bt-top { font-size: 16.5px; }
.landbrand .bt-sub { font-size: 8.8px; letter-spacing: 2.6px; }
.landbar-actions { display: flex; align-items: center; gap: 4px; }
.landbtn {
  width: 42px; height: 42px; border-radius: 12px;
  border: 0; background: transparent; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.landbtn:active { background: var(--blue-soft); }
html[data-theme="dark"] .landbtn { color: var(--ink); }

.landmain {
  flex: 1; width: 100%; max-width: 620px; margin: 0 auto;
  padding: 14px 14px 20px;
}
.landmain .cust-title { font-size: 23.5px; margin-bottom: 5px; }
.landmain .cust-sub { margin-bottom: 11px; }
.landmain .spec-grid { margin-bottom: 4px; }

.land-note {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 16px; padding: 11px 13px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  font-size: 12.4px; color: var(--ink-2); font-weight: 600; line-height: 1.5;
}
/* tema gelap: kartu putih transparan akan membuat teks terang tak terbaca */
html[data-theme="dark"] .land-note { background: rgba(19, 29, 49, .78); }
.land-note .ic { color: var(--green); flex: 0 0 auto; margin-top: 1px; }

/* ---------------- MITRA TERPERCAYA (LANDING) ---------------- */
.partners {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.partners-head { margin-bottom: 16px; }
.partners-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase;
  color: var(--blue-2); background: var(--blue-soft);
  padding: 4px 9px; border-radius: 999px; margin-bottom: 8px;
}
html[data-theme="dark"] .partners-kicker { color: #cfe9fb; }
.partners-title {
  font-size: 18.5px; font-weight: 900; letter-spacing: -.4px;
  color: var(--ink); margin: 0 0 4px;
}
.partners-sub { font-size: 12.6px; color: var(--muted); margin: 0; line-height: 1.5; }

.partner-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) {
  .partner-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* Kartu mitra: TEMA BIRU + GELEMBUNG (bubble) */
.partner-card {
  --pc-a: #052a63;
  --pc-b: #0a4a9e;
  --pc-c: #0d55b0;
  --pc-glow: rgba(96, 178, 255, .40);
  --pc-ring: rgba(255, 255, 255, .20);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 15px 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--pc-ring);
  color: #fff;
  text-decoration: none;
  background-image:
    /* selubung gelap di kiri supaya teks tetap kontras di atas gelembung */
    linear-gradient(100deg, rgba(3, 13, 35, .58) 0%, rgba(3, 13, 35, .26) 52%, rgba(3, 13, 35, 0) 80%),
    /* gelembung: cincin (bubble outline) + bulatan isi, campur untuk kedalaman */
    radial-gradient(circle at 84% 6%, rgba(255, 255, 255, 0) 0 25px, rgba(255, 255, 255, .30) 26px, rgba(255, 255, 255, .30) 28px, rgba(255, 255, 255, 0) 29px),
    radial-gradient(circle at 84% 6%, rgba(255, 255, 255, .12) 0 25px, rgba(255, 255, 255, 0) 26px),
    radial-gradient(circle at 97% 50%, rgba(255, 255, 255, .18) 0 13px, rgba(255, 255, 255, 0) 14px),
    radial-gradient(circle at 70% -18%, rgba(255, 255, 255, .10) 0 44px, rgba(255, 255, 255, 0) 45px),
    radial-gradient(circle at 72% 108%, rgba(255, 255, 255, 0) 0 20px, rgba(255, 255, 255, .22) 21px, rgba(255, 255, 255, .22) 23px, rgba(255, 255, 255, 0) 24px),
    radial-gradient(circle at 93% 84%, rgba(255, 255, 255, .16) 0 8px, rgba(255, 255, 255, 0) 9px),
    /* cahaya kebiruan di kiri atas + dasar gradien biru */
    radial-gradient(120% 100% at 6% 0%, var(--pc-glow) 0%, rgba(96, 178, 255, 0) 58%),
    linear-gradient(140deg, var(--pc-a) 0%, var(--pc-b) 56%, var(--pc-c) 100%);
  box-shadow: 0 12px 26px rgba(8, 38, 95, .26), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.partner-card.tone-sky {
  --pc-a: #032642;
  --pc-b: #064f80;
  --pc-c: #0a5e94;
  --pc-glow: rgba(89, 214, 255, .30);
}
.partner-card:active { transform: scale(.985); }
.partner-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) {
  .partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(8, 38, 95, .34), inset 0 1px 0 rgba(255, 255, 255, .22);
  }
  .partner-card:hover .partner-go { transform: translateX(2px); }
}

.partner-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.partner-ic {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .17);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .30), 0 4px 12px rgba(3, 13, 35, .22);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  backdrop-filter: blur(6px) saturate(140%);
}
.partner-ic .ic { stroke-width: 1.9; }

.partner-chip {
  min-width: 0;
  font-size: 9.6px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase;
  color: #eef8ff;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .24);
  padding: 4px 9px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.partner-go {
  margin-left: auto; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .94); color: #075985;
  box-shadow: 0 4px 10px rgba(3, 13, 35, .26);
  transition: transform .16s ease;
}

.partner-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.partner-name {
  font-size: 16.5px; font-weight: 900; letter-spacing: -.25px; line-height: 1.2;
  color: #fff;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px;
}
.partner-name small {
  font-size: 10.2px; font-weight: 800; letter-spacing: .35px;
  color: rgba(255, 255, 255, .84); text-transform: uppercase;
}
.partner-desc {
  font-size: 12.3px; line-height: 1.45; font-weight: 600;
  color: rgba(255, 255, 255, .96);
}
.partner-cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 2px;
  font-size: 10.4px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase;
  color: #f0f6ff;
}
.partner-cta .ic { stroke-width: 2.6; }

/* tema gelap: cincin & bayangan disesuaikan, warna dasar tetap biru */
html[data-theme="dark"] .partner-card {
  border-color: rgba(150, 195, 255, .26);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .10);
}
html[data-theme="dark"] .partner-card .partner-go { background: #e8f6fe; color: #075985; }

/* layar sempit: rapatkan agar teks tidak memanjang berlebihan */
@media (max-width: 359px) {
  .partner-card { padding: 13px 14px 12px; border-radius: 16px; gap: 9px; }
  .partner-ic { width: 40px; height: 40px; border-radius: 12px; }
  .partner-ic .ic { width: 21px; height: 21px; }
  .partner-chip { font-size: 9px; letter-spacing: .4px; padding: 3px 8px; }
  .partner-name { font-size: 15.5px; }
  .partner-desc { font-size: 11.8px; }
}

.partners-foot {
  display: flex; align-items: center; gap: 5px;
  margin: 11px 0 0; font-size: 11.4px; color: var(--muted); font-weight: 600;
}
.partners-foot .ic { color: var(--green); flex: 0 0 auto; }

/* drawer kanan */
.drawer.drawer-right {
  left: auto; right: 0;
  transform: translateX(102%);
  box-shadow: -8px 0 30px rgba(8, 18, 36, .18);
}
.drawer.drawer-right.open { transform: translateX(0); }
.drawer-item { text-decoration: none; }
.drawer-item-muted { color: var(--muted); font-weight: 700; font-size: 13px; }
.drawer-sep { height: 1px; background: var(--line-2); margin: 6px 4px; }

/* ============================================================
   RAB PER ITEM PEKERJAAN (LAYANAN UTAMA / BORONGAN)
   Alur: ajukan RAB → persetujuan → bayar QRIS → progress item → cair
   ============================================================ */
.rab-card {
  background: var(--blue-soft-2);
  border: 1px solid var(--blue-soft);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  display: flex; flex-direction: column; gap: 9px;
}
.rab-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rab-head .rowitem-title { display: inline-flex; align-items: center; gap: 5px; font-size: 12.8px; }
.rab-head .ic { color: var(--blue-2); }

.rab-total {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12.3px; color: var(--ink-2);
}
.rab-total .row-between { font-size: 12.3px; }
.rab-total b { font-weight: 900; }

.rab-list { display: flex; flex-direction: column; gap: 9px; }
.rab-item {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 7px;
}
.rab-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rab-item-name { font-size: 13.2px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.rab-item-meta {
  font-size: 11.6px; color: var(--muted); line-height: 1.45;
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.rab-item-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.rab-item-actions .btn { min-width: 0; }
.rab-item-actions .input { margin-bottom: 0; }
.rab-photo {
  display: block; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.rab-photo img { display: block; width: 100%; max-height: 190px; object-fit: cover; }

.rab-rows { display: flex; flex-direction: column; gap: 9px; }
.rab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rab-jumlah {
  display: flex; flex-direction: column; justify-content: center;
  gap: 2px; padding: 7px 10px;
  background: var(--blue-soft); border: 1px dashed var(--line);
  border-radius: var(--r-sm);
}
.rab-jumlah small { font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.rab-jumlah b { font-size: 13.2px; font-weight: 900; color: var(--blue-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rab-row {
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 9px;
  display: flex; flex-direction: column; gap: 7px;
}
.rab-row .input { background: var(--card); }
.rab-row-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11.5px; font-weight: 800; color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * IDENTITAS MEREK DI ATAS FORM PEMESANAN (pesan.php)
 * ------------------------------------------------------------------ */
.order-brand {
  display: flex; align-items: center; gap: 11px;
  background: var(--card-glass-strong, var(--card));
  border: 1px solid var(--glass-line, var(--line));
  border-radius: 14px;
  padding: 10px 13px;
  box-shadow: var(--shadow-sm, 0 4px 14px rgba(15, 40, 90, .07));
}
.order-brand .ob-logo { flex: 0 0 auto; display: block; }
.order-brand .ob-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.order-brand .ob-name { display: flex; gap: 5px; font-size: 16px; font-weight: 900; letter-spacing: .4px; line-height: 1.1; }
.order-brand .ob-name b:first-child { color: var(--ink); }
.order-brand .ob-name b:last-child { color: #8a6100; }
html[data-theme="dark"] .order-brand .ob-name b:first-child { color: #e8ecf7; }
html[data-theme="dark"] .order-brand .ob-name b:last-child { color: #ffc61a; }
.order-brand .ob-tag { font-size: 11.6px; font-weight: 700; color: var(--muted); line-height: 1.25; }

/* kartu orderan yang bisa dilipat (beranda, orderan, riwayat, admin) */
details.job-acc { display: block; }
details.job-acc > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;                 /* di HP sempit baris chip turun sendiri */
  gap: 6px 10px;
  min-height: 38px;                /* area ketuk nyaman di HP */
  -webkit-tap-highlight-color: transparent;
}
details.job-acc > summary > .grow { flex: 1 1 190px; min-width: 0; }
details.job-acc > summary > .row:not(.grow) { flex: 0 0 auto; margin-left: auto; }
details.job-acc > summary .job-title { display: block; line-height: 1.28; }
details.job-acc > summary .job-cat {
  display: block; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
details.job-acc > summary::-webkit-details-marker { display: none; }
details.job-acc > summary .ja-chev { color: var(--muted); transition: transform .18s; display: inline-flex; }
details.job-acc[open] > summary .ja-chev { transform: rotate(180deg); }
details.job-acc .ja-body { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
details.job-acc > summary:hover .job-title { color: var(--blue-2); }

/* baris alat kecil di atas daftar kartu (mis. tombol "Buka semua") */
.acc-tools { margin: -2px 0 2px; gap: 8px; align-items: center; }
.acc-tools .mini-note { min-width: 0; }
.acc-tools .btn { flex: 0 0 auto; }

/* label kecil pemisah grid spesialisasi / layanan khusus */
.spec-label {
  display: flex; align-items: center; gap: 6px;
  margin: 4px 0 9px;
  font-size: 12.4px; font-weight: 900; letter-spacing: .2px;
  color: var(--ink-2);
}
.spec-label svg { color: var(--blue-2); }
.spec-group { margin-top: 12px; }
/* pemisah pertama tidak perlu jarak atas ekstra (di app shell flex gap sudah memberi jarak)
   supaya tidak ada ruang kosong besar antara kolom pencarian dan daftar layanan */
.spec-group > .spec-divider:first-child { margin-top: 0; }
/* di app shell (customer) jarak antar blok sudah diatur flex `gap`, jadi margin
   tambahan dihapus supaya tidak menumpuk jadi ruang kosong besar. */
.pane-inner .spec-search { margin-bottom: 0; }
.pane-inner .spec-group { margin-top: 0; }
.spec-group[hidden] { display: none !important; }

/* ------------------------------------------------------------------ *
 * BERANDA MITRA: MUAT SATU LAYAR (tanpa scroll) — round 25
 * Mode .fit-vh hanya dipakai saat beranda menampilkan radar (menunggu
 * order / offline): kartu profil & judul dipadatkan, lalu kartu radar
 * mengambil sisa tinggi layar dan lingkarannya menyesuaikan (tetap
 * lingkaran penuh, tidak pernah melebihi lebar kotak).
 * ------------------------------------------------------------------ */
/* pane beranda mode fit: padding lebih tipis supaya radar dapat ruang maksimal */
.pane[data-pane="beranda"]:has(.pane-inner.fit-vh) { padding-top: 10px; padding-bottom: calc(10px + var(--safe-b)); }
.pane-inner.fit-vh {
  /* tinggi dikunci ke tinggi pane supaya kartu radar mau menyusut
     (min-height saja tidak cukup: anak flex tidak akan shrink) */
  height: 100%;
  min-height: 0;
  gap: 9px;
}
.pane-inner.fit-vh .mitra-hero { padding: 9px 12px; }
.pane-inner.fit-vh .mitra-hero .av { width: 40px !important; height: 40px !important; border-radius: 20px !important; font-size: 16px !important; }
.pane-inner.fit-vh .mitra-hero .mh-name { font-weight: 800; font-size: 14px; line-height: 1.2; }
.pane-inner.fit-vh .mitra-hero .mh-mail {
  font-size: 11px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 44vw;
}
.pane-inner.fit-vh .mitra-hero .divider { margin: 7px 0; }
.pane-inner.fit-vh .mitra-hero .mini-note { font-size: 10.2px; line-height: 1.2; }
.pane-inner.fit-vh .mitra-hero .row-between > .center > div:last-child,
.pane-inner.fit-vh .mitra-hero .row-between > div > div:last-child { font-size: 12.6px; line-height: 1.25; }
.pane-inner.fit-vh .mitra-hero .badge { font-size: 9.4px; padding: 3px 7px; }
.pane-inner.fit-vh .feed-head h2 { font-size: 14.2px !important; }
.pane-inner.fit-vh .feed-head .badge { font-size: 10px; }

.pane-inner.fit-vh > .radar-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 9px 0 10px;
}
/* lingkaran radar mengambil sisa tinggi kartu (selalu lingkaran penuh,
   lebarnya tidak pernah melebihi kotak) */
.pane-inner.fit-vh .radar-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 3px 0;
}
.pane-inner.fit-vh .radar {
  /* fallback CSS (kotak persegi mengikuti tinggi); JS "RADAR: MUAT RUANG"
     menetapkan diameter final = min(lebar, tinggi) ruang tersisa */
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  max-height: 100%;
  margin: 0 auto;
}
.pane-inner.fit-vh .radar-blip { width: 32px; height: 32px; }
/* align-self: stretch WAJIB: margin auto bawaan membuat lebarnya shrink-to-fit
   sehingga teks membungkus terlalu cepat di layar kecil */
.pane-inner.fit-vh .radar-slider {
  height: 84px; margin: 6px 0 0; padding: 0 14px;
  flex: 0 0 auto; align-self: stretch; max-width: none;
}
.pane-inner.fit-vh .radar-title {
  font-size: 14.2px; line-height: 1.22;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pane-inner.fit-vh .radar-sub {
  font-size: 11.6px; line-height: 1.35; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pane-inner.fit-vh .radar-live { top: 9px; right: 9px; font-size: 8.5px; padding: 2px 7px; }

/* mode fit: judul "Orderan Masuk" tidak perlu (radar sudah menjelaskan status),
   dan layar pendek memakai teks + radar lebih ringkas */
.pane-inner.fit-vh .feed-head { display: none; }
@media (max-height: 700px) {
  .pane-inner.fit-vh .radar-slider { height: 74px; }
  .pane-inner.fit-vh .radar-title { font-size: 13.4px; }
  .pane-inner.fit-vh .radar-sub { font-size: 11px; margin-top: 4px; }
  .pane-inner.fit-vh .radar-blip { width: 28px; height: 28px; }
  .pane-inner.fit-vh .mitra-hero .mh-mail { display: none; }
}
@media (max-height: 600px) {
  .pane-inner.fit-vh .radar-slider { height: 52px; }
  .pane-inner.fit-vh .radar-title { font-size: 12.8px; }
  .pane-inner.fit-vh .radar-sub { display: none; }
}

/* ------------------------------------------------------------------ *
 * ROUND 26 — TAGLINE HEADER, KARTU KEPERCAYAAN, BLOG/ARTIKEL
 * ------------------------------------------------------------------ */
/* Tagline di header landing (di bawah "SEMUA SPESIALISASI") */
.bt-motto {
  display: block; margin-top: 2px;
  font-size: 9.4px; font-weight: 800; line-height: 1.22;
  color: #7a5600; letter-spacing: .05px;
  max-width: 210px;
}
html[data-theme="dark"] .bt-motto { color: #ffd166; }
/* Layar sempit: rapatkan header supaya tagline tetap satu baris */
@media (max-width: 380px) {
  .landbar { padding-left: 10px; padding-right: 10px; gap: 6px; }
  .landbrand { gap: 8px; }
  .landbrand .bt-top { font-size: 15.5px; }
  .landbtn { width: 38px; height: 38px; }
  .bt-motto { font-size: 8.8px; max-width: none; }
}
@media (max-width: 340px) {
  .bt-motto { font-size: 8.4px; letter-spacing: -.12px; }
}

/* ---------------- KARTU KEPERCAYAAN ---------------- */
.trust {
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.trust-head { margin-bottom: 16px; }
.trust-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase;
  color: var(--blue-2); background: var(--blue-soft);
  padding: 4px 9px; border-radius: 999px; margin-bottom: 8px;
}
html[data-theme="dark"] .trust-kicker { color: #cfe9fb; }
.trust-title { font-size: 18.5px; font-weight: 900; letter-spacing: -.4px; margin: 0 0 4px; }
.trust-sub { font-size: 12.6px; color: var(--muted); margin: 0; line-height: 1.5; }

.trust-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 12px;
}
@media (min-width: 430px) { .trust-grid { gap: 14px; } }
@media (min-width: 640px) { .trust-grid { gap: 16px; } }

/* Kartu jaminan: latar bergradien per tone + badge ikon + teks rata bawah
   (semua kartu satu baris grid jadi sama tinggi karena grid-auto-rows:1fr). */
.trust-card {
  --tc-bg: linear-gradient(158deg, #eef8ff 0%, #ffffff 74%);
  --tc-line: rgba(3, 105, 161, .16);
  --tc-bar: linear-gradient(90deg, #0ea5e9, #7dd3fc);
  --tc-glow: radial-gradient(circle at 50% 50%, rgba(3, 105, 161, .22), rgba(3, 105, 161, 0) 70%);
  --tc-ink: #075985;
  --tc-ic-bg: #ffffff;
  --tc-ic-line: rgba(3, 105, 161, .16);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 8px;
  padding: 15px 13px 14px;
  border-radius: 18px;
  border: 1px solid var(--tc-line);
  background: var(--tc-bg);
  box-shadow: 0 8px 20px rgba(16, 42, 90, .07), inset 0 1px 0 rgba(255, 255, 255, .85);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease;
}
.trust-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--tc-bar);
}
.trust-card::after {
  content: ""; position: absolute; z-index: -1;
  right: -32px; top: -32px; width: 108px; height: 108px; border-radius: 50%;
  background: var(--tc-glow);
}

.trust-card.tone-blue {
  --tc-bg: linear-gradient(158deg, #edf4ff 0%, #ffffff 74%);
  --tc-bar: linear-gradient(90deg, #0ea5e9, #7dd3fc);
  --tc-line: rgba(3, 105, 161, .16);
  --tc-glow: radial-gradient(circle at 50% 50%, rgba(3, 105, 161, .22), rgba(3, 105, 161, 0) 70%);
  --tc-ink: #075985;
  --tc-ic-bg: #d6ecfb;
  --tc-ic-line: rgba(3, 105, 161, .22);
}
.trust-card.tone-green {
  --tc-bg: linear-gradient(158deg, #e9faf1 0%, #ffffff 74%);
  --tc-bar: linear-gradient(90deg, #067a3e, #37d28a);
  --tc-line: rgba(6, 122, 62, .17);
  --tc-glow: radial-gradient(circle at 50% 50%, rgba(6, 122, 62, .22), rgba(6, 122, 62, 0) 70%);
  --tc-ink: #067a3e;
  --tc-ic-bg: #d5f4e3;
  --tc-ic-line: rgba(6, 122, 62, .24);
}
.trust-card.tone-amber {
  --tc-bg: linear-gradient(158deg, #fff6de 0%, #ffffff 74%);
  --tc-bar: linear-gradient(90deg, #ffc61a, #f59e0b);
  --tc-line: rgba(180, 83, 9, .18);
  --tc-glow: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, .26), rgba(245, 158, 11, 0) 70%);
  --tc-ink: #8a6100;
  --tc-ic-bg: #ffedc2;
  --tc-ic-line: rgba(180, 83, 9, .24);
}
.trust-card.tone-violet {
  --tc-bg: linear-gradient(158deg, #f3ecff 0%, #ffffff 74%);
  --tc-bar: linear-gradient(90deg, #8b5cf6, #4f46e5);
  --tc-line: rgba(109, 51, 224, .17);
  --tc-glow: radial-gradient(circle at 50% 50%, rgba(109, 51, 224, .22), rgba(109, 51, 224, 0) 70%);
  --tc-ink: #6d33e0;
  --tc-ic-bg: #ece0ff;
  --tc-ic-line: rgba(109, 51, 224, .24);
}

/* tema gelap: kartu pakai tone pekat, ikon tetap kontras */
html[data-theme="dark"] .trust-card {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05);
}
html[data-theme="dark"] .trust-card.tone-blue {
  --tc-bg: linear-gradient(158deg, #16294a 0%, #131d31 72%);
  --tc-line: rgba(120, 170, 255, .16);
  --tc-glow: radial-gradient(circle at 50% 50%, rgba(77, 141, 255, .26), rgba(77, 141, 255, 0) 70%);
  --tc-ink: #9cc4ff; --tc-ic-bg: #10223d; --tc-ic-line: rgba(120, 170, 255, .22);
}
html[data-theme="dark"] .trust-card.tone-green {
  --tc-bg: linear-gradient(158deg, #10331f 0%, #131d31 72%);
  --tc-line: rgba(60, 200, 130, .16);
  --tc-glow: radial-gradient(circle at 50% 50%, rgba(55, 210, 138, .22), rgba(55, 210, 138, 0) 70%);
  --tc-ink: #6ce0a2; --tc-ic-bg: #0d2a1b; --tc-ic-line: rgba(60, 200, 130, .22);
}
html[data-theme="dark"] .trust-card.tone-amber {
  --tc-bg: linear-gradient(158deg, #33260f 0%, #131d31 72%);
  --tc-line: rgba(255, 200, 80, .18);
  --tc-glow: radial-gradient(circle at 50% 50%, rgba(255, 195, 60, .22), rgba(255, 195, 60, 0) 70%);
  --tc-ink: #ffd166; --tc-ic-bg: #2b2008; --tc-ic-line: rgba(255, 200, 80, .24);
}
html[data-theme="dark"] .trust-card.tone-violet {
  --tc-bg: linear-gradient(158deg, #2a2150 0%, #131d31 72%);
  --tc-line: rgba(170, 140, 255, .18);
  --tc-glow: radial-gradient(circle at 50% 50%, rgba(150, 110, 255, .26), rgba(150, 110, 255, 0) 70%);
  --tc-ink: #c4a8ff; --tc-ic-bg: #241b45; --tc-ic-line: rgba(170, 140, 255, .24);
}

.trust-ic {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--tc-ic-bg);
  color: var(--tc-ink);
  box-shadow: 0 3px 10px rgba(16, 42, 90, .10), inset 0 0 0 1px var(--tc-ic-line);
}
html[data-theme="dark"] .trust-ic { box-shadow: 0 3px 10px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--tc-ic-line); }
.trust-ic .ic { stroke-width: 2; }

.trust-name {
  font-size: 13.8px; font-weight: 900; letter-spacing: -.25px; color: var(--ink);
  line-height: 1.26;
}
.trust-desc {
  margin-top: auto;
  font-size: 11.6px; line-height: 1.5; font-weight: 600;
  color: #556479;  /* kontras 5.2–5.6:1 di atas keempat latar tone */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-theme="dark"] .trust-desc { color: #93a4bd; }

/* layar sempit: perkecil ikon & padding supaya 2 kolom tetap lega */
@media (max-width: 359px) {
  .trust-grid { gap: 10px; }
  .trust-card { padding: 13px 11px 12px; border-radius: 16px; gap: 7px; }
  .trust-ic { width: 38px; height: 38px; border-radius: 12px; }
  .trust-ic .ic { width: 20px; height: 20px; }
  .trust-name { font-size: 12.8px; }
  .trust-desc { font-size: 11.2px; line-height: 1.46; -webkit-line-clamp: 4; }
}


/* ---------------- BLOG / ARTIKEL (LANDING) ---------------- */
.blog {
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.blog-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.blog-head-text { min-width: 0; flex: 1 1 auto; }
.blog-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase;
  color: var(--blue-2); background: var(--blue-soft);
  padding: 4px 9px; border-radius: 999px; margin-bottom: 8px;
}
html[data-theme="dark"] .blog-kicker { color: #cfe9fb; }
.blog-title { font-size: 18.5px; font-weight: 900; letter-spacing: -.4px; margin: 0 0 4px; }
.blog-sub { font-size: 12.6px; color: var(--muted); margin: 0; line-height: 1.5; }

.blog-nav { display: flex; gap: 7px; flex: 0 0 auto; padding-bottom: 2px; }
.blog-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--glass-line);
  background: var(--card-glass-strong); color: var(--blue-2);
  box-shadow: 0 4px 12px rgba(16, 42, 90, .09);
  transition: opacity .15s ease, transform .12s ease;
}
.blog-arrow:active { transform: scale(.94); }
.blog-arrow[disabled] { opacity: .35; cursor: default; }
.blog-arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.blog-track {
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 8px;
  scroll-padding-left: 2px;
}
.blog-track::-webkit-scrollbar { display: none; }

.blog-card {
  flex: 0 0 74%; max-width: 250px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--card-glass);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16, 42, 90, .08);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
@media (min-width: 560px) { .blog-card { flex-basis: 44%; } }
.blog-card:active { transform: scale(.985); }
.blog-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.blog-cover { position: relative; display: block; height: 106px; background: var(--blue-soft); }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-cover-ph { display: grid; place-items: center; height: 100%; color: var(--blue-2); opacity: .55; }
.blog-tag {
  position: absolute; left: 8px; top: 8px;
  font-size: 9.6px; font-weight: 900; letter-spacing: .3px; text-transform: uppercase;
  background: rgba(255, 255, 255, .93); color: #075985;
  padding: 3px 7px; border-radius: 999px;
}
html[data-theme="dark"] .blog-tag { background: rgba(10, 18, 32, .82); color: #cfe9fb; }

.blog-body { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px 12px; min-width: 0; }
.blog-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 10.4px; font-weight: 700; color: var(--muted); }
.blog-name {
  font-size: 13.6px; font-weight: 900; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-exc {
  font-size: 11.6px; line-height: 1.45; color: var(--muted); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-read {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 2px; font-size: 11.8px; font-weight: 900; color: var(--blue-2);
}
.blog-all {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; font-size: 12.4px; font-weight: 900; color: var(--blue-2);
  text-decoration: none;
}
.blog-all:active { opacity: .75; }

/* ---------------- HALAMAN ARTIKEL (PUBLIK) ---------------- */
.art-grid { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 620px) {
  .art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
.art-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
.art-card:active { transform: scale(.988); }
.art-cover { display: block; height: 148px; background: var(--blue-soft); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-cover-ph { display: grid; place-items: center; height: 100%; color: var(--blue-2); opacity: .55; }
.art-body { display: flex; flex-direction: column; gap: 6px; padding: 13px 14px 14px; }
.art-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.art-date { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.art-name { font-size: 15.5px; font-weight: 900; line-height: 1.3; color: var(--ink); letter-spacing: -.2px; }
.art-exc { font-size: 12.6px; line-height: 1.5; color: var(--muted); font-weight: 600; }
.art-read { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; font-size: 12.2px; font-weight: 900; color: var(--blue-2); }

.art-wrap { margin-bottom: 22px; }
.art-head { margin: 12px 0 14px; }
.art-head h1 { font-size: 25px; line-height: 1.2; letter-spacing: -.7px; margin: 6px 0 10px; }
.art-headmeta { display: flex; gap: 12px; flex-wrap: wrap; }
.art-headmeta span { display: inline-flex; align-items: center; gap: 4px; font-size: 11.6px; font-weight: 700; color: var(--muted); }
.art-hero { margin: 0 0 14px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.art-hero img { width: 100%; height: auto; max-height: 340px; object-fit: cover; display: block; }
.art-lead {
  font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.6;
  border-left: 3px solid var(--blue); padding: 2px 0 2px 12px; margin: 0 0 16px;
}
.art-body.rich { font-size: 14.2px; color: var(--ink-2); line-height: 1.7; }
.art-body.rich p { margin: 0 0 12px; }
.art-body.rich h3 { font-size: 16px; margin: 18px 0 6px; color: var(--ink); }
.art-body.rich ul, .art-body.rich ol { padding-left: 20px; margin: 0 0 12px; }
.art-body.rich li { margin-bottom: 5px; }
.art-body.rich a { color: var(--blue-2); font-weight: 700; }
.art-body.rich strong { color: var(--ink); }
.art-cta {
  margin-top: 20px; padding: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow);
}
.art-cta-text { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.art-cta-text b { font-size: 14.6px; color: var(--ink); }
.art-cta-text span { font-size: 12.4px; color: var(--muted); font-weight: 600; }
.art-related { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.art-related h2 { font-size: 18px; margin: 0 0 14px; letter-spacing: -.4px; }


/* ------------------------------------------------------------------ *
 * HALAMAN LAYANAN (SEO) + BLOK SEO DI LANDING
 * Semua konten dirender server-side; gaya mengikuti tema biru/putih app.
 * ------------------------------------------------------------------ */
.site-nav-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 14px; margin-bottom: 8px;
}
.site-nav-row a {
  font-size: 12.4px; font-weight: 800; color: var(--blue-2);
  text-decoration: none; padding: 4px 2px;
}
.site-nav-row a:hover { text-decoration: underline; }

/* --- halaman layanan --- */
.lay-hero {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px; margin: 18px 0 16px;
}
.lay-hero-ic {
  width: 58px; height: 58px; flex: 0 0 auto; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-2);
}
.lay-hero-txt { min-width: 0; }
.lay-price { font-size: 13.4px; color: var(--ink-2); line-height: 1.45; }
.lay-price b { color: var(--ink); font-size: 16px; }
.lay-price-note { display: block; font-size: 11.6px; color: var(--muted); margin-top: 2px; }
.lay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.lay-badges .badge { display: inline-flex; align-items: center; gap: 4px; }

.lay-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.lay-cta .btn { flex: 1 1 150px; justify-content: center; border-radius: 14px; }

.lay-sec {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 16px;
}
.lay-sec h2 { font-size: 16.5px; margin: 0 0 10px; color: var(--ink); }
.lay-sec p { font-size: 13.4px; color: var(--ink-2); line-height: 1.6; margin: 0 0 8px; }
.lay-sec p:last-child { margin-bottom: 0; }
.lay-sec a { color: var(--blue-2); font-weight: 700; }
.lay-sub { font-size: 12.8px !important; color: var(--muted) !important; margin-bottom: 12px !important; }

.lay-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lay-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.3px; color: var(--ink-2); line-height: 1.5; }
.lay-list li .ic { color: var(--green); flex: 0 0 auto; margin-top: 2px; }

.lay-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; }
.lay-steps li { font-size: 13.3px; color: var(--ink-2); line-height: 1.55; }
.lay-steps b { color: var(--ink); }

.lay-faq details.acc + details.acc { margin-top: 8px; }

.lay-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lay-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft);
  color: var(--ink-2); font-size: 12.4px; font-weight: 700; text-decoration: none;
}
.lay-chip .ic { color: var(--blue-2); }
.lay-chip:hover { border-color: var(--blue); color: var(--blue-2); }

.lay-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lay-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--bg-soft);
  text-decoration: none; color: inherit;
}
.lay-card:hover { border-color: var(--blue); background: var(--card); }
.lay-card-ic {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--blue-2); border: 1px solid var(--line);
}
.lay-card-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.lay-card-name { font-size: 14px; font-weight: 800; color: var(--ink); }
.lay-card-price { font-size: 12px; color: var(--muted); }
.lay-card-go { color: var(--muted); flex: 0 0 auto; }
@media (min-width: 560px) {
  .lay-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 359px) {
  .lay-hero { padding: 13px; gap: 11px; }
  .lay-hero-ic { width: 50px; height: 50px; border-radius: 15px; }
  .lay-sec { padding: 13px; }
}

/* --- blok SEO di landing --- */
.seo-home {
  margin: 26px 0 8px; padding: 18px 16px 20px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.seo-home-title { font-size: 17px; margin: 0 0 10px; color: var(--ink); line-height: 1.35; }
.seo-home-p { font-size: 13.2px; color: var(--ink-2); line-height: 1.65; margin: 0 0 10px; }
.seo-home-p a { color: var(--blue-2); font-weight: 800; }
.seo-home-h3 {
  font-size: 14.6px; line-height: 1.35; margin: 16px 0 8px;
  color: var(--ink); font-weight: 800;
  padding-left: 9px; border-left: 3px solid #ffc61a;
}
.seo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 12px; }
.seo-cta .btn { flex: 1 1 150px; justify-content: center; border-radius: 14px; }
/* Chip layanan jadi KARTU KECIL 2 KOLOM (ver.2.1) —
   tiap baris tepat 2 kartu, ikon di kiri, label 2 baris maksimum. */
.seo-kw {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}
.seo-kw-head {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 8px; font-size: 11.4px; font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase; color: var(--muted);
}
.seo-kw-head .ic { color: var(--blue-2); }
.seo-kw-chip {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 11px;
  font-size: 11.8px; font-weight: 800; line-height: 1.28; color: var(--ink-2);
  background: var(--card-glass);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
}
.seo-kw-chip > span {
  min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.seo-kw-chip-ic { display: flex; align-items: center; gap: 8px; padding: 8px 11px; }
.seo-kw-chip-ic .ic {
  color: var(--icon-blue); flex: 0 0 auto;
  background: var(--bg-soft); border-radius: 8px; padding: 5px; box-sizing: content-box;
}
.seo-kw-chip:hover { border-color: var(--blue); color: var(--blue-2); }
@media (max-width: 359px) {
  .seo-kw { gap: 8px; }
  .seo-kw-chip { font-size: 11px; padding: 7px 9px; min-height: 42px; gap: 6px; }
  .seo-kw-chip-ic .ic { padding: 4px; }
}
html[data-theme="dark"] .lay-card, html[data-theme="dark"] .seo-home,
html[data-theme="dark"] .lay-sec, html[data-theme="dark"] .lay-hero { background: var(--card); }

/* ==================================================================
   VER.2.1 — PORTOFOLIO & TESTIMONI DI LANDING + FORM PESANAN BERTAHAP
   ================================================================== */

/* ---------- PORTOFOLIO (kartu geser di bawah artikel) ---------- */
.pfhome {
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.pfhome-track {
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}
.pfhome-track::-webkit-scrollbar { display: none; }
.pfhome-card {
  flex: 0 0 74%; max-width: 250px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--card-glass);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16, 42, 90, .08);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
@media (min-width: 560px) { .pfhome-card { flex-basis: 44%; } }
.pfhome-card:active { transform: scale(.985); }
.pfhome-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pfhome-cover { position: relative; display: block; height: 112px; background: var(--blue-soft); }
.pfhome-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfhome-body { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px 12px; min-width: 0; }
.pfhome-loc { display: inline-flex; align-items: center; gap: 4px; font-size: 10.4px; font-weight: 700; color: var(--muted); }
.pfhome-name {
  font-size: 13.6px; font-weight: 900; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pfhome-exc {
  font-size: 11.6px; line-height: 1.45; color: var(--muted); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- RATING & TESTIMONI PELANGGAN ---------- */
.testi {
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.testi-track {
  display: flex; gap: 12px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  flex: 0 0 82%; max-width: 300px;
  scroll-snap-align: start;
  margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px;
  background: var(--card-glass);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(16, 42, 90, .08);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
@media (min-width: 560px) { .testi-card { flex-basis: 46%; } }
.testi-top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.testi-av {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, #d6ecfb, #eef8ff);
  border: 1px solid var(--glass-line);
  color: #075985; font-weight: 900; font-size: 15px;
}
.testi-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-theme="dark"] .testi-av { background: linear-gradient(160deg, #1b3050, #12203a); color: #cfe9fb; }
.testi-who { display: flex; flex-direction: column; min-width: 0; }
.testi-who b {
  font-size: 12.8px; font-weight: 900; color: var(--ink); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.testi-who small { font-size: 10.6px; font-weight: 700; color: var(--muted); }
.testi-stars { display: inline-flex; }
.testi-quote {
  margin: 0; font-size: 12.4px; line-height: 1.55; color: var(--ink-2); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.testi-meta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.4px; font-weight: 800; color: var(--green);
}

/* ---------- FORM PESANAN: BLOK TERKUNCI SAMPAI DETAIL LENGKAP ---------- */
.pay-step { display: flex; flex-direction: column; gap: 14px; }
html .pay-step[hidden] { display: none !important; }
.paylock-list {
  margin: 10px 0 0; padding: 0 0 0 18px;
  font-size: 12px; line-height: 1.7; color: var(--ink-2); font-weight: 700;
}
.paylock-list li { list-style: disc; }

/* ---------- KARTU TRANSFER BANK ---------- */
.bank-card { display: flex; flex-direction: column; gap: 10px; }
.bank-card .qris-badge.bank { background: linear-gradient(135deg, #0f7a52, #12a06a); }

/* ---------- KARTU RESET & EDIT KEUANGAN (Wallet / Kas / Kas Proyek) ---------- */
.reset-card { border-color: rgba(220, 120, 40, .38); }
html[data-theme="dark"] .reset-card { border-color: rgba(255, 190, 90, .34); }
.reset-sum {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; margin: 12px 0;
}
.reset-sum > div {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 11px; border-radius: 11px;
  background: var(--bg-soft); border: 1px solid var(--line-2);
}
.reset-sum span { font-size: 10.6px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.reset-sum b { font-size: 13.2px; font-weight: 900; color: var(--ink); }
.reset-edit-row {
  padding: 12px; margin-bottom: 12px;
  border: 1px dashed var(--line-2); border-radius: 12px;
  background: var(--bg-soft);
}
.reset-edit-row .field { margin-bottom: 8px; }

/* ---------- AJAKAN DAFTAR MITRA TUKANG (landing) ----------
   Kartu kecil biru penuh: kontras tinggi supaya menonjol di antara kartu putih,
   tetapi padding & tinggi dijaga ringkas (bukan banner besar). */
.mitrajoin { margin-top: 28px; }
.mj-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px 12px;
  padding: 15px 15px 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  background:
    radial-gradient(circle at 96% -18%, rgba(255, 255, 255, .16), transparent 54%),
    linear-gradient(135deg, #0b4a6b 0%, #0374b5 56%, #0e7490 100%);
  box-shadow: 0 12px 26px rgba(7, 89, 133, .24);
  overflow: hidden;
}
.mj-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, #ffc61a, #f0a91c);
}
.mj-ic {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .34);
}
.mj-text { min-width: 0; }
.mj-kicker {
  display: block;
  font-size: 9.6px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: #ffe1a0;
}
.mj-title {
  margin: 3px 0 4px;
  font-size: 15.2px; font-weight: 900; line-height: 1.22; letter-spacing: -.3px;
  color: #fff;
}
.mj-sub {
  margin: 0;
  font-size: 11.8px; line-height: 1.5; font-weight: 600;
  color: #e9f1ff;
}
.mj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.mj-chips > span {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #075985;
  font-size: 10.2px; font-weight: 900; line-height: 1.4;
  white-space: nowrap;
}
.mj-act {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 3px;
}
.mj-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  border-radius: 12px;
  background: #fff; color: #075985;
  font-size: 13.4px; font-weight: 900; text-decoration: none;
  box-shadow: 0 6px 16px rgba(3, 20, 55, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mj-btn .ic { color: #075985; }
@media (hover: hover) {
  .mj-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(3, 20, 55, .28); }
}
.mj-note {
  font-size: 10.4px; font-weight: 700; line-height: 1.45; text-align: center;
  color: #e6efff;
}
@media (min-width: 560px) {
  .mj-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    padding: 15px 18px 15px 20px;
  }
  .mj-act { grid-column: auto; max-width: 216px; margin-top: 0; }
  .mj-note { text-align: right; }
}
@media (max-width: 359px) {
  .mj-card { padding: 13px 13px 14px 16px; gap: 10px; }
  .mj-ic { width: 38px; height: 38px; border-radius: 12px; }
  .mj-title { font-size: 14.4px; }
  .mj-sub { font-size: 11.2px; }
  .mj-chips > span { font-size: 9.6px; padding: 2px 7px; }
  .mj-note { font-size: 9.8px; }
}

/* ---------- PORTOFOLIO: tautan judul & detail proyek ---------- */
.pf-card h2 a { color: inherit; text-decoration: none; }
.pf-card h2 a:hover { color: var(--blue-2); }
.pf-detail-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 900; color: var(--blue-2); text-decoration: none;
}
.pf-detail-link .ic { color: var(--blue-2); }
.pfback { margin-bottom: 14px; }

/* ============================================================
   ROUND 37 — biru muda cerah: splash, kartu proyek, kartu area,
   tombol bagikan, absensi tukang, invoice, unduh RAB
   ============================================================ */

/* ---------- SPLASH SCREEN (layar pembuka web / PWA) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #d9f3ff 0%, #eafaff 46%, #ffffff 100%);
  transition: opacity .42s ease, visibility .42s ease;
}
.splash.is-out { opacity: 0; visibility: hidden; }
.splash-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 26px 30px; text-align: center;
}
.splash-logo {
  display: block; padding: 10px; border-radius: 26px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 42px rgba(3, 105, 161, .20);
  animation: splashPop .6s cubic-bezier(.2, 1.2, .4, 1) both;
}
.splash-word { display: flex; gap: 5px; font-size: 21px; font-weight: 900; letter-spacing: -.4px; }
.splash-word b:first-child { color: #123154; }
.splash-word b:last-child { color: var(--blue); }
.splash-tag { font-size: 12.4px; font-weight: 700; color: #5b7f9e; max-width: 260px; line-height: 1.5; }
.splash-line { width: 96px; height: 4px; border-radius: 4px; background: rgba(3, 116, 181, .16); overflow: hidden; }
.splash-line i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--sky), var(--blue)); animation: splashBar 1s ease-in-out infinite; }
@keyframes splashPop { from { opacity: 0; transform: scale(.86) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes splashBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
html[data-theme="dark"] .splash { background: linear-gradient(165deg, #0d3149, #0a2234 60%, #071a26); }
html[data-theme="dark"] .splash-logo { background: rgba(19, 29, 49, .9); }
html[data-theme="dark"] .splash-word b:first-child { color: #e8f4ff; }
html[data-theme="dark"] .splash-tag { color: #9db6cf; }

/* ---------- KARTU KECIL "PROYEK SEDANG BERJALAN / SELESAI" ---------- */
.proofcards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 22px 0 4px;
}
.proofcard {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 14px 13px; border-radius: 16px;
  background: linear-gradient(158deg, #eaf7ff, #ffffff 78%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}
.proofcard .pc-top { display: flex; align-items: center; gap: 8px; }
.proofcard .pc-ic {
  width: 34px; height: 34px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; flex: 0 0 auto;
  background: linear-gradient(140deg, #bfe6ff, #e8f6ff); color: #0369a1;
  border: 1px solid rgba(3, 116, 181, .22);
}
.proofcard .pc-val { font-size: 24px; font-weight: 900; line-height: 1.05; color: #0a2a47; }
.proofcard .pc-name { font-size: 11.8px; font-weight: 900; color: #21445f; line-height: 1.3; }
.proofcard .pc-note { font-size: 10.6px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.proofcard.tone-done { background: linear-gradient(158deg, #e8fef4, #ffffff 78%); }
.proofcard.tone-done .pc-ic { background: linear-gradient(140deg, #b9f3d6, #e6fdf1); color: #067a3e; border-color: rgba(6, 122, 62, .22); }
html[data-theme="dark"] .proofcard { background: linear-gradient(158deg, #10314a, #131d31 80%); }
html[data-theme="dark"] .proofcard .pc-val { color: #eaf6ff; }
html[data-theme="dark"] .proofcard .pc-name { color: #cfe4f7; }
html[data-theme="dark"] .proofcard .pc-ic { background: linear-gradient(140deg, #0d3f5c, #12314a); color: #7dd3fc; }
html[data-theme="dark"] .proofcard.tone-done { background: linear-gradient(158deg, #0d3227, #131d31 80%); }
html[data-theme="dark"] .proofcard.tone-done .pc-ic { background: linear-gradient(140deg, #10402c, #123a2a); color: #37d28a; }
@media (max-width: 359px) {
  .proofcards { gap: 10px; }
  .proofcard { padding: 12px 11px; }
  .proofcard .pc-val { font-size: 21px; }
  .proofcard .pc-name { font-size: 11px; }
}

/* ---------- KARTU AREA: SATU KARTU PER DAERAH (tanpa nominal) ----------
   Dulu tiap daerah memakai 2 kartu terpisah (harian & borongan) + nominal tarif.
   Sekarang: 1 kartu per daerah berisi judul + wilayah + 2 tautan kecil. */
.area-box {
  margin: 0 0 12px; padding: 13px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(140deg, #f0f9ff, #ffffff 82%);
  border: 1px solid var(--glass-line);
  box-shadow: 0 4px 12px rgba(7, 63, 92, .05);
}
.area-box-head { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; }
.area-box-ic {
  width: 32px; height: 32px; border-radius: 11px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffffff; border: 1px solid rgba(3, 116, 181, .24); color: var(--blue-2);
}
.area-box-title {
  font-size: 13.4px; line-height: 1.3; margin: 0;
  color: #123154; font-weight: 800;
  padding-left: 9px; border-left: 3px solid #ffc61a;
  min-width: 0;
}
.area-box-p { font-size: 11.6px; color: var(--muted); line-height: 1.5; margin: 0 0 10px; }
.area-box-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.area-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px;
  font-size: 11.4px; font-weight: 800; text-decoration: none;
  background: #ffffff; color: var(--blue-2);
  border: 1px solid rgba(3, 116, 181, .26);
}
.area-pill.is-borongan { color: #9a5b06; border-color: rgba(180, 83, 9, .26); }
@media (hover: hover) {
  .area-pill:hover { background: var(--blue-soft); }
  .area-pill.is-borongan:hover { background: #fff6e6; }
}
html[data-theme="dark"] .area-box { background: linear-gradient(140deg, #10314a, #131d31 82%); }
html[data-theme="dark"] .area-box-title { color: #eaf6ff; }
html[data-theme="dark"] .area-box-ic { background: #0e2437; color: #7dd3fc; }
html[data-theme="dark"] .area-box-p { color: #9db4cc; }
html[data-theme="dark"] .area-pill { background: #0e2437; color: #7dd3fc; border-color: rgba(125, 211, 252, .28); }
html[data-theme="dark"] .area-pill.is-borongan { color: #f0b464; border-color: rgba(240, 180, 100, .3); }
html[data-theme="dark"] .area-pill:hover { background: #13324a; }
html[data-theme="dark"] .area-pill.is-borongan:hover { background: #34280f; }

/* ---------- TOMBOL BAGIKAN WHATSAPP ---------- */
.sharebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 12px 0 0;
}
.sharebar .sharelabel { font-size: 11.6px; font-weight: 800; color: var(--muted); }
.btn-share {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(6, 122, 62, .3);
  background: #e8fbf1; color: #06643a; font-size: 12.4px; font-weight: 900;
  text-decoration: none; line-height: 1;
}
.btn-share:hover { background: #d8f7e6; }
.btn-share .ic { color: #06643a; }
html[data-theme="dark"] .btn-share { background: #103422; color: #8ef0bb; border-color: rgba(55, 210, 138, .35); }
html[data-theme="dark"] .btn-share .ic { color: #8ef0bb; }
.art-share { justify-content: flex-start; }

/* ---------- AKUN SHARE (halaman info login customer) ---------- */
.share-card {
  margin-top: 14px; padding: 16px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.share-row { display: flex; align-items: center; gap: 12px; }
.share-av { display: inline-flex; }
.share-name { font-size: 15.5px; font-weight: 900; color: var(--ink); }
.share-wa { font-size: 12.4px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.share-badge {
  margin-left: auto; padding: 4px 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-2); font-size: 11px; font-weight: 900;
}
.share-steps { margin: 14px 0 0; font-size: 12.6px; color: var(--ink-2); }
.share-steps b { display: block; margin-bottom: 5px; color: var(--ink); }
.share-steps ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- UNDUH RAB (Excel / PDF) ---------- */
.rab-dl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rab-dl .btn { font-size: 11.8px; padding: 6px 10px; }

/* ---------- ABSENSI TUKANG (panel admin) ---------- */
.abs-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.abs-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; }
.abs-table th, .abs-table td {
  padding: 6px 5px; font-size: 11.6px; text-align: center;
  border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
}
.abs-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--blue-soft); color: var(--blue-2);
  font-weight: 900; font-size: 10.8px; line-height: 1.25; white-space: nowrap;
}
.abs-table thead th small { display: block; font-size: 9.6px; font-weight: 700; opacity: .8; }
.abs-table .abs-name {
  position: sticky; left: 0; z-index: 3; text-align: left;
  background: var(--card); min-width: 132px; max-width: 170px;
  font-weight: 800; color: var(--ink);
}
.abs-table thead .abs-name { background: var(--blue-soft); z-index: 4; }
.abs-table .abs-name small { display: block; font-weight: 600; font-size: 10px; color: var(--muted); }
.abs-sel {
  width: 100%; max-width: 74px; padding: 4px 2px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-soft);
  font-size: 11px; font-weight: 700; color: var(--ink); text-align: center;
}
.abs-sel[data-v="hadir"] { background: #e6fbf0; border-color: #a9ebc7; color: #06643a; }
.abs-sel[data-v="setengah"] { background: #fff6e2; border-color: #f2d59a; color: #8a5a06; }
.abs-sel[data-v="absen"] { background: #fdecec; border-color: #f4bdbd; color: #a51b1b; }
.abs-sel[data-v="libur"] { background: #eef2f8; border-color: #d5deeb; color: #4a5b73; }
html[data-theme="dark"] .abs-sel[data-v="hadir"] { background: #103422; color: #8ef0bb; }
html[data-theme="dark"] .abs-sel[data-v="setengah"] { background: #33280f; color: #f0b464; }
html[data-theme="dark"] .abs-sel[data-v="absen"] { background: #3a1616; color: #ff9b9b; }
.abs-table tfoot td { background: var(--blue-soft-2); font-weight: 800; }
.abs-sum small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.abs-legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 10.8px; color: var(--muted); margin-top: 8px; }
.abs-legend span { display: inline-flex; align-items: center; gap: 4px; }
.abs-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.abs-weeknav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.abs-weeknav .grow { flex: 1 1 120px; min-width: 0; }
.abs-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.abs-locked { opacity: .55; }

/* ---------- INVOICE ABSENSI (cetak A4) ---------- */
.inv-page {
  max-width: 820px; margin: 18px auto 40px; background: #fff; color: #10243a;
  padding: 28px 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(7, 63, 92, .12);
  font-family: Arial, Helvetica, sans-serif;
}
.inv-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #0369a1; padding-bottom: 12px; }
.inv-brand { display: flex; gap: 10px; align-items: center; }
.inv-brand b { display: block; font-size: 17px; color: #0369a1; letter-spacing: -.2px; }
.inv-brand small { font-size: 11px; color: #55718c; }
.inv-title { text-align: right; }
.inv-title b { display: block; font-size: 18px; letter-spacing: 1px; }
.inv-title small { font-size: 11px; color: #55718c; }
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 14px 0 6px; font-size: 12.4px; }
.inv-meta div { display: flex; gap: 6px; }
.inv-meta b { min-width: 92px; color: #36536f; font-weight: 700; }
.inv-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; }
.inv-table th, .inv-table td { border: 1px solid #cddcea; padding: 7px 8px; }
.inv-table th { background: #e8f5ff; text-align: left; font-size: 11.4px; color: #0a3556; }
.inv-table td.num, .inv-table th.num { text-align: right; }
.inv-total { margin-top: 12px; display: flex; justify-content: flex-end; }
.inv-total table { border-collapse: collapse; font-size: 12.6px; min-width: 260px; }
.inv-total td { padding: 6px 10px; border-bottom: 1px solid #e3edf6; }
.inv-total tr.grand td { border-top: 2px solid #0369a1; border-bottom: 0; font-weight: 900; font-size: 14px; color: #0369a1; }
.inv-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; font-size: 12px; }
.inv-sign div { border-top: 1px solid #9fb6ca; padding-top: 6px; }
.inv-foot { margin-top: 18px; font-size: 10.8px; color: #6b839a; border-top: 1px dashed #cddcea; padding-top: 10px; }
.inv-toolbar { max-width: 820px; margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media print {
  .inv-toolbar, .pubbar, .public-foot, .fab-wa, .toast { display: none !important; }
  body { background: #fff !important; }
  .inv-page { box-shadow: none; margin: 0; padding: 0; max-width: none; border-radius: 0; }
  @page { size: A4; margin: 14mm; }
}

/* ---------- FOTO PEKERJAAN DARI CUSTOMER ---------- */
.job-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 6px 0 2px; }
.job-photo { display: block; border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.job-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- ABSENSI: kolom Minggu (awal minggu) ---------- */
.abs-table thead th.abs-sun { background: linear-gradient(180deg, #d9f2ff, #c9ebff); color: #05527f; }
html[data-theme="dark"] .abs-table thead th.abs-sun { background: #103b52; color: #bde8ff; }
.abs-table thead th.abs-sun::after { content: ""; }

/* ---------- INVOICE ABSENSI: layar kecil (A4 tetap utuh saat cetak) ---------- */
.inv-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .inv-page { padding: 18px 14px; margin: 12px auto 28px; border-radius: 12px; }
  .inv-head { gap: 10px; }
  .inv-brand b { font-size: 15px; }
  .inv-title b { font-size: 15px; }
  .inv-meta { grid-template-columns: 1fr; gap: 5px; font-size: 12px; }
  .inv-meta b { min-width: 88px; }
  .inv-table { font-size: 11.4px; }
  .inv-table th, .inv-table td { padding: 5px 6px; }
  .inv-total table { min-width: 0; width: 100%; }
  .inv-sign { gap: 16px; font-size: 11.4px; }
}
@media print {
  .inv-scroll { overflow: visible; }
}

/* ==================================================================
   ROUND 40 — TEKS BERJALAN DI LANDING + TATA LETAK TABLET & DESKTOP
   ------------------------------------------------------------------
   Dulu .landmain dipatok max-width 620px sehingga di laptop/tablet
   halaman publik hanya tampil sebagai kolom ponsel yang ditengahkan.
   Blok ini membuatnya otomatis melebar mengikuti layar:
     ponsel   < 640px  → 1 kolom (aturan lama, tidak diubah)
     tablet   640–1023 → kontainer 760px, grid 4 kolom
     desktop  ≥ 1024   → kontainer 1080px, grid 5 kolom
     lebar    ≥ 1360   → kontainer 1240px, grid 6 kolom
   ================================================================== */

/* ---------- pembungkus sticky: marquee + header landing ---------- */
.landtop {
  position: sticky; top: 0; z-index: 40;
  flex: 0 0 auto;
  box-shadow: 0 1px 0 rgba(16, 42, 90, .04);
}
.landtop .landbar {
  /* sticky dipindah ke pembungkus supaya marquee ikut menempel di atas */
  position: static; top: auto; z-index: auto;
  box-shadow: none;
}
.landtop .marquee-bar { z-index: auto; }

/* marquee di halaman publik: sedikit lebih lega daripada di app shell */
.public-body .marquee-bar,
.landtop .marquee-bar { padding: 8px 0; }
.public-body .marquee-text,
.landtop .marquee-text { font-size: 12.8px; }

/* ---------- LAYAR ≥ 360px: kartu 4 kolom sedikit lebih lega ---------- */
@media (min-width: 360px) {
  .spec-name { font-size: 10.4px; }
  .spec-card { padding: 11px 5px 10px; }
  .spec-ic { width: 38px; height: 38px; }
  .spec-ic .ic { width: 20px; height: 20px; }
  .pesan-link { font-size: 10.1px; }
}

/* ---------- TABLET (≥ 640px) ---------- */
@media (min-width: 640px) {
  .landmain {
    max-width: 760px;
    padding: 22px 22px 28px;
  }
  .landbar { padding-left: 22px; padding-right: 22px; }
  .landmain .cust-title { font-size: 26px; letter-spacing: -.8px; }
  .landmain .cust-sub { font-size: 13.6px; }

  /* judul di kiri, kolom pencarian di kanan — ruang kanan tidak kosong lagi */
  .cust-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    align-items: end;
    gap: 6px 22px;
  }
  .cust-hero .cust-sub { margin-bottom: 0; }
  .cust-hero .spec-search { margin: 0 0 3px; max-width: none; }

  .big-cats { gap: 16px; }
  .big-cat { min-height: 168px; font-size: 16px; gap: 13px; }
  .big-cat .bc-ic svg { width: 62px; height: 62px; }

  .spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
  .spec-card { min-height: 140px; padding: 13px 7px 11px; gap: 8px; border-radius: 15px; }
  .spec-ic { width: 50px; height: 50px; }
  .spec-ic .ic { width: 25px; height: 25px; }
  .spec-name { font-size: 12px; }
  .pesan-link { font-size: 10.6px; }
  .pesan-link .ic { width: 11px; height: 11px; }

  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proofcards { gap: 14px; }
  .proofcard { padding: 16px 16px 15px; }
  .proofcard .pc-val { font-size: 27px; }

  .blog-card { flex-basis: 32%; }
  .pfhome-card { flex-basis: 30.5%; max-width: none; }
  .testi-card { flex-basis: 31.5%; }

  .seo-kw { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .area-box { margin-bottom: 0; }

  .partner-grid { gap: 16px; }
  .land-note { font-size: 13px; }

  /* halaman publik (layanan, artikel, portofolio, legal) ikut melebar */
  .pubmain { max-width: 860px; padding: 22px 22px 34px; }
  .pubbar { padding-left: 22px; padding-right: 22px; }
}

/* ---------- DESKTOP (≥ 1024px) ---------- */
@media (min-width: 1024px) {
  .landmain {
    max-width: 1080px;
    padding: 28px 28px 40px;
  }
  .landbar { padding: 12px 28px; }
  .landbar .bt-top { font-size: 18.5px; }
  .landbar .bt-sub { font-size: 9.4px; letter-spacing: 2.9px; }
  .bt-motto { font-size: 11px; max-width: 340px; }
  .landbtn { width: 44px; height: 44px; }
  .public-body .marquee-text,
  .landtop .marquee-text { font-size: 13.4px; }

  .landmain .cust-title { font-size: 29px; letter-spacing: -.9px; margin-bottom: 7px; }
  .landmain .cust-sub { font-size: 14.2px; }
  .cust-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: 10px 30px; }
  .spec-search input { font-size: 17px; }
  .spec-search input::placeholder { font-size: 14px; }

  .big-cats { gap: 18px; }
  .big-cat { min-height: 190px; font-size: 17.5px; border-radius: 20px; }
  .big-cat .bc-ic svg { width: 70px; height: 70px; }

  /* tetap 4 kolom; lebar grid dibatasi supaya kartu tidak melebar berlebihan */
  .spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px auto 0; max-width: 900px; }
  .spec-card { min-height: 152px; border-radius: 18px; padding: 15px 9px 13px; }
  .spec-ic { width: 56px; height: 56px; }
  .spec-ic .ic { width: 27px; height: 27px; }
  .spec-name { font-size: 12.8px; }
  .pesan-link { font-size: 11.4px; }
  /* efek hover hanya untuk perangkat berpointer presisi */
  @media (hover: hover) {
    .spec-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16, 42, 90, .16); }
    .big-cat:hover { transform: translateY(-2px); }
  }

  .trust, .partners, .blog, .pfhome, .testi, .seo-home { margin-top: 40px; padding-top: 26px; }
  .trust-grid { gap: 18px; }
  .trust-card { padding: 20px 18px 18px; border-radius: 20px; }
  .trust-name { font-size: 14px; }
  .trust-desc { font-size: 12.6px; }

  .proofcards { gap: 18px; margin-top: 26px; }
  .proofcard { border-radius: 18px; padding: 18px 18px 16px; }
  .proofcard .pc-val { font-size: 32px; }
  .proofcard .pc-name { font-size: 13px; }
  .proofcard .pc-note { font-size: 11.6px; }

  .blog-card { flex-basis: 24%; }
  .pfhome-card { flex-basis: 23.5%; }
  .testi-card { flex-basis: 24%; }

  .seo-home { padding: 26px 28px 28px; border-radius: 20px; }
  .seo-home-title { font-size: 20px; }
  .seo-home-p { font-size: 14px; line-height: 1.7; }
  .seo-kw { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .seo-kw-chip { font-size: 12.4px; min-height: 48px; }
  .area-list { gap: 14px; }
  .area-box { padding: 16px 18px 15px; border-radius: 16px; }
  .area-box-title { font-size: 14.4px; }
  .area-box-p { font-size: 12.2px; }
  .area-pill { font-size: 12px; padding: 8px 13px; }

  .mj-card { padding: 18px 22px 18px 24px; }
  .partners .partner-card { padding: 18px 20px 17px; }
  .partner-name { font-size: 17.5px; }
  .seo-cta .btn { flex: 0 0 auto; padding-left: 22px; padding-right: 22px; }

  /* halaman publik melebar + teks panjang tetap nyaman dibaca */
  .pubmain { max-width: 1040px; padding: 26px 28px 40px; }
  .pf-list { gap: 20px; }
  .art-grid { gap: 18px; }
  .pub-head h1 { font-size: 30px; }
  .pub-head, .art-head, .pf-hero, .art-body, .pf-desc { max-width: 820px; }
  .sitefooter { max-width: 1040px; padding: 22px 24px calc(26px + env(safe-area-inset-bottom, 0px)); }
  .art-card, .pf-card { border-radius: 20px; }
  .pf-item { flex-basis: 32%; }
}

/* ---------- LAYAR LEBAR (≥ 1360px) ---------- */
@media (min-width: 1360px) {
  .landmain { max-width: 1240px; padding-left: 32px; padding-right: 32px; }
  .landbar { padding-left: 32px; padding-right: 32px; }
  .spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 920px; margin-left: auto; margin-right: auto; }
  .seo-kw { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .blog-card { flex-basis: 23.6%; }
  .pfhome-card { flex-basis: 23.6%; }
  .testi-card { flex-basis: 23.6%; }
  .pubmain { max-width: 1180px; }
}

/* ---------- menu horizontal di header landing (laptop/desktop) ---------- */
.landnav { display: none; }
@media (min-width: 900px) {
  .landnav {
    display: flex; align-items: center; gap: 4px;
    margin-left: auto; margin-right: 6px;
  }
  .landnav a {
    font-size: 13px; font-weight: 800; color: var(--ink-2);
    text-decoration: none; padding: 8px 12px; border-radius: 10px;
    white-space: nowrap;
  }
  .landnav a:hover { background: var(--blue-soft); color: var(--blue-2); }
}
@media (min-width: 1024px) {
  .landnav { gap: 8px; }
  .landnav a { font-size: 13.6px; padding: 9px 14px; }
}

/* ============================================================
   ROUND 42 — saluran WA, banner, statistik, pemisah layanan,
   angka animasi, portal klien (admin + customer + publik)
   ============================================================ */

/* ---------- 1. PEMISAH KELOMPOK LAYANAN ---------- */
.spec-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 10px;
}
.spec-divider .sd-line {
  flex: 1 1 auto; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sd-c, var(--blue)), transparent);
  opacity: .5;
}
.spec-divider .sd-chip {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 7px 14px; border-radius: 999px;
  background: var(--sd-bg, var(--blue-soft));
  border: 1px solid var(--sd-bd, var(--glass-line));
  color: var(--sd-ink, var(--blue-2));
  box-shadow: 0 4px 14px rgba(7, 63, 92, .08);
}
.spec-divider .sd-ic { display: inline-flex; }
.spec-divider .sd-txt {
  font-size: 11.4px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase;
  white-space: nowrap;
}
.spec-divider .sd-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sd-dot, var(--blue));
  animation: sdPulse 2.4s ease-in-out infinite;
}
@keyframes sdPulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
.spec-divider.sd-utama {
  --sd-c: #f0a800;
  --sd-bg: linear-gradient(135deg, #fff6dd, #ffffff 75%);
  --sd-bd: rgba(180, 83, 9, .22);
  --sd-ink: #8a6100;
  --sd-dot: #f0a800;
}
.spec-divider.sd-spesialis {
  --sd-c: #38bdf8;
  --sd-bg: linear-gradient(135deg, #e4f6ff, #ffffff 75%);
  --sd-bd: rgba(3, 105, 161, .20);
  --sd-ink: #075985;
  --sd-dot: #0ea5e9;
}
.spec-divider.sd-khusus {
  --sd-c: #a78bfa;
  --sd-bg: linear-gradient(135deg, #f1ecff, #ffffff 75%);
  --sd-bd: rgba(109, 40, 217, .20);
  --sd-ink: #5b21b6;
  --sd-dot: #8b5cf6;
}
html[data-theme="dark"] .spec-divider.sd-utama {
  --sd-bg: linear-gradient(135deg, #3a2a08, #131d31 78%);
  --sd-ink: #ffd166; --sd-bd: rgba(255, 209, 102, .28);
}
html[data-theme="dark"] .spec-divider.sd-spesialis {
  --sd-bg: linear-gradient(135deg, #0b3247, #131d31 78%);
  --sd-ink: #7dd3fc; --sd-bd: rgba(125, 211, 252, .28);
}
html[data-theme="dark"] .spec-divider.sd-khusus {
  --sd-bg: linear-gradient(135deg, #241a44, #131d31 78%);
  --sd-ink: #c4b5fd; --sd-bd: rgba(196, 181, 253, .28);
}

/* ---------- 2. BANNER PROMOSI & INFORMASI ---------- */
.banners { margin: 18px 0 6px; }
.banner-track {
  display: flex; gap: 13px; overflow-x: auto; padding-bottom: 3px;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
/* petunjuk bahwa banner bisa digeser (hanya perangkat dengan kursor) */
@media (hover: hover) {
  .banner-track { cursor: grab; }
  .banner-track:active { cursor: grabbing; }
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-card {
  flex: 1 0 100%; scroll-snap-align: start;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--glass-line);
  background: var(--card-glass); box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
/* Area foto banner: gambar tampil UTUH (tidak dipotong / tidak di-crop) untuk
   rasio apa pun — termasuk gambar kecil 150×150 px. Latar lembut di belakang
   supaya gambar transparan / rasio berbeda tetap terlihat rapi. */
.banner-media {
  display: flex; align-items: center; justify-content: center;
  line-height: 0; padding: 10px;
  background: var(--blue-soft-2);
}
.banner-media img {
  display: block;
  width: auto; height: auto;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
}
/* gambar kecil (mis. 150×150) tidak diperbesar melebihi ukuran aslinya
   supaya tetap tajam dan proporsional */
@media (min-width: 720px) {
  .banner-media img { max-height: 260px; }
}
html[data-theme="dark"] .banner-media { background: rgba(255, 255, 255, .05); }
.banner-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.banner-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.8px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase;
  /* label "Tukang Terdekat" — biru merek (dulu amber untuk "Promo & Informasi") */
  color: var(--blue-2);
}
.banner-kicker .ic { flex: 0 0 auto; }
/* font-weight ditulis eksplisit: judul banner pada kartu KLON diubah dari <h2>
   menjadi <div> (agar heading dokumen tidak ganda), jadi tanpa ini tebalnya hilang. */
.banner-title {
  margin: 0; font-size: 17px; line-height: 1.25; letter-spacing: -.3px;
  font-weight: 800; color: var(--ink);
}
.banner-text { margin: 0; font-size: 12.6px; line-height: 1.55; color: var(--muted); }
.banner-btn {
  align-self: flex-start; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 15px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: var(--on-accent); font-size: 12.2px; font-weight: 900; text-decoration: none;
  box-shadow: 0 6px 16px rgba(3, 105, 161, .24);
}
@media (min-width: 720px) {
  .banner-card { flex: 0 0 48.4%; }
}
html[data-theme="dark"] .banner-card { background: var(--card-glass); }

/* banner di panel admin */
.bn-admin-card {
  display: flex; gap: 11px; margin-top: 9px; padding: 10px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card-glass);
}
.bn-admin-thumb {
  width: 86px; height: 64px; flex: 0 0 auto; border-radius: 10px; overflow: hidden;
  background: var(--bg-soft); display: grid; place-items: center; color: var(--muted);
}
.bn-admin-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 3px; }
.bn-admin-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bn-admin-body b { font-size: 13px; color: var(--ink); word-break: break-word; }
.bn-edit-prev { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; margin-top: 8px; }
.bn-edit-prev img {
  max-width: 220px; max-height: 200px; width: auto; height: auto;
  object-fit: contain;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--blue-soft-2);
}

/* ---------- 3. KARTU SALURAN WHATSAPP ---------- */
.wachan { margin: 26px 0 0; }
.wachan-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(135deg, #e6fbf0, #ffffff 72%);
  border: 1px solid rgba(6, 122, 62, .20);
  box-shadow: var(--shadow);
}
.wachan-ic {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #25d366, #0f9d58);
  box-shadow: 0 6px 16px rgba(15, 157, 88, .28);
}
.wachan-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wachan-kicker {
  font-size: 9.6px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: #0f7a43;
}
.wachan-title { font-size: 13.8px; font-weight: 900; line-height: 1.3; color: var(--ink); }
.wachan-text { font-size: 11.4px; line-height: 1.45; color: var(--muted); }
.wachan-go {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px;
  padding: 9px 13px; border-radius: 999px; background: #0f9d58; color: #fff;
  font-size: 12px; font-weight: 900; white-space: nowrap;
}
html[data-theme="dark"] .wachan-card {
  background: linear-gradient(135deg, #0c3324, #131d31 78%);
  border-color: rgba(37, 211, 102, .26);
}
html[data-theme="dark"] .wachan-kicker { color: #6ee7a8; }
@media (max-width: 359px) {
  .wachan-card { gap: 9px; padding: 12px; }
  .wachan-ic { width: 42px; height: 42px; border-radius: 12px; }
  .wachan-title { font-size: 12.8px; }
  .wachan-text { font-size: 10.8px; }
  .wachan-go { padding: 8px 10px; font-size: 11.2px; }
}

/* ---------- 4. ANGKA ANIMASI (kartu rekap proyek) ---------- */
.proofcard .pc-val { font-variant-numeric: tabular-nums; }
.proofcard .pc-val.is-counting { color: var(--blue-2); }

/* ---------- 5. STATISTIK KUNJUNGAN ---------- */
.stat-table { display: flex; flex-direction: column; }
.stat-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 58px 58px 64px;
  gap: 6px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 12px;
}
.stat-row > span:not(.stat-page) { text-align: right; font-weight: 800; color: var(--ink); }
.stat-head-row {
  padding: 6px 0; border-bottom: 2px solid var(--line);
  font-size: 9.8px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; color: var(--muted);
}
.stat-head-row > span { font-weight: 900; color: var(--muted); }
.stat-page { display: flex; flex-direction: column; min-width: 0; font-weight: 800; color: var(--ink); }
.stat-page small { font-weight: 600; font-size: 10.2px; color: var(--muted); }
@media (max-width: 359px) {
  .stat-row { grid-template-columns: minmax(0, 1fr) 46px 46px 52px; font-size: 11.2px; }
  .stat-page small { font-size: 9.4px; }
}

/* ---------- 6. PORTAL KLIEN — PANEL ADMIN ---------- */
.portal-pick { display: grid; grid-template-columns: 1fr; gap: 9px; }
@media (min-width: 560px) { .portal-pick { grid-template-columns: 1fr 1fr; } }
.portal-pick-card {
  display: flex; flex-direction: column; gap: 4px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--card-glass);
  text-decoration: none; color: var(--ink);
}
.portal-pick-card.is-on { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(3, 116, 181, .16); }
.ppc-name { font-size: 13px; font-weight: 900; line-height: 1.3; }
.ppc-meta { font-size: 10.6px; color: var(--muted); }
.ppc-bar { height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin-top: 3px; }
.ppc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.ppc-foot { font-size: 10.2px; font-weight: 700; color: var(--muted); }
.portal-progress {
  display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; padding: 12px;
  border-radius: 14px; background: var(--blue-soft-2); border: 1px solid var(--glass-line);
}
.pp-ring, .ps-ring, .pg-ring {
  position: relative; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--p) * 1%), var(--line) 0);
}
.pp-ring { width: 62px; height: 62px; }
.ps-ring { width: 46px; height: 46px; }
.pp-ring::before, .ps-ring::before, .pg-ring::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--card);
}
.ps-ring::before { inset: 5px; }
.pp-ring b, .ps-ring b, .pg-ring b { position: relative; font-weight: 900; color: var(--ink); }
.pp-ring b { font-size: 13px; }
.ps-ring b { font-size: 10.6px; }
.ms-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.ms-dot {
  width: 11px; height: 11px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%;
  background: var(--line); box-shadow: 0 0 0 2px var(--line);
}
.ms-dot.ms-selesai { background: var(--green); box-shadow: 0 0 0 2px rgba(6, 122, 62, .28); }
.ms-dot.ms-berjalan { background: var(--amber); box-shadow: 0 0 0 2px rgba(180, 83, 9, .24); }
.ms-edit { margin: 0; flex: 0 0 auto; }
.ms-edit > summary { list-style: none; }
.pb-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.pb-thumb { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.pb-thumb-ph { display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); }
.copy-row { display: flex; gap: 6px; align-items: center; }
.copy-row .input { flex: 1; min-width: 0; margin: 0; font-size: 11.4px; }

/* ---------- 7. PORTAL KLIEN — KARTU CUSTOMER ---------- */
.portal-strip {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 10px; padding: 10px 11px; border-radius: 13px;
  background: linear-gradient(135deg, #eaf7ff, #ffffff 78%);
  border: 1px solid var(--glass-line);
}
.portal-strip .grow b { font-size: 12.6px; color: var(--ink); }
.ps-bar { height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin-top: 5px; }
.ps-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.ps-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
html[data-theme="dark"] .portal-strip { background: linear-gradient(135deg, #0b3247, #131d31 78%); }

/* ---------- 8. HALAMAN PORTAL PUBLIK ---------- */
.portal-hero .portal-gauge {
  display: flex; align-items: center; gap: 14px;
  margin-top: 16px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .95); border: 1px solid rgba(255, 255, 255, .7);
  color: var(--ink); text-align: left;
}
.pg-ring { width: 70px; height: 70px; background: conic-gradient(var(--blue) calc(var(--p) * 1%), #dbeafe 0); }
.pg-ring::before { inset: 7px; background: #ffffff; }
.pg-ring b { font-size: 15px; color: #0a2a47; }
.pg-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.pg-label { font-size: 12.6px; font-weight: 900; color: #0a2a47; }
.pg-bar { height: 8px; border-radius: 99px; background: #e2eef8; overflow: hidden; margin: 6px 0; }
.pg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #38bdf8, #0369a1); }
.pg-note { font-size: 10.8px; color: #5b6b80; line-height: 1.45; }
.portal-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
@media (min-width: 760px) { .portal-grid { grid-template-columns: 1fr 1fr; } }
.portal-card {
  padding: 14px 15px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.portal-card h2 {
  display: flex; align-items: center; gap: 7px; margin: 0 0 10px;
  font-size: 14.4px; letter-spacing: -.2px; color: var(--ink);
}
.portal-card h2 .ic { color: var(--blue-2); }
.portal-wide { margin-top: 14px; }
.portal-rows { display: flex; flex-direction: column; gap: 7px; }
.portal-rows > div {
  display: flex; justify-content: space-between; gap: 10px;
  padding-bottom: 6px; border-bottom: 1px dashed var(--line-2); font-size: 12.3px;
}
.portal-rows b { flex: 0 0 auto; color: var(--muted); font-weight: 700; }
.portal-rows span { min-width: 0; text-align: right; font-weight: 800; color: var(--ink); word-break: break-word; }
.portal-note {
  display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; padding: 12px 14px;
  border-radius: 14px; background: #fff8e6; border: 1px solid #f5d68a;
  color: #7a5600; font-size: 12.3px; line-height: 1.55;
}
html[data-theme="dark"] .portal-note { background: #33280d; border-color: #6b5518; color: #ffd98a; }
.ptl { list-style: none; margin: 0; padding: 0; }
.ptl-item { position: relative; display: flex; gap: 11px; padding: 0 0 15px; }
.ptl-item:not(:last-child)::before {
  content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--line);
}
.ptl-dot {
  position: relative; z-index: 1; width: 22px; height: 22px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--card); border: 2px solid var(--line); color: #fff;
}
.ptl-dot .ic { width: 12px; height: 12px; }
.ptl-item.is-selesai .ptl-dot { background: var(--green); border-color: var(--green); }
.ptl-item.is-berjalan .ptl-dot { background: var(--amber); border-color: var(--amber); }
.ptl-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-top: 1px; }
.ptl-body b { font-size: 12.8px; color: var(--ink); line-height: 1.35; }
.ptl-meta { font-size: 10.8px; color: var(--muted); }
.ptl-note { font-size: 11.4px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.pfeed { display: flex; flex-direction: column; gap: 12px; }
.pfeed-item {
  display: flex; gap: 11px; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.pfeed-photo { flex: 0 0 auto; width: 104px; min-height: 104px; display: block; line-height: 0; }
.pfeed-photo img { width: 100%; height: 100%; min-height: 104px; object-fit: cover; display: block; }
.pfeed-body { min-width: 0; flex: 1; padding: 10px 11px 11px; }
.pfeed-top { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.pfeed-top b { font-size: 13px; line-height: 1.35; color: var(--ink); }
.pfeed-date { display: inline-flex; align-items: center; gap: 4px; font-size: 10.6px; color: var(--muted); margin-top: 2px; }
.pfeed-text { margin: 6px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 479px) {
  .pfeed-item { flex-direction: column; }
  .pfeed-photo, .pfeed-photo img { width: 100%; min-height: 0; height: 168px; }
}
.rab-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rab-table { width: 100%; border-collapse: collapse; font-size: 11.8px; }
.rab-table th, .rab-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.rab-table th {
  background: var(--blue-soft); color: var(--blue-2); font-size: 10.4px;
  font-weight: 900; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap;
}
.rab-table td:nth-child(1), .rab-table th:nth-child(1) { width: 30px; text-align: center; }
.rab-table td:nth-child(3), .rab-table td:nth-child(4) { white-space: nowrap; }
.rab-table tfoot td { font-weight: 900; border-top: 2px solid var(--line); border-bottom: 0; }
.portal-cta { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.share-card {
  margin-top: 14px; padding: 14px 15px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.share-card h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 14.2px; }
.share-row {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.6px;
}
.share-row.is-col { flex-direction: column; align-items: stretch; gap: 6px; }
.share-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11.4px; font-weight: 800; color: var(--muted); }
.share-row b { min-width: 0; text-align: right; color: var(--ink); word-break: break-word; }
.share-row.is-col b { text-align: left; }
.share-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.share-card textarea { width: 100%; margin-top: 8px; font-size: 11.8px; }

/* ---------- 9. TANGGAL PORTOFOLIO ---------- */
.pfhome-date { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; }

/* ============================================================
   ROUND 44 — LOGO MEREK KUSTOM (header, favicon, splash)
   ============================================================ */

/* logo hasil upload admin: gambar raster dipakai apa adanya, sudut sedikit
   membulat supaya menyatu dengan header (lambang bawaan tetap 22%). */
.logomark.is-brand {
  border-radius: 18%;
  object-fit: contain;
  /* tile putih tetap di terang MAUPUN gelap: logo terang di atas latar transparan
     akan hilang kalau tile-nya ikut menggelap. */
  background: #fff;
}

/* gambar pembuka (splash): logo kustom tampil besar sebagai gambar utama.
   Kartu putih pembungkus (.splash-logo) yang memberi bayangan — jadi gambar di
   dalamnya TIDAK boleh punya latar/bayangan sendiri (dulu tampak dobel bingkai). */
/* ukuran gambar pembuka diatur PHP (splash_logo()) — jangan dipatok di sini */
.splash-logo .logomark.splash-mark {
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.splash-logo:has(.logomark.is-brand) { padding: 8px; border-radius: 24px; }
html[data-theme="dark"] .splash-logo:has(.logomark.is-brand) {
  background: rgba(19, 29, 49, .88);
}

/* preview logo di panel admin */
.brand-admin-preview {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line-2);
  border-radius: 13px; padding: 12px;
}
.brand-admin-preview > img {
  width: 92px; height: 92px; object-fit: contain; flex: 0 0 auto;
  border-radius: 16px; border: 1px solid var(--line); background: #fff; padding: 4px;
}
.brand-admin-preview .grow { min-width: 0; }
@media (max-width: 380px) {
  .brand-admin-preview { flex-direction: column; }
  .brand-admin-preview > img { width: 78px; height: 78px; }
}

/* ============================================================
   ROUND 45 — pilih kontak pelanggan di tab Customer (admin)
   ============================================================ */
.pick-contact {
  background: var(--blue-soft-2);
  border: 1px solid var(--glass-line);
  border-radius: 13px;
  padding: 11px;
  margin-bottom: 12px;
}
.pick-contact .field-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.4px; font-weight: 900; color: var(--blue-2);
  text-transform: uppercase; letter-spacing: .4px;
}
.pick-contact .input { margin-bottom: 0; }
.pick-warn {
  display: flex; gap: 7px; align-items: flex-start;
  margin: 8px 0 2px; padding: 9px 11px; border-radius: 11px;
  background: #fff8e6; border: 1px solid #f5d68a;
  color: #7a5600; font-size: 11.6px; line-height: 1.5;
}
.pick-warn a { color: #7a5600; font-weight: 900; text-decoration: underline; }
html[data-theme="dark"] .pick-warn { background: #33280d; border-color: #6b5518; color: #ffd98a; }
html[data-theme="dark"] .pick-warn a { color: #ffd98a; }
.pick-note {
  display: flex; gap: 7px; align-items: flex-start;
  margin: 0 0 10px; padding: 9px 11px; border-radius: 11px;
  background: var(--green-soft); color: var(--green);
  font-size: 11.8px; line-height: 1.5;
}
.pick-note .ic { flex: 0 0 auto; margin-top: 1px; }
