/* =========================================================
   WELPER ID — Design System
   Dipakai bareng oleh SEMUA halaman: index (welcome), masuk (login/daftar),
   dashboard, produk, pengumuman, tim-support, settings, profile.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Baloo+2:wght@700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --radius: 0.8rem;
  color-scheme: dark;
  --background: #000000;
  --foreground: #ffffff;
  --card: #0b0b0b;
  --primary: #ffffff;
  --primary-bright: #ffffff;
  --primary-foreground: #000000;
  --secondary: #1a1a1a;
  --muted-foreground: #a8a8a8;
  --accent: #1a1a1a;
  --destructive: #ff6b6b;
  --border: #262626;
  --input: #262626;
  --surface: #0b0b0b;
  --surface-raised: #141414;
  --line: #262626;
  --success: #4ade80;
  --google: oklch(0.98 0.006 260);
  --google-muted: oklch(0.93 0.01 260);
  --google-foreground: oklch(0.2 0.02 260);
  --google-border: oklch(0.82 0.01 260);
  --shadow-neon: 0 4px 20px rgb(0 0 0 / .6);
  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-display: "Plus Jakarta Sans", sans-serif;
}

html, body { height: 100%; }
[hidden] { display: none !important; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes floatCenterX { 0%,100% { transform: translateX(-50%) translateY(0) rotate(-1deg); } 50% { transform: translateX(-50%) translateY(-14px) rotate(1deg); } }
@keyframes glow { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.page-enter { animation: rise .55s ease-out both; }

/* ---------- Brand ---------- */
.brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  display: inline-flex;
  align-items: flex-start;
  color: var(--foreground);
  line-height: 1;
}
.brand-plus { width: 17px; height: 17px; color: var(--primary); margin-left: 2px; stroke-width: 4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: 13px;
  padding: 0 22px;
  font-weight: 700;
  font-size: .95rem;
  border: 0;
  cursor: pointer;
  transition: .2s;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-neon); }
.btn-primary:hover:not(:disabled) { background: var(--primary-bright); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-google { background: var(--google); color: var(--google-foreground); border: 1px solid var(--google-border); }
.btn-google:hover { background: var(--google-muted); }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 20px; font-size: .85rem; font-weight: 500; }
.alert.success { background: color-mix(in oklab, var(--success) 16%, var(--surface)); color: var(--success); border: 1px solid color-mix(in oklab, var(--success) 35%, transparent); }
.alert.error { background: color-mix(in oklab, var(--destructive) 16%, var(--surface)); color: oklch(0.85 0.18 27); border: 1px solid color-mix(in oklab, var(--destructive) 35%, transparent); }

/* ---------- Landing / Welcome ---------- */
.landing { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 70% 45%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 28%), var(--background); }
.landing-nav { height: 86px; max-width: 1440px; margin: auto; padding: 0 5vw; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; }
.landing-links { display: flex; align-items: center; gap: 38px; }
.landing-links a { font-size: .88rem; color: var(--muted-foreground); transition: .2s; }
.landing-links a:hover, .landing-links a.active { color: var(--primary); }
.login-pill { justify-self: end; border: 1px solid var(--primary); color: var(--foreground); border-radius: 999px; height: 42px; padding: 0 22px; display: flex; align-items: center; gap: 10px; }
.login-pill svg { width: 17px; }
.menu-button { display: none; background: none; border: 0; color: var(--foreground); }
.hero { max-width: 1440px; min-height: 650px; margin: auto; padding: 72px 5vw 30px; display: grid; grid-template-columns: minmax(0,.87fr) minmax(500px,1.13fr); align-items: center; }
.hero-copy { z-index: 2; }
.hero h1 { font-family: var(--font-display); font-size: clamp(3.5rem,5.4vw,6rem); line-height: .94; margin: 0 0 28px; max-width: 760px; }
.hero h1 span { color: var(--primary); }
.hero h1 sup { color: var(--primary); font-size: .42em; margin-left: 8px; }
.hero-copy > p { max-width: 650px; line-height: 1.75; color: var(--muted-foreground); font-size: 1.03rem; margin: 0 0 28px; }
.hero-copy .btn { width: auto; }
.hero-art { position: relative; min-height: 570px; align-self: end; }
.hero-art > img { position: absolute; width: min(600px,52vw); max-width: none; right: 0; bottom: -20px; filter: drop-shadow(0 28px 45px color-mix(in oklab, var(--primary) 18%, transparent)); animation: float 5s ease-in-out infinite; }
.orbit { position: absolute; display: grid; place-items: center; width: 75px; height: 75px; border: 1px solid color-mix(in oklab, var(--primary) 55%, transparent); background: color-mix(in oklab, var(--surface) 88%, transparent); color: var(--primary); border-radius: 18px; z-index: 2; box-shadow: var(--shadow-neon); animation: float 4s ease-in-out infinite; }
.orbit svg { width: 32px; height: 32px; }
.orbit-one { right: 2%; top: 13%; transform: rotate(7deg); }
.orbit-two { left: 9%; top: 41%; animation-delay: -2s; }
.spark { position: absolute; color: var(--primary); animation: glow 2.2s ease-in-out infinite; }
.spark-one { right: 20%; top: 4%; width: 30px; }
.spark-two { left: 3%; top: 28%; width: 24px; animation-delay: -1s; }
.feature-row { display: flex; gap: 40px; margin-top: 54px; flex-wrap: wrap; }
.feature-row article { display: flex; gap: 12px; align-items: center; }
.feature-row svg { color: var(--primary); width: 27px; }
.feature-row div { display: flex; flex-direction: column; }
.feature-row b { font-size: .82rem; }
.feature-row span { font-size: .7rem; color: var(--muted-foreground); margin-top: 2px; }
.services { max-width: 1440px; margin: auto; padding: 72px 5vw 56px; border-top: 1px solid var(--line); }
.services-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.services-eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); border: 1px solid color-mix(in oklab, var(--primary) 45%, transparent); border-radius: 999px; padding: 6px 14px; margin-bottom: 16px; }
.services-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; }
.services-head p { color: var(--muted-foreground); font-size: .95rem; line-height: 1.7; margin: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px 26px 24px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, color-mix(in oklab, var(--primary) 7%, var(--card)), var(--card) 55%); transition: transform .25s, border-color .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-6px); border-color: color-mix(in oklab, var(--primary) 70%, transparent); box-shadow: var(--shadow-neon); }
.svc-num { position: absolute; top: 14px; right: 20px; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: color-mix(in oklab, var(--primary) 16%, transparent); pointer-events: none; }
.svc-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: var(--primary); background: color-mix(in oklab, var(--primary) 12%, transparent); border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent); margin-bottom: 22px; transition: .25s; }
.svc-icon svg { width: 26px; height: 26px; }
.svc-card:hover .svc-icon { background: var(--primary); color: var(--primary-foreground); }
.svc-card h3 { font-size: 1.12rem; margin: 0 0 8px; }
.svc-card p { color: var(--muted-foreground); font-size: .86rem; line-height: 1.7; margin: 0 0 18px; }
.svc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.svc-chips li { font-size: .7rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--foreground); background: color-mix(in oklab, var(--foreground) 4%, transparent); }
.svc-chips li::before { content: "✓"; color: var(--primary); margin-right: 6px; font-weight: 700; }
.svc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--primary); }
.svc-link svg { width: 16px; height: 16px; transition: transform .2s; }
.svc-card:hover .svc-link svg { transform: translateX(5px); }

