/* Classy ID — design system (light/dark) */

:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;

  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --brand-500: #3b82f6;
  --brand-soft: #e8efff;
  --brand-ink: #1d4ed8;
  --on-brand: #ffffff;
  --link: #1d4ed8;

  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --accent-ink: #92400e;

  --navy: #0b1530;
  --navy-2: #13224a;

  --success: #047857;
  --success-soft: #e3f5ec;
  --danger: #b91c1c;
  --danger-soft: #fdecec;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --info: #0369a1;
  --info-soft: #e0f2fe;
  --violet: #6d28d9;
  --violet-soft: #ede9fe;

  --wa: #25d366;
  --wa-ink: #073b1d;
  --chat-bg: #efeae2;
  --chat-in: #ffffff;
  --chat-out: #d9fdd3;

  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .08);
  --shadow-md: 0 4px 12px -2px rgb(15 23 42 / .08), 0 2px 6px -2px rgb(15 23 42 / .06);
  --shadow-lg: 0 24px 48px -16px rgb(15 23 42 / .22);

  --radius: 1rem;
  --radius-sm: .625rem;
  --radius-lg: 1.5rem;
  --header-h: 64px;
  --container: 72rem;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a1020;
    --surface: #111a2e;
    --surface-2: #17223b;
    --border: #22304f;
    --border-strong: #31436b;
    --text: #e7edf8;
    --muted: #a6b3ca;
    --subtle: #8190aa;
    --brand: #2563eb;
    --brand-hover: #3b82f6;
    --brand-500: #60a5fa;
    --brand-soft: rgb(59 130 246 / .16);
    --brand-ink: #93c5fd;
    --link: #8ab8ff;
    --accent-soft: rgb(245 158 11 / .16);
    --accent-ink: #fcd34d;
    --navy: #060b18;
    --navy-2: #0f1a36;
    --success: #34d399;
    --success-soft: rgb(16 185 129 / .15);
    --danger: #f87171;
    --danger-soft: rgb(239 68 68 / .15);
    --warning: #fbbf24;
    --warning-soft: rgb(245 158 11 / .15);
    --info: #7dd3fc;
    --info-soft: rgb(14 165 233 / .15);
    --violet: #c4b5fd;
    --violet-soft: rgb(139 92 246 / .18);
    --chat-bg: #0d1626;
    --chat-in: #1b2740;
    --chat-out: #144d37;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 4px 14px -2px rgb(0 0 0 / .45);
    --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1020;
  --surface: #111a2e;
  --surface-2: #17223b;
  --border: #22304f;
  --border-strong: #31436b;
  --text: #e7edf8;
  --muted: #a6b3ca;
  --subtle: #8190aa;
  --brand: #2563eb;
  --brand-hover: #3b82f6;
  --brand-500: #60a5fa;
  --brand-soft: rgb(59 130 246 / .16);
  --brand-ink: #93c5fd;
  --link: #8ab8ff;
  --accent-soft: rgb(245 158 11 / .16);
  --accent-ink: #fcd34d;
  --navy: #060b18;
  --navy-2: #0f1a36;
  --success: #34d399;
  --success-soft: rgb(16 185 129 / .15);
  --danger: #f87171;
  --danger-soft: rgb(239 68 68 / .15);
  --warning: #fbbf24;
  --warning-soft: rgb(245 158 11 / .15);
  --info: #7dd3fc;
  --info-soft: rgb(14 165 233 / .15);
  --violet: #c4b5fd;
  --violet-soft: rgb(139 92 246 / .18);
  --chat-bg: #0d1626;
  --chat-in: #1b2740;
  --chat-out: #144d37;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-md: 0 4px 14px -2px rgb(0 0 0 / .45);
  --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / .6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-500); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: .5rem 1rem; border-radius: .5rem; font-weight: 700; }
.skip-link:focus { top: .75rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: .8rem; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 700; line-height: 1.25; white-space: nowrap;
  text-decoration: none !important; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-light:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-accent { background: var(--accent); color: #2b1700; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: #fbbf24; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #3be07a; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: .45rem .8rem; font-size: .8125rem; border-radius: .6rem; }
.btn-lg { padding: .9rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: .55rem; width: 2.5rem; height: 2.5rem; border-radius: .7rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; white-space: nowrap; line-height: 1.5;
}
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-dot::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.25rem; }
@media (min-width: 640px) { .card-pad { padding: 1.5rem; } }
.card-hover { transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-hover:hover { border-color: color-mix(in srgb, var(--brand-500) 45%, var(--border)); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: .8rem; flex: none;
  background: var(--brand-soft); color: var(--brand-ink); font-size: 1.1rem;
}
.icon-tile.is-accent { background: var(--accent-soft); color: var(--accent-ink); }
.icon-tile.is-danger { background: var(--danger-soft); color: var(--danger); }
.icon-tile.is-success { background: var(--success-soft); color: var(--success); }
.icon-tile.is-violet { background: var(--violet-soft); color: var(--violet); }
.icon-tile.is-info { background: var(--info-soft); color: var(--info); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .bar { display: flex; align-items: center; gap: .75rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--subtle); letter-spacing: 0; margin-top: -.15rem; }
.nav-links { display: none; align-items: center; gap: .25rem; margin-left: auto; }
.nav-links a { padding: .5rem .75rem; border-radius: .6rem; color: var(--muted); font-weight: 600; font-size: .9375rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav-links + .header-actions { margin-left: .5rem; }
.header-cta { display: none; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none !important; }
}
.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .fa-sun { display: inline-block; }
  :root:not([data-theme="light"]) .theme-toggle .fa-moon { display: none; }
}
.mobile-nav { border-top: 1px solid var(--border); background: var(--surface); padding: .75rem 0 1rem; box-shadow: var(--shadow-md); }
.mobile-nav a:not(.btn) { display: flex; align-items: center; gap: .75rem; padding: .8rem .25rem; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav a:not(.btn):hover { text-decoration: none; color: var(--brand-ink); }
.mobile-nav a i { width: 1.25rem; color: var(--subtle); text-align: center; }
.mobile-nav .btn { margin-top: 1rem; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---------- Sections ---------- */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 42rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.section-title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); margin-top: .6rem; }
.section-lead { margin-top: .85rem; color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.text-muted { color: var(--muted); }
.text-subtle { color: var(--subtle); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: .75rem; }
.row-wrap { display: flex; flex-wrap: wrap; gap: .5rem; }
.spacer { flex: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 3rem 3.5rem; }
@media (min-width: 768px) { .hero { padding-block: 4.5rem 5rem; } }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 42rem; z-index: -1;
  background:
    radial-gradient(40rem 22rem at 15% 10%, color-mix(in srgb, var(--brand-500) 18%, transparent), transparent 70%),
    radial-gradient(30rem 20rem at 90% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.hero h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.4rem); letter-spacing: -.035em; margin-top: 1rem; }
.hero h1 .hl { color: var(--brand-ink); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em; background: color-mix(in srgb, var(--accent) 45%, transparent); z-index: -1; border-radius: 4px; }
.hero-lead { margin-top: 1.1rem; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }
@media (min-width: 480px) { .hero-actions { flex-direction: row; } }
.ticks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); font-weight: 600; }
.ticks li { display: inline-flex; align-items: center; gap: .45rem; }
.ticks i { color: var(--success); }

