/* Kirtara design system — palet "Senja": plum, coral, gold, cream. Mobile-first. */
:root {
  --plum: #3a1450; --plum-700: #4e2468; --plum-300: #9c7bae; --lavender: #f1e8f5; --plum-2: #5b2a86; --plum-3: #7b4aa6; --plum-50: #f4ecf8; --plum-100: #e9dcf1;
  --coral: #ff7a59; --coral-600: #e8603f; --coral-100: #ffe9e2; --coral-2: #ff9b80; --coral-50: #fff0eb;
  --gold: #ffc857; --gold-2: #ffd98a; --gold-50: #fff7e3;
  --cream: #fff8f3; --paper: #ffffff;
  --ink: #241032; --ink-2: #4b3a57; --muted: #7a6a85; --line: #eee3ea; --line-2: #e2d3dd;
  --ok: #1c8a50; --ok-50: #e5f6ec; --warn: #b26a00; --warn-50: #fff3dc; --bad: #c2384a; --bad-50: #fde9ec; --info: #2f5fb3; --info-50: #e8effc;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(58, 20, 80, .06), 0 2px 8px rgba(58, 20, 80, .05);
  --shadow: 0 10px 30px -12px rgba(58, 20, 80, .25);
  --shadow-lg: 0 30px 60px -24px rgba(58, 20, 80, .45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--plum-2); text-decoration: none; }