/* ---------- Auth page (login / daftar) ---------- */
.auth-page { min-height: 100vh; padding: 5vh 4vw; display: grid; grid-template-columns: 1fr 1fr; background: var(--background); }
.auth-visual { position: relative; overflow: hidden; border: 2px solid var(--primary); border-radius: 30px 0 0 30px; background: var(--surface); min-height: 730px; }
.auth-visual > a { position: absolute; z-index: 3; left: 48px; top: 45px; }
.auth-visual img { position: absolute; width: 330px; max-width: 68%; height: auto; left: 50%; transform: translateX(-50%); bottom: 64px; z-index: 2; filter: drop-shadow(0 24px 40px color-mix(in oklab, var(--primary) 20%, transparent)); animation: floatCenterX 5s ease-in-out infinite; }
.auth-visual p { position: absolute; bottom: 24px; left: 48px; color: var(--muted-foreground); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; z-index: 3; }
.auth-glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in oklab, var(--primary) 18%, transparent); filter: blur(80px); left: 20%; top: 28%; }
.auth-card { border: 1px solid var(--line); border-radius: 0 30px 30px 0; background: linear-gradient(150deg, var(--surface-raised), var(--surface)); padding: clamp(40px,6vw,86px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.auth-heading > span, .eyebrow, .page-head > span { color: var(--primary); font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.auth-heading h1 { font: 800 3.25rem/1 var(--font-display); margin: 10px 0; }
.auth-heading h1 b { color: var(--primary); }
.auth-heading p { color: var(--muted-foreground); margin: 0 0 26px; }
.or { display: flex; align-items: center; gap: 20px; color: var(--muted-foreground); font-size: .8rem; margin: 24px 0; }
.or span { height: 1px; flex: 1; background: var(--line); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .field { height: 54px; border: 1px solid var(--input); border-radius: 13px; display: flex; align-items: center; padding: 0 16px; gap: 13px; transition: .2s; }
.auth-form .field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 12%, transparent); }
.auth-form .field > svg { color: var(--primary); width: 22px; flex-shrink: 0; }
.auth-form .field input { border: 0; background: transparent; color: var(--foreground); outline: 0; width: 100%; font: inherit; }
.auth-form .field button { border: 0; background: none; color: var(--muted-foreground); padding: 4px; cursor: pointer; display: flex; }
.form-message { font-size: .8rem; color: var(--primary); margin: -2px 0 0; }
.forgot-link { align-self: flex-end; background: none; border: 0; color: var(--muted-foreground); font-size: .8rem; cursor: pointer; margin-top: -4px; }
.forgot-link:hover { color: var(--primary); }
.switch-auth { text-align: center; color: var(--muted-foreground); font-size: .85rem; margin-top: 22px; }
.switch-auth button { background: none; border: 0; color: var(--primary); font-weight: 700; margin-left: 6px; cursor: pointer; font-size: inherit; }
.form-hidden { display: none !important; }

/* ---------- App shell (dashboard & halaman dalam akun) ---------- */
.app-frame { min-height: 100vh; display: grid; grid-template-columns: 245px minmax(0,1fr); }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 245px; border-right: 1px solid var(--line); background: var(--surface); padding: 31px 15px; display: flex; flex-direction: column; z-index: 20; overflow-y: auto; }
.sidebar-brand { padding: 0 16px 30px; display: block; }
.sidebar-nav { display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }
.side-link { height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-radius: 12px; color: var(--muted-foreground); font-weight: 600; font-size: .88rem; transition: .2s; }
.side-link svg { width: 20px; }
.side-link:hover, .side-link.active { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-neon); }
.sidebar-mascot { margin-top: auto; padding-top: 28px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.sidebar-mascot span { color: var(--primary); font: 700 1rem var(--font-display); transform: rotate(-8deg); margin-bottom: 6px; }
.sidebar-mascot img { display: block; width: 140px; height: auto; }
.app-main { grid-column: 2; min-width: 0; }
.app-topbar { height: 76px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 0 32px; background: color-mix(in oklab, var(--background) 95%, transparent); position: sticky; top: 0; z-index: 15; backdrop-filter: blur(16px); }
.mobile-brand { display: none; }
.topbar-search { height: 42px; border: 1px solid var(--line); border-radius: 11px; max-width: 360px; display: flex; align-items: center; gap: 11px; padding: 0 16px; color: var(--muted-foreground); font-size: .78rem; }
.topbar-search svg { width: 18px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.icon-action { width: 39px; height: 39px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface-raised); color: var(--foreground); cursor: pointer; }
.avatar-button { height: 43px; text-decoration: none; border: 0; background: none; color: var(--foreground); display: flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; }
.avatar-button img { width: 40px; height: 40px; border: 1px solid var(--primary); border-radius: 50%; object-fit: cover; }
.avatar-button svg { width: 16px; }
.mobile-nav { display: none; }
.app-content { padding: 22px; max-width: 1400px; margin: auto; }

/* ---------- Dashboard ---------- */
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(290px,.9fr); gap: 18px; }
.dashboard-grid.single { grid-template-columns: minmax(0,1fr); }
.welcome-banner > div { position: relative; z-index: 2; }
.banner-cta { width: auto; height: 42px; margin-top: 16px; padding: 0 20px; font-size: .85rem; border-radius: 11px; }
.dash-center, .dash-right { display: flex; flex-direction: column; gap: 18px; }
.welcome-banner { min-height: 240px; border: 1px solid color-mix(in oklab, var(--primary) 24%, var(--line)); border-radius: 12px; background: linear-gradient(110deg, var(--surface), color-mix(in oklab, var(--primary) 11%, var(--surface))); position: relative; overflow: hidden; padding: 31px; }
.welcome-banner h1 { font: 700 2rem/1.1 var(--font-display); margin: 9px 0; }
.welcome-banner h1 b { color: var(--primary); }
.welcome-banner p { font-size: .8rem; color: var(--muted-foreground); max-width: 310px; }
.welcome-banner img { position: absolute; width: 210px; right: 3%; bottom: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.stat-card, .panel, .catalog-card { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.stat-card { min-height: 140px; padding: 17px; display: flex; flex-direction: column; position: relative; }
.stat-icon, .catalog-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in oklab, var(--primary) 14%, transparent); color: var(--primary); }
.stat-card > span { font-size: .75rem; margin-top: 10px; color: var(--muted-foreground); }
.stat-card > strong { font-size: 1.5rem; margin-top: 3px; }
.stat-card > small { font-size: .66rem; color: var(--primary); margin-top: auto; }
.history-panel, .quick-panel, .balance-card { padding: 17px; }
.panel-title, .panel-title > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-title > div svg { color: var(--primary); width: 20px; }
.panel-title h2 { font-size: .9rem; margin: 0; }
.panel-title a { font-size: .68rem; color: var(--primary); display: flex; align-items: center; gap: 5px; }
.panel-title a svg { width: 14px; }
.transaction-list { margin-top: 13px; border: 1px solid var(--line); border-radius: 9px; padding: 0 13px; }
.transaction { min-height: 55px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: .74rem; }
.transaction:last-child { border: 0; }
.transaction-icon { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--primary) 13%, transparent); color: var(--primary); }
.transaction-icon svg { width: 15px; }
.transaction div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.transaction div:nth-child(2) strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transaction small { color: var(--muted-foreground); font-size: .62rem; }
.transaction .status { color: var(--primary); font-size: .64rem; }
.transaction > b { font-size: .7rem; }
.balance-card { display: flex; flex-direction: column; gap: 10px; }
.balance-card .balance-top { display: flex; align-items: center; gap: 15px; }
.balance-card .balance-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--primary) 14%, transparent); color: var(--primary); flex-shrink: 0; }
.balance-card .balance-top div { display: flex; flex-direction: column; }
.balance-card small { color: var(--muted-foreground); }
.balance-card strong { font-size: 1.55rem; }
.balance-card .balance-detail { font-size: .7rem; color: var(--primary); }
.quick-list { display: flex; flex-direction: column; gap: 9px; margin-top: 13px; }
.quick-list > a { min-height: 58px; border: 1px solid var(--line); border-radius: 9px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 0 14px; transition: .2s; }
.quick-list > a:hover { border-color: var(--primary); transform: translateX(3px); }
.quick-list > a > svg:first-child { color: var(--primary); width: 23px; }
.quick-list > a > svg:last-child { width: 16px; color: var(--primary); }
.quick-list span { display: flex; flex-direction: column; }
.quick-list b { font-size: .75rem; }
.quick-list small { color: var(--muted-foreground); font-size: .62rem; }
.support-card { background: linear-gradient(135deg, var(--surface), color-mix(in oklab, var(--primary) 8%, var(--surface))); border: 1px solid var(--line); border-radius: 11px; min-height: 100px; padding: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.support-card > svg { color: var(--primary); }
.support-card div { display: flex; flex-direction: column; }
.support-card strong { font-size: .75rem; }
.support-card span { font-size: .63rem; color: var(--muted-foreground); }

/* ---------- Floating support button (FAB) ---------- */
.fab-support { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-main { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-foreground); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-neon); transition: transform .2s; }
.fab-main:hover { transform: scale(1.06); }
.fab-main svg { width: 24px; height: 24px; position: absolute; transition: opacity .15s, transform .15s; }
.fab-icon-close { opacity: 0; transform: rotate(-45deg) scale(.6); }
.fab-support.open .fab-icon-open { opacity: 0; transform: rotate(45deg) scale(.6); }
.fab-support.open .fab-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.fab-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.fab-item { pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--surface-raised); border: 1px solid var(--line); color: var(--foreground); font-size: .8rem; font-weight: 600; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.fab-item-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--primary) 16%, transparent); color: var(--primary); flex-shrink: 0; }
.fab-item-icon svg { width: 16px; height: 16px; }
.fab-support.open .fab-menu { pointer-events: auto; }
.fab-support.open .fab-item { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab-support.open .fab-item:nth-child(1) { transition-delay: .06s; }
.fab-support.open .fab-item:nth-child(2) { transition-delay: .03s; }
.fab-support.open .fab-item:nth-child(3) { transition-delay: 0s; }
@media (max-width: 900px) {
  .fab-support { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); }
  .fab-main { width: 52px; height: 52px; }
}

