/* Self-hosted fonts (latin + latin-ext) */
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dmserifdisplay-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dmserifdisplay-italic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dmserifdisplay-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dmserifdisplay-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/plusjakartasans-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/plusjakartasans-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* SR12 admin & mitra dashboard */
:root {
  --bg: #f4f6f3; --card: #fff; --line: #e3e8e1; --line-2: #d6ddd4;
  --ink: #17231c; --ink-2: #3c4a41; --muted: #6b7a70; --faint: #9aa69e;
  --pri: #12301f; --pri-2: #1b4330; --leaf: #3f7a55; --gold: #c9a14a; --tint: #e6ede4;
  --ok-bg: #dff1e4; --ok: #1f6a3a; --warn-bg: #fdf0d8; --warn: #8a5d12; --bad-bg: #fbe3e0; --bad: #9b2c1f; --info-bg: #e3eefb; --info: #23507f;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--leaf); text-decoration: none; }
a:hover { color: var(--pri); }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 16px; font-weight: 700; }
img { max-width: 100%; display: block; }
code { background: var(--tint); padding: 1px 5px; border-radius: 5px; }
pre { background: #fff; padding: 10px; border-radius: 8px; margin: 8px 0 0; overflow-x: auto; }
:focus-visible { outline: 3px solid rgba(201,161,74,.8); outline-offset: 2px; border-radius: 6px; }
.serif { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.danger-t { color: var(--bad) !important; }
.pad { padding: 20px; }
.pad-x { padding-left: 20px; padding-right: 20px; }
.pad-b { padding-bottom: 20px; }
.pad-t { padding-top: 8px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.copy-row { display: flex; gap: 8px; }
.btn.btn-google { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn.btn-google:hover { border-color: #4285f4; color: var(--ink); }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.align-end { align-items: end; }
.align-start { align-items: start; }
.narrow { max-width: 460px; }
.narrow-lg { max-width: 760px; }
.intro { color: var(--muted); margin-bottom: 16px; max-width: 760px; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 248px; background: #10261a; color: #fff; display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; color: #fff; }
.side-brand:hover { color: #fff; }
.side-brand span:last-child { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.side-brand small { color: rgba(255,255,255,.5); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input { padding-right: 46px !important; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 34px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); background: var(--tint); }
.mark.has-logo { background: transparent; overflow: hidden; }
.mark.has-logo img, .brand-mark.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.mark.big { width: 64px; height: 64px; font-size: 16px; }
.logo-prev { width: 96px; height: 96px; display: grid; place-items: center; background: #10261a; }
.logo-prev img { object-fit: contain; }
.inline-input { min-height: 34px !important; padding: 4px 8px !important; font-weight: 600; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gold); color: #10261a; display: grid; place-items: center; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.side-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: rgba(255,255,255,.66); font-weight: 500; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.on { background: rgba(255,255,255,.12); color: #fff; }
.side-nav em { margin-left: auto; font-style: normal; background: var(--gold); color: #10261a; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.side-view { display: flex; align-items: center; gap: 8px; color: var(--gold); padding: 8px 12px; border: 1px solid rgba(201,161,74,.35); border-radius: 10px; font-weight: 600; }
.side-view:hover { color: #fff; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 4px 0; }
.side-user .who { display: flex; flex-direction: column; line-height: 1.2; flex-grow: 1; min-width: 0; }
.side-user small { color: rgba(255,255,255,.5); }
.side-user .icon-btn { color: rgba(255,255,255,.7); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #9fc3a9; color: #10261a; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.sm { width: 36px; height: 36px; }
.main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top h1 { font-size: 20px; }
.top .menu-btn { display: none; }
.content { padding: 24px 28px 60px; display: flex; flex-direction: column; gap: 18px; }
.side-backdrop { display: none; }

/* Components */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head.pad-x { padding-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; font: inherit; font-weight: 600; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn-lg { min-height: 48px; font-size: 15px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-pri { background: var(--pri); color: #fff; }
.btn-pri:hover { background: var(--pri-2); color: #fff; }
.btn-sec { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-sec:hover { border-color: var(--leaf); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--leaf); }
.btn-ghost:hover { background: var(--tint); }
.btn-wa { background: #1f8a4c; color: #fff; }
.btn-wa:hover { color: #fff; background: #197440; }
.icon-btn { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; display: inline-grid; place-items: center; color: var(--muted); cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { background: var(--tint); color: var(--ink); }
.icon-btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef1ec; color: var(--muted); }
.st-baru, .st-draf { background: var(--warn-bg); color: var(--warn); }
.st-dihubungi { background: var(--info-bg); color: var(--info); }
.st-order { background: #ece6f8; color: #5a3d8f; }
.st-bergabung, .st-aktif { background: var(--ok-bg); color: var(--ok); }
.st-batal, .st-nonaktif { background: var(--bad-bg); color: var(--bad); }
.flash { border-radius: 12px; padding: 12px 14px; font-weight: 500; }
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; }

/* Forms */
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span, .lbl, fieldset legend { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.fld small { color: var(--faint); font-size: 12px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; min-height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--ink); background: #fff; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(63,122,85,.15); }
input[type=file] { font: inherit; font-size: 13px; max-width: 100%; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--leaf); }
.prefix { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.prefix em { font-style: normal; background: #eef1ec; color: var(--muted); display: flex; align-items: center; padding: 0 10px; }
.prefix input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.readonly { min-height: 40px; display: flex; align-items: center; padding: 0 12px; background: #f3f5f0; border-radius: 10px; color: var(--muted); }
.form-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.sticky-foot { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 12px; z-index: 3; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #cfd7cd; transition: background-color .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--leaf); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 3px solid rgba(201,161,74,.8); outline-offset: 2px; }
.img-field { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.img-prev { width: 120px; height: 90px; border-radius: 10px; background: repeating-linear-gradient(135deg, #e6ede4 0 8px, #dfe7dc 8px 16px); overflow: hidden; flex-shrink: 0; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.round-prev { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--gold); }
.wide-prev { width: 200px; height: 90px; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-pick input { position: absolute; opacity: 0; }
.icon-pick span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; min-width: 78px; color: var(--ink-2); }
.icon-pick small { font-size: 11px; }
.icon-pick input:checked + span { border-color: var(--leaf); background: var(--tint); color: var(--pri); }
.icon-pick input:focus-visible + span { outline: 3px solid rgba(201,161,74,.8); }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input { width: 260px; }
.search select { width: auto; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head .intro { margin: 0; }
.upload-bulk { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: #f8faf7; padding: 10px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid #eef1ec; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions > * { vertical-align: middle; margin-left: 6px; }
.table .actions form { display: inline-block; margin: 0 0 0 6px; }
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.lead-edit { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lead-edit select { width: 140px; min-height: 34px; padding: 4px 8px; font-size: 13px; }
.lead-edit input { width: 170px; min-height: 34px !important; padding: 4px 10px !important; font-size: 13px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 12px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--pri); border-color: var(--pri); }
.tabs em { font-style: normal; font-size: 11px; background: #eef1ec; padding: 1px 7px; border-radius: 99px; margin-left: 4px; }
.pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 14px; }
.pager a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); }
.pager a.on { background: var(--pri); border-color: var(--pri); color: #fff; }

/* Statistik */
.seg { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.seg a { padding: 6px 12px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 13px; }
.seg a.on { background: var(--pri); color: #fff; }
.th-sort { color: inherit; white-space: nowrap; }
.th-sort.on { color: var(--pri); }
.meter { height: 8px; border-radius: 99px; background: #eef1ec; overflow: hidden; min-width: 80px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--leaf); }
.link-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--tint); color: var(--leaf); display: grid; place-items: center; flex-shrink: 0; }
.link-sub { display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-off td { opacity: .6; }
.bars-dense { gap: 2px; }
.bars-dense .bar-col small { font-size: 10px; }

/* Online presence */
.dot-live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2fbf6a; box-shadow: 0 0 0 0 rgba(47,191,106,.6); animation: livePulse 2s infinite; margin-right: 4px; vertical-align: middle; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(47,191,106,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,106,0); } }
.online-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.online-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.online-list .who { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.online-list .who small { color: var(--muted); font-size: 12px; }
.avatar { position: relative; overflow: visible; }
.on-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #2fbf6a; border: 2px solid #fff; }
.on-dot.static { position: static; display: inline-block; width: 8px; height: 8px; border: 0; margin-right: 4px; }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }

/* Dashboard */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi strong { font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi strong small { font-size: 16px; color: var(--faint); font-weight: 600; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi em.warn { color: var(--warn); }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-a { background: #3f7a55; }
.lg-b { background: #c9a14a; }
.bars { display: flex; gap: 6px; height: 200px; align-items: stretch; }
.bar-col { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: center; min-width: 0; }
.bar-stack { flex-grow: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; border-bottom: 1px solid var(--line); }
.bar-stack i { flex: 1; border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-stack .a { background: #3f7a55; }
.bar-stack .b { background: #c9a14a; }
.bar-col small { font-size: 11px; color: var(--faint); }
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rank li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1ec; }
.rank li:last-child { border-bottom: 0; }
.rank li > a, .rank li > span:first-child { display: flex; flex-direction: column; line-height: 1.3; color: var(--ink); min-width: 0; }
.rank small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.rank .num { font-weight: 700; }

/* Sections sortable & repeaters */
.sortable { list-style: none; margin: 0; padding: 8px; }
.sort-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #fff; }
.sort-row + .sort-row { border-top: 1px solid #eef1ec; }
.sort-row.dragging { opacity: .5; background: var(--tint); }
.grip { color: var(--faint); cursor: grab; display: grid; place-items: center; flex-shrink: 0; }
.sort-label { flex-grow: 1; font-weight: 600; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.move { display: inline-flex; flex-shrink: 0; }
.form-foot { padding: 12px; }
.card.pad .form-foot, .stack .form-foot { padding: 4px 0 0; }
.repeater { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.repeater legend { padding: 0 6px; }
.rep-rows { display: flex; flex-direction: column; gap: 8px; }
.rep-row { display: flex; align-items: flex-end; gap: 10px; padding: 8px; border-radius: 10px; background: #f8faf7; }
.rep-row .fld { flex: 1; }
.rep-row .grip, .rep-row .move, .rep-row .icon-btn { margin-bottom: 3px; }

/* Biolink editor */
[data-panel][hidden], .blink-grid [hidden] { display: none !important; }
.bio-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.btabs { display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 72px; z-index: 5; }
.btabs button { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 0; background: none; padding: 9px 14px; border-radius: 9px; font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; color: var(--muted); cursor: pointer; }
.btabs button:hover { color: var(--ink); background: #f2f5f0; }
.btabs button.is-on { background: var(--pri); color: #fff; }
.card-head.sep { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.stat-row { display: grid; grid-template-columns: 26px 110px minmax(0, 1fr) 130px; gap: 8px; align-items: end; padding: 10px; border-radius: 12px; background: #f8faf7; }
.stat-no { width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--pri); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-bottom: 8px; }
.stat-row .fld span { font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 99px; cursor: pointer; font-size: 13px; }
.chip:has(input:checked) { border-color: var(--leaf); background: #eef6f0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.blinks { display: flex; flex-direction: column; gap: 10px; }
.blink { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; background: #fbfcfa; display: flex; flex-direction: column; gap: 10px; }
.blink.dragging, .bprod.dragging { opacity: .5; }
.blink-top { display: flex; align-items: center; gap: 8px; }
.blink-top > input { flex: 1; min-width: 0; font-weight: 600; }
.blink-top .grip { cursor: grab; color: var(--muted); }
.blink-swatch { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(100deg, var(--c1), var(--c2)); }
.blink-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 10px; }
.blink-grid .fld span { font-size: 12px; }
.blink-grid input, .blink-grid select { min-height: 36px !important; padding: 6px 10px !important; font-size: 13px; }
.blink-clicks { position: absolute; right: 12px; bottom: -9px; font-size: 11px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; color: var(--muted); }
.c-pink { --c1: #e2527f; --c2: #f38fb0; }
.c-green { --c1: #2f9a5d; --c2: #5cc488; }
.c-blue { --c1: #3470d6; --c2: #5fa2ef; }
.c-orange { --c1: #ea7a22; --c2: #f7aa4c; }
.c-purple { --c1: #7a4fd0; --c2: #a584ee; }
.c-gold { --c1: #b88a2e; --c2: #dcb760; }
.c-light { --c1: #fff; --c2: #fff; color: #2b1d24 !important; box-shadow: inset 0 0 0 1px #e4e1e2; }

.bprods { display: flex; flex-direction: column; gap: 8px; }
.bprod { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.bprod:has(input:checked) { border-color: var(--leaf); background: #f4faf5; }
.bprod.is-off { opacity: .6; }
.bprod-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.bprod-img { width: 46px; height: 46px; border-radius: 9px; background: #f1f4ef; display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); }
.bprod-img img { width: 100%; height: 100%; object-fit: cover; }
.bprod-t { min-width: 0; display: flex; flex-direction: column; }
.bprod-t strong { font-size: 14px; }
.bprod-t small { color: var(--muted); font-size: 12px; }
.bprod-price input { width: 120px; min-height: 36px !important; padding: 6px 10px !important; font-size: 13px; }
.bprod .move { display: flex; }
.btesti { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.btesti > * { align-self: stretch; }
.btesti > button { align-self: flex-start; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.theme-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 600; }
.theme-card:has(input:checked) { border-color: var(--leaf); box-shadow: 0 0 0 2px rgba(63,122,85,.25); }
.theme-card input { position: absolute; opacity: 0; }
.theme-card:has(input:focus-visible) { outline: 3px solid rgba(201,161,74,.8); }
.tsw { display: flex; height: 44px; border-radius: 8px; overflow: hidden; }
.tsw i { flex: 1; }
.tsw-cantik i:nth-child(1) { background: #fdf4f6; } .tsw-cantik i:nth-child(2) { background: #f39bb4; } .tsw-cantik i:nth-child(3) { background: #d9577f; }
.tsw-segar i:nth-child(1) { background: #f3faf4; } .tsw-segar i:nth-child(2) { background: #8fd3a7; } .tsw-segar i:nth-child(3) { background: #2f9a5d; }
.tsw-langit i:nth-child(1) { background: #f3f7fd; } .tsw-langit i:nth-child(2) { background: #9cc2f3; } .tsw-langit i:nth-child(3) { background: #3b7fd9; }
.tsw-hijau i:nth-child(1) { background: #0f2a1c; } .tsw-hijau i:nth-child(2) { background: #1d4a31; } .tsw-hijau i:nth-child(3) { background: #c9a14a; }

/* Phone preview (mirrors assets/css/biolink.css) */
.phone-col { position: sticky; top: 88px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phone-prev { --bg: #fdf4f6; --ink: #2b1d24; --muted: #7b6a72; --card: #fff; --line: #f0dfe5; --accent: #d9577f; --accent-2: #f39bb4; --accent-soft: #fde6ed; width: 300px; height: 600px; border-radius: 40px; background: #1d1a1c; padding: 9px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.phone-prev[data-theme-now="segar"] { --bg: #f3faf4; --ink: #1c2b22; --muted: #66756c; --line: #dcebe0; --accent: #2f9a5d; --accent-2: #8fd3a7; --accent-soft: #e3f4e8; }
.phone-prev[data-theme-now="langit"] { --bg: #f3f7fd; --ink: #1b2536; --muted: #647089; --line: #dde7f5; --accent: #3b7fd9; --accent-2: #9cc2f3; --accent-soft: #e4eefb; }
.phone-prev[data-theme-now="hijau"] { --bg: #0f2a1c; --ink: #f3f1e8; --muted: #b9c6bd; --line: rgba(255,255,255,.1); --card: #163826; --accent: #c9a14a; --accent-2: #e6c77d; --accent-soft: rgba(201,161,74,.16); }
.pp-screen { height: 100%; border-radius: 32px; overflow: hidden auto; padding: 0 14px 20px; display: flex; flex-direction: column; align-items: stretch; gap: 7px; text-align: center; scrollbar-width: none; background: var(--bg); color: var(--ink); }
.pp-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px 4px; }
.pp-logo { font-weight: 800; font-size: 13px; color: var(--accent); }
.pp-share { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.pp-avatar { width: 78px; height: 78px; border-radius: 50%; margin: 4px auto 0; padding: 3px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex-shrink: 0; }
.pp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid var(--card); }
.pp-name { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 20px; line-height: 1.15; display: flex; align-items: center; justify-content: center; gap: 5px; }
.pp-check { display: inline-flex; }
.pp-check[hidden] { display: none; }
.pp-eyebrow { display: flex; justify-content: space-between; align-items: center; font-size: 8.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); padding-top: 2px; }
.pp-eyebrow i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.pp-chips { display: flex; justify-content: center; gap: 4px; }
.pp-level, .pp-city { font-style: normal; font-size: 9.5px; padding: 2px 8px; border-radius: 99px; }
.pp-level[hidden], .pp-city[hidden] { display: none; }
.pp-level { font-weight: 700; background: #c9a14a; color: #1f1606; }
.pp-level.lv-marketer { background: #3470d6; color: #fff; }
.pp-level.lv-sub-agen { background: #2f9a5d; color: #fff; }
.pp-level.lv-agen { background: #ea7a22; color: #fff; }
.pp-level.lv-distributor { background: #12301f; color: #e6c77d; }
.pp-city { background: var(--accent-soft); color: var(--accent); }
.pp-tag { font-weight: 500; color: var(--muted); }
.pp-handle { font-size: 11px; font-weight: 700; color: var(--accent); margin-top: -6px; }
.pp-tag { font-size: 10px; color: var(--muted); }
.pp-quote { font: italic 12px/1.35 "DM Serif Display", Georgia, serif; margin: 0; }
.pp-quote:empty { display: none; }
.pp-stats { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 2px; }
.pp-stats > span { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.pp-stats > span + span { border-left: 1px solid var(--line); }
.pp-stats strong { font-size: 12px; }
.pp-stats small { font-size: 8.5px; color: var(--muted); }
.pp-links { display: flex; flex-direction: column; gap: 6px; }
.pp-link { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 5px 8px; border-radius: 12px; text-align: left; color: #fff; background: linear-gradient(100deg, var(--c1), var(--c2)); }
.pp-link i { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
.pp-link i svg { width: 15px; height: 15px; }
.pp-link.c-light i { background: var(--accent-soft); color: var(--accent); }
.pp-link > span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pp-link b { font-size: 11.5px; }
.pp-link small { font-size: 9px; opacity: .85; }
.pp-promo { border-radius: 12px; padding: 10px; text-align: left; color: #fff; background: linear-gradient(115deg, var(--accent), var(--accent-2)); display: flex; flex-direction: column; line-height: 1.1; }
.pp-promo[hidden] { display: none; }
.pp-promo small { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.pp-promo span { font: 14px "DM Serif Display", Georgia, serif; }
.pp-promo b { font-size: 18px; }
.pp-prods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pp-prod { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 5px; text-align: left; display: flex; flex-direction: column; font-size: 9.5px; line-height: 1.25; }
.pp-prod i { aspect-ratio: 1; border-radius: 7px; background: var(--accent-soft); display: grid; place-items: center; overflow: hidden; margin-bottom: 4px; color: var(--accent); }
.pp-prod i img { width: 100%; height: 100%; object-fit: cover; }
.pp-prod small { color: var(--accent); font-weight: 700; }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 20% 0, rgba(63,122,85,.35), transparent 50%), #0f2a1c; }
.auth-card { width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.auth-card.wide { width: min(640px, 100%); }
.auth-card h1 { font-size: 32px; line-height: 1.1; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.checks li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.checks .ok { color: var(--ok); }
.checks .bad { color: var(--bad); font-weight: 600; }

/* Responsive */
@media (max-width: 1180px) {
  .bio-editor { grid-template-columns: minmax(0, 1fr); }
  .bio-editor > form { min-width: 0; }
  .phone-col { position: static; }
}
@media (max-width: 960px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .25s; }
  .side.open { transform: none; }
  .side-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 20; }
  .top .menu-btn { display: inline-grid; }
  .top { padding: 0 16px; }
  .content { padding: 18px 16px 60px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .stat-no { display: none; }
  .stat-row > label:last-child { grid-column: 1 / -1; }
  .sticky-foot { flex-wrap: nowrap; gap: 4px; }
  .sticky-foot .btn { padding-inline: 12px; }
  .bprod { flex-wrap: wrap; row-gap: 8px; }
  .bprod-main { flex: 1 1 100%; }
  .bprod-price { margin-left: 56px; flex: 1; }
  .bprod-price input { width: 100%; }
  .btabs { top: 60px; }
  .blink-top { flex-wrap: wrap; }
  .blink-top > input { flex-basis: calc(100% - 70px); }
  .blink-top .grip { display: none; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .kpi strong { font-size: 22px; }
  .search input { width: 100%; }
  .search { width: 100%; }
  .rep-row { flex-wrap: wrap; }
  .rep-row .fld { flex-basis: 100%; }
  .sort-row .move { display: none; }
  .checks { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
  .phone-prev { transform: scale(.9); transform-origin: top center; }
}

/* Anggota */
.st-pending { background: var(--warn-bg); color: var(--warn); }
.flash-info { background: var(--info-bg); color: var(--info); }
.center { text-align: center; }
.muted-n { font-size: 11px; opacity: .7; margin-left: 2px; }
.approve-form { display: inline-flex; gap: 6px; align-items: center; }
.approve-form select { min-height: 32px; padding: 4px 8px; font-size: 13px; }
.table td.addr { max-width: 220px; }
.nowrap { white-space: nowrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.table td.m-actions { white-space: nowrap; text-align: right; }
.m-actions > div { display: inline-flex; flex-direction: column; align-items: stretch; gap: 6px; }
.m-actions form { margin: 0; }
.approve-form select { width: auto !important; }
.m-actions .btn { width: 100%; justify-content: center; }
.approve-form .btn { width: auto; }
.table td.addr { min-width: 170px; }

/* Broadcast */
.meter.lg { height: 12px; }
.meter i { transition: width .4s ease; }
.kpis-3.compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis-3.compact > div { background: #f8faf7; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.kpis-3.compact span { font-size: 12px; color: var(--muted); }
.kpis-3.compact strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.row-wrap form { margin: 0; }
.bc-draf { background: #eef1ec; color: var(--muted); }
.bc-mengirim { background: var(--info-bg); color: var(--info); }
.bc-jeda { background: var(--warn-bg); color: var(--warn); }
.bc-selesai, .rc-terkirim { background: var(--ok-bg); color: var(--ok); }
.rc-gagal { background: var(--bad-bg); color: var(--bad); }
.rc-antri { background: #eef1ec; color: var(--muted); }
.rc-mengirim { background: var(--info-bg); color: var(--info); }
.bc-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: auto; font-size: 12.5px; }
.bc-log:empty { display: none; }
.bc-log li { display: flex; gap: 8px; align-items: baseline; }
.bc-log .ok { color: var(--ok); }
.bc-log .bad { color: var(--bad); }
.bc-count { padding: 12px 14px; border-radius: 12px; background: #eef6f0; color: var(--pri); }
.bc-count strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.wa-bubble { position: relative; background: #d9fdd3; color: #111b21; border-radius: 10px 10px 10px 2px; padding: 10px 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bc-img { border-radius: 10px; max-height: 260px; object-fit: contain; background: #f1f4ef; }
button.chip { background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.prefix.grow { flex: 1; }

/* Pilihan keanggotaan saat daftar */
.level-pick { border: 0; padding: 0; margin: 0; }
.level-pick legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.level-options { display: flex; flex-wrap: wrap; gap: 8px; }
.level-opt { cursor: pointer; }
.level-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill-lv { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 99px; font-weight: 700; font-size: 14px; border: 2px solid var(--line-2); background: #fff; color: var(--ink); transition: background-color .15s, color .15s, border-color .15s; }
.level-opt:hover .pill-lv { border-color: var(--leaf); }
.level-opt input:focus-visible + .pill-lv { outline: 3px solid rgba(201,161,74,.8); outline-offset: 2px; }
.level-opt input:checked + .pill-lv { border-color: transparent; background: #c9a14a; color: #1f1606; }
.level-opt input:checked + .pill-lv.lv-marketer { background: #3470d6; color: #fff; }
.level-opt input:checked + .pill-lv.lv-sub-agen { background: #2f9a5d; color: #fff; }
.level-opt input:checked + .pill-lv.lv-agen { background: #ea7a22; color: #fff; }
.level-opt input:checked + .pill-lv.lv-distributor { background: #12301f; color: #e6c77d; }
.level-inline { margin: 4px 0 0; }
.level-inline select { width: auto; min-height: 32px; padding: 4px 28px 4px 10px; font-size: 13px; }
.page-head .search { flex-wrap: nowrap; }
.page-head .search input { width: min(260px, 50vw); }
.table th.num, .table td.num { text-align: right; }
.perm-box { padding: 12px 14px; border-radius: 12px; background: #f8faf7; border: 1px solid var(--line); }

/* Pilihan tema landing */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.theme-opt { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.theme-opt.is-on { border-color: var(--leaf); box-shadow: 0 0 0 2px rgba(63,122,85,.2); }
.theme-info { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 4px; }
.theme-info strong { font-size: 14.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.theme-info small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.theme-actions { display: flex; gap: 6px; padding: 10px 14px 14px; margin-top: auto; flex-wrap: wrap; }
.theme-thumb { position: relative; height: 128px; overflow: hidden; }
.theme-thumb i { position: absolute; display: block; border-radius: 4px; }
/* klasik */
.tt-klasik { background: #0f2a1c; }
.tt-klasik .a { left: 12px; top: 22px; width: 44%; height: 12px; background: #fff; }
.tt-klasik .b { left: 12px; top: 40px; width: 36%; height: 12px; background: #c9a14a; }
.tt-klasik .c { left: 12px; top: 66px; width: 26%; height: 14px; border-radius: 99px; background: #c9a14a; }
.tt-klasik .d { right: 16px; top: 16px; width: 34%; height: 100px; border-radius: 60px 60px 8px 8px; background: #2f6246; }
.tt-klasik .e { right: 34px; bottom: 12px; width: 18%; height: 44px; background: #fff; }
/* editorial */
.tt-editorial { background: linear-gradient(160deg, #0b2116, #16392a); }
.tt-editorial .a { left: 12px; top: 20px; width: 46%; height: 16px; background: #f6f1e6; }
.tt-editorial .b { left: 12px; top: 42px; width: 40%; height: 16px; background: #f6f1e6; }
.tt-editorial .c { left: 12px; top: 70px; width: 24%; height: 14px; border-radius: 99px; background: #c9a14a; }
.tt-editorial .d { right: 18px; top: 14px; width: 30%; height: 84px; border: 2px solid #c9a14a; border-bottom: 0; border-radius: 60px 60px 0 0; }
.tt-editorial .e { right: 14px; bottom: 10px; width: 38%; height: 22px; border-radius: 50%; background: #d9d2c2; }
/* saas */
.tt-saas { background: #fbfaf6; }
.tt-saas .a { left: 12px; top: 22px; width: 42%; height: 14px; background: #143827; }
.tt-saas .b { left: 12px; top: 44px; width: 34%; height: 8px; background: #cfd5ca; }
.tt-saas .c { left: 12px; top: 66px; width: 22%; height: 16px; border-radius: 6px; background: #1c4a35; }
.tt-saas .d { right: 12px; top: 16px; width: 42%; height: 96px; border-radius: 10px; background: #fff; border: 1px solid #e7e5dc; box-shadow: 0 10px 20px -12px rgba(0,0,0,.3); }
.tt-saas .e { right: 22px; top: 60px; width: 34%; height: 40px; border-radius: 8px; background: #1c4a35; }
/* komunitas */
.tt-komunitas { background: linear-gradient(90deg, rgba(14,34,23,.95) 45%, rgba(14,34,23,.2)), radial-gradient(circle at 75% 40%, #e8a9b3 0 18%, #c9b69a 19% 40%, #6f7d63 41%); }
.tt-komunitas .a { left: 12px; top: 18px; width: 42%; height: 14px; background: #fff; }
.tt-komunitas .b { left: 12px; top: 38px; width: 36%; height: 14px; background: #fff; }
.tt-komunitas .c { left: 12px; top: 62px; width: 24%; height: 14px; border-radius: 6px; background: #c9a14a; }
.tt-komunitas .d { left: 12px; right: 12px; bottom: 10px; height: 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); background: rgba(14,34,23,.5); }
.tt-komunitas .e { display: none; }

/* Template cepat biolink */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tpl-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tpl-emoji { font-size: 26px; line-height: 1; }
.tpl-card strong { font-size: 15px; }
.tpl-card small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.tpl-card ul { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 5px; }
.tpl-card li { font-size: 11.5px; font-weight: 600; color: #fff; padding: 6px 10px; border-radius: 8px; background: linear-gradient(100deg, var(--c1), var(--c2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-card li.c-light { color: var(--ink); }
.tpl-card .btn { margin-top: auto; }

/* Crop foto */
.crop-open, .crop-open body { overflow: hidden; }
.crop-modal { position: fixed; inset: 0; z-index: 200; background: rgba(10,20,14,.72); display: grid; place-items: center; padding: 16px; }
.crop-modal[hidden] { display: none; }
.crop-box { width: min(440px, 100%); max-height: 100%; overflow: auto; background: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.crop-head { display: flex; flex-direction: column; gap: 2px; }
.crop-head strong { font-size: 17px; }
.crop-head small { color: var(--muted); font-size: 13px; }
.crop-stage { position: relative; width: 100%; max-height: 62vh; overflow: hidden; border-radius: 12px; background: #111 repeating-conic-gradient(#222 0 25%, #1a1a1a 0 50%) 0 0 / 20px 20px; touch-action: none; cursor: grab; user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 33.2%, rgba(255,255,255,.35) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.35) 66.6%, transparent 66.8%), linear-gradient(0deg, transparent 33.2%, rgba(255,255,255,.35) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.35) 66.6%, transparent 66.8%); }
.crop-stage.round .crop-grid { background: radial-gradient(circle at center, transparent 70%, rgba(0,0,0,.45) 70.5%); }
.crop-status { margin: 0; min-height: 18px; font-size: 13px; color: var(--leaf); }
.crop-zoom { display: flex; align-items: center; gap: 10px; }
.crop-zoom input { flex: 1; accent-color: var(--leaf); }
.crop-zoom span { font-weight: 700; color: var(--muted); width: 14px; text-align: center; }
.crop-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.crop-foot { display: flex; justify-content: flex-end; gap: 8px; }
.crop-foot .btn-pri { flex: 1; }
.ch-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ch-bars li { display: grid; grid-template-columns: 150px 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; }
.ch-bars i { display: block; height: 10px; width: var(--w); min-width: 4px; border-radius: 99px; background: var(--leaf); }
.ch-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.ch-pill { margin-top: 4px; font-size: 11px; height: 20px; }
.side-close { display: none; position: absolute; top: 14px; right: 12px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; place-items: center; cursor: pointer; z-index: 2; }
.side-close:hover { background: rgba(255,255,255,.14); }
.side-close:focus-visible { outline: 3px solid rgba(201,161,74,.8); outline-offset: 2px; }
@media (max-width: 960px) {
  .side { position: fixed; }
  .side.open .side-close { display: grid; }
  .side-brand { padding-right: 52px; }
  .side { overflow-y: auto; }
}
.bprod-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.bprod-tools input[type="search"] { flex: 1 1 200px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; }
.bprod-tools [data-prod-count] { margin-left: auto; }
.bown { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bown-img { width: 84px; height: 84px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--faint); overflow: hidden; }
.bown-img img { width: 100%; height: 100%; object-fit: cover; }
.bown-fields { flex: 1; display: grid; gap: 8px; min-width: 0; }
.bown-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.bown-file { display: grid; gap: 4px; font-size: 12px; }
@media (max-width: 600px) { .bown { flex-direction: column; } .bown-img { width: 100%; height: 150px; } }
.btesti.is-waiting { border-color: var(--gold, #c9a14a); background: #fffaf0; }
.check-del { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); align-self: end; padding-bottom: 8px; }
.lahir { display: grid; grid-template-columns: 0.8fr 1.3fr 1fr; gap: 8px; }
.lahir select { min-height: 48px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; background: #fff; }
.lahir select:focus { border-color: var(--leaf); outline: none; }

/* ——— Beranda mitra: langkah & bantuan ——— */
.mitra-url strong { display: block; font-size: 20px; color: var(--pri); word-break: break-all; }
.bar-progress { height: 9px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.bar-progress i { display: block; height: 100%; border-radius: 99px; background: var(--leaf); transition: width .4s ease; }
.langkah { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.langkah li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.langkah li.is-ok { background: #f5faf6; border-color: #d8ebdc; }
.langkah li > div { flex: 1; min-width: 0; }
.langkah strong { display: block; font-size: 15px; }
.langkah small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.langkah-no { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--tint); color: var(--muted); }
.langkah li.is-ok .langkah-no { background: var(--leaf); color: #fff; }
.bantu-grid { display: grid; gap: 10px; }
@media (min-width: 720px) { .bantu-grid { grid-template-columns: repeat(3, 1fr); } }
.bantu { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; }
.bantu:hover { border-color: var(--leaf); }
.bantu > span { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--leaf); }
.bantu strong { display: block; font-size: 14.5px; }
.bantu small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 560px) { .langkah li { flex-wrap: wrap; } .langkah li .btn { width: 100%; } }
.sos-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.sos-row input { flex: 1; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; min-width: 0; }
.sos-row .sos-x { flex: 0 0 150px; }
.sos-row .check { flex: none; font-size: 13px; }
@media (max-width: 560px) { .sos-row .sos-x { flex: 0 0 110px; } }
.tsw-kilau i:nth-child(1){background:#04120c}.tsw-kilau i:nth-child(2){background:#0f7a52}.tsw-kilau i:nth-child(3){background:#e3c07a}
.tsw-senja i:nth-child(1){background:#fff5ee}.tsw-senja i:nth-child(2){background:#ffb07c}.tsw-senja i:nth-child(3){background:#f2743a}
.tsw-mono i:nth-child(1){background:#f7f7f7}.tsw-mono i:nth-child(2){background:#9a9a9a}.tsw-mono i:nth-child(3){background:#101010}
.tsw-pastel i:nth-child(1){background:#f7f4ff}.tsw-pastel i:nth-child(2){background:#a7ead6}.tsw-pastel i:nth-child(3){background:#8b7bf0}
.tsw-neon i:nth-child(1){background:#060b1c}.tsw-neon i:nth-child(2){background:#35d6ff}.tsw-neon i:nth-child(3){background:#b06bff}
.tsw-kertas i:nth-child(1){background:#f8f1e4}.tsw-kertas i:nth-child(2){background:#c59b66}.tsw-kertas i:nth-child(3){background:#7d5227}
.tsw-royal i:nth-child(1){background:#16092b}.tsw-royal i:nth-child(2){background:#6b3fa0}.tsw-royal i:nth-child(3){background:#d9b45f}
.tsw-etalase i:nth-child(1){background:#fff4f7}.tsw-etalase i:nth-child(2){background:#f7a9c2}.tsw-etalase i:nth-child(3){background:#b8234f}

/* Pratinjau telepon: warna untuk 8 tema baru */
.phone-prev[data-theme-now="etalase"]{--bg:#fff4f7;--ink:#2b1420;--muted:#7a4d60;--line:#f0dde3;--card:#fff;--accent:#e75480;--accent-2:#f7a9c2;--accent-soft:#fbe9ee}
.phone-prev[data-theme-now="kilau"]{--bg:#04120d;--ink:#edf6f1;--muted:#a9c0b6;--line:rgba(236,246,241,.14);--card:#10261e;--accent:#3ddc9a;--accent-2:#7af0c2;--accent-soft:rgba(61,220,154,.16)}
.phone-prev[data-theme-now="senja"]{--bg:#fff5ee;--ink:#3a2018;--muted:#8a6355;--line:#f6ddd0;--card:#fffaf6;--accent:#f2743a;--accent-2:#ffb07c;--accent-soft:#ffeade}
.phone-prev[data-theme-now="mono"]{--bg:#f7f7f7;--ink:#101010;--muted:#6b6b6b;--line:#e4e4e4;--card:#fff;--accent:#101010;--accent-2:#4a4a4a;--accent-soft:#f0f0f0}
.phone-prev[data-theme-now="pastel"]{--bg:#f7f4ff;--ink:#2f2a41;--muted:#6f6885;--line:#e9e4f7;--card:#fffdff;--accent:#8b7bf0;--accent-2:#b6a9ff;--accent-soft:#efebff}
.phone-prev[data-theme-now="neon"]{--bg:#060b1c;--ink:#e8f0ff;--muted:#94a4c8;--line:rgba(120,200,255,.22);--card:#0e1630;--accent:#35d6ff;--accent-2:#b06bff;--accent-soft:rgba(53,214,255,.16)}
.phone-prev[data-theme-now="kertas"]{--bg:#f8f1e4;--ink:#2c2116;--muted:#7a6752;--line:#e6d8c3;--card:#fffdf7;--accent:#9a6a3a;--accent-2:#c59b66;--accent-soft:#f4e9d8}
.phone-prev[data-theme-now="royal"]{--bg:#16092b;--ink:#f4eefb;--muted:#bfaed6;--line:rgba(244,238,251,.14);--card:#26163e;--accent:#d9b45f;--accent-2:#f0d79a;--accent-soft:rgba(217,180,95,.18)}

/* Kartu tema jadi pratinjau mini */
.theme-card { position: relative; }
.tprev { display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); background: var(--tp-bg); padding: 8px 8px 9px; }
.tprev i { display: block; border-radius: 99px; }
.tprev .tp-top { height: 26px; border-radius: 8px; background: var(--tp-hero); margin-bottom: 7px; position: relative; }
.tprev .tp-top::after { content: ""; position: absolute; left: 50%; top: 9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--tp-card); border: 2px solid var(--tp-acc); }
.tprev .tp-b1 { height: 9px; background: var(--tp-acc); margin-bottom: 5px; }
.tprev .tp-b2 { height: 9px; background: var(--tp-soft); margin-bottom: 5px; }
.tprev .tp-b3 { height: 9px; width: 65%; background: var(--tp-soft); }
[data-t="cantik"]  { --tp-bg:#fdf4f6; --tp-hero:linear-gradient(120deg,#d9577f,#f39bb4); --tp-acc:#d9577f; --tp-soft:#fde6ed; --tp-card:#fff }
[data-t="segar"]   { --tp-bg:#f3faf4; --tp-hero:linear-gradient(120deg,#2f9a5d,#8fd3a7); --tp-acc:#2f9a5d; --tp-soft:#e3f4e8; --tp-card:#fff }
[data-t="langit"]  { --tp-bg:#f3f7fd; --tp-hero:linear-gradient(120deg,#3b7fd9,#9cc2f3); --tp-acc:#3b7fd9; --tp-soft:#e4eefb; --tp-card:#fff }
[data-t="hijau"]   { --tp-bg:#0f2a1c; --tp-hero:linear-gradient(120deg,#1d4a31,#c9a14a); --tp-acc:#c9a14a; --tp-soft:rgba(201,161,74,.22); --tp-card:#163826 }
[data-t="etalase"] { --tp-bg:#fff4f7; --tp-hero:linear-gradient(160deg,#f7a9c2,#b8234f); --tp-acc:#e75480; --tp-soft:#fbe9ee; --tp-card:#fff }
[data-t="kilau"]   { --tp-bg:#04120d; --tp-hero:linear-gradient(120deg,#0f7a52,#3ddc9a); --tp-acc:#3ddc9a; --tp-soft:rgba(61,220,154,.22); --tp-card:#10261e }
[data-t="senja"]   { --tp-bg:#fff5ee; --tp-hero:linear-gradient(120deg,#f2743a,#ffd9a8); --tp-acc:#f2743a; --tp-soft:#ffeade; --tp-card:#fffaf6 }
[data-t="mono"]    { --tp-bg:#f7f7f7; --tp-hero:#101010; --tp-acc:#101010; --tp-soft:#e4e4e4; --tp-card:#fff }
[data-t="pastel"]  { --tp-bg:#f7f4ff; --tp-hero:linear-gradient(120deg,#b6a9ff,#a7ead6); --tp-acc:#8b7bf0; --tp-soft:#efebff; --tp-card:#fff }
[data-t="neon"]    { --tp-bg:#060b1c; --tp-hero:linear-gradient(120deg,#35d6ff,#b06bff); --tp-acc:#35d6ff; --tp-soft:rgba(53,214,255,.22); --tp-card:#0e1630 }
[data-t="kertas"]  { --tp-bg:#f8f1e4; --tp-hero:linear-gradient(120deg,#9a6a3a,#c59b66); --tp-acc:#9a6a3a; --tp-soft:#f4e9d8; --tp-card:#fffdf7 }
[data-t="royal"]   { --tp-bg:#16092b; --tp-hero:linear-gradient(120deg,#6b3fa0,#d9b45f); --tp-acc:#d9b45f; --tp-soft:rgba(217,180,95,.22); --tp-card:#26163e }
.lok-cari { display: flex; gap: 8px; }
.lok-cari input { flex: 1; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; min-width: 0; }
.lok-hasil { display: grid; gap: 6px; margin-top: 10px; }
.lok-hasil button { text-align: left; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13.5px; line-height: 1.45; }
.lok-hasil button:hover { border-color: var(--leaf); background: var(--tint); }
.lok-hasil .kosong { color: var(--muted); font-size: 13.5px; padding: 6px 2px; }
.lok-pilih { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 11px 13px; border: 1px solid #d8ebdc; background: #f5faf6; border-radius: 12px; }
.lok-pilih strong { display: block; font-size: 14px; }
.lok-pilih small { display: block; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.lok-pilih .btn { margin-left: auto; flex: none; }

/* ——— galeri templat: pratinjau + daftar fitur ——— */
.tpl-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tpl-card { gap: 8px; position: relative; }
.tpl-card.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217, 87, 127, .14); }
.tprev-lg { display: flex; flex-direction: column; padding: 9px 9px 11px; border-radius: 12px; }
.tprev-lg i { flex: none; }
.tprev-lg .tp-top { height: 34px; margin-bottom: 7px; }
.tprev-lg .tp-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.tprev-lg .tp-tabs b { flex: 1; height: 7px; border-radius: 99px; background: var(--tp-soft); }
.tprev-lg .tp-tabs b:first-child { background: var(--tp-acc); }
.tprev-lg .tp-tick { height: 6px; border-radius: 99px; background: var(--tp-acc); opacity: .5; margin-bottom: 6px; }
.tprev-lg .tp-promo { height: 14px; border-radius: 7px; background: linear-gradient(100deg, var(--tp-acc), var(--tp-soft)); margin-bottom: 6px; }
.tprev-lg .tp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 7px; }
.tprev-lg .tp-grid b { aspect-ratio: 1; border-radius: 5px; background: var(--tp-card); border: 1px solid var(--tp-soft); }
.tpl-card[data-lay="etalase"] .tp-grid { order: -1; margin: 0 0 7px; }
.tpl-card[data-lay="etalase"] .tp-top { order: -2; }
.tpl-card[data-lay="panjang"] .tp-grid { order: 1; margin: 7px 0 0; }
.tpl-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tpl-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #0f7a3d; background: #e4f5ea; border-radius: 99px; padding: 3px 8px; font-style: normal; }
.tpl-fitur { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 3px; }
.tpl-fitur li { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); background: none; padding: 0; border-radius: 0; white-space: normal; }
.tpl-fitur li.off { color: var(--muted); font-weight: 500; opacity: .75; }
.tpl-fitur li svg { flex: none; }
.tpl-fitur li.on svg { color: #0f7a3d; }
.tpl-fitur li.off svg { opacity: .6; }
.tpl-act { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }

.undo-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; padding: 11px 14px; border-radius: 12px; background: #fff7e8; border: 1px solid #f3dcb0; font-size: 13.5px; font-weight: 600; }
.undo-bar span { display: flex; align-items: center; gap: 8px; }

.lay-opsi { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.lay-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.lay-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217, 87, 127, .14); }
.lay-card input { margin: 0; flex: none; }
.lay-ic { display: grid; gap: 3px; width: 26px; flex: none; }
.lay-ic b { height: 5px; border-radius: 2px; background: #d9d3d6; }
.lay-ic b:first-child { background: var(--brand); }
.lay-etalase b:first-child { height: 11px; border-radius: 3px; }
.lay-panjang { gap: 2px; }

/* ——— verifikasi WhatsApp ——— */
.wa-ver { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; flex-wrap: wrap; }
.wa-ver.is-ok { background: #edf8f1; border-color: #bfe3cd; }
.wa-ver > div { flex: 1; min-width: 160px; display: grid; gap: 2px; }
.wa-ver strong { font-size: 15px; }
.wa-ver small { color: var(--muted); font-size: 12.5px; }
.wa-ver form { margin: 0; }
.wa-ver-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #25d366; color: #fff; }
.otp-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.otp-form .fld { flex: 1; min-width: 190px; }
.otp-input { font-size: 26px; font-weight: 800; letter-spacing: .34em; text-align: center; font-variant-numeric: tabular-nums; }
.wa-bantu { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; padding: 10px 13px; border-radius: 11px; background: #fff7e8; border: 1px solid #f3dcb0; font-size: 13px; font-weight: 600; }
.wa-bantu span { display: flex; align-items: center; gap: 8px; }
.wa-stat { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }

/* ——— tabel angka di dashboard ——— */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tbl-angka { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl-angka th, .tbl-angka td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl-angka thead th { background: #faf8f9; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.tbl-angka th:first-child, .tbl-angka td:first-child { text-align: left; white-space: normal; }
.tbl-angka tbody th { font-weight: 600; }
.tbl-angka tbody tr:last-child th, .tbl-angka tbody tr:last-child td { border-bottom: 0; }
.tbl-angka td strong { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.tbl-angka td small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.tbl-angka tr.is-total th, .tbl-angka tr.is-total td { background: #faf8f9; }
.tbl-artikel tbody th a { color: inherit; font-weight: 600; }
.tbl-artikel td { font-variant-numeric: tabular-nums; }
