:root {
  --primary: #3258E8;
  --bg: #F3F7FF;
  --soft: #DCE5FC;
  --ink: #202735;
  --muted: #4A5368;
  --ring: #E6ECF8;
  --r-card: 16px;
  --r-inner: 11px;
  --r-btn: 99px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --k: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.pattern-titik {
  background-image: radial-gradient(var(--soft) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.deco { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.deco .c1, .deco .c2 { position: absolute; border-radius: 50%; background: var(--soft); }
.deco .c1 { width: 260px; height: 260px; top: -80px; right: -90px; animation: drift calc(9s * var(--k)) ease-in-out infinite; }
.deco .c2 { width: 140px; height: 140px; top: 180px; left: -60px; opacity: .7; animation: drift calc(7s * var(--k)) ease-in-out infinite reverse; }
.deco .s { position: absolute; fill: var(--primary); animation: twinkle calc(2.4s * var(--k)) ease-in-out infinite; }

.wrap { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: 20px 20px 40px; display: flex; flex-direction: column; gap: 20px; }

.topbar { display: flex; justify-content: flex-end; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 99px; border: none; background: #fff; color: var(--ink);
  box-shadow: var(--ring) 0 0 0 1px, rgba(10,20,60,.2) 0 10px 20px -12px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn svg { width: 19px; height: 19px; }

.profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-top: -8px; }
.avatar {
  width: 108px; height: 108px; border-radius: 50%; background: #fff; overflow: hidden;
  box-shadow: var(--ring) 0 0 0 1px, rgba(10,20,60,.35) 0 20px 34px -16px;
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 40px; height: 40px; }
.float { animation: bob calc(3.2s * var(--k)) ease-in-out infinite; }
.profile h1 { margin: 8px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.4px; line-height: 1.1; }
.tagline { font-size: 12px; font-weight: 800; letter-spacing: 2.4px; color: var(--primary); text-transform: uppercase; }
.bio { margin: 2px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 340px; white-space: pre-line; }
.socials { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.socials a {
  width: 44px; height: 44px; border-radius: 99px; background: #fff; color: var(--primary);
  box-shadow: var(--ring) 0 0 0 1px; display: inline-flex; align-items: center; justify-content: center;
}
.socials svg { width: 19px; height: 19px; }

/* kartun */
.cartoon { position: relative; height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bubble {
  position: relative; max-width: 300px; background: #fff; border-radius: 18px; padding: 12px 18px; text-align: center;
  box-shadow: var(--ring) 0 0 0 1px, rgba(10,20,60,.3) 0 14px 24px -14px; margin-bottom: 4px; z-index: 1;
  font-size: 15px; font-weight: 800; line-height: 1.35; white-space: pre-line;
  animation: bubble calc(.7s * var(--k)) ease-out both, bob calc(3s * var(--k)) ease-in-out calc(.7s * var(--k)) infinite;
}
.bubble::after { content: ''; position: absolute; bottom: -10px; left: 50%; margin-left: -11px; border: 11px solid transparent; border-top-color: #fff; border-bottom: 0; }
.students { position: relative; align-self: stretch; height: 176px; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.students .ground { position: absolute; left: 10px; right: 10px; bottom: 0; height: 26px; border-radius: 99px; background: var(--soft); }
.students svg { position: relative; animation: bob calc(2.6s * var(--k)) ease-in-out infinite; cursor: pointer; }
.students .wave { transform-box: fill-box; transform-origin: 50% 92%; animation: wave calc(1.3s * var(--k)) ease-in-out infinite; }
.students .eye { transform-box: fill-box; transform-origin: center; animation: blink 4s infinite; }

/* kartu */
.card {
  display: flex; background: #fff; border-radius: var(--r-card); color: var(--ink);
  box-shadow: var(--ring) 0 0 0 1px, rgba(10,20,60,.25) 0 16px 28px -18px;
}
.hover-angkat .card { transition: transform .18s ease, box-shadow .18s ease; }
.hover-angkat .card:hover { transform: translateY(-3px); box-shadow: #C9D6F7 0 0 0 1px, rgba(10,20,60,.35) 0 24px 40px -18px; }
.hover-besar .card { transition: transform .18s ease; }
.hover-besar .card:hover { transform: scale(1.025); }
.card:active { transform: scale(.98); }

.card.kiri { align-items: center; gap: 12px; padding: 10px 14px 10px 10px; }
.card.kiri .thumb { width: 80px; height: 80px; flex-shrink: 0; border-radius: var(--r-inner); background: var(--soft); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.card.atas { flex-direction: column; padding: 8px; }
.card.atas .banner { aspect-ratio: 16 / 9; border-radius: var(--r-inner); background: var(--soft); overflow: hidden; }
.card.atas .body { display: flex; align-items: center; gap: 10px; padding: 12px 8px 6px; }
.card.tanpa { align-items: center; gap: 12px; padding: 16px 16px 16px 18px; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card .title { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card .desc { font-size: 13px; line-height: 1.5; color: var(--muted); }
.card .chev { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); }
.chip { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--primary); color: #fff; }
.chip.soft { background: var(--soft); color: var(--primary); }

.featured { background: var(--primary); color: #fff; flex-direction: column; padding: 10px; box-shadow: rgba(10,20,60,.45) 0 26px 44px -22px; }
.featured .banner { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-inner); background: rgba(255,255,255,.22); overflow: hidden; }
.featured .badge {
  position: absolute; top: 12px; left: 12px; background: #fff; color: var(--primary); font-size: 11px; font-weight: 800;
  padding: 5px 11px; border-radius: 99px; display: flex; align-items: center; gap: 6px;
}
.featured .badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.pulse-on .featured .badge { animation: pulseW calc(2s * var(--k)) ease-in-out infinite; }
.featured .body { padding: 14px 8px 6px; display: flex; flex-direction: column; gap: 6px; }
.featured .title { font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -.3px; }
.featured .desc { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.88); }
.featured .cta {
  margin-top: 10px; height: 48px; border-radius: var(--r-btn); background: #fff; color: var(--primary);
  font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.featured .cta svg { width: 18px; height: 18px; }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.featured .ph { color: #fff; }
.ph svg { width: 34px; height: 34px; opacity: .8; }

.group { display: flex; flex-direction: column; gap: 12px; }
.group h2 { margin: 8px 0 0 2px; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.group h2 .hl { color: var(--primary); }

.foot { margin: 14px 0 0; text-align: center; font-size: 12px; color: #5A6378; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* animasi masuk */
.e-muncul .enter { animation: popin calc(.6s * var(--k)) ease-out both; }
.e-geser .enter { animation: slidein calc(.6s * var(--k)) ease-out both; }
.e-pudar .enter { animation: fadein calc(.6s * var(--k)) ease-out both; }
.a-berdenyut { animation: popin calc(.6s * var(--k)) ease-out both, pulseB calc(2.2s * var(--k)) ease-in-out calc(1s * var(--k)) infinite !important; }
.a-melayang { animation: popin calc(.6s * var(--k)) ease-out both, bob calc(3s * var(--k)) ease-in-out calc(1s * var(--k)) infinite !important; }
.e-tanpa .a-berdenyut, .e-tanpa .a-melayang { animation-name: none, pulseB; }
.twinkle { animation: twinkle calc(2.2s * var(--k)) ease-in-out infinite; }
.no-float .float, .no-float .bubble { animation: none; }
.no-float .bubble { animation: bubble calc(.7s * var(--k)) ease-out both; }

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(12px,-6px); } }
@keyframes popin { 0% { opacity: 0; transform: translateY(16px) scale(.97); } 70% { opacity: 1; transform: translateY(-2px); } 100% { opacity: 1; transform: none; } }
@keyframes slidein { 0% { opacity: 0; transform: translateX(-24px); } 100% { opacity: 1; transform: none; } }
@keyframes fadein { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes twinkle { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .4; } }
@keyframes pulseW { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.75); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } }
@keyframes pulseB { 0%,100% { box-shadow: var(--ring) 0 0 0 1px, 0 0 0 0 rgba(50,88,232,.35); } 50% { box-shadow: var(--ring) 0 0 0 1px, 0 0 0 8px rgba(50,88,232,0); } }
@keyframes bubble { 0% { opacity: 0; transform: translateY(10px) scale(.9); } 60% { opacity: 1; transform: translateY(-3px) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes wave { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(18deg); } }
@keyframes blink { 0%,92%,100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

@media (prefers-reduced-motion: reduce) {
  .respect-reduce *, .respect-reduce *::before, .respect-reduce *::after { animation: none !important; transition: none !important; }
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 99px; font-size: 13px; font-weight: 700; z-index: 10; opacity: 0; transition: opacity .2s;
}
.toast.show { opacity: 1; }