/* ---------- AI Chat Widget (Asisten AI Support) ---------- */
.ai-chat-panel {
  position: fixed; right: 24px; bottom: 98px; z-index: 55;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 140px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.ai-chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ai-chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 22%, var(--surface-raised)), var(--surface-raised));
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.ai-chat-head-info { display: flex; align-items: center; gap: 10px; }
.ai-chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: var(--primary-foreground);
  display: grid; place-items: center;
}
.ai-chat-avatar svg { width: 20px; height: 20px; }
.ai-avatar-wrap { position: relative; overflow: hidden; }
.ai-avatar-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fab-item-icon.ai-avatar-wrap svg { width: 16px; height: 16px; }
.ai-chat-head-info strong { display: block; font-size: .9rem; color: var(--foreground); }
.ai-chat-head-info small { display: block; font-size: .72rem; color: var(--muted-foreground); margin-top: 1px; }
.ai-chat-close { background: transparent; border: 0; color: var(--muted-foreground); cursor: pointer; padding: 6px; border-radius: 50%; display: grid; place-items: center; }
.ai-chat-close:hover { background: color-mix(in oklab, var(--foreground) 8%, transparent); color: var(--foreground); }
.ai-chat-close svg { width: 18px; height: 18px; }

.ai-chat-body {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
  background:
    radial-gradient(circle at 15% 0%, color-mix(in oklab, var(--primary) 6%, transparent), transparent 55%),
    var(--surface);
}
.ai-msg { display: flex; flex-direction: column; max-width: 86%; }
.ai-msg-model { align-self: flex-start; align-items: flex-start; }
.ai-msg-user { align-self: flex-end; align-items: flex-end; }
.ai-msg-bubble {
  padding: 10px 14px; border-radius: 14px; font-size: .84rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.ai-msg-model .ai-msg-bubble { background: var(--surface-raised); border: 1px solid var(--line); color: var(--foreground); border-bottom-left-radius: 4px; }
.ai-msg-user .ai-msg-bubble { background: var(--primary); color: var(--primary-foreground); border-bottom-right-radius: 4px; font-weight: 500; }
.ai-msg-time { font-size: .66rem; color: var(--muted-foreground); margin-top: 4px; padding: 0 4px; }
.ai-msg-typing .ai-msg-bubble { display: flex; align-items: center; gap: 4px; padding: 12px 16px; }
.ai-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-foreground); animation: aiDotPulse 1.1s ease-in-out infinite; }
.ai-dot:nth-child(2) { animation-delay: .15s; }
.ai-dot:nth-child(3) { animation-delay: .3s; }
@keyframes aiDotPulse { 0%, 60%, 100% { opacity: .3; transform: scale(.8); } 30% { opacity: 1; transform: scale(1); } }

.ai-chat-quicklinks {
  display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--border); flex-shrink: 0; flex-wrap: wrap;
}
.ai-chat-quicklinks a {
  flex: 1; text-align: center; font-size: .7rem; font-weight: 600; padding: 7px 6px; border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary);
  border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent); white-space: nowrap;
}
.ai-chat-quicklinks a:hover { background: color-mix(in oklab, var(--primary) 18%, transparent); }

.ai-chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; background: var(--surface-raised); }
.ai-chat-input input {
  flex: 1; background: var(--input); border: 1px solid var(--border); border-radius: 999px; color: var(--foreground);
  padding: 10px 16px; font-size: .84rem; font-family: var(--font-sans);
}
.ai-chat-input input:focus { outline: none; border-color: var(--primary); }
.ai-chat-input button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-foreground);
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: transform .15s;
}
.ai-chat-input button:hover { transform: scale(1.06); }
.ai-chat-input button svg { width: 17px; height: 17px; }

@media (max-width: 900px) {
  .ai-chat-panel { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); width: calc(100vw - 32px); height: calc(100vh - 190px); }
}
@media (max-width: 480px) {
  .ai-chat-panel { right: 8px; left: 8px; width: auto; }
}
.chat-mode .ai-chat-panel { display: none; }

/* ---------- Section pages: produk / pengumuman / tim-support / settings ---------- */
.section-page { padding: 16px 6px; }
.page-head { margin-bottom: 34px; }
.page-head h1 { font: 700 clamp(2.2rem,4vw,3.8rem) var(--font-display); margin: 6px 0; }
.page-head p { color: var(--muted-foreground); margin: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.catalog-card { min-height: 260px; padding: 24px; display: flex; flex-direction: column; transition: .25s; }
.catalog-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-neon); }
.catalog-icon { width: 48px; height: 48px; border-radius: 12px; }
.catalog-card h2 { font: 700 1.2rem var(--font-display); margin: 24px 0 7px; }
.catalog-card p { font-size: .8rem; line-height: 1.6; color: var(--muted-foreground); }
.catalog-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.catalog-bottom strong { color: var(--primary); font-size: .83rem; }
.catalog-bottom .btn-icon { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-foreground); display: grid; place-items: center; cursor: pointer; }

/* ---------- Profile ---------- */
.profile-form { max-width: 650px; padding: 28px; display: flex; flex-direction: column; gap: 17px; }
.profile-avatar { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--primary) 13%, transparent); color: var(--primary); margin-bottom: 4px; }
.profile-avatar svg { width: 34px; height: 34px; }
.profile-form label { height: auto; min-height: 62px; align-items: flex-start; flex-direction: column; gap: 5px; padding: 10px 16px; font-size: .69rem; color: var(--muted-foreground); border: 1px solid var(--input); border-radius: 13px; display: flex; transition: .2s; }
.profile-form label:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 12%, transparent); }
.profile-form input { border: 0; background: transparent; color: var(--foreground); outline: 0; width: 100%; font: inherit; font-size: .9rem; }
.profile-form input:disabled { opacity: .6; }
.profile-form .btn { width: auto; align-self: flex-start; padding: 0 26px; }

@media (max-width: 900px) {
  .landing-nav { height: 70px; padding: 0 20px; grid-template-columns: 1fr auto; }
  .landing-nav .brand { font-size: 1.55rem; }
  .landing-links { position: absolute; top: 66px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; z-index: 30; }
  .landing-links.open { display: flex; }
  .landing-links a { padding: 14px; }
  .login-pill { display: none; }
  .menu-button { display: grid; place-items: center; }
  .hero { min-height: auto; padding: 48px 20px 0; grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.8rem,13vw,4.6rem); }
  .hero-copy > p { font-size: .9rem; }
  .hero-art { min-height: 300px; }
  .hero-art > img { width: min(280px,68vw); left: 50%; right: auto; transform: translateX(-50%); bottom: 0; animation: floatCenterX 5s ease-in-out infinite; }
  .orbit-one { right: 2%; }
  .orbit-two { left: 0; }
  .feature-row { gap: 15px; justify-content: space-between; margin-top: 38px; }
  .feature-row article { gap: 7px; }
  .feature-row svg { width: 22px; }
  .services { padding: 48px 20px 36px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }

  .auth-page { padding: 0; grid-template-columns: 1fr; }
  .auth-visual { min-height: 240px; border-radius: 0; border-width: 0 0 1px; }
  .auth-visual > a { left: 24px; top: 24px; }
  .auth-visual img { width: 150px; max-width: none; left: auto; right: 16px; bottom: 0; transform: none; animation: none; }
  .auth-visual p { left: 24px; bottom: 16px; max-width: 42%; line-height: 1.6; font-size: .62rem; }
  .auth-card { border: 0; border-radius: 0; padding: 32px 22px; }
  .auth-heading h1 { font-size: 2.4rem; }

  .app-frame { display: block; }
  .sidebar { display: none; }
  .app-main { min-height: 100vh; }
  .app-topbar { height: 64px; padding: 0 16px; grid-template-columns: auto 1fr auto; }
  .usr-drawer-mode .app-topbar { grid-template-columns: 1fr auto; }
  .mobile-brand { display: block; }
  .mobile-brand .brand { font-size: 1.45rem; }
  .avatar-button span { display: none; }
  .app-content { padding: 14px 14px 84px; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(5,1fr); bottom: 0; left: 0; right: 0; height: 72px; background: color-mix(in oklab, var(--surface) 96%, transparent); backdrop-filter: blur(18px); border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted-foreground); font-size: .58rem; min-width: 0; }
  .mobile-link svg { width: 20px; }
  .mobile-link.active { color: var(--primary); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .welcome-banner { min-height: 215px; padding: 24px; }
  .welcome-banner h1 { font-size: 1.65rem; }
  .welcome-banner p { max-width: 55%; font-size: .7rem; }
  .welcome-banner img { width: 150px; right: 0; bottom: 0; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 12px; min-height: 128px; }
  .stat-card > span { font-size: .66rem; }
  .stat-card > strong { font-size: 1.15rem; }
  .stat-card > small { font-size: .56rem; }
  .dash-right { display: grid; grid-template-columns: 1fr; }
  .transaction { grid-template-columns: auto minmax(0,1fr) auto; }
  .transaction .status { display: none; }
  .transaction > b { font-size: .62rem; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { min-height: 210px; }
  .section-page { padding: 7px 0; }
  .page-head { margin-bottom: 24px; }
  .profile-form { padding: 18px; }
}
@media (max-width: 420px) {
  .feature-row article span { display: none; }
  .feature-row { gap: 8px; }
  .stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .stat-icon { width: 32px; height: 32px; }
  .stat-card { padding: 10px; }
  .stat-card > strong { font-size: 1rem; }
  .welcome-banner img { opacity: .72; }
  .auth-card { padding-inline: 18px; }
  .brand { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* =========================================================
   v5 — Halaman dalam akun: hero, produk, pengumuman, support, profile
   ========================================================= */
.pg-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; padding: 30px; border: 1px solid color-mix(in oklab, var(--primary) 22%, var(--line)); border-radius: 16px; background: radial-gradient(circle at 92% 0%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 46%), linear-gradient(120deg, var(--surface), color-mix(in oklab, var(--primary) 6%, var(--surface))); position: relative; overflow: hidden; }
.pg-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: color-mix(in oklab, var(--primary) 14%, transparent); border: 1px solid color-mix(in oklab, var(--primary) 35%, transparent); color: var(--primary); font-size: .64rem; font-weight: 800; letter-spacing: .14em; }
.pg-hero h1, .support-hero h1 { font: 800 clamp(2rem,4vw,3.2rem)/1.05 var(--font-display); margin: 12px 0 8px; }
.pg-hero h1 b, .support-hero h1 b { color: var(--primary); }
.pg-hero p, .support-hero p { color: var(--muted-foreground); font-size: .92rem; line-height: 1.6; max-width: 520px; }
.pg-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-hero-chips span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: color-mix(in oklab, var(--surface-raised) 80%, transparent); font-size: .75rem; font-weight: 600; }
.pg-hero-chips svg { color: var(--primary); }

