/* ============================================================
   TOKO DIGITAL ALL IN ONE MERAUKE — VibeCoder Theme
   Soft indigo/violet gradient, glassmorphic cards, mobile-first
   ============================================================ */
:root {
  --bg: #F3F0FF;
  --bg2: #EEF2FF;
  --ink: #1F1B3A;
  --muted: #635F82;
  --indigo: #4F46E5;
  --violet: #8B5CF6;
  --pink: #EC4899;
  --sky: #38BDF8;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --grad: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
  --grad-soft: linear-gradient(135deg, #EEF2FF 0%, #FDF4FF 100%);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --stroke: rgba(255, 255, 255, 0.75);
  --shadow: 0 18px 45px -18px rgba(79, 70, 229, 0.28), 0 4px 14px -6px rgba(31, 27, 58, 0.08);
  --shadow-sm: 0 6px 18px -8px rgba(79, 70, 229, 0.25);
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(55rem 35rem at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(45rem 30rem at -10% 25%, rgba(236, 72, 153, 0.12), transparent 60%),
    radial-gradient(50rem 32rem at 55% 110%, rgba(56, 189, 248, 0.13), transparent 60%),
    linear-gradient(160deg, #F3F0FF 0%, #F5F3FF 45%, #EEF2FF 100%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }
::placeholder { color: #A5A0C0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.page { padding: 24px 0 96px; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin-bottom: 6px; }
.section-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

/* ---------- glass card ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.glass-strong { background: var(--glass-strong); }
.card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.card-pad { padding: 20px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; } .mt-5 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; border: none; border-radius: 999px;
  padding: 12px 22px; transition: all .18s ease; white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(99, 80, 245, .7); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: rgba(255,255,255,.7); color: var(--indigo); border: 1.5px solid rgba(79,70,229,.35); }
.btn-outline:hover { background: #fff; border-color: var(--indigo); }
.btn-ghost { background: rgba(79,70,229,.08); color: var(--indigo); }
.btn-ghost:hover { background: rgba(79,70,229,.16); }
.btn-danger { background: rgba(239,68,68,.1); color: #DC2626; }
.btn-danger:hover { background: rgba(239,68,68,.18); }
.btn-success { background: rgba(16,185,129,.12); color: #059669; }
.btn-wa { background: linear-gradient(135deg, #22C55E, #16A34A); color: #fff; box-shadow: 0 10px 22px -10px rgba(34,197,94,.7); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-lg { padding: 15px 30px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px 12px; border-radius: 12px; }

/* ---------- badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.badge-indigo { background: rgba(79,70,229,.12); color: var(--indigo); }
.badge-green { background: rgba(16,185,129,.13); color: #059669; }
.badge-amber { background: rgba(245,158,11,.16); color: #B45309; }
.badge-red { background: rgba(239,68,68,.12); color: #DC2626; }
.badge-sky { background: rgba(56,189,248,.15); color: #0369A1; }
.badge-violet { background: rgba(139,92,246,.13); color: #7C3AED; }
.chip {
  display: inline-block; background: rgba(255,255,255,.75); border: 1px solid rgba(79,70,229,.22);
  color: var(--indigo); font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  cursor: pointer; transition: all .15s;
}
.chip:hover { background: var(--indigo); color: #fff; }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- header / nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 255, 0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.7);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; max-width: 1180px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 13.5px; letter-spacing: -.01em; line-height: 1.2; min-width: 0; }
.logo-name { line-height: 1.2; }
.logo-rainbow {
  background: linear-gradient(90deg, #EF4444, #F59E0B, #22C55E, #3B82F6, #8B5CF6, #EC4899, #EF4444);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowMove 6s linear infinite;
}
@keyframes rainbowMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.logo-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 900px) { .logo { font-size: 16px; } }
.logo-badge { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-size: 19px; box-shadow: 0 8px 18px -8px rgba(99,80,245,.8); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 13px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .15s; }
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.nav-link.active { color: var(--indigo); background: rgba(79,70,229,.1); }

/* bottom navigation (mobile-first) */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; background: rgba(255,255,255,.86);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(79,70,229,.12);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 30px -18px rgba(31,27,58,.25);
}
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.bottomnav a .ico { font-size: 20px; line-height: 1; }
.bottomnav a.active { color: var(--indigo); }
.bottomnav a.active .ico { transform: translateY(-2px); }
@media (min-width: 900px) { .bottomnav { display: none; } .page { padding-bottom: 48px; } }

/* floating AI chat button */
.float-chat {
  position: fixed; bottom: 84px; right: 16px; z-index: 55;
  display: flex; align-items: center; gap: 10px;
  background: var(--grad); color: #fff; border: none; border-radius: 999px;
  padding: 13px 18px; font-weight: 700; font-size: 14px;
  box-shadow: 0 16px 34px -12px rgba(99,80,245,.85);
  animation: floaty 3s ease-in-out infinite;
}
.float-chat .pulse { position: relative; }
.float-chat .pulse::after { content:''; position:absolute; inset:-4px; border-radius:50%; border:2px solid rgba(255,255,255,.7); animation: ping 1.8s ease-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ping { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
@media (min-width: 900px) { .float-chat { bottom: 24px; right: 24px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 52px 0 30px; text-align: center; overflow: hidden; }

/* kupu-kupu terbang (dekoratif, tidak menghalangi klik) */
.bfly-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.bfly { position: absolute; display: inline-block; font-size: var(--sz); line-height: 1; filter: hue-rotate(var(--hue)) drop-shadow(0 4px 10px rgba(0,0,0,.22)); opacity: 1; will-change: transform; z-index: 3; }
.bfly-x { animation-name: bflyX; animation-timing-function: linear; animation-iteration-count: infinite; }
.bfly-y { animation-name: bflyY; animation-timing-function: linear; animation-iteration-count: infinite; }
.bfly-bob { display: inline-block; animation: bflyBob 2.6s ease-in-out infinite; }
.bfly-drift { display: inline-block; animation: bflyDrift 3.2s ease-in-out infinite; }
.bfly-flap { display: inline-block; animation: bflyFlap .35s ease-in-out infinite alternate; }
@keyframes bflyX { 0% { transform: translateX(-8vw); } 100% { transform: translateX(108vw); } }
@keyframes bflyY { 0% { transform: translateY(-8vh); } 100% { transform: translateY(112vh); } }
@keyframes bflyBob { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(22px); } 50% { transform: translateY(44px); } 75% { transform: translateY(22px); } }
@keyframes bflyDrift { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(28px); } 50% { transform: translateX(-28px); } 75% { transform: translateX(28px); } }
@keyframes bflyFlap { from { transform: scaleX(1); } to { transform: scaleX(.55); } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(79,70,229,.1); color: var(--indigo); font-size: 12.5px; font-weight: 700; padding: 8px 16px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 6vw, 52px); letter-spacing: -.03em; line-height: 1.12; max-width: 800px; margin: 0 auto 16px; }
.hero h1 .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Judul warna pelangi (7 warna) dengan animasi geser halus */
.rainbow-text {
  background-image: linear-gradient(90deg, #ff3b30, #ff9500, #ffcc00, #34c759, #007aff, #af52de, #ff2d55);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowShift 5s linear infinite;
}
@keyframes rainbowShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero p { color: var(--muted); font-size: clamp(15px, 2.4vw, 18px); max-width: 640px; margin: 0 auto 28px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* tombol suara salam pembuka */
.voice-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.85); border: 1.5px solid rgba(79,70,229,.4);
  color: var(--indigo); font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(99,80,245,.6);
  margin: 10px auto 0; transition: transform .15s ease, background .15s ease;
}
.voice-btn:hover { transform: translateY(-2px); background: #fff; }
.voice-btn span { letter-spacing: .01em; }
.hero-stats { display: flex; justify-content: center; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.hero-stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ---------- product card ---------- */
.pcard { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); backdrop-filter: blur(20px) saturate(180%); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard-img { position: relative; aspect-ratio: 1/1; background: #fff; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-img .tag { position: absolute; top: 10px; left: 10px; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-body h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.pcard-cat { font-size: 11.5px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: .05em; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pcard-price .now { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.pcard-price .old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.pcard-price .save { font-size: 11px; font-weight: 800; color: #059669; background: rgba(16,185,129,.13); padding: 3px 8px; border-radius: 999px; }
.pcard-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.pcard-actions .btn { flex: 1; padding: 9px 10px; font-size: 12.5px; }
.rating { color: #F59E0B; font-size: 12.5px; letter-spacing: 1px; }
.stock-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #059669; }
.stock-dot.out { color: var(--red); }
.stock-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- stat cards (dashboard) ---------- */
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat-card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-sm); backdrop-filter: blur(20px) saturate(180%); }
.stat-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; margin-bottom: 10px; }
.stat-card .val { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.stat-card .lbl { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.stat-card .sub { font-size: 11px; font-weight: 700; margin-top: 6px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 700; color: #444064; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  border: 1.5px solid rgba(79,70,229,.18); background: rgba(255,255,255,.8);
  border-radius: 12px; padding: 11px 14px; outline: none; transition: border .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
.field .hint { font-size: 11.5px; color: var(--muted); }
.check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--indigo); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.data th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid rgba(79,70,229,.12); background: rgba(255,255,255,.45); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid rgba(79,70,229,.08); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(255,255,255,.4); }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- chat ---------- */
.chat-shell { display: flex; flex-direction: column; height: calc(100dvh - 150px); max-height: 720px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(79,70,229,.1); }
.chat-avatar { width: 42px; height: 42px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; font-size: 21px; position: relative; }
.chat-avatar::after { content:''; position: absolute; bottom: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: rgba(255,255,255,.35); }
.msg { display: flex; gap: 9px; max-width: 88%; animation: pop .22s ease; }
.msg .bubble { padding: 11px 15px; border-radius: 18px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg.customer { align-self: flex-end; flex-direction: row-reverse; }
.msg.customer .bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 8px 20px -10px rgba(99,80,245,.7); }
.msg.ai .bubble { background: #fff; border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); border: 1px solid rgba(79,70,229,.1); }
.msg.ai .mini-ava { width: 30px; height: 30px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.msg .time { font-size: 10px; color: var(--muted); margin-top: 4px; }
.msg.customer .time { text-align: right; }
.msg-product { background: var(--glass-strong); border: 1px solid var(--stroke); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; gap: 12px; padding: 12px; max-width: 320px; }
.msg-product img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.msg-product .info { flex: 1; min-width: 0; }
.msg-product .info b { font-size: 13.5px; display: block; line-height: 1.25; }
.msg-product .info .pr { font-weight: 800; font-size: 14px; color: var(--indigo); margin: 3px 0; }
.msg-product .info .mini { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.msg-product .info .mini .btn { flex: 1; padding: 6px 8px; font-size: 10.5px; }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px 4px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 18px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-input { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(79,70,229,.1); background: rgba(255,255,255,.7); }
.chat-input textarea { flex: 1; border: 1.5px solid rgba(79,70,229,.18); border-radius: 14px; padding: 11px 14px; resize: none; max-height: 100px; outline: none; background: #fff; }
.chat-input textarea:focus { border-color: var(--indigo); }
.chat-input .send { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; border: none; font-size: 18px; flex-shrink: 0; display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(99,80,245,.8); }
.system-note { align-self: center; background: rgba(79,70,229,.09); color: var(--indigo); font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(31,27,58,.45); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; animation: fade .18s ease; }
.modal { background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; box-shadow: var(--shadow); animation: pop .2s ease; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid rgba(79,70,229,.1); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.modal-body { padding: 22px; }
.modal-close { width: 34px; height: 34px; border-radius: 10px; border: none; background: rgba(79,70,229,.08); color: var(--ink); font-size: 16px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- admin layout ---------- */
.admin-wrap { display: flex; min-height: 100dvh; }
.admin-side {
  width: 250px; flex-shrink: 0; background: rgba(255,255,255,.7);
  backdrop-filter: blur(20px) saturate(180%); border-right: 1px solid rgba(79,70,229,.1);
  padding: 20px 14px; position: sticky; top: 0; height: 100dvh; overflow-y: auto;
}
.admin-side .logo { padding: 0 8px 18px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: all .14s; }
.admin-nav a .ico { font-size: 17px; width: 22px; text-align: center; }
.admin-nav a:hover { background: rgba(79,70,229,.08); color: var(--ink); }
.admin-nav a.active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(99,80,245,.8); }
.admin-main { flex: 1; min-width: 0; padding: 22px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-top h1 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.admin-mobile-nav { display: none; }
@media (max-width: 860px) {
  .admin-wrap { display: block; }
  .admin-side { display: none; position: fixed; inset: 0; z-index: 80; width: 78%; max-width: 300px; height: 100dvh; box-shadow: var(--shadow); }
  .admin-side.open { display: block; }
  .admin-mobile-nav { display: flex; align-items: center; gap: 10px; }
  .admin-main { padding: 16px 14px 100px; }
}
.admin-backdrop { position: fixed; inset: 0; background: rgba(31,27,58,.4); z-index: 75; }

/* ---------- charts ---------- */
.chart-box { position: relative; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .emo { font-size: 42px; margin-bottom: 10px; }
.spinner { width: 26px; height: 26px; border: 3px solid rgba(79,70,229,.2); border-top-color: var(--indigo); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-wrap { position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); animation: pop .2s ease; }
@media (min-width: 900px) { .toast-wrap { bottom: 30px; } }
.divider { height: 1px; background: rgba(79,70,229,.1); margin: 18px 0; }
.typed-bold { font-weight: 800; color: var(--indigo); }
.type-cursor {
  display: inline-block; margin-left: 2px; color: var(--indigo); font-weight: 700;
  animation: blinkCaret .8s step-end infinite;
}
@keyframes blinkCaret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.flow-steps { display: flex; flex-direction: column; gap: 0; }
.flow-step { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; flex-shrink: 0; box-shadow: 0 6px 14px -6px rgba(99,80,245,.7); }
.flow-step::before { content: ''; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: rgba(79,70,229,.18); }
.flow-step:last-child::before { display: none; }
.flow-step .txt b { display: block; font-size: 14px; }
.flow-step .txt span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.footer { padding: 40px 0 110px; text-align: center; color: var(--muted); font-size: 13px; }
.footer-text { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.85; }
.footer-text .brand { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.footer-text .tag { color: #3d3959; }
.footer-text .info { font-size: 14.5px; color: #3d3959; }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } }
.img-upload-preview { width: 110px; height: 110px; border-radius: 16px; object-fit: cover; border: 1px solid rgba(79,70,229,.2); }
.kbd { background: rgba(79,70,229,.1); padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--indigo); }
.hero-banner-card { display: grid; gap: 18px; margin-top: 34px; padding: 26px; }
@media (min-width: 900px) { .hero-banner-card { grid-template-columns: 1.3fr 1fr; align-items: center; } }

/* ---------- kartu video YouTube ---------- */
.yt-card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); display: flex; flex-direction: column; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; background: #0b0b12; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.yt-click { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; display: block; }
.yt-frame .yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 0, 0, .92); color: #fff;
  display: grid; place-items: center; font-size: 22px; padding-left: 5px;
  box-shadow: 0 8px 22px -6px rgba(255, 0, 0, .7);
  transition: transform .15s ease;
}
.yt-card:hover .yt-play { transform: translate(-50%, -50%) scale(1.12); }

/* marquee dua baris: atas geser kiri, bawah geser kanan */
.yt-mq-space { display: flex; flex-direction: column; gap: 18px; }
.marquee-row { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 6px 0; }
.marquee-track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.marquee-track.mq-left { animation: mqLeft 30s linear infinite; }
.marquee-track.mq-right { animation: mqRight 30s linear infinite; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
.yt-mq-item { width: 300px; flex-shrink: 0; }
@keyframes mqLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes mqRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@media (max-width: 720px) { .yt-mq-item { width: 240px; } }

/* efek kedap-kedip (pulse) pada tombol play */
.yt-frame .yt-play::before {
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 3px solid rgba(255, 0, 0, .55);
  animation: yt-ping 1.7s ease-out infinite;
}
@keyframes yt-ping {
  0% { transform: scale(.75); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* marquee: kartu video berjalan otomatis ke samping */
.yt-marquee { overflow: hidden; padding: 6px 2px; }
.yt-marquee-track { display: flex; width: max-content; animation: yt-marquee 42s linear infinite; }
.yt-marquee-track .yt-card { width: 300px; flex: 0 0 auto; margin-right: 20px; }
.yt-marquee:hover .yt-marquee-track,
.yt-marquee:focus-within .yt-marquee-track { animation-play-state: paused; }
@keyframes yt-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 720px) { .yt-marquee-track .yt-card { width: 250px; } }
@media (prefers-reduced-motion: reduce) {
  .yt-marquee-track { animation: none; flex-wrap: wrap; }
  .yt-marquee-track .yt-card { margin-bottom: 20px; }
  .yt-frame .yt-play::before { animation: none; opacity: .4; }
}

/* ---------- slider ---------- */
.slider { position: relative; overflow: hidden; border-radius: var(--r-xl); background: rgba(255,255,255,.6); border: 1px solid var(--stroke); box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.slider-track { display: flex; transition: transform .55s cubic-bezier(.25,.7,.3,1); }
.slider-slide { flex: 0 0 100%; min-width: 100%; display: grid; grid-template-columns: 1.05fr 1fr; }
.slider-img { position: relative; min-height: 270px; background: linear-gradient(135deg, #1E1B4B 0%, #312E81 60%, #4C1D95 100%); }
.slider-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.slider-info { padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; gap: 8px; background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(246,243,255,.78)); }
.slider-info h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 3vw, 28px); letter-spacing: -.02em; line-height: 1.2; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: var(--indigo); font-size: 22px; font-weight: 700; box-shadow: var(--shadow-sm); display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.slider-nav:hover { transform: translateY(-50%) scale(1.1); }
.slider-nav.prev { left: 14px; }
.slider-nav.next { right: 14px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slider-dot { width: 9px; height: 9px; border-radius: 999px; border: none; background: rgba(99,95,130,.3); cursor: pointer; transition: all .2s; padding: 0; }
.slider-dot.active { width: 26px; background: var(--grad); }
@media (max-width: 720px) {
  .slider-slide { grid-template-columns: 1fr; }
  .slider-img { min-height: 220px; }
  .slider-info { padding: 20px 18px; }
  .slider-nav { width: 36px; height: 36px; font-size: 18px; }
}

/* ---------- gallery slider (marquee otomatis, satu baris) ---------- */
.gallery {
  position: relative;
  overflow: hidden;
  padding: 10px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: gallery-marquee 42s linear infinite;
  will-change: transform;
}
.gallery:hover .gallery-track { animation-play-state: paused; }
.gallery-item {
  width: 280px;
  height: 190px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 30px -16px rgba(31, 27, 58, 0.4);
  background: #fff;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--grad-soft);
  color: var(--indigo); font-size: 40px;
}
@keyframes gallery-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; }
}
@media (max-width: 520px) {
  .gallery-item { width: 220px; height: 150px; }
}