a:hover { color: var(--coral); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.015em; color: var(--plum); }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .8em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-2); color: var(--plum); }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--plum); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; position: relative; overflow: hidden; white-space: nowrap; }
.btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { width: 18px; height: 18px; }
.btn--coral { --bg: var(--coral); }
.btn--gold { --bg: var(--gold); --fg: var(--plum); }
.btn--ghost { --bg: transparent; --fg: var(--plum); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { --bg: var(--plum-50); box-shadow: inset 0 0 0 1.5px var(--plum-100); }
.btn--soft { --bg: var(--plum-50); --fg: var(--plum); }
.btn--danger { --bg: var(--bad-50); --fg: var(--bad); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--plum-2); font-weight: 700; cursor: pointer; }
.link-btn:hover { color: var(--coral); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.field__hint { font-size: .82rem; color: var(--muted); margin: 0; }
.field__error { font-size: .85rem; color: var(--bad); margin: 0; font-weight: 600; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: var(--plum-100); }
.input:focus { outline: 0; border-color: var(--plum-3); box-shadow: 0 0 0 4px rgba(123, 74, 166, .14); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input-group { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.input-group:focus-within { border-color: var(--plum-3); box-shadow: 0 0 0 4px rgba(123, 74, 166, .14); }
.input-group .input { border: 0; box-shadow: none !important; min-width: 0; }
.input-group__addon { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.input-group__btn { border: 0; background: none; padding: 0 14px; color: var(--muted); cursor: pointer; }
.input-group__btn:hover { color: var(--plum); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--plum-2); flex: none; }
.strength { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.strength__bar { height: 100%; width: 0; border-radius: inherit; background: var(--bad); transition: width .3s var(--ease), background .3s; }
.slug-status { font-size: .85rem; font-weight: 600; min-height: 1.3em; }
.slug-status.is-ok { color: var(--ok); }
.slug-status.is-bad { color: var(--bad); }
.otp { display: flex; gap: 8px; justify-content: center; }
.otp input { width: 48px; height: 58px; text-align: center; font-size: 1.5rem; font-weight: 800; border: 1.5px solid var(--line-2); border-radius: 14px; color: var(--plum); background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.otp input:focus { outline: 0; border-color: var(--plum-3); box-shadow: 0 0 0 4px rgba(123, 74, 166, .14); transform: translateY(-2px); }
.otp input.is-filled { border-color: var(--plum-3); background: var(--plum-50); }
.otp.is-error input { border-color: var(--bad); animation: shake .35s; }

/* ---------- Chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--plum-50); color: var(--plum-2); white-space: nowrap; }
.chip--ok { background: var(--ok-50); color: var(--ok); }
.chip--warn { background: var(--warn-50); color: var(--warn); }
.chip--bad { background: var(--bad-50); color: var(--bad); }
.chip--info { background: var(--info-50); color: var(--info); }
.chip--gold { background: var(--gold-50); color: #8a5a00; }
.chip--coral { background: var(--coral-50); color: #c24a2c; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--live .dot { animation: pulse 1.8s infinite; }

/* ---------- Surfaces ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card__head h2, .card__head h3 { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--plum-100); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 90; top: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--plum); color: #fff; box-shadow: var(--shadow-lg); animation: toastIn .45s var(--ease) both; font-weight: 600; }
.toast .icon { margin-top: 1px; }
.toast--success, .toast--celebrate { background: linear-gradient(135deg, var(--plum), var(--plum-2)); }
.toast--error { background: #8f1f33; }
.toast--info { background: #2b2140; }
.toast__close { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 0; }
.toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }

/* ---------- Auth layout ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth__brand { position: relative; overflow: hidden; color: #fff; padding: 28px 24px 36px; background: radial-gradient(120% 90% at 10% 0%, var(--plum-2) 0%, var(--plum) 55%, #24092f 100%); }
.auth__brand::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 89, .55), transparent 65%); filter: blur(10px); animation: float 12s ease-in-out infinite; }
.auth__brand::after { content: ""; position: absolute; width: 360px; height: 360px; left: -160px; top: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 87, .32), transparent 65%); animation: float 14s ease-in-out infinite reverse; }
.auth__brand > * { position: relative; z-index: 1; }
.auth__logo img { height: 34px; width: auto; }
.auth__pitch { margin-top: 28px; max-width: 460px; }
.auth__pitch h2 { color: #fff; font-size: clamp(1.4rem, 3.4vw, 2.3rem); line-height: 1.15; }
.auth__pitch h2 em { font-style: normal; color: var(--gold); }
.auth__pitch p { color: #e8d9f0; }
.orbit { display: none; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 28px 16px 48px; }
.auth__card { width: min(100%, 440px); }
.auth__card h1 { font-size: 1.7rem; }
.auth__switch { text-align: center; margin-top: 18px; color: var(--muted); }
.auth__foot { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 26px; }
.mascot { position: absolute; z-index: 2; right: 26px; top: 22px; width: 64px; height: 64px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); animation: bob 4s ease-in-out infinite; }
.mascot__star { fill: var(--coral); }
.mascot__eye { fill: #fff; }
.mascot__pupil { fill: var(--plum); transition: transform .08s linear; }
@media (min-width: 900px) {
  .auth { grid-template-columns: minmax(380px, 1.05fr) 1fr; }
  .auth__brand { padding: 44px 52px; display: flex; flex-direction: column; }
  .auth__pitch { margin-top: auto; margin-bottom: auto; }
  .mascot { width: 96px; height: 96px; right: 60px; top: 70px; }
  .orbit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
  .orbit span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px); animation: rise .6s var(--ease) both; }
  .orbit span .icon { width: 16px; height: 16px; color: var(--gold); }
  .auth__main { padding: 48px; }
}

/* ---------- App shell (akun) ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 248, 243, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar__in { max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.topbar__logo img { height: 28px; width: auto; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.nav a:hover { background: var(--plum-50); color: var(--plum); }
.nav a.is-active { background: var(--plum); color: #fff; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--plum-50); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; animation: pop .18s var(--ease); z-index: 50; }
.menu__panel a, .menu__panel button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; }
.menu__panel a:hover, .menu__panel button:hover { background: var(--plum-50); color: var(--plum); }
.menu__label { padding: 8px 12px 4px; font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.menu--left .menu__panel { left: 0; right: auto; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--coral), var(--plum-2)); flex: none; }
.avatar--sq { border-radius: 12px; }
.ws-pill { display: flex; align-items: center; gap: 8px; max-width: 220px; }
.ws-pill__name { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page { max-width: 1160px; margin: 0 auto; padding: 22px 16px 110px; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page__head p { margin: 0; }
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.tabbar a.is-active { color: var(--plum); background: var(--plum-50); }
.tabbar .icon { width: 22px; height: 22px; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .tabbar { display: none; }
  .page { padding: 32px 24px 64px; }
}

/* ---------- Home ---------- */
.hello { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px 22px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, var(--plum-3) 0%, var(--plum) 55%, #2a0b3a 100%); box-shadow: var(--shadow); margin-bottom: 26px; }
.hello::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 87, .45), transparent 65%); animation: float 10s ease-in-out infinite; }
.hello > * { position: relative; z-index: 1; }
.hello h1 { color: #fff; margin-bottom: 6px; }
.hello p { color: #ead9f2; margin: 0; }
.hello__stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hello__stat { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; color: #f3e8f8; }
.hello__stat b { display: block; font-size: 1.2rem; color: #fff; }
.hello__star { position: absolute; right: 22px; bottom: 18px; width: 54px; height: 54px; z-index: 1; color: var(--gold); animation: spinSlow 16s linear infinite; opacity: .9; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; }
.section-title h2 { margin: 0; }
.section-title .count { font-size: .8rem; font-weight: 800; color: var(--plum-2); background: var(--plum-50); border-radius: 99px; padding: 2px 9px; }

.app-card { --accent: var(--coral); --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; isolation: isolate; }
.app-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%); opacity: 0; transition: opacity .3s; }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); color: var(--ink); }
.app-card:hover::before { opacity: 1; }
.app-card__top { display: flex; align-items: center; gap: 12px; }
.app-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 10px 20px -10px var(--accent); flex: none; transition: transform .3s var(--ease); }
.app-card:hover .app-icon { transform: rotate(-6deg) scale(1.06); }
.app-icon .icon { width: 26px; height: 26px; }
.app-icon--sm { width: 40px; height: 40px; border-radius: 12px; }
.app-icon--sm .icon { width: 20px; height: 20px; }
.app-card__name { font-weight: 800; color: var(--plum); line-height: 1.25; }
.app-card__tag { color: var(--muted); font-size: .9rem; margin: 0; }
.app-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.app-card__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--plum); }
.app-card__go .icon { transition: transform .2s var(--ease); }
.app-card:hover .app-card__go .icon { transform: translateX(4px); }
.app-card--mine { border-width: 1.5px; }
.app-card--soon { background: linear-gradient(180deg, #fff, var(--cream)); }
.app-card--soon .app-icon { background: color-mix(in srgb, var(--accent) 18%, #fff); color: var(--accent); box-shadow: none; }
.soon-group { margin-bottom: 18px; }
.soon-group__label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.soon-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.soon-item { --accent: var(--plum-2); display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.soon-item:hover { transform: translateY(-2px); border-color: var(--plum-100); }
.soon-item .app-icon--sm { background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent); box-shadow: none; }
.soon-item__body { min-width: 0; flex: 1; }
.soon-item__name { font-weight: 700; font-size: .92rem; color: var(--ink); }
.soon-item__tag { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notify-btn { border: 0; background: var(--plum-50); color: var(--plum-2); border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .2s, color .2s, transform .2s; }
.notify-btn:hover { background: var(--plum); color: #fff; }
.notify-btn.is-on { background: var(--gold); color: var(--plum); }
.notify-btn .icon { width: 18px; height: 18px; }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--gold-50); border: 1px solid #ffe3a6; color: #6b4600; margin-bottom: 16px; font-weight: 600; flex-wrap: wrap; }
.banner--info { background: var(--info-50); border-color: #cddcf6; color: #1e3f78; }
.banner .btn { margin-left: auto; }

/* ---------- App detail & plans ---------- */
.app-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.app-hero .app-icon { width: 72px; height: 72px; border-radius: 22px; }
.app-hero .app-icon .icon { width: 36px; height: 36px; }
.cycle { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--plum-50); gap: 4px; }
.cycle button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font: inherit; font-weight: 700; color: var(--plum-2); cursor: pointer; }
.cycle button.is-active { background: #fff; color: var(--plum); box-shadow: var(--shadow-sm); }
.cycle .save { font-size: .72rem; background: var(--gold); color: var(--plum); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 18px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1.5px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan--featured { border-color: var(--plum-2); box-shadow: var(--shadow); }
.plan__ribbon { position: absolute; top: -12px; left: 20px; background: linear-gradient(90deg, var(--coral), var(--gold)); color: var(--plum); font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.plan__name { font-weight: 800; font-size: 1.1rem; color: var(--plum); }
.plan__price { font-size: 1.9rem; font-weight: 800; color: var(--plum); letter-spacing: -.02em; line-height: 1; }
.plan__price small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.plan__list li { display: flex; gap: 8px; align-items: flex-start; }
.plan__list .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.plan__list li.is-off { color: #b6a9bd; }
.plan__list li.is-off .icon { color: #d9cede; }
.plan form { margin-top: auto; }
.feature-tier { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.feature { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.feature .chip { margin-left: auto; }

/* ---------- Tables / lists ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--cream); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.list { display: flex; flex-direction: column; }
.list__item { display: flex; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list__item:last-child { border-bottom: 0; }
.list__body { flex: 1; min-width: 180px; }
.list__title { font-weight: 700; color: var(--ink); }
.member-apps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Invoice ---------- */
.invoice { max-width: 760px; }
.invoice__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.invoice__total { font-size: 2rem; font-weight: 800; color: var(--plum); }
.pay-box { border-radius: var(--r-lg); padding: 20px; background: linear-gradient(135deg, var(--plum-50), var(--gold-50)); border: 1px dashed var(--plum-100); }
.copy { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--plum); background: #fff; border: 1px solid var(--line); padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.copy:hover { border-color: var(--plum-3); }
.copy.is-copied { border-color: var(--ok); color: var(--ok); }
.copy .icon { width: 18px; height: 18px; }

/* ---------- Dialog ---------- */
dialog.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(94vw, 520px); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.modal::backdrop { background: rgba(36, 16, 50, .5); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .22s var(--ease); }
.modal__body { padding: 22px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; background: var(--cream); border-top: 1px solid var(--line); }

/* ---------- Public layout ---------- */
.public-top { max-width: 1160px; margin: 0 auto; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.public-top img { height: 30px; width: auto; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.side { background: var(--plum); color: #e9daf2; padding: 14px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; overflow-x: auto; }
.side__logo img { height: 26px; width: auto; }
.side__badge { font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--coral); color: #fff; padding: 2px 7px; border-radius: 6px; }
.side nav { display: flex; gap: 4px; margin-left: 8px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: #e9daf2; font-weight: 600; white-space: nowrap; font-size: .92rem; }
.side nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side nav a.is-active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side__user { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.side__user a { color: #e9daf2; }
.admin__main { padding: 22px 16px 60px; min-width: 0; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: relative; overflow: hidden; }
.stat__label { font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-size: 1.8rem; font-weight: 800; color: var(--plum); line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat__sub { font-size: .82rem; color: var(--muted); }
.stat::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: var(--accent, var(--plum-50)); opacity: .5; }
.health { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; }
.health::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.health--sehat { color: var(--ok); }
.health--perhatian { color: var(--warn); }
.health--berisiko { color: var(--bad); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .input { width: auto; min-width: 150px; min-height: 40px; padding: 8px 12px; }
.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; min-width: 80px; }
.meter__bar { height: 100%; background: linear-gradient(90deg, var(--plum-3), var(--coral)); border-radius: inherit; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--plum-3); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
@media (min-width: 980px) {
  .admin { grid-template-columns: 250px 1fr; }
  .side { flex-direction: column; align-items: stretch; height: 100vh; padding: 22px 16px; overflow: visible; }
  .side nav { flex-direction: column; margin: 22px 0 0; }
  .side__user { margin: auto 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .admin__main { padding: 30px 34px 60px; }
}

/* ---------- Motion ---------- */
.reveal { animation: rise .5s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .05s; } .reveal:nth-child(3) { animation-delay: .1s; } .reveal:nth-child(4) { animation-delay: .15s; } .reveal:nth-child(5) { animation-delay: .2s; } .reveal:nth-child(6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-24px, 18px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Accent per app (no inline styles under CSP) */
.accent-coral { --accent: #ff7a59; }
.accent-plum { --accent: #3a1450; }
.accent-violet { --accent: #7b4aa6; }
.accent-gold { --accent: #e0a21c; }
.accent-gold .app-icon:not(.app-icon--sm) { color: var(--plum); }
.stat.accent-coral { --accent: var(--coral-50); }
.stat.accent-gold { --accent: var(--gold-50); }
.stat.accent-ok { --accent: var(--ok-50); }
.stat.accent-bad { --accent: var(--bad-50); }
.w-0 { width: 0; } .w-10 { width: 10%; } .w-20 { width: 20%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; } .w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; } .w-90 { width: 90%; } .w-100 { width: 100%; }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* ---------- App logos ---------- */
.app-logo { width: 52px; height: 52px; flex: none; border-radius: 14px; filter: drop-shadow(0 8px 14px rgba(58,20,80,.16)); transition: transform .3s var(--ease); }
.app-logo--sm { width: 40px; height: 40px; border-radius: 11px; }
.app-logo--xl { width: 76px; height: 76px; border-radius: 20px; }
.app-logo--hero { width: 72px; height: 72px; border-radius: 20px; }
.app-card:hover .app-logo { transform: rotate(-5deg) scale(1.06); }

/* ---------- Discovery: label, ilustrasi ---------- */
.dlabel { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--lavender); color: var(--plum-2); }
.dlabel--new_app { background: var(--plum); color: #fff; }
.dlabel--recommendation { background: var(--coral-100); color: var(--coral-600); }
.dlabel--whats_new { background: var(--gold-50); color: #8a5a00; }
.dart { position: relative; overflow: hidden; border-radius: var(--r); background: linear-gradient(145deg, var(--lavender), var(--plum-50) 55%, #fff); display: grid; place-items: center; isolation: isolate; }
.dart img { width: 100%; height: 100%; object-fit: cover; }
.dart__blob { position: absolute; border-radius: 50%; z-index: -1; }
.dart__blob--a { width: 70%; height: 70%; right: -18%; top: -22%; background: radial-gradient(circle, rgba(123, 74, 166, .28), transparent 70%); }
.dart__blob--b { width: 60%; height: 60%; left: -16%; bottom: -24%; background: radial-gradient(circle, rgba(255, 122, 89, .22), transparent 70%); }
.dart__star { position: absolute; color: var(--plum-300); }
.dart__star--1 { width: 14%; height: 14%; top: 14%; left: 14%; color: var(--gold); }
.dart__star--2 { width: 9%; height: 9%; bottom: 16%; right: 16%; }
.dart__main { position: relative; display: grid; place-items: center; animation: dfloat 5s ease-in-out infinite; }
.dart__logo { filter: drop-shadow(0 16px 24px rgba(58, 20, 80, .28)); }
.dart__icon { display: grid; place-items: center; border-radius: 30%; color: #fff; background: linear-gradient(145deg, var(--plum-3), var(--plum)); box-shadow: 0 16px 24px -10px rgba(58, 20, 80, .45); }
.dart--lg { aspect-ratio: 4 / 3; }
.dart--lg .dart__logo { width: 96px; height: 96px; border-radius: 26px; }
.dart--lg .dart__icon { width: 88px; height: 88px; }
.dart--lg .dart__icon .icon { width: 40px; height: 40px; }
.dart--sm { width: 64px; height: 64px; flex: none; border-radius: 16px; }
.dart--sm .dart__logo { width: 40px; height: 40px; border-radius: 11px; }
.dart--sm .dart__icon { width: 38px; height: 38px; border-radius: 11px; }
.dart--sm .dart__icon .icon { width: 20px; height: 20px; }
.dart--sm .dart__star { display: none; }
@keyframes dfloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }

/* ---------- Discovery popup ---------- */
dialog.dpop-dialog { width: min(94vw, 760px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-lg); }
dialog.dpop-dialog[open] { animation: dpopIn .32s var(--ease); }
dialog.dpop-dialog.is-leaving { animation: dpopOut .22s var(--ease) forwards; }
dialog.dpop-dialog::backdrop { background: rgba(42, 15, 58, .45); backdrop-filter: blur(4px); }
.dpop { position: relative; display: grid; grid-template-columns: 1fr; }
.dpop__close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--plum); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), background .2s; }
.dpop__close:hover { transform: rotate(90deg); background: #fff; }
.dpop__art .dart { border-radius: 0; height: 100%; min-height: 190px; }
.dpop__body { padding: 22px 22px 18px; }
.dpop__name { margin: 12px 0 2px; font-weight: 700; color: var(--plum-3); font-size: .9rem; }
.dpop__headline { margin: 0 0 8px; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; }
.dpop__desc { color: var(--ink-2); margin: 0 0 14px; }
.dpop__hl { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.dpop__hl li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .92rem; color: var(--ink); }
.dpop__hl .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--lavender); color: var(--plum-2); flex: none; }
.dpop__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dpop__actions .btn { flex: 1 1 auto; }
.dpop__foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dpop__foot .link-btn { font-size: .88rem; color: var(--muted); font-weight: 600; }
.dpop__foot .link-btn:hover { color: var(--plum); }
@keyframes dpopIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dpopOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (min-width: 720px) {
  .dpop { grid-template-columns: 300px 1fr; }
  .dpop__art .dart { min-height: 100%; aspect-ratio: auto; }
  .dpop__body { padding: 30px 30px 22px; }
}

/* ---------- Discovery Center ---------- */
.dcenter { margin-top: 34px; }
.dcenter__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dcenter__head h2 { margin: 2px 0 0; font-size: 1.4rem; }
.dcenter__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-600); }
.dcenter__eyebrow .icon { width: 14px; height: 14px; }
.dcenter__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: 18px; }
.dsection { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.dsection__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dsection__head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.dsection__head h3 .icon { width: 18px; height: 18px; color: var(--plum-3); }
.dsection__list { display: flex; flex-direction: column; }
.dcard { display: flex; gap: 12px; align-items: center; padding: 10px; margin: 0 -6px; border-radius: var(--r); color: var(--ink); transition: background .2s, transform .2s var(--ease); }
.dcard:hover { background: var(--plum-50); color: var(--ink); transform: translateX(3px); }
.dcard__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.dcard__body .dlabel { align-self: flex-start; font-size: .6rem; padding: 3px 7px; }
.dcard__title { font-weight: 800; color: var(--plum); }
.dcard__headline { font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard__status { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.dcard__status .icon { width: 14px; height: 14px; }
.dcard__status.is-done { color: var(--ok); }
.dcard__go { color: var(--plum-300); transition: transform .2s, color .2s; }
.dcard:hover .dcard__go { color: var(--plum); transform: translateX(3px); }
.dlist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.dlist .dcard { margin: 0; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.dtabs { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 16px; scrollbar-width: none; }
.dtabs::-webkit-scrollbar { display: none; }
.dtabs__tab { flex: none; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 700; font-size: .88rem; }
.dtabs__tab span { margin-left: 4px; font-size: .74rem; background: var(--plum-50); color: var(--plum-2); border-radius: 99px; padding: 1px 7px; }
.dtabs__tab:hover { border-color: var(--plum-3); color: var(--plum); }
.dtabs__tab.is-active { background: var(--plum); border-color: var(--plum); color: #fff; }
.dtabs__tab.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }
.dshow { display: grid; gap: 22px; margin-top: 12px; padding: 0; overflow: hidden; }
.dshow__art .dart { border-radius: 0; }
.dshow__body { padding: 0 22px 24px; }
.dshow__headline { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-top: 0; }
@media (min-width: 860px) { .dshow { grid-template-columns: 380px 1fr; } .dshow__art .dart { height: 100%; aspect-ratio: auto; } .dshow__body { padding: 30px 30px 30px 0; } }

/* Progres eksplorasi */
.dprog { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.dprog__ring { width: 104px; height: 104px; flex: none; }
.dprog__arc { transition: stroke-dashoffset 1.2s var(--ease); }
.dprog__num { font: 800 20px var(--font); fill: var(--plum); }
.dprog__unit { font: 600 10px var(--font); fill: var(--muted); }
.dprog__body { flex: 1; min-width: 220px; }
.dprog__title { margin: 0 0 2px; color: var(--ink); }
.dprog__title b { color: var(--plum); }
.dprog__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dprog__chip { position: relative; border-radius: 12px; opacity: .38; filter: grayscale(.7); transition: opacity .2s, filter .2s, transform .2s var(--ease); }
.dprog__chip:hover { opacity: 1; filter: none; transform: translateY(-2px); }
.dprog__chip.is-done { opacity: 1; filter: none; }
.dprog__logo { width: 34px; height: 34px; border-radius: 10px; filter: none; }
.dprog__tick { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.dprog__tick .icon { width: 9px; height: 9px; stroke-width: 3.5; }

/* Saklar pengaturan */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 46px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--plum-2); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Aplikasi unggulan: carousel kartu potret (permukaan putih, aksen ungu) ---------- */
.explore { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 14px; box-shadow: var(--shadow-sm); }
.explore__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.explore__title { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 1rem; }
.explore__title .icon { width: 18px; height: 18px; color: var(--plum-3); }
.explore__head p { margin: 0; }
.explore__nav { display: flex; gap: 8px; }
.explore__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; color: var(--plum); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; }
.explore__arrow:hover { background: var(--plum); border-color: var(--plum); color: #fff; transform: scale(1.06); }
.explore__arrow:disabled { opacity: .35; pointer-events: none; }
.explore__filters { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 2px; scrollbar-width: none; }
.explore__filters::-webkit-scrollbar { display: none; }
.explore__filter { flex: none; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-2); border-radius: 99px; padding: 7px 13px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .2s var(--ease); }
.explore__filter span { display: inline-block; margin-left: 4px; font-size: .72rem; background: var(--plum-50); color: var(--plum-2); border-radius: 99px; padding: 1px 7px; }
.explore__filter:hover { border-color: var(--plum-3); color: var(--plum); }
.explore__filter.is-active { background: var(--plum); border-color: var(--plum); color: #fff; }
.explore__filter.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }
.explore__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; padding: 18px 18px 22px; margin: 0 -18px; scrollbar-width: none; cursor: grab; perspective: 1200px; -webkit-overflow-scrolling: touch; outline: none; }
.explore__track::-webkit-scrollbar { display: none; }
.explore__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.explore__track.is-dragging .pcard { pointer-events: none; }
.explore__progress { height: 4px; border-radius: 99px; background: var(--plum-50); overflow: hidden; max-width: 220px; margin: 0 auto; }
.explore__bar { height: 100%; width: 20%; border-radius: inherit; background: linear-gradient(90deg, var(--plum-3), var(--plum)); transition: width .2s, transform .2s; }

.pcard { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%; position: relative; flex: none; width: min(74vw, 250px); min-height: 400px; scroll-snap-align: start; border-radius: var(--r-lg); padding: 18px 18px 18px; color: var(--ink); display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; animation: cardIn .5s var(--ease) both; }
.pcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 132px; z-index: -1; background: linear-gradient(160deg, var(--lavender), var(--plum-50) 60%, #fff); }
.pcard:nth-child(2) { animation-delay: .04s; } .pcard:nth-child(3) { animation-delay: .08s; } .pcard:nth-child(4) { animation-delay: .12s; } .pcard:nth-child(5) { animation-delay: .16s; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--plum-100); }
.pcard.is-hidden { display: none; }
.pcard__glare { position: absolute; inset: 0; z-index: -1; background: radial-gradient(320px circle at var(--gx) var(--gy), rgba(123, 74, 166, .10), transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pcard:hover .pcard__glare { opacity: 1; }
.pcard__deco { position: absolute; z-index: -1; right: 16px; top: 18px; width: 22px; height: 22px; color: var(--gold); opacity: .9; transition: transform .8s var(--ease); }
.pcard:hover .pcard__deco { transform: rotate(90deg) scale(1.15); }
.pcard__top { display: flex; justify-content: space-between; align-items: center; padding-right: 30px; }
.pcard__badge { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 4px 9px; border-radius: 99px; background: #fff; color: var(--plum-2); box-shadow: var(--shadow-sm); }
.pcard__badge.is-live { background: var(--plum); color: #fff; }
.pcard__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: pulse 1.8s infinite; color: var(--coral); }
.pcard__num { display: none; }
.pcard__logo { margin: 22px 0 16px; transform: translateZ(30px); transition: transform .4s var(--ease); }
.pcard:hover .pcard__logo { transform: translateZ(40px) translateY(-3px) rotate(-4deg); }
.pcard__brand { font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--plum-300); }
.pcard__name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.1; color: var(--plum); }
.pcard__tag { margin: 0 0 12px; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.pcard__features { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: .84rem; font-weight: 600; }
.pcard__features li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.pcard__features .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; padding: 2px; border-radius: 50%; background: var(--lavender); color: var(--plum-2); }
.pcard__foot { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.pcard__foot form { flex: 1; }
.pcard__cta { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--coral); color: #fff; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.pcard__cta:hover { color: #fff; background: var(--coral-600); transform: translateY(-2px); box-shadow: var(--shadow); }
.pcard__cta .icon { width: 18px; height: 18px; transition: transform .2s; }
.pcard__cta:hover .icon { transform: translateX(3px); }
.pcard__cta--ghost { background: #fff; color: var(--plum); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pcard__cta--ghost:hover { color: var(--plum); background: var(--plum-50); box-shadow: inset 0 0 0 1.5px var(--plum-100); }
.pcard__cta--ghost.is-on { background: var(--lavender); color: var(--plum-2); box-shadow: none; }
.pcard__cta--ghost.is-on .icon { animation: ring .8s var(--ease); }
.pcard__more { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--plum); background: var(--plum-50); transition: background .2s, transform .2s, color .2s; }
.pcard__more:hover { color: #fff; background: var(--plum); transform: translateX(2px); }
@keyframes cardIn { from { opacity: 0; translate: 0 18px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(18deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@media (min-width: 860px) { .explore { padding: 22px 24px 16px; } .explore__track { margin: 0 -24px; padding: 18px 24px 24px; scroll-padding: 0 24px; } }
/* ---------- Hero sapaan beranda ---------- */
.hello { padding: 24px 22px 20px; }
.hello__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hello__greet { margin: 0 0 2px; color: var(--plum-100); font-weight: 600; font-size: .95rem; }
.hello h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 4.4vw, 2.4rem); }
.hello__ws { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hello__ws-avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: var(--plum); background: var(--gold); }
.hello__ws-name { font-weight: 700; color: #fff; }
.hello__slug { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: var(--plum-100); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.hello__slug:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hello__slug .icon { width: 14px; height: 14px; }
.hello__slug.is-copied { background: var(--gold); color: var(--plum); border-color: var(--gold); }
.hello__cta { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--coral); color: #fff; box-shadow: 0 14px 28px -14px rgba(255, 122, 89, .9); transition: transform .2s var(--ease), background .2s; }
.hello__cta:hover { color: #fff; background: var(--coral-600); transform: translateY(-2px); }
.hello__cta-text { display: flex; flex-direction: column; line-height: 1.25; }
.hello__cta-text small { font-size: .76rem; opacity: .9; }
.hello__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.hello__stat { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--plum-100); font-size: .84rem; transition: background .2s, transform .2s var(--ease); }
.hello__stat:hover { background: rgba(255, 255, 255, .15); color: #fff; transform: translateY(-2px); }
.hello__stat b { display: block; font-size: 1.25rem; color: #fff; line-height: 1.15; }
.hello__stat-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--gold); flex: none; }
.hello__stat-icon .icon { width: 18px; height: 18px; }
.hello__stat--alert .hello__stat-icon { background: var(--coral); color: #fff; }
@media (min-width: 860px) { .hello { padding: 30px 32px 26px; } }
.hello__star { top: 18px; bottom: auto; right: 20px; width: 46px; height: 46px; }
.hello__top { padding-right: 52px; }
@media (max-width: 600px) { .hello__top { padding-right: 40px; } .hello__star { width: 34px; height: 34px; top: 16px; right: 14px; } .hello__cta { width: 100%; justify-content: space-between; } }
@media (max-width: 600px) { .hello__stats { grid-template-columns: repeat(3, 1fr); gap: 8px; } .hello__stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; font-size: .74rem; } .hello__stat-icon { width: 28px; height: 28px; border-radius: 9px; } .hello__stat-icon .icon { width: 15px; height: 15px; } .hello__stat b { font-size: 1.05rem; } }

/* ---------- CMS kirtara.com (admin) ---------- */
.side__group { display: block; margin: 14px 12px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--plum-300); white-space: nowrap; }
.side__count { margin-left: auto; background: var(--coral); color: #fff; font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg a { padding: 6px 12px; border-radius: 9px; font-weight: 700; font-size: .85rem; color: var(--muted); }
.seg a.is-active { background: var(--plum); color: #fff; }
.wchart { width: 100%; height: 180px; display: block; }
.wchart__bar { fill: var(--plum-100); }
.wchart__bar--u { fill: var(--coral); }
.wchart__axis { fill: var(--muted); font-size: 10px; }
.wchart__legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.wchart__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--plum-100); }
.wchart__legend i.u { background: var(--coral); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: .9rem; }
.rank__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__n { font-weight: 800; color: var(--plum); font-variant-numeric: tabular-nums; }
.rank progress { grid-column: 1 / -1; width: 100%; height: 6px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; }
.rank progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
.rank progress::-webkit-progress-value { background: linear-gradient(90deg, var(--plum-3), var(--coral)); border-radius: 99px; }
.rank progress::-moz-progress-bar { background: linear-gradient(90deg, var(--plum-3), var(--coral)); border-radius: 99px; }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-list li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.order-list li b { flex: 1; }
.order-list .icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--cream); color: var(--plum); cursor: pointer; }
.order-list .icon-btn:disabled { opacity: .35; cursor: default; }
.lead-status--new { background: var(--coral-50); color: #c24a2c; }
.lead-status--contacted { background: var(--lavender); color: var(--plum-700); }
.lead-status--qualified { background: var(--plum-50); color: var(--plum-2); }
.lead-status--negotiation { background: var(--gold-50); color: #8a5a00; }
.lead-status--won { background: var(--ok-50); color: var(--ok); }
.lead-status--lost { background: var(--line); color: var(--muted); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; word-break: break-word; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; font-size: .9rem; }
fieldset.card { margin: 0; min-width: 0; }

/* ---------- CMS Tahap 2: media library & pemilih gambar ---------- */
.thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; background: #fff; }
.thumb--logo { object-fit: contain; padding: 3px; }
.thumb--dark { background: var(--plum); }
.mlib { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.mlib__item { display: grid; gap: 8px; align-content: start; }
.mlib__img { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--cream); }
.mlib__img img { width: 100%; height: 100%; object-fit: contain; }
.mlib__item .row .input { flex: 1; min-width: 0; min-height: 38px; padding: 7px 10px; }
.mpick { display: grid; gap: 8px; margin-bottom: 16px; }
.mpick__current { display: flex; align-items: center; gap: 10px; }
.mpick__current img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.mpick__lib summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--plum-2); }
.mpick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 8px 2px; }
.mpick__opt { position: relative; display: grid; gap: 4px; font-size: .72rem; color: var(--muted); cursor: pointer; }
.mpick__opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); }
.mpick__opt input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; accent-color: var(--coral); }
.mpick__opt input:checked + img { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-100); }
.mpick__opt--none { place-content: center; aspect-ratio: 4 / 3; border: 2px dashed var(--line); border-radius: 8px; padding: 6px 6px 6px 28px; }
.mpick__opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpick__up { font-size: .82rem; color: var(--muted); }
.shot-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.shot-row .input { min-height: 40px; padding: 8px 10px; }
.shot-row:not(:has(img)) { grid-template-columns: 1fr 1fr; }
.js .shot-row.is-spare { display: none; }
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 14px; }