/* Produk */
.filter-tabs { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.filter-tabs button { height: 38px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: var(--muted-foreground); font-weight: 700; font-size: .8rem; cursor: pointer; transition: .2s; }
.filter-tabs button:hover { color: var(--foreground); }
.filter-tabs button.active { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-neon); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, var(--surface-raised), var(--surface)); transition: .25s; position: relative; overflow: hidden; }
.product-card::before { content: ""; position: absolute; width: 170px; height: 170px; right: -70px; top: -70px; border-radius: 50%; background: color-mix(in oklab, var(--primary) 16%, transparent); filter: blur(30px); opacity: .0; transition: .3s; }
.product-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-neon); }
.product-card:hover::before { opacity: 1; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in oklab, var(--primary) 14%, transparent); border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent); color: var(--primary); }
.product-tag { font-size: .65rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted-foreground); }
.product-card h2 { font: 700 1.3rem var(--font-display); margin: 20px 0 6px; }
.product-card > p { font-size: .82rem; line-height: 1.6; color: var(--muted-foreground); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 18px 0 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 500; }
.check-list li svg { flex-shrink: 0; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: color-mix(in oklab, var(--primary) 18%, transparent); color: var(--primary); stroke-width: 3; }
.product-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { display: flex; flex-direction: column; }
.product-price small { font-size: .62rem; color: var(--muted-foreground); }
.product-price strong { font-size: 1.3rem; color: var(--primary); }
.btn-order { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px; background: var(--primary); color: var(--primary-foreground); font-weight: 700; font-size: .82rem; transition: .2s; }
.btn-order:hover { background: var(--primary-bright); box-shadow: var(--shadow-neon); }

/* Toko panel (dalam akun) — fleksibel: 2 kolom bila muat, otomatis 1 kolom di HP sempit */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; }
.shop-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, var(--surface-raised), var(--surface)); transition: .25s; }
.shop-card:hover { border-color: var(--primary); box-shadow: var(--shadow-neon); }
.shop-card h3 { font: 700 1.05rem var(--font-display); margin: 0 0 4px; overflow-wrap: break-word; }
.shop-card .shop-desc { font-size: .78rem; line-height: 1.4; color: var(--muted-foreground); min-height: 34px; margin: 0 0 10px; overflow-wrap: break-word; }
.shop-specs { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 7px; }
.shop-specs li { display: flex; align-items: center; gap: 7px; font-size: .72rem; color: var(--muted-foreground); min-width: 0; overflow-wrap: break-word; }
.shop-specs li svg { flex-shrink: 0; width: 15px; height: 15px; padding: 3px; border-radius: 6px; background: color-mix(in oklab, var(--primary) 14%, transparent); color: var(--primary); stroke-width: 2.4; box-sizing: content-box; }
.shop-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.shop-price { display: flex; flex-direction: column; }
.shop-price small { font-size: .6rem; color: var(--muted-foreground); }
.shop-price strong { font-size: 1.15rem; color: var(--primary); line-height: 1.3; }
.shop-card .btn-order { width: 100%; justify-content: center; }
@media (max-width: 480px) {
  .shop-grid { gap: 10px; }
  .shop-card { padding: 14px; }
  .shop-card h3 { font-size: .92rem; }
  .shop-desc { font-size: .7rem; min-height: 30px; }
  .shop-price strong { font-size: 1rem; }
}

/* Pengumuman */
.status-banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 26px; border-radius: 14px; border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--line)); background: color-mix(in oklab, var(--primary) 9%, var(--surface)); }
.status-banner > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.status-banner strong { font-size: .9rem; }
.status-banner small { color: var(--muted-foreground); font-size: .72rem; margin-top: 2px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 60%, transparent); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 55%, transparent); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.status-chip { font-size: .68rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); }
.timeline { position: relative; display: flex; flex-direction: column; gap: 16px; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 24px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--primary), var(--line)); opacity: .5; }
.timeline-item { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 16px; position: relative; }
.timeline-marker { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--background); border: 2px solid var(--primary); color: var(--primary); z-index: 1; }
.timeline-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, var(--surface-raised), var(--surface)); transition: .2s; }
.timeline-card:hover { border-color: color-mix(in oklab, var(--primary) 55%, var(--line)); }
.timeline-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.timeline-label { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--primary); }
.kind-promo .timeline-label { background: color-mix(in oklab, oklch(0.82 0.16 85) 18%, transparent); color: oklch(0.86 0.15 85); }
.kind-promo .timeline-marker { border-color: oklch(0.82 0.16 85); color: oklch(0.86 0.15 85); }
.kind-update .timeline-label { background: color-mix(in oklab, oklch(0.980 0 235) 18%, transparent); color: oklch(0.980 0 235); }
.kind-update .timeline-marker { border-color: oklch(0.980 0 235); color: oklch(0.980 0 235); }
.timeline-date { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; color: var(--muted-foreground); }
.timeline-card h2 { font: 700 1.1rem var(--font-display); margin-bottom: 4px; }
.timeline-card p { font-size: .8rem; line-height: 1.6; color: var(--muted-foreground); }

/* Tim Support */
.support-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 260px; padding: 32px 36px; margin-bottom: 20px; border: 1px solid color-mix(in oklab, var(--primary) 24%, var(--line)); border-radius: 16px; background: radial-gradient(circle at 85% 60%, color-mix(in oklab, var(--primary) 20%, transparent), transparent 45%), linear-gradient(120deg, var(--surface), color-mix(in oklab, var(--primary) 7%, var(--surface))); }
.support-hero-text { position: relative; z-index: 2; }
.support-hero img { position: absolute; right: 5%; bottom: -4px; width: 230px; height: auto; filter: drop-shadow(0 18px 30px color-mix(in oklab, var(--primary) 22%, transparent)); }
.support-cta { width: auto; height: 46px; margin-top: 20px; padding: 0 22px; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.channel-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, var(--surface-raised), var(--surface)); transition: .25s; }
.channel-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.channel-card.primary { border-color: color-mix(in oklab, var(--primary) 50%, var(--line)); background: linear-gradient(160deg, color-mix(in oklab, var(--primary) 14%, var(--surface-raised)), var(--surface)); }
.channel-top { display: flex; align-items: center; justify-content: space-between; }
.channel-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--primary); }
.channel-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: color-mix(in oklab, var(--primary) 16%, transparent); color: var(--primary); }
.channel-card h2 { font: 700 1.15rem var(--font-display); margin: 18px 0 5px; }
.channel-card > p { font-size: .8rem; line-height: 1.55; color: var(--muted-foreground); margin-bottom: 18px; }
.channel-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; font-size: .82rem; }
.channel-link:hover { gap: 12px; }
.support-lower { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 16px; }
.faq-panel, .email-panel { padding: 22px; border-radius: 16px; }
.faq-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 15px 44px 15px 16px; font-size: .84rem; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--primary); transition: .2s; }
.faq-item[open] { border-color: color-mix(in oklab, var(--primary) 45%, var(--line)); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 16px 16px; font-size: .8rem; line-height: 1.65; color: var(--muted-foreground); }
.email-panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(160deg, color-mix(in oklab, var(--primary) 9%, var(--surface)), var(--surface)); }
.email-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--primary); margin-bottom: 16px; }
.email-panel h2 { font: 700 1.15rem var(--font-display); margin-bottom: 6px; }
.email-panel p { font-size: .8rem; line-height: 1.55; color: var(--muted-foreground); margin-bottom: 14px; }
.email-panel a { color: var(--primary); font-weight: 700; font-size: .85rem; word-break: break-all; }