/* Hero visual: dashboard + WhatsApp mockup */
.mockup { position: relative; padding-bottom: 2.5rem; }
.window { background: var(--surface); border: 1px solid var(--border); border-radius: 1.1rem; box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.window-bar span { width: .6rem; height: .6rem; border-radius: 50%; background: var(--border-strong); }
.window-bar span:nth-child(1) { background: #f87171; } .window-bar span:nth-child(2) { background: #fbbf24; } .window-bar span:nth-child(3) { background: #34d399; }
.window-bar .url { margin-left: .6rem; flex: 1; font-size: .72rem; color: var(--subtle); background: var(--surface); border: 1px solid var(--border); border-radius: .45rem; padding: .15rem .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-body { padding: 1rem; display: grid; gap: .75rem; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.kpi { border: 1px solid var(--border); border-radius: .75rem; padding: .6rem .7rem; background: var(--bg); min-width: 0; }
.kpi b { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.kpi span { font-size: .68rem; color: var(--subtle); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .up { color: var(--success); font-size: .66rem; font-weight: 700; }
.chart { border: 1px solid var(--border); border-radius: .75rem; padding: .75rem; background: var(--bg); }
.chart-head { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: .5rem; }
.bars { display: flex; align-items: flex-end; gap: .4rem; height: 6.5rem; }
.bars i { flex: 1; border-radius: .35rem .35rem .15rem .15rem; background: linear-gradient(180deg, var(--brand-500), color-mix(in srgb, var(--brand-500) 40%, transparent)); }
.bars i:nth-child(7) { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.list-mini { display: grid; gap: .4rem; }
.list-mini div { display: flex; align-items: center; gap: .5rem; font-size: .75rem; padding: .45rem .6rem; border-radius: .6rem; background: var(--bg); border: 1px solid var(--border); }
.list-mini div b { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone {
  position: absolute; right: -.5rem; bottom: 0; width: min(15.5rem, 62%);
  border-radius: 1.4rem; border: 6px solid #0f172a; background: var(--chat-bg); box-shadow: var(--shadow-lg); overflow: hidden;
}
@media (max-width: 479px) { .phone { position: relative; right: auto; width: 88%; margin: -1.5rem 0 0 auto; } .mockup { padding-bottom: 0; } }
.phone-head { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; background: #075e54; color: #fff; font-size: .78rem; font-weight: 700; }
.phone-head .avatar { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.phone-head small { display: block; font-weight: 500; opacity: .8; font-size: .65rem; }
.chat { display: flex; flex-direction: column; gap: .45rem; padding: .7rem; }
.bubble { max-width: 88%; padding: .45rem .65rem; border-radius: .8rem; font-size: .72rem; line-height: 1.45; box-shadow: 0 1px 1px rgb(0 0 0 / .08); color: var(--text); }
.bubble.in { align-self: flex-start; background: var(--chat-in); border-top-left-radius: .2rem; }
.bubble.out { align-self: flex-end; background: var(--chat-out); border-top-right-radius: .2rem; }
.bubble time { display: block; text-align: right; font-size: .6rem; color: var(--subtle); margin-top: .1rem; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); padding: 1.25rem 1rem; text-align: center; }
.stat b { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.03em; color: var(--brand-ink); }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- Problem → solution ---------- */
.pain { position: relative; display: flex; flex-direction: column; }
.pain h3 { font-size: 1.05rem; margin-top: .9rem; }
.pain p { margin-top: .4rem; color: var(--muted); font-size: .92rem; flex: 1; }
.pain .fix { display: flex; gap: .5rem; margin-top: 1rem; padding: .7rem .8rem; border-radius: .75rem; background: var(--brand-soft); color: var(--brand-ink); font-size: .86rem; font-weight: 700; }
.pain .fix i { margin-top: .2rem; }

/* ---------- Services ---------- */
.service h3 { font-size: 1.08rem; margin-top: 1rem; }
.service p { margin-top: .45rem; color: var(--muted); font-size: .93rem; }
.service ul { margin-top: .9rem; display: grid; gap: .35rem; font-size: .88rem; color: var(--muted); }
.service li { display: flex; gap: .5rem; }
.service li i { color: var(--brand-ink); margin-top: .3rem; font-size: .75rem; }

/* ---------- Portfolio ---------- */
.portfolio-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; }
.portfolio-card:hover { text-decoration: none; }
.portfolio-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.portfolio-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.04); }
.thumb-art {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--tone, var(--brand-500)) 35%, transparent), transparent 55%),
    radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 50%),
    linear-gradient(135deg, var(--navy-2), var(--navy));
  color: #fff;
}
.thumb-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px); background-size: 22px 22px; }
.thumb-art i { position: relative; z-index: 1; font-size: 2.6rem; filter: drop-shadow(0 6px 16px rgb(0 0 0 / .35)); }
.tone-whatsapp { --tone: #25d366; } .tone-monitoring { --tone: #38bdf8; } .tone-ecommerce { --tone: #f59e0b; }
.tone-mobile { --tone: #a78bfa; } .tone-web { --tone: #3b82f6; } .tone-other { --tone: #f472b6; }
.portfolio-thumb .badge { position: absolute; left: .75rem; top: .75rem; z-index: 2; background: rgb(255 255 255 / .92); color: #0f172a; }
.portfolio-body { padding: 1.15rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.portfolio-body h2, .portfolio-body h3 { font-size: 1.08rem; }
.portfolio-client { font-size: .85rem; color: var(--subtle); font-weight: 600; margin-top: .25rem; display: flex; align-items: center; gap: .4rem; }
.portfolio-body p { margin-top: .6rem; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; padding: 0; list-style: none; }
.chip { font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: .45rem; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.portfolio-more { margin-top: auto; padding-top: 1rem; font-size: .88rem; font-weight: 700; color: var(--brand-ink); display: inline-flex; align-items: center; gap: .4rem; }
.portfolio-card:hover .portfolio-more i { transform: translateX(3px); }
.portfolio-more i { transition: transform .2s; }
.filter-bar { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.5rem; scrollbar-width: thin; }
.filter-bar a { flex: none; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .875rem; }
.filter-bar a:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); }
.filter-bar a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty i { font-size: 2rem; color: var(--subtle); margin-bottom: .75rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; }
.step-num { position: absolute; right: 1.25rem; top: 1rem; font-size: 2.6rem; font-weight: 800; color: var(--surface-2); letter-spacing: -.04em; line-height: 1; }
.step h3 { font-size: 1.05rem; margin-top: .9rem; position: relative; }
.step p { margin-top: .4rem; font-size: .92rem; color: var(--muted); position: relative; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 2rem 1.25rem; color: #fff;
  background: radial-gradient(30rem 16rem at 100% 0%, rgb(245 158 11 / .28), transparent 60%), linear-gradient(135deg, #1e3a8a, var(--navy));
}
@media (min-width: 768px) { .cta-band { padding: 3rem; } }
.cta-band h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.cta-band p { color: #cbd5e1; margin-top: .6rem; max-width: 36rem; }
.cta-band .row-wrap { margin-top: 1.5rem; gap: .75rem; }
.cta-band .btn-light { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .25); }
.cta-band .btn-light:hover { background: rgb(255 255 255 / .16); }

/* ---------- Form ---------- */
.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.25fr .75fr; gap: 1.5rem; } }
.field { display: grid; gap: .4rem; }
.field + .field { margin-top: 1rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row + .field, .field + .field-row { margin-top: 1rem; }
.label { font-size: .875rem; font-weight: 700; }
.label .req { color: var(--danger); }
.hint { font-size: .78rem; color: var(--subtle); }
.input, .select, .textarea {
  width: 100%; padding: .72rem .9rem; border-radius: .75rem; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--subtle); opacity: .8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 22%, transparent); }
.textarea { resize: vertical; min-height: 7.5rem; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--subtle) 50%), linear-gradient(135deg, var(--subtle) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 52%, calc(100% - .8rem) 52%; background-size: .3rem .3rem; background-repeat: no-repeat; padding-right: 2.2rem; }
.input-group { position: relative; }
.input-group > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.input-group .input { padding-left: 2.6rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--brand); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: .8rem; font-size: .92rem; font-weight: 600; border: 1px solid transparent; }
.alert i { margin-top: .2rem; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-info { background: var(--info-soft); color: var(--info); }
.contact-list { display: grid; gap: .9rem; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list b { display: block; font-size: .92rem; }
.contact-list span, .contact-list a { font-size: .9rem; color: var(--muted); }
.side-dark { background: linear-gradient(160deg, #1e3a8a, var(--navy)); color: #e2e8f0; border-color: transparent; }
.side-dark h3 { color: #fff; }
.side-dark .text-muted, .side-dark .contact-list span, .side-dark .contact-list a { color: #b9c6dd; }
.side-dark .icon-tile { background: rgb(255 255 255 / .1); color: #fff; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.15rem; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border)); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--subtle); font-size: .8rem; transition: transform .2s; flex: none; }
.faq details[open] summary i { transform: rotate(180deg); }
.faq details p { padding-bottom: 1.1rem; color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c6dd; padding-block: 3rem 1.5rem; margin-top: 0; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #8a9bbb; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: .85rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.site-footer a { color: #b9c6dd; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; font-size: .82rem; color: #8a9bbb; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: .7rem; background: rgb(255 255 255 / .07); color: #fff; }
.socials a:hover { background: var(--brand); text-decoration: none; }

/* Floating WhatsApp (mobile) */
.wa-float { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 30; width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: var(--wa-ink); font-size: 1.6rem; box-shadow: var(--shadow-lg); }
.wa-float:hover { text-decoration: none; transform: scale(1.05); }

/* ---------- Detail page ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: var(--subtle); padding: 0; list-style: none; }
.breadcrumb a { color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--border-strong); }
.detail-hero { padding-block: 2rem 1rem; }
.detail-hero h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); margin-top: .9rem; }
.detail-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 20rem; } .detail-aside { position: sticky; top: calc(var(--header-h) + 1rem); } }
.detail-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; position: relative; border: 1px solid var(--border); }
.detail-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.prose { color: var(--muted); font-size: 1.02rem; white-space: pre-line; }
.prose-title { font-size: 1.2rem; margin-bottom: .75rem; }
.meta-list { display: grid; gap: .9rem; padding: 0; margin: 0; }
.meta-list dt { font-size: .78rem; color: var(--subtle); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.meta-list dd { margin: .15rem 0 0; font-weight: 700; }

/* ---------- Error pages ---------- */
.error-page { min-height: calc(100vh - var(--header-h) - 220px); display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.error-code { font-size: clamp(4.5rem, 3rem + 8vw, 8rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; background: linear-gradient(135deg, var(--brand-500), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-size: 1.6rem; margin-top: .75rem; }
.error-page p { color: var(--muted); margin-top: .6rem; max-width: 30rem; margin-inline: auto; }
.error-page .row-wrap { justify-content: center; margin-top: 1.5rem; }

/* Reveal on scroll (aktif hanya bila JS jalan & motion diizinkan) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* =====================================================================
   Admin
   ===================================================================== */
.admin-body { min-height: 100vh; }
.admin-shell { display: grid; min-height: 100vh; }
@media (min-width: 1024px) { .admin-shell { grid-template-columns: 16rem minmax(0, 1fr); } }
.sidebar { display: none; background: var(--surface); border-right: 1px solid var(--border); padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; flex-direction: column; }
@media (min-width: 1024px) { .sidebar { display: flex; } }
.sidebar nav { display: grid; gap: .25rem; margin-top: 1.75rem; }
.side-link { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border-radius: .7rem; color: var(--muted); font-weight: 600; font-size: .93rem; }
.side-link i { width: 1.15rem; text-align: center; }
.side-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.side-link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.side-link .count { margin-left: auto; }
.sidebar-foot { margin-top: auto; display: grid; gap: .25rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.sidebar-foot form, .mobile-nav form { margin: 0; }
.sidebar-foot button.side-link, .mobile-nav button.side-link { width: 100%; border: 0; background: none; text-align: left; }
.admin-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .75rem; padding: .75rem 16px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .admin-topbar { padding-inline: 24px; } }
.admin-topbar h1 { font-size: 1.15rem; }
.admin-topbar .brand-mark { width: 2rem; height: 2rem; }
@media (min-width: 1024px) { .admin-topbar .only-mobile { display: none !important; } }
.admin-main { padding: 1.25rem 16px 3rem; max-width: 80rem; width: 100%; }
@media (min-width: 640px) { .admin-main { padding: 1.5rem 24px 3rem; } }
.admin-mobile-nav { padding: .5rem 16px 1rem; }
.kpi-card { display: flex; gap: .9rem; align-items: center; }
.kpi-card b { display: block; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.kpi-card span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; justify-content: space-between; margin-bottom: 1rem; }
.panel-head h2 { font-size: 1.05rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.toolbar .input-group { flex: 1 1 14rem; }
.toolbar .select { width: auto; flex: 0 1 12rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--subtle); font-weight: 700; padding: .75rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table .actions { display: flex; gap: .35rem; justify-content: flex-end; }
.cell-title { font-weight: 700; }
.cell-sub { font-size: .8rem; color: var(--subtle); margin-top: .15rem; max-width: 28rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Mobile: tabel jadi kartu */
@media (max-width: 767px) {
  .table-wrap.stack { border: 0; background: none; overflow: visible; }
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .9rem; margin-bottom: .75rem; box-shadow: var(--shadow-sm); }
  .table.stack td { border: 0; padding: .35rem 0; display: flex; gap: .75rem; justify-content: space-between; align-items: flex-start; }
  .table.stack td::before { content: attr(data-label); font-size: .72rem; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .04em; flex: none; padding-top: .15rem; }
  .table.stack td.td-main { display: block; padding-bottom: .5rem; border-bottom: 1px solid var(--border); margin-bottom: .25rem; }
  .table.stack td.td-main::before { display: none; }
  .table.stack td > :last-child { text-align: right; }
  .table.stack td.td-main > :last-child { text-align: left; }
  .table.stack .actions { justify-content: flex-end; }
}

.timeline { display: grid; gap: 0; padding: 0; list-style: none; }
.timeline li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline .icon-tile { width: 2.1rem; height: 2.1rem; font-size: .85rem; border-radius: .6rem; }
.timeline p { font-size: .88rem; overflow-wrap: anywhere; }
.timeline small { color: var(--subtle); font-size: .75rem; }

dialog.modal { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; width: min(40rem, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgb(2 6 23 / .55); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { font-size: 1.1rem; }
.modal-body { padding: 1.25rem; }
.modal-foot { display: flex; gap: .5rem; justify-content: flex-end; padding: 1rem 1.25rem; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
.detail-box { background: var(--surface-2); border-radius: .75rem; padding: .85rem 1rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; }

.toast-stack { position: fixed; z-index: 100; right: 16px; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: .5rem; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; max-width: 26rem; display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: .8rem; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 600; animation: toast-in .25s ease; }
.toast.success i { color: var(--success); } .toast.error i { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.skeleton { border-radius: .5rem; background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; height: 1rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Login */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 16px; position: relative; overflow: hidden; }
.auth-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(36rem 22rem at 10% 0%, color-mix(in srgb, var(--brand-500) 18%, transparent), transparent 70%), radial-gradient(30rem 20rem at 100% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.auth-card { width: min(26rem, 100%); }
.otp-input { letter-spacing: .6em; text-align: center; font-size: 1.4rem; font-weight: 800; padding-left: 1.2rem; }
.stepper { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.stepper span { flex: 1; height: .3rem; border-radius: 999px; background: var(--border); }
.stepper span.on { background: var(--brand-500); }

/* =====================================================================
   v2 — portfolio berbasis repository, story video, admin mobile-first
   ===================================================================== */
.tone-blue { --tone: #3b82f6; } .tone-amber { --tone: #f59e0b; } .tone-green { --tone: #10b981; }
.badge-tone-blue { background: var(--brand-soft); color: var(--brand-ink); }
.badge-tone-amber { background: var(--accent-soft); color: var(--accent-ink); }
.badge-tone-green { background: var(--success-soft); color: var(--success); }
.icon-tile.tone-blue { background: var(--brand-soft); color: var(--brand-ink); }
.icon-tile.tone-amber { background: var(--accent-soft); color: var(--accent-ink); }
.icon-tile.tone-green { background: var(--success-soft); color: var(--success); }

/* Kartu portfolio v2 */
.portfolio-thumb .thumb-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: 1; }
.portfolio-thumb .badges { position: absolute; left: .75rem; top: .75rem; right: .75rem; z-index: 2; display: flex; gap: .35rem; flex-wrap: wrap; }
.portfolio-thumb .badges .badge { position: static; background: rgb(255 255 255 / .92); color: #0f172a; }
.portfolio-thumb .badges .badge-video { background: #0f172a; color: #fff; }
.portfolio-thumb .thumb-title { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.25; text-shadow: 0 2px 12px rgb(0 0 0 / .45); }
.portfolio-meta { font-size: .8rem; color: var(--subtle); font-weight: 600; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.portfolio-meta .dot::before { content: "·"; margin-right: .4rem; }

/* Segmen "untuk siapa" */
.segment { display: flex; flex-direction: column; color: inherit; }
.segment:hover { text-decoration: none; }
.segment h3 { font-size: 1.1rem; margin-top: .9rem; }
.segment p { color: var(--muted); font-size: .92rem; margin-top: .4rem; flex: 1; }
.segment .more { margin-top: 1rem; font-weight: 700; font-size: .88rem; color: var(--brand-ink); display: flex; align-items: center; justify-content: space-between; }

/* Tabs / segmented */
.tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .25rem; background: var(--surface-2); border-radius: 999px; width: max-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; border: 0; background: none; padding: .5rem .95rem; border-radius: 999px; font-weight: 700; font-size: .875rem; color: var(--muted); display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs [aria-current="true"], .tabs [aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tabs .count { font-size: .72rem; background: var(--border); color: var(--muted); border-radius: 999px; padding: 0 .45rem; }

/* Story strip */
.stories { display: flex; gap: 1rem; overflow-x: auto; padding: .25rem .25rem 1rem; scrollbar-width: none; margin-bottom: 1rem; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 5.5rem; display: grid; justify-items: center; gap: .45rem; background: none; border: 0; padding: 0; color: var(--text); }
.story-ring { width: 4.6rem; height: 4.6rem; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--accent), #ef4444, var(--brand-500), var(--accent)); }
.story-ring img, .story-ring span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); display: grid; place-items: center; background: var(--navy); color: #fff; }
.story small { font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Viewer video portrait (story) */
dialog.story-viewer { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; margin: 0; }
dialog.story-viewer::backdrop { background: rgb(2 6 23 / .92); }
.story-stage { height: 100%; display: grid; place-items: center; padding: 12px; }
.story-frame { position: relative; height: min(100%, 880px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 1.25rem; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.story-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.story-top { position: absolute; left: 0; right: 0; top: 0; padding: .8rem .9rem 2.5rem; background: linear-gradient(rgb(0 0 0 / .6), transparent); color: #fff; display: flex; gap: .6rem; align-items: center; z-index: 2; }
.story-top b { font-size: .9rem; display: block; line-height: 1.2; }
.story-top small { opacity: .8; font-size: .75rem; }
.story-progress { position: absolute; left: .6rem; right: .6rem; top: .45rem; height: 3px; background: rgb(255 255 255 / .3); border-radius: 3px; overflow: hidden; z-index: 3; }
.story-progress i { display: block; height: 100%; width: 0; background: #fff; }
.story-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem .9rem .9rem; background: linear-gradient(transparent, rgb(0 0 0 / .7)); z-index: 2; display: grid; gap: .5rem; }
.story-close { position: absolute; top: .7rem; right: .6rem; z-index: 4; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: rgb(0 0 0 / .35); color: #fff; font-size: 1.1rem; }
.story-nav { position: absolute; top: 15%; bottom: 25%; width: 30%; z-index: 1; border: 0; background: none; }
.story-nav.prev { left: 0; } .story-nav.next { right: 0; }

/* Phone frame video di halaman detail */
.phone-video { position: relative; width: min(100%, 300px); margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 2rem; border: 8px solid #0f172a; background: #000; overflow: hidden; box-shadow: var(--shadow-lg); }
.phone-video video { width: 100%; height: 100%; object-fit: cover; }
.phone-video.landscape { aspect-ratio: 16 / 9; width: 100%; border-width: 6px; border-radius: 1.2rem; }
.phone-video.landscape video { object-fit: contain; }
.case-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .case-grid { grid-template-columns: 1fr 1fr; } }
.case-card h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.case-card p { color: var(--muted); margin-top: .7rem; white-space: pre-line; }
.check-list { list-style: none; padding: 0; display: grid; gap: .6rem; margin-top: .9rem; }
@media (min-width: 720px) { .check-list.two { grid-template-columns: 1fr 1fr; } }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check-list li i { color: var(--success); margin-top: .3rem; }
.git-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
.git-facts div { background: var(--surface-2); border-radius: .75rem; padding: .7rem .8rem; }
.git-facts b { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.git-facts span { font-size: .75rem; color: var(--subtle); font-weight: 600; }
.lang-bar { display: flex; height: .55rem; border-radius: 999px; overflow: hidden; gap: 2px; margin-top: 1rem; background: var(--surface-2); }
.lang-bar i { display: block; height: 100%; }
.lang-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .55rem; font-size: .78rem; color: var(--muted); }
.lang-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.lang-legend span::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); }

/* Pilihan chip (radio) di form */
.choice-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-chips label { cursor: pointer; }
.choice-chips input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chips span { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border-radius: .75rem; border: 1px solid var(--border-strong); background: var(--surface); font-size: .9rem; font-weight: 600; color: var(--muted); transition: all .15s; }
.choice-chips input:checked + span { border-color: var(--brand-500); background: var(--brand-soft); color: var(--brand-ink); }
.choice-chips input:focus-visible + span { outline: 3px solid var(--brand-500); outline-offset: 2px; }
.ref-pill { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: .75rem; background: var(--accent-soft); color: var(--accent-ink); font-size: .88rem; font-weight: 600; }
.ref-pill button { margin-left: auto; border: 0; background: none; color: inherit; }
.success-box { text-align: center; padding: 1.5rem 1rem; }
.success-box .icon-tile { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; border-radius: 50%; }
.success-box h3 { margin-top: 1rem; font-size: 1.25rem; }
.ticket { display: inline-block; margin-top: .6rem; padding: .35rem .8rem; border-radius: .6rem; background: var(--surface-2); font-weight: 800; letter-spacing: .05em; font-variant-numeric: tabular-nums; }

/* ---------------- Admin v2 ---------------- */
.admin-main { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .admin-main { padding-bottom: 3rem; } }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 1024px) { .bottom-nav { display: none; } }
.bottom-nav a { position: relative; display: grid; justify-items: center; gap: .15rem; padding: .55rem .25rem .5rem; color: var(--subtle); font-size: .68rem; font-weight: 700; }
.bottom-nav a i { font-size: 1.15rem; }
.bottom-nav a:hover { text-decoration: none; color: var(--text); }
.bottom-nav a[aria-current="page"] { color: var(--brand-ink); }
.bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-500); }
.nav-dot { position: absolute; top: .3rem; left: calc(50% + .35rem); min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .62rem; display: grid; place-items: center; font-weight: 800; }
:root[data-theme="dark"] .nav-dot { color: #1b0606; }
.side-link .count { margin-left: auto; font-size: .72rem; padding: .05rem .5rem; border-radius: 999px; background: var(--danger-soft); color: var(--danger); font-weight: 800; }
.admin-topbar .subtitle { font-size: .78rem; color: var(--subtle); font-weight: 600; display: block; }
.admin-topbar h1 { font-size: 1.1rem; line-height: 1.2; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.section-title-sm { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); margin: 1.75rem 0 .75rem; display: flex; align-items: center; gap: .5rem; }
.section-title-sm:first-child { margin-top: 0; }

/* Alert "perlu tindakan" */
.action-list { display: grid; gap: .6rem; }
.action-item { display: flex; gap: .8rem; align-items: center; padding: .8rem .9rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: inherit; }
.action-item:hover { text-decoration: none; border-color: var(--border-strong); }
.action-item b { display: block; font-size: .93rem; }
.action-item span { font-size: .82rem; color: var(--muted); }
.action-item .fa-chevron-right { margin-left: auto; color: var(--subtle); font-size: .8rem; }
.action-item.is-danger { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); background: color-mix(in srgb, var(--danger-soft) 55%, var(--surface)); }
.action-item.is-warning { border-color: color-mix(in srgb, var(--warning) 35%, var(--border)); background: color-mix(in srgb, var(--warning-soft) 55%, var(--surface)); }
.all-good { display: flex; gap: .7rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius); background: var(--success-soft); color: var(--success); font-weight: 700; font-size: .92rem; }

/* Stat tile */
.tiles { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .95rem 1rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.tile-label { font-size: .8rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.tile-label i { color: var(--subtle); font-size: .8rem; }
.tile-value { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.tile-value small { font-size: .9rem; font-weight: 700; color: var(--subtle); letter-spacing: 0; }
.tile-foot { font-size: .76rem; color: var(--subtle); font-weight: 600; }
.delta { display: inline-flex; align-items: center; gap: .2rem; font-weight: 800; font-size: .76rem; }
.delta.up { color: var(--success); } .delta.down { color: var(--danger); } .delta.flat { color: var(--subtle); }
.hero-stat { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem 1.25rem; }
.hero-stat .tile-value { font-size: clamp(2.6rem, 2rem + 2.5vw, 3.4rem); }

/* Grafik */
.chart-card { min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.chart-head h2 { font-size: 1rem; }
.chart-head p { font-size: .8rem; color: var(--subtle); margin-top: .15rem; }
.chart-box { position: relative; margin-top: .9rem; }
.chart-box svg { width: 100%; height: auto; overflow: visible; display: block; }
.chart-box .grid-line { stroke: var(--border); stroke-width: 1; }
.chart-box .axis-label { fill: var(--subtle); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-box .bar { fill: var(--brand-500); }
.chart-box .bar.is-zero { fill: var(--border); }
.chart-box .bar.is-hover { fill: var(--brand); }
.chart-box .line { fill: none; stroke: var(--brand-500); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-box .area { fill: var(--brand-500); opacity: .1; }
.chart-box .dot { fill: var(--brand-500); stroke: var(--surface); stroke-width: 2; }
.chart-box .value-label { fill: var(--text); font-size: 11px; font-weight: 700; font-family: var(--font); }
.chart-box .crosshair { stroke: var(--border-strong); stroke-width: 1; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--text); color: var(--bg); font-size: .78rem; font-weight: 600; padding: .4rem .6rem; border-radius: .5rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: var(--shadow-md); }
.chart-tip b { font-weight: 800; }
.data-table summary { cursor: pointer; font-size: .8rem; color: var(--subtle); font-weight: 600; margin-top: .75rem; }
.data-table table { width: 100%; font-size: .8rem; border-collapse: collapse; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.data-table td, .data-table th { padding: .3rem .4rem; border-bottom: 1px solid var(--border); text-align: left; }
.data-table td:last-child, .data-table th:last-child { text-align: right; }

/* Bar horizontal (peringkat) */
.hbars { display: grid; gap: .7rem; list-style: none; padding: 0; margin-top: .9rem; }
.hbars li { display: grid; gap: .3rem; }
.hbars .hb-head { display: flex; justify-content: space-between; gap: .75rem; font-size: .86rem; }
.hbars .hb-head span:first-child { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .hb-head span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.hbars .hb-track { height: .55rem; border-radius: 999px; background: var(--brand-soft); overflow: hidden; }
.hbars .hb-fill { height: 100%; border-radius: 999px; background: var(--brand-500); min-width: 4px; }
.hbars .hb-sub { font-size: .74rem; color: var(--subtle); }

/* Funnel status */
.funnel { display: grid; gap: .5rem; margin-top: .9rem; }
.funnel-row { display: grid; grid-template-columns: 8.5rem 1fr 2.5rem; gap: .6rem; align-items: center; font-size: .85rem; }
.funnel-row span:first-child { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.funnel-row span:last-child { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.funnel-track { height: 1.6rem; border-radius: .5rem; background: var(--surface-2); overflow: hidden; }
.funnel-fill { height: 100%; border-radius: .5rem; background: var(--brand-500); opacity: var(--o, 1); min-width: 4px; }
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; flex: none; background: currentColor; }
.st-new { color: var(--warning); } .st-contacted { color: var(--info); } .st-in-progress { color: var(--violet); }
.st-completed { color: var(--success); } .st-cancelled { color: var(--subtle); }

.split { display: grid; gap: 1rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1.6fr 1fr; } .split.even { grid-template-columns: 1fr 1fr; } }
.meter { height: .5rem; border-radius: 999px; background: var(--brand-soft); overflow: hidden; margin-top: .5rem; }
.meter i { display: block; height: 100%; background: var(--brand-500); border-radius: 999px; }

/* Lead list */
.lead-list { display: grid; gap: .65rem; }
.lead-card { display: grid; gap: .5rem; padding: .95rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: inherit; position: relative; }
.lead-card:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.lead-card.is-overdue { border-left: 4px solid var(--danger); }
.lead-top { display: flex; align-items: flex-start; gap: .75rem; }
.avatar-circle { width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-500), #1e3a8a); font-size: .95rem; }
.lead-name { font-weight: 800; line-height: 1.3; }
.lead-sub { font-size: .8rem; color: var(--subtle); display: flex; gap: .35rem .7rem; flex-wrap: wrap; margin-top: .1rem; }
.lead-req { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lead-foot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lead-foot .spacer { flex: 1; }
.chip-filter { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; }
.chip-filter::-webkit-scrollbar { display: none; }
.chip-filter button { flex: none; border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: .4rem .8rem; font-size: .82rem; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }
.chip-filter button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-filter .n { font-size: .72rem; opacity: .75; }
.sticky-tools { position: sticky; top: 57px; z-index: 20; background: var(--bg); padding: .75rem 0 .6rem; margin-top: -.75rem; display: grid; gap: .6rem; }

/* Detail lead */
.detail-head { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }
.detail-head .avatar-circle { width: 3.2rem; height: 3.2rem; font-size: 1.15rem; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.quick-actions .btn { flex-direction: column; gap: .3rem; padding: .75rem .4rem; font-size: .78rem; }
.quick-actions .btn i { font-size: 1.15rem; }
.status-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .45rem; }
.status-picker button { border: 1px solid var(--border); background: var(--surface); border-radius: .75rem; padding: .6rem .7rem; font-weight: 700; font-size: .84rem; display: flex; align-items: center; gap: .5rem; color: var(--text); text-align: left; }
.status-picker button[aria-pressed="true"] { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.status-picker button[aria-pressed="true"].st-new { background: var(--warning-soft); }
.status-picker button[aria-pressed="true"].st-contacted { background: var(--info-soft); }
.status-picker button[aria-pressed="true"].st-in-progress { background: var(--violet-soft); }
.status-picker button[aria-pressed="true"].st-completed { background: var(--success-soft); }
.status-picker button[aria-pressed="true"].st-cancelled { background: var(--surface-2); }
.status-picker button span { color: var(--text); }
.events { list-style: none; padding: 0; margin: 0; position: relative; }
.events li { position: relative; padding: 0 0 1rem 1.6rem; }
.events li::before { content: ""; position: absolute; left: .42rem; top: 1.1rem; bottom: 0; width: 2px; background: var(--border); }
.events li:last-child::before { display: none; }
.events .ev-dot { position: absolute; left: 0; top: .2rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-500); }
.events .ev-note .ev-dot { border-color: var(--accent); }
.events .ev-whatsapp .ev-dot { border-color: var(--wa); }
.events p { font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.events small { color: var(--subtle); font-size: .75rem; }
.template-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.template-chips button { border: 1px dashed var(--border-strong); background: none; border-radius: 999px; padding: .3rem .7rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.template-chips button:hover { border-style: solid; color: var(--text); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .88rem; }
.kv dt { color: var(--subtle); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Portfolio admin */
.pf-admin-grid { display: grid; gap: .75rem; }
@media (min-width: 700px) { .pf-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pf-admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-item { display: grid; grid-template-columns: 5.5rem 1fr; gap: .85rem; padding: .8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: inherit; align-items: start; }
.pf-item:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.pf-thumb { position: relative; width: 5.5rem; aspect-ratio: 3 / 4; border-radius: .7rem; overflow: hidden; background: var(--navy); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-thumb .thumb-art i { font-size: 1.5rem; }
.pf-thumb .play { position: absolute; right: .3rem; bottom: .3rem; z-index: 2; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; display: grid; place-items: center; font-size: .6rem; }
.pf-item h3 { font-size: .98rem; line-height: 1.3; }
.pf-item .row-wrap { gap: .3rem; margin-top: .45rem; }
.pf-item .pf-stats { font-size: .76rem; color: var(--subtle); margin-top: .45rem; display: flex; gap: .7rem; flex-wrap: wrap; }

/* Form editor */
.form-section { padding: 1.1rem 1.15rem; }
@media (min-width: 640px) { .form-section { padding: 1.35rem 1.5rem; } }
.form-section + .form-section { margin-top: 1rem; }
.form-section > h2 { font-size: 1rem; display: flex; align-items: center; gap: .55rem; }
.form-section > h2 + p { font-size: .84rem; color: var(--subtle); margin-top: .25rem; }
.form-section .field:first-of-type { margin-top: 1rem; }
.counter { font-size: .72rem; color: var(--subtle); text-align: right; }
.counter.over { color: var(--danger); font-weight: 700; }
.editor-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 1100px) { .editor-grid { grid-template-columns: minmax(0, 1fr) 21rem; } .editor-side { position: sticky; top: 4.5rem; } }
.save-bar { position: sticky; bottom: calc(4.6rem + env(safe-area-inset-bottom)); z-index: 25; margin-top: 1rem; display: flex; gap: .5rem; align-items: center; padding: .7rem .8rem; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
@media (min-width: 1024px) { .save-bar { bottom: 1rem; } }
.save-bar .status-text { font-size: .8rem; color: var(--subtle); flex: 1; min-width: 0; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-size: .92rem; }
.switch small { display: block; font-size: .8rem; color: var(--subtle); margin-top: .1rem; }
.switch input { appearance: none; width: 2.75rem; height: 1.6rem; flex: none; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .2s; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(1.15rem); }
.drop-zone { display: grid; place-items: center; text-align: center; gap: .5rem; padding: 1.5rem 1rem; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.drop-zone.is-over { border-color: var(--brand-500); background: var(--brand-soft); }
.drop-zone i { font-size: 1.6rem; color: var(--brand-ink); }
.progress { height: .5rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand-500); transition: width .2s; }
.readme-preview { max-height: 18rem; overflow: auto; font-size: .8rem; white-space: pre-wrap; background: var(--surface-2); border-radius: .75rem; padding: .8rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.secret-field { display: flex; gap: .5rem; }
.secret-field .input { flex: 1; }
.source-tag { font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: .35rem; background: var(--surface-2); color: var(--subtle); margin-left: .4rem; }
.test-result { margin-top: .6rem; }
.repo-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem .75rem; padding: .85rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.repo-row:last-child { border-bottom: 0; }
.repo-row .name { font-weight: 700; font-size: .93rem; overflow-wrap: anywhere; }
.repo-row .desc { font-size: .8rem; color: var(--muted); margin-top: .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.repo-row .meta { font-size: .74rem; color: var(--subtle); margin-top: .3rem; display: flex; gap: .3rem .8rem; flex-wrap: wrap; align-items: center; }
.repo-row .acts { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 639px) { .repo-row { grid-template-columns: 1fr; } .repo-row .acts { justify-content: flex-start; } }
.rule-row { display: flex; gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; flex-wrap: wrap; }
.rule-row code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; background: var(--surface-2); padding: .15rem .45rem; border-radius: .35rem; font-weight: 700; }
.rule-row .spacer { flex: 1; }
.settings-nav { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1rem; }
.settings-nav::-webkit-scrollbar { display: none; }
.settings-nav a { flex: none; padding: .5rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .84rem; color: var(--muted); }
.settings-nav a:hover { text-decoration: none; color: var(--text); }
.outbox-item { display: grid; gap: .3rem; padding: .75rem 0; border-bottom: 1px solid var(--border); font-size: .86rem; }
.outbox-item:last-child { border-bottom: 0; }
.outbox-item .msg { color: var(--muted); font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.outbox-item .err { color: var(--danger); font-size: .8rem; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2rem; color: var(--subtle); display: block; margin-bottom: .6rem; }
.help { font-size: .82rem; color: var(--muted); background: var(--info-soft); border-radius: .75rem; padding: .75rem .9rem; display: flex; gap: .6rem; }
.help i { color: var(--info); margin-top: .2rem; }
.help code { font-size: .78rem; background: rgb(0 0 0 / .06); padding: .05rem .3rem; border-radius: .25rem; }

/* Dialog sebagai bottom sheet di HP */
@media (max-width: 639px) {
  dialog.modal { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 1.25rem 1.25rem 0 0; max-height: 92dvh; border-bottom: 0; }
  dialog.modal[open] { animation: sheet-up .25s ease; }
  .modal-foot { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.portfolio-meta { flex-wrap: nowrap; min-width: 0; }
.one-line { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Cegah kolom grid melebar karena teks panjang (nowrap) di layar kecil */
.split, .tiles, .grid, .editor-grid, .case-grid, .pf-admin-grid { grid-template-columns: minmax(0, 1fr); }
.split > *, .tiles > *, .grid > *, .editor-grid > *, .hbars li, .funnel-row > * { min-width: 0; }
.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .editor-grid { grid-template-columns: minmax(0, 1fr) 21rem; } }
@media (min-width: 1200px) { .pf-admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Verifikasi email di form konsultasi */
.otp-panel { border: 1px solid color-mix(in srgb, var(--brand-500) 40%, var(--border)); background: var(--brand-soft); border-radius: var(--radius); padding: 1rem; }
.otp-head { display: flex; gap: .75rem; align-items: flex-start; }
.otp-head b { display: block; }
.otp-panel .input { background: var(--surface); }
.input[readonly] { background: var(--surface-2); color: var(--muted); }

/* Logo dari Pengaturan (gambar) */
.brand-img { display: block; width: auto; height: 2.6rem; max-width: 9rem; object-fit: contain; flex: none; }
.brand-img-footer { height: 3rem; }
.brand-img-admin { height: 2.4rem; }
.brand-img-login { height: 4.5rem; max-width: 12rem; }
.brand-img-footer.has-chip { background: #fff; border-radius: .7rem; padding: .3rem .45rem; box-sizing: content-box; }
:root[data-theme="dark"] .brand-img.has-chip { background: #fff; border-radius: .7rem; padding: .25rem .4rem; box-sizing: content-box; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-img.has-chip { background: #fff; border-radius: .7rem; padding: .25rem .4rem; box-sizing: content-box; }
}
.brand-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.brand-preview > div { border-radius: .75rem; padding: .9rem; display: flex; align-items: center; gap: .6rem; min-height: 5rem; border: 1px solid var(--border); }
.brand-preview .pv-light { background: #f6f8fc; color: #0f172a; }
.brand-preview .pv-dark { background: #0a1020; color: #e7edf8; }
.brand-preview img { height: 2.6rem; width: auto; max-width: 8rem; object-fit: contain; }
.brand-preview .pv-dark img.chip { background: #fff; border-radius: .6rem; padding: .25rem .4rem; }
.brand-preview small { display: block; font-size: .7rem; opacity: .7; }
.favicon-row { display: flex; align-items: flex-end; gap: .9rem; flex-wrap: wrap; }
.favicon-row figure { margin: 0; text-align: center; font-size: .7rem; color: var(--subtle); }
.favicon-row img { display: block; margin: 0 auto .3rem; image-rendering: auto; border-radius: .25rem; background: repeating-conic-gradient(#e2e8f0 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