/* Profile */
.profile-layout { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 18px; align-items: start; }
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 24px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle at 50% 0%, color-mix(in oklab, var(--primary) 16%, transparent), transparent 60%), linear-gradient(160deg, var(--surface-raised), var(--surface)); }
.avatar-wrap { margin-bottom: 18px; }
.avatar-xl { position: relative; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; background: var(--secondary); border: 3px solid var(--primary); box-shadow: var(--shadow-neon); color: var(--primary); font: 800 2.6rem var(--font-display); overflow: visible; }
.avatar-xl img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-xl svg { width: 48px; height: 48px; }
.avatar-editable { cursor: pointer; }
.avatar-editable:hover { filter: brightness(1.08); }
.avatar-camera { position: absolute; right: -2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-foreground); border: 3px solid var(--surface); }
.avatar-camera svg { width: 17px; height: 17px; }
.profile-card h2 { font: 700 1.35rem var(--font-display); word-break: break-word; }
.profile-email { font-size: .78rem; color: var(--muted-foreground); margin-top: 3px; word-break: break-all; }
.profile-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.chip { font-size: .66rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted-foreground); }
.chip-primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.avatar-hint { margin-top: 16px; font-size: .7rem; line-height: 1.5; color: var(--muted-foreground); max-width: 230px; }
.profile-admin-btn { width: 100%; margin-top: 18px; height: 44px; font-size: .85rem; }
.profile-fields { padding: 24px; display: flex; flex-direction: column; gap: 14px; border-radius: 16px; }
.pf-field { display: flex; flex-direction: column; gap: 5px; padding: 11px 16px; font-size: .68rem; font-weight: 600; color: var(--muted-foreground); border: 1px solid var(--input); border-radius: 13px; transition: .2s; }
.pf-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 12%, transparent); }
.pf-field input { border: 0; background: transparent; color: var(--foreground); outline: 0; width: 100%; font: inherit; font-size: .92rem; font-weight: 500; }
.pf-field input:disabled { opacity: .55; }
.field-note { font-size: .68rem; color: var(--muted-foreground); margin-top: -6px; }
.profile-fields .btn { width: auto; align-self: flex-start; padding: 0 28px; margin-top: 4px; }

@media (max-width: 900px) {
  .pg-hero { padding: 22px 18px; }
  .pg-hero-chips span { height: 34px; font-size: .7rem; padding: 0 11px; }
  .product-grid, .channel-grid { grid-template-columns: 1fr; }
  .product-card { padding: 20px; }
  .filter-tabs { display: flex; }
  .filter-tabs button { flex: 1; padding: 0 8px; }
  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: 36px minmax(0,1fr); gap: 12px; }
  .timeline-marker { width: 36px; height: 36px; }
  .support-hero { min-height: 240px; padding: 24px 20px; align-items: flex-start; }
  .support-hero p { max-width: 62%; font-size: .8rem; }
  .support-hero img { width: 150px; right: 8px; }
  .support-lower { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-fields .btn { width: 100%; }
}

/* ---------- Auth v6: verifikasi email & lupa password (memakai token existing) ---------- */
.alert.info { background: color-mix(in oklab, var(--primary) 10%, var(--surface)); color: var(--foreground); border: 1px solid color-mix(in oklab, var(--primary) 28%, transparent); }
a.forgot-link { text-decoration: none; }
.auth-heading.compact h1 { font-size: 2.5rem; }
.auth-heading .code-target { margin: -14px 0 26px; color: var(--foreground); font-weight: 700; word-break: break-all; }
.auth-form .field input.code-input { letter-spacing: .18em; font-weight: 700; font-size: 1.05rem; }
.auth-form .field input.code-input::placeholder { letter-spacing: normal; font-weight: 400; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--foreground); border: 1px solid var(--input); }
.btn-ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-ghost:disabled { opacity: .6; cursor: not-allowed; }
.resend-form { margin-top: 14px; }
.switch-auth a { color: var(--primary); font-weight: 700; text-decoration: none; }
.switch-auth a:hover { text-decoration: underline; }
@media (max-width: 860px) { .auth-heading.compact h1 { font-size: 2rem; } }

/* =========================================================
   PANEL STORE SYSTEM — form, table, modal, checkout, badges
   ========================================================= */
.field-label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; color: var(--muted-foreground); font-weight: 600; }
.text-input, .select-input, textarea.text-input {
  height: 48px; border: 1px solid var(--input, var(--border)); border-radius: 12px; padding: 0 14px;
  background: var(--surface, transparent); color: var(--foreground); font: inherit; outline: 0; transition: .2s; width: 100%;
}
textarea.text-input { height: auto; padding: 12px 14px; min-height: 80px; resize: vertical; }
.text-input:focus, .select-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 14%, transparent); }
select.select-input { appearance: none; }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 640px; }
table.admin-table th { text-align: left; padding: 12px 16px; color: var(--muted-foreground); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
table.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.admin-table tr:last-child td { border-bottom: 0; }
table.admin-table tr:hover td { background: color-mix(in oklab, var(--primary) 4%, transparent); }

.badge { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .03em; }
.badge-green { background: color-mix(in oklab, #22c55e 20%, transparent); color: #4ade80; }
.badge-yellow { background: color-mix(in oklab, #eab308 20%, transparent); color: #facc15; }
.badge-red { background: color-mix(in oklab, #ef4444 20%, transparent); color: #f87171; }
.badge-gray { background: color-mix(in oklab, var(--muted-foreground) 18%, transparent); color: var(--muted-foreground); }

.btn-sm { height: 34px; padding: 0 14px; font-size: .78rem; border-radius: 9px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.modal-box h2 { margin-top: 0; }
.modal-close { position: absolute; }

.duration-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 10px; }
.duration-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: .2s; }
.duration-card input { display: none; }
.duration-card span.label { display: block; font-weight: 700; font-size: .85rem; }
.duration-card span.price { display: block; color: var(--muted-foreground); font-size: .75rem; margin-top: 4px; }
.duration-card:has(input:checked) { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 10%, transparent); box-shadow: var(--shadow-neon); }

.node-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.node-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; text-align: center; }
.node-card input { display: none; }
.node-card small { display: block; color: var(--muted-foreground); font-size: .68rem; margin-top: 4px; }
.node-card:has(input:checked) { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 10%, transparent); }

.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; text-align: center; }
.pay-card input { display: none; }
.pay-card:has(input:checked) { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 10%, transparent); }

.price-summary { border-top: 1px dashed var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.price-summary .row { display: flex; justify-content: space-between; }
.price-summary .total { font-size: 1.1rem; font-weight: 800; color: var(--primary); }

.qr-box { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.qr-box iframe { width: 100%; max-width: 380px; height: 560px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.qr-status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: .8rem; }
.qr-status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulseDot 1.2s infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.riwayat-card { border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.riwayat-row { display: flex; justify-content: space-between; font-size: .82rem; gap: 12px; }
.riwayat-row span:first-child { color: var(--muted-foreground); }
.riwayat-row .secret { font-family: monospace; letter-spacing: .04em; }
.copy-btn { border: 1px solid var(--border); background: none; color: var(--foreground); padding: 3px 9px; border-radius: 8px; font-size: .68rem; cursor: pointer; margin-left: 8px; }
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--card); border: 1px solid var(--primary); color: var(--foreground); padding: 12px 22px; border-radius: 999px; font-size: .82rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 300; box-shadow: var(--shadow-neon); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.promo-form { display: flex; gap: 8px; }
.promo-form input { flex: 1; }

@media (max-width: 640px) {
  .duration-options, .node-options, .pay-options { grid-template-columns: 1fr; }
}

/* =========================================================
   PENGUMUMAN — ikon & label berwarna sesuai jenis (v7)
   Warna dikirim dari PHP lewat variabel --kc di tiap item.
   ========================================================= */
.timeline-item { --kc: var(--primary); }
.timeline-item .timeline-marker { border-color: var(--kc); color: var(--kc); background: color-mix(in oklab, var(--kc) 14%, var(--background)); box-shadow: 0 0 16px -4px var(--kc); }
.timeline-item .timeline-label { background: color-mix(in oklab, var(--kc) 16%, transparent); color: var(--kc); }
.timeline-item .timeline-card { border-left: 3px solid color-mix(in oklab, var(--kc) 70%, transparent); }
.timeline-item .timeline-card:hover { border-color: var(--kc); }
.timeline-pin { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; color: var(--kc); font-weight: 700; }

/* ===================================================================
   TIKET — chat mirip WhatsApp
   =================================================================== */
#cat-options { grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); }
.wa-chat-box { display: flex; flex-direction: column; height: min(72vh, 640px); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.wa-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface-raised); border-bottom: 1px solid var(--border); }
.wa-chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.wa-chat-head strong { display: block; font-size: .92rem; }
.wa-status-pill { font-size: .68rem; padding: 2px 9px; border-radius: 999px; display: inline-block; margin-top: 2px; }
.wa-status-pill.open { background: color-mix(in oklab, var(--success) 18%, transparent); color: var(--success); }
.wa-status-pill.closed { background: color-mix(in oklab, var(--destructive) 18%, transparent); color: oklch(0.85 0.18 27); }
.wa-chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 2px; background:
  radial-gradient(circle at 20% 20%, color-mix(in oklab, var(--primary) 4%, transparent), transparent 40%),
  var(--background); }
.wa-bubble-row { display: flex; margin: 3px 0; }
.wa-bubble-row.me { justify-content: flex-end; }
.wa-bubble-row.them { justify-content: flex-start; }
.wa-bubble { max-width: 76%; padding: 8px 11px 6px; border-radius: 13px; font-size: .85rem; line-height: 1.45; position: relative; }
.wa-bubble.me { background: color-mix(in oklab, var(--primary) 22%, var(--surface-raised)); border-bottom-right-radius: 3px; }
.wa-bubble.them { background: var(--surface-raised); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.wa-bubble-text { white-space: pre-wrap; word-break: break-word; }
.wa-bubble-time { display: block; text-align: right; font-size: .62rem; color: var(--muted-foreground); margin-top: 3px; }
.wa-bubble-img { display: block; max-width: 100%; border-radius: 9px; margin-bottom: 6px; cursor: zoom-in; }
.wa-chat-input { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface-raised); }
.wa-chat-input input[type=text] { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; color: var(--foreground); font-size: .85rem; }
.wa-attach { cursor: pointer; color: var(--muted-foreground); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.wa-attach:hover { background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.wa-send { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); display: grid; place-items: center; flex-shrink: 0; }

/* ===================================================================
   ADMIN — Kelola Tiket
   =================================================================== */
.tk-admin-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.tk-list { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; max-height: 76vh; overflow-y: auto; }
.tk-list-tabs { display: flex; border-bottom: 1px solid var(--border); }
.tk-list-tabs a { flex: 1; text-align: center; padding: 10px; font-size: .8rem; color: var(--muted-foreground); }
.tk-list-tabs a.active { color: var(--primary); border-bottom: 2px solid var(--primary); font-weight: 700; }
.tk-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.tk-item:hover { background: var(--surface-raised); }
.tk-item.active { background: color-mix(in oklab, var(--primary) 12%, var(--surface)); }
.tk-item .tk-top { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted-foreground); }
.tk-item strong { display: block; font-size: .85rem; margin: 3px 0; }
.tk-item .tk-sub { font-size: .76rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-empty { padding: 40px 20px; text-align: center; color: var(--muted-foreground); font-size: .85rem; }
.tk-chat-actions { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-raised); flex-wrap: wrap; }
@media (max-width: 860px) { .tk-admin-layout { grid-template-columns: 1fr; } }

/* ===================================================================
   POSTER / IKLAN — carousel dashboard
   =================================================================== */
.poster-carousel { position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--border); }
.poster-carousel .poster-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; }
.poster-track { display: flex; transition: transform 1s ease; }
.poster-slide { min-width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.poster-slide img { width: 100%; height: auto; max-height: 340px; object-fit: contain; display: block; background: var(--surface-raised); }
.poster-slide .poster-btn-wrap { position: absolute; bottom: 16px; left: 16px; }
.poster-dots { display: flex; justify-content: center; gap: 6px; padding: 10px; background: var(--surface-raised); }
.poster-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: .25s; }
.poster-dots span.active { background: var(--primary); width: 16px; border-radius: 4px; }

/* =====================================================================
   v9 — Top Up, Keuangan, notifikasi admin, laci menu admin, poster popup,
   editor foto profil, chat gaya WhatsApp
   ===================================================================== */

/* ---- Foto profil: selalu bulat (dulu jadi lonjong karena tinggi gambar "auto") ---- */
.avatar-xl { overflow: hidden; }
.avatar-xl img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.avatar-xl .avatar-camera { overflow: visible; }
.avatar-editable { overflow: visible; }
.avatar-editable img { position: absolute; inset: 0; }
.avatar-button img { aspect-ratio: 1 / 1; flex-shrink: 0; }

.crop-overlay { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 5, .82); backdrop-filter: blur(4px); }
.crop-box { width: 100%; max-width: 360px; padding: 22px 20px 18px; border-radius: 22px; text-align: center; background: linear-gradient(165deg, var(--surface-raised), var(--surface)); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.crop-box h3 { font: 800 1.25rem var(--font-display); }
.crop-box p { font-size: .76rem; color: var(--muted-foreground); margin: 4px 0 14px; }
.crop-stage { position: relative; width: min(300px, 100%); aspect-ratio: 1 / 1; margin: 0 auto 14px; border-radius: 16px; overflow: hidden; background: #000; touch-action: none; }
.crop-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.crop-ring { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 200px rgba(0,0,0,.6); outline: 2px solid var(--primary); outline-offset: -2px; }
.crop-box input[type=range] { width: 100%; accent-color: var(--primary); margin-bottom: 14px; }
.crop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- Saldo di topbar & dashboard ---- */
.balance-pill { display: inline-flex; align-items: center; gap: 7px; height: 39px; padding: 0 8px 0 13px; border-radius: 999px; background: color-mix(in oklab, var(--primary) 12%, var(--surface-raised)); border: 1px solid color-mix(in oklab, var(--primary) 35%, transparent); color: var(--foreground); font-size: .78rem; white-space: nowrap; }
.balance-pill svg { color: var(--primary); }
.balance-pill i { font-style: normal; font-weight: 800; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-foreground); }
.balance-pill:hover { border-color: var(--primary); }
.stat-topup { margin-top: 8px; align-self: flex-start; font-size: .68rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); }

/* ---- Halaman Top Up ---- */
.tp-balance { display: flex; align-items: center; gap: 16px; padding: 20px 22px; margin-bottom: 18px; border-radius: 16px; border: 1px solid color-mix(in oklab, var(--primary) 30%, var(--line)); background: linear-gradient(110deg, var(--surface), color-mix(in oklab, var(--primary) 12%, var(--surface))); }
.tp-balance-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--primary) 16%, transparent); color: var(--primary); flex-shrink: 0; }
.tp-balance-ic svg { width: 26px; height: 26px; }
.tp-balance small { display: block; color: var(--muted-foreground); font-size: .75rem; }
.tp-balance strong { font: 800 1.9rem var(--font-display); color: var(--primary); }
.tp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tp-card { padding: 20px; }
.tp-ok { margin-bottom: 16px; }
.tp-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 16px 0 14px; }
.tp-chip input { display: none; }
.tp-chip span { display: grid; place-items: center; height: 46px; border-radius: 12px; border: 1px solid var(--border); font-weight: 700; font-size: .84rem; cursor: pointer; transition: .2s; }
.tp-chip:hover span { border-color: var(--primary); }
.tp-chip input:checked + span { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--primary); box-shadow: var(--shadow-neon); }
.tp-custom { display: block; font-size: .76rem; color: var(--muted-foreground); font-weight: 600; }
.tp-custom-box { display: flex; align-items: center; gap: 10px; height: 48px; margin-top: 6px; padding: 0 14px; border: 1px solid var(--input); border-radius: 12px; }
.tp-custom-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 12%, transparent); }
.tp-custom-box b { color: var(--primary); }
.tp-custom-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; color: var(--foreground); font: 700 1rem var(--font-sans); }
.tp-note { font-size: .74rem; color: var(--muted-foreground); line-height: 1.5; margin: 10px 0 14px; }
.tp-safe { font-size: .72rem; color: var(--primary); margin-top: 12px; line-height: 1.5; }
.tp-redeem { display: flex; gap: 8px; }
.tp-redeem .text-input { flex: 1; text-transform: uppercase; letter-spacing: .06em; }
.tp-redeem .btn { width: auto; padding: 0 20px; }
.tp-msg { margin-top: 12px; padding: 10px 14px; border-radius: 11px; font-size: .8rem; }
.tp-msg.ok { background: color-mix(in oklab, var(--primary) 14%, var(--surface)); color: var(--primary); border: 1px solid color-mix(in oklab, var(--primary) 35%, transparent); }
.tp-msg.err { background: color-mix(in oklab, var(--destructive) 14%, var(--surface)); color: oklch(0.85 0.18 27); border: 1px solid color-mix(in oklab, var(--destructive) 35%, transparent); }
.tp-list { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.tp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tp-row:last-child { border-bottom: 0; }
.tp-row > div:first-child { min-width: 0; }
.tp-row strong { display: block; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
.tp-row small { color: var(--muted-foreground); font-size: .68rem; }
.tp-row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.tp-plus { color: #4ade80; } .tp-minus { color: var(--muted-foreground); }
.tp-empty { padding: 20px; text-align: center; color: var(--muted-foreground); font-size: .82rem; }
@media (max-width: 900px) { .tp-grid { grid-template-columns: 1fr; } .tp-chips { grid-template-columns: repeat(2, 1fr); } }

/* ---- Poster popup (gaya iklan game) ---- */
.poster-modal { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 5, .78); backdrop-filter: blur(3px); animation: coFade .25s ease-out; }
.poster-modal[hidden] { display: none; }
.poster-modal-inner { position: relative; width: fit-content; max-width: 100%; }
.poster-slide { display: none; position: relative; margin: 0; width: max-content; max-width: 100%; }
.poster-slide.active { display: block; animation: coFade .4s ease-out; }
.poster-slide img { display: block; width: auto; height: auto; max-width: min(92vw, 440px); max-height: 78vh; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.65); }
.poster-cta { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); max-width: 86%; padding: 12px 30px; border-radius: 999px; font-weight: 800; font-size: .92rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .15s; }
a.poster-cta:hover { transform: translateX(-50%) scale(1.04); }
.poster-modal .poster-close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.poster-modal .poster-close svg { width: 16px; height: 16px; }
.poster-modal .poster-dots { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(0,0,0,.4); z-index: 4; }
.poster-modal .poster-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: .25s; }
.poster-modal .poster-dots span.active { background: #fff; width: 16px; border-radius: 4px; }

/* ---- Admin poster: pratinjau & warna tombol ---- */
.color-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.color-pick input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; }
.swatch:hover { transform: scale(1.12); border-color: var(--foreground); }
.pst-item { display: flex; gap: 16px; border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.pst-preview { position: relative; width: 150px; flex-shrink: 0; align-self: flex-start; }
.pst-preview img { width: 100%; height: auto; border-radius: 10px; display: block; }
.pst-preview .poster-cta { bottom: 6%; padding: 5px 12px; font-size: .62rem; }
.pst-body { flex: 1; min-width: 0; display: grid; gap: 10px; }
.pst-edit { display: grid; gap: 8px; max-width: 420px; }
@media (max-width: 560px) { .pst-item { flex-direction: column; } .pst-preview { width: 100%; max-width: 220px; } }

/* ---- Admin: laci menu, badge & notifikasi ---- */
.adm-overlay { display: none; }
.adm-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; }
.adm-close, .adm-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); color: var(--foreground); place-items: center; cursor: pointer; flex-shrink: 0; }
.adm-close svg, .adm-burger svg { width: 22px; height: 22px; }
.adm-mode-tag { margin: 0 18px 14px; font-size: .65rem; letter-spacing: .14em; color: var(--primary); font-weight: 800; }
.adm-nav { flex: 1; min-height: 0; }
.adm-nav-spacer { flex: 1; min-height: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.admin-mode .sidebar-nav { gap: 5px; }
.admin-mode .side-link { position: relative; }
.admin-mode .side-link span { flex: 1; }
.adm-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-badge { font-style: normal; font-size: .64rem; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--nc, var(--primary)); color: #06110a; }
.nav-badge[hidden], .notif-count[hidden] { display: none; }
.side-link.active .nav-badge, .side-link:hover .nav-badge { background: #06110a; color: var(--nc, var(--primary)); }

.nt-transaksi { --nc: #4ade80; } .nt-daftar { --nc: #adadad; } .nt-tiket { --nc: #fbbf24; } .nt-ulasan { --nc: #fafafa; }
.notif-wrap { position: relative; }
.notif-btn { position: relative; }
.notif-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--background); }
.notif-pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, 92vw); z-index: 80; padding: 8px; border-radius: 16px; background: var(--surface-raised); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.notif-pop[hidden] { display: none; }
.notif-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 10px; }
.notif-pop-head b { font-size: .9rem; }
.notif-pop-head button { background: none; border: 0; color: var(--primary); font-size: .72rem; font-weight: 700; cursor: pointer; }
.notif-row, .notif-item, .adm-toast { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--foreground); }
.notif-row:hover, .notif-item:hover { background: color-mix(in oklab, var(--nc) 10%, transparent); }
.nr-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in oklab, var(--nc) 18%, transparent); color: var(--nc); }
.nr-ic svg { width: 18px; height: 18px; }
.nr-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nr-tx b { font-size: .8rem; }
.nr-tx small { font-size: .68rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-n { font-style: normal; font-size: .72rem; font-weight: 800; min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: color-mix(in oklab, var(--nc) 20%, transparent); color: var(--nc); }
.notif-latest { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; max-height: 260px; overflow-y: auto; }
.notif-latest:empty { display: none; }
.adm-toasts { position: fixed; top: 84px; right: 16px; z-index: 500; display: grid; gap: 10px; width: min(340px, calc(100vw - 32px)); pointer-events: none; }
.adm-toast { pointer-events: auto; background: var(--surface-raised); border: 1px solid color-mix(in oklab, var(--nc) 50%, var(--line)); border-left: 4px solid var(--nc); box-shadow: 0 18px 44px rgba(0,0,0,.55); opacity: 0; transform: translateX(24px); transition: .3s; }
.adm-toast.show { opacity: 1; transform: none; }

.filter-tabs .fin-tab { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 9px; color: var(--muted-foreground); font-weight: 700; font-size: .8rem; }
.filter-tabs .fin-tab.active { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-neon); }
.kode-row { display: flex; gap: 8px; }
.kode-row .text-input { flex: 1; }
.kode-dice { width: 46px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--input); background: var(--surface-raised); color: var(--primary); cursor: pointer; display: grid; place-items: center; }
.kode-dice:hover { border-color: var(--primary); }

@media (max-width: 900px) {
  .admin-mode .mobile-nav { display: none; }
  .admin-mode .app-content { padding-bottom: 28px; }
  .admin-mode .sidebar { display: flex; width: min(84vw, 310px); transform: translateX(-102%); transition: transform .28s ease; z-index: 90; box-shadow: 18px 0 60px rgba(0,0,0,.6); padding-top: 22px; }
  .admin-mode.drawer-open .sidebar { transform: none; }
  .admin-mode .adm-overlay { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .admin-mode.drawer-open .adm-overlay { opacity: 1; pointer-events: auto; }
  .adm-burger, .adm-close { display: grid; }
  .admin-mode .topbar-search { display: none; }
  .admin-mode .app-topbar { grid-template-columns: 1fr auto; }
  .admin-mode .sidebar-brand { padding-bottom: 12px; }
  .balance-pill b { font-size: .72rem; }
  .app-topbar .balance-pill { height: 34px; padding-left: 10px; }
  .app-topbar .balance-pill svg { display: none; }
  .top-actions { gap: 8px; }
  .adm-toasts { top: 72px; }
}

/* ---- Keuangan ---- */
.fin-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fin-month .select-input { min-width: 200px; }
.fin-live { display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; color: var(--primary); border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent); background: color-mix(in oklab, var(--primary) 10%, transparent); }
.fin-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulseDot 1.2s infinite; }
.fin-live.off { color: var(--muted-foreground); border-color: var(--line); background: none; }
.fin-live.off i { animation: none; background: var(--muted-foreground); }
.fin-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.fin-actions .btn { width: auto; display: inline-flex; align-items: center; gap: 7px; }
.fin-del { border: 1px solid #ef4444; color: #f87171; }
.fin-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.fin-kpis .stat-card { min-height: 108px; }
.fin-kpis .stat-card > strong { font-size: 1.2rem; }
.fin-kpis .fin-main { grid-column: span 2; border-color: color-mix(in oklab, var(--primary) 35%, var(--line)); background: linear-gradient(120deg, var(--surface), color-mix(in oklab, var(--primary) 10%, var(--surface))); }
.fin-kpis .fin-main > strong { font-size: 1.8rem; color: var(--primary); }
.fin-chart-panel { padding: 17px; }
.fin-chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; margin-top: 14px; overflow-x: auto; padding-bottom: 2px; }
.fin-bar { flex: 1; min-width: 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.fin-bar i { display: block; width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--primary), color-mix(in oklab, var(--primary) 45%, transparent)); min-height: 0; transition: height .5s; }
.fin-bar span { font-size: .56rem; color: var(--muted-foreground); }
@media (max-width: 900px) {
  .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-kpis .fin-main { grid-column: span 2; }
  .fin-actions { margin-left: 0; width: 100%; }
}

/* ---- Tiket: halaman chat gaya WhatsApp ---- */
.wa-chat-head { padding: 10px 14px; background: color-mix(in oklab, var(--primary) 14%, var(--surface-raised)); }
.wa-back { display: none; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--foreground); flex-shrink: 0; }
.wa-back svg { width: 22px; height: 22px; }
.wa-head-tx { min-width: 0; }
.wa-head-tx strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-chat-body { background-image: radial-gradient(color-mix(in oklab, var(--primary) 9%, transparent) 1.2px, transparent 1.3px); background-size: 22px 22px; background-color: var(--background); }
.wa-bubble.me { border-top-right-radius: 3px; border-bottom-right-radius: 13px; }
.wa-bubble.them { border-top-left-radius: 3px; border-bottom-left-radius: 13px; }
.wa-tick { font-style: normal; margin-left: 4px; color: #989898; letter-spacing: -2px; }
.chat-mode .fab-support { display: none; }
@media (max-width: 900px) {
  .chat-mode .app-topbar, .chat-mode .mobile-nav { display: none; }
  .chat-mode .app-content { padding: 0; max-width: none; }
  .chat-mode .section-page { padding: 0; }
  .chat-mode .wa-page { max-width: none !important; }
  .chat-mode .wa-chat-box { position: fixed; inset: 0; height: 100dvh; z-index: 60; border: 0; border-radius: 0; }
  .chat-mode .wa-back { display: grid; }
  .chat-mode .wa-chat-input { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
@media (min-width: 901px) {
  .chat-mode .wa-chat-box { height: calc(100vh - 132px); max-height: 760px; }
}

/* ===== v10: Toko Script (produk digital) ===== */
.card-carousel{position:relative;width:100%;height:130px;border-radius:12px;overflow:hidden;margin-bottom:12px;background:var(--surface-2)}
.card-carousel.detail-carousel{height:auto;aspect-ratio:16/9;border-radius:14px;margin-bottom:16px}
.card-carousel img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease}
.card-carousel img.active{opacity:1}
.card-carousel-empty{display:grid;place-items:center;font-size:2rem}
.carousel-dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:5px}
.carousel-dots span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.4);transition:.3s}
.carousel-dots span.active{background:var(--primary);width:16px;border-radius:4px}
.back-link{display:inline-flex;align-items:center;gap:6px;color:var(--muted-foreground);text-decoration:none;font-size:.9rem;margin-bottom:14px}
.back-link svg{width:16px;height:16px}
.pay-card{background:var(--surface-2);border-radius:14px;padding:16px;margin-bottom:16px}
.pay-row{display:flex;justify-content:space-between;padding:6px 0;color:var(--muted-foreground)}
.pay-row strong{color:var(--foreground)}
.pay-method{display:flex;gap:10px;margin-bottom:14px}
.pm-opt{flex:1;border:1px solid var(--border);border-radius:12px;padding:12px;cursor:pointer;text-align:center}
.pm-opt input{margin-right:6px}
.script-thumb-row{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
.script-thumb-row img{width:72px;height:72px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}


/* Tema: HANYA mode gelap hitam-putih (mode terang & tombol ganti tema dihapus). */
:root { color-scheme: dark; }
.theme-toggle, .theme-fab { display: none !important; }

/* wadah aksi di navbar welcome: [tema] [Masuk] [menu HP] */
.landing-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.landing-actions .login-pill { justify-self: auto; }
.landing-actions .icon-action { border: 1px solid var(--line); }
.landing-actions .menu-button { width: 42px; height: 42px; cursor: pointer; }
.landing-actions .menu-button svg { width: 26px; height: 26px; }


/* ===== Navigasi HP = sama seperti PC: tombol tiga garis di kiri atas membuka menu samping; bar bawah dihapus ===== */
.usr-left { display: contents; } /* PC: tidak membentuk kotak, tata letak topbar persis seperti dulu */
.usr-burger, .usr-close { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); color: var(--foreground); place-items: center; cursor: pointer; flex-shrink: 0; }
.usr-burger svg, .usr-close svg { width: 22px; height: 22px; }
.usr-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; }
.usr-overlay { display: none; }
.mobile-nav { display: none !important; }
@media (max-width: 900px) {
  .usr-drawer-mode .sidebar { display: flex; width: min(84vw, 310px); transform: translateX(-102%); transition: transform .28s ease, visibility 0s linear .28s; z-index: 90; box-shadow: 18px 0 60px rgba(0,0,0,.6); padding-top: 22px; visibility: hidden; }
  .usr-drawer-mode.drawer-open .sidebar { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
  .usr-drawer-mode .usr-overlay { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .usr-drawer-mode.drawer-open .usr-overlay { opacity: 1; pointer-events: auto; }
  .usr-burger, .usr-close { display: grid; }
  .usr-drawer-mode .usr-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .usr-drawer-mode .topbar-search { display: none; }
  .usr-drawer-mode .sidebar-brand { padding-bottom: 12px; }
  /* tombol bantuan bulat tidak perlu lagi naik di atas bar bawah */
  .fab-support { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .ai-chat-panel { bottom: calc(80px + env(safe-area-inset-bottom)); height: calc(100vh - 170px); }
}

/* ============================================================
   SEO / brand — Welper ID: kicker H1, "Tentang", footer landing
   ============================================================ */
.hero h1 .hero-kicker { display: block; width: fit-content; margin: 0 0 22px; padding: 7px 14px; font-family: var(--font-body, inherit); font-size: .72rem; font-weight: 600; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); border: 1px solid color-mix(in oklab, var(--primary) 45%, transparent); border-radius: 999px; }
.about-brand { max-width: 860px; margin: 0 auto; padding: 8px 5vw 56px; text-align: center; }
.about-brand h2 { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.1rem); margin: 0 0 14px; }
.about-brand p { color: var(--muted-foreground); line-height: 1.8; font-size: .98rem; margin: 0; }
.landing-footer { max-width: 1440px; margin: 0 auto; padding: 28px 5vw 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.landing-footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--foreground); text-decoration: none; }
.landing-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.landing-footer-links a { color: var(--muted-foreground); font-size: .88rem; text-decoration: none; }
.landing-footer-links a:hover { color: var(--primary); }
.landing-footer p { flex-basis: 100%; margin: 0; color: var(--muted-foreground); font-size: .8rem; }
@media (max-width: 760px) { .about-brand { padding-bottom: 40px; } .landing-footer { padding: 24px 20px 32px; } }

/* ===== Jaring pengaman kontras (tema hitam-putih) =====
   Aturan: tombol/chip putih -> teks HITAM. Kartu/hero/header gelap -> teks PUTIH. */
.btn-primary, .btn-brand, .btn-order, .lk-btn, .lk-admin-btn, .lk-pcard .buy, .lv-app .lk-pcard .buy,
.lp-showcase .lk-pcard .buy, .lk-pcard .cat, .status-chip, .chip-primary, .stat-topup, .nko-copy.done,
.lk-tabs button.active, .filter-tabs button.active, .filter-tabs .fin-tab.active, .tp-chip input:checked + span,
.lv-item.active, .lv-grp-btn.is-on, .lk-nav a.active, .side-link.active, .lv-pub-btn, .apa-tabs a.active {
  color: var(--primary-foreground) !important;
}
.btn-primary *, .btn-brand *, .btn-order *, .lk-btn *, .lk-admin-btn *, .lk-pcard .buy *, .lk-nav a.active *, .lv-pub-btn * { color: inherit !important; }
.lk-hero, .lk-hero *, .page-head, .page-head *, .pg-hero, .pg-hero *, .lk-profile-wrap, .lk-profile-wrap *, .lv-hero, .lv-hero *, .nko-phone, .nko-phone * { color: var(--foreground); }
.lk-hero .lk-btn, .page-head .lk-btn, .pg-hero .lk-btn, .lv-hero .lk-btn, .lk-hero .btn-primary, .page-head .btn-primary, .lv-hero-plus, .lv-hero-plus * { color: var(--primary-foreground) !important; }

/* ===== MODE TERANG (hitam-putih): teks HITAM, tombol HITAM berteks PUTIH, latar PUTIH ===== */
html[data-theme="light"]:not(.dark) {
  color-scheme: light;
  --background:#ffffff; --foreground:#000000; --card:#ffffff;
  --primary:#000000; --primary-bright:#000000; --primary-glow:#333333; --primary-foreground:#ffffff;
  --secondary:#f2f2f2; --secondary-foreground:#000000; --muted:#f5f5f5; --muted-foreground:#525252;
  --accent:#f2f2f2; --destructive:#dc2626; --border:#e0e0e0; --input:#e0e0e0; --line:#e0e0e0;
  --surface:#ffffff; --surface-raised:#f5f5f5; --success:#16a34a; --warning:#d97706;
  --teal:#000000; --teal-soft:#f0f0f0; --gold:#000000; --gold-soft:#f0f0f0;
  --gradient-hero: linear-gradient(120deg,#f2f2f2,#ffffff 60%,#ebebeb);
  --shadow-soft:0 4px 20px rgb(0 0 0 / .08); --shadow-primary:0 4px 12px rgb(0 0 0 / .18); --shadow-neon:0 4px 20px rgb(0 0 0 / .08);
  --lv-tree:#c8c8c8; --lv-hover:#f0f0f0;
  --bg:#ffffff; --surface-2:#f5f5f5; --text:#000000; --text-dim:#525252; --danger:#dc2626; --shadow:0 4px 20px rgba(0,0,0,.08);
}
html[data-theme="light"] body { background:var(--background); color:var(--foreground); }
html[data-theme="light"] .alert.success { background: rgb(22 163 74 / .10); border-color: rgb(22 163 74 / .40); color:#166534; }
html[data-theme="light"] .alert.error { background: rgb(220 38 38 / .08); border-color: rgb(220 38 38 / .40); color:#991b1b; }
html[data-theme="light"] .field:focus-within { box-shadow: 0 0 0 3px rgb(0 0 0 / .10); }
html[data-theme="light"] .hero-copy { text-shadow: 0 1px 10px rgb(255 255 255 / .9); }
html[data-theme="light"] .hero-anime, html[data-theme="light"] .auth-anime video, html[data-theme="light"] .auth-anime img { filter: none; }
html[data-theme="light"] .site-header, html[data-theme="light"] .lk-top { background: color-mix(in oklab, #ffffff 90%, transparent); }
html[data-theme="light"] .status-paid, html[data-theme="light"] .status-completed, html[data-theme="light"] .alert-success { color:#166534; }
