/* ITICM FESS — Neumorphism UI (mobile-first)
   Daftar isi: 1 Token · 2 Dasar · 3 Komponen · 4 Topbar & nav · 5 Beranda · 6 Feed/kartu
               7 Form · 8 Modal & toast · 9 Auth · 10 Utilitas · 11 Responsif · 12 Gerak */

/* 1 ─ TOKEN ──────────────────────────────────────────────── */
:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #eceffa;
  --bg-alt: #e0e4f5;
  --card: #eef1fc;
  --text: #23264a;
  --muted: #5b6085;
  --accent: #6c4cf1;
  --accent-ink: #5a3bdc;
  --accent-soft: #e3ddfe;
  --line: rgba(110, 118, 165, .24);
  --sh-light: rgba(255, 255, 255, .95);
  --sh-dark: rgba(158, 168, 205, .58);
  --raise: 8px 8px 18px var(--sh-dark), -8px -8px 18px var(--sh-light);
  --raise-sm: 4px 4px 10px var(--sh-dark), -4px -4px 10px var(--sh-light);
  --inset: inset 4px 4px 9px var(--sh-dark), inset -4px -4px 9px var(--sh-light);
  --ok: #0c6f45;  --ok-bg: #d8f3e6;
  --warn: #8a5300; --warn-bg: #fbecc9;
  --bad: #b02335;  --bad-bg: #fbdde1;
  --info: #3f35b8; --info-bg: #e2e0fb;
  --danger: #cf3b4d;
  --radius: 22px;
  --radius-sm: 14px;
  --topbar-h: 68px;
  --bottom-h: 68px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1a1c2e;
  --bg-alt: #24273f;
  --card: #1e2034;
  --text: #eceefe;
  --muted: #a6abcb;
  --accent: #9b86ff;
  --accent-ink: #b9abff;
  --accent-soft: #2f2a5c;
  --line: rgba(160, 168, 215, .2);
  --sh-light: rgba(62, 67, 108, .34);
  --sh-dark: rgba(7, 8, 20, .72);
  --ok: #55dca0;  --ok-bg: #153a2b;
  --warn: #f2c15d; --warn-bg: #3d2f12;
  --bad: #ff8d9b;  --bad-bg: #44202a;
  --info: #b3a9ff; --info-bg: #2a2760;
  --danger: #e5566a;
  color-scheme: dark;
}

/* 2 ─ DASAR ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg); overflow-x: hidden;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 16px);
  transition: background .25s, color .25s;
}
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
code { font-size: .85em; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(100% - 32px, 1160px); margin-inline: auto; }
.container-narrow { width: min(100% - 32px, 720px); margin-inline: auto; }
.main { padding: 20px 0 32px; min-height: 60vh; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { top: 10px; }
.i { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 26px; height: 26px; }
.i-xl { width: 40px; height: 40px; }
.i-accent { color: #f59e0b; }

/* 3 ─ KOMPONEN ───────────────────────────────────────────── */
.card { background: var(--bg); border-radius: var(--radius); box-shadow: var(--raise); padding: 20px; min-width: 0; }
.card-inset { background: var(--bg); border-radius: var(--radius-sm); box-shadow: var(--inset); padding: 16px; }
.card-flush { padding: 0; overflow: hidden; }
.card-title { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.05rem; }
.card-head a { font-size: .85rem; font-weight: 600; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; text-decoration: none !important; color: var(--text);
  background: var(--bg); box-shadow: var(--raise-sm); transition: box-shadow .15s, transform .15s, filter .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { filter: brightness(1.03); }
.btn:active { box-shadow: var(--inset); transform: translateY(1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #7357f3, #5638db); box-shadow: 5px 5px 14px rgba(86, 56, 219, .35), -4px -4px 12px var(--sh-light); }
.btn-primary:active { box-shadow: inset 3px 3px 8px rgba(30, 10, 120, .5); }
.btn-soft { color: var(--accent-ink); }
.btn-danger { color: #fff; background: var(--danger); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .88rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .75; }
.btn .spinner { display: none; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading .spinner { display: block; position: absolute; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-soft .spinner, .btn:not(.btn-primary):not(.btn-danger) .spinner { border-color: var(--line); border-top-color: var(--accent); }

.btn-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--bg); box-shadow: var(--raise-sm); color: var(--text); flex: none; text-decoration: none !important;
}
.btn-icon:active { box-shadow: var(--inset); }
.btn-icon-sm { width: 40px; height: 40px; }
.btn-danger-ico { color: var(--danger); }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline; }
:root[data-theme="dark"] .only-light { display: none; }

.chip {
  --c: var(--accent);
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; line-height: 1.5; white-space: nowrap; text-decoration: none !important;
  color: var(--c); background: var(--accent-soft);
  color: color-mix(in srgb, var(--c) 72%, var(--text));
  background: color-mix(in srgb, var(--c) 15%, var(--bg));
}
a.chip:hover { filter: brightness(.96); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.badge-ok { color: var(--ok); background: var(--ok-bg); }
.badge-warn { color: var(--warn); background: var(--warn-bg); }
.badge-bad { color: var(--bad); background: var(--bad-bg); }
.badge-info { color: var(--info); background: var(--info-bg); }

.avatar {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  font-weight: 800; font-size: .95rem; color: var(--accent-ink); background: var(--bg); box-shadow: var(--raise-sm);
}
.avatar-sm { width: 30px; height: 30px; font-size: .78rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.15rem; }
.avatar-anon { color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.empty { text-align: center; padding: 32px 20px; display: grid; gap: 10px; justify-items: center; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 1.05rem; }
.empty p { max-width: 36ch; font-size: .92rem; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; flex-wrap: wrap; }
.pg { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: .88rem; background: var(--bg); box-shadow: var(--raise-sm); text-decoration: none !important; }
.pg.is-disabled { opacity: .45; box-shadow: none; }
.pg-info { color: var(--muted); font-size: .85rem; }

/* 4 ─ TOPBAR & NAV ───────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar-in { display: flex; align-items: center; gap: 14px; min-height: var(--topbar-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; font-weight: 800; }
.brand-logo, .footer-logo, .auth-logo { border-radius: 50%; object-fit: contain; flex: none; background: #fff; box-shadow: var(--raise-sm); }
.brand-name { font-size: 1.1rem; letter-spacing: .01em; color: var(--accent-ink); }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-desktop { display: none; gap: 6px; }
.nav-link { padding: 9px 16px; border-radius: 12px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none !important; }
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--accent-ink); background: var(--bg); box-shadow: var(--inset); }
.account-btn { text-transform: none; }

.search { display: flex; align-items: center; gap: 10px; background: var(--bg); box-shadow: var(--inset); border-radius: 14px; padding: 0 14px; min-height: 46px; color: var(--muted); }
.search input[type="search"] { flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; color: var(--text); font-size: 1rem; }
.search input[type="search"]:focus { outline: 0; }
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.search-desktop { display: none; width: 240px; }
.search-mobile { margin-bottom: 14px; }
.search-inline { flex: 1; min-width: 160px; }

.menu { position: relative; }
.menu-pop {
  position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; min-width: 190px; padding: 8px;
  background: var(--bg); border-radius: 16px; box-shadow: var(--raise); border: 1px solid var(--line);
}
.menu-right { left: auto; right: 0; }
.menu-pop a, .menu-pop button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: transparent;
  border-radius: 10px; text-align: left; font-weight: 600; font-size: .9rem; color: var(--text); text-decoration: none !important;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg-alt); }
.post-actions .menu-pop { bottom: calc(100% + 6px); top: auto; right: 0; left: auto; }

.bottom-nav {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  height: var(--bottom-h); display: grid; grid-template-columns: 1fr 1fr 74px 1fr 1fr; align-items: center;
  background: var(--bg); border-radius: 22px; box-shadow: var(--raise); border: 1px solid var(--line);
}
.bn-item { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; min-height: 52px; font-size: .68rem; font-weight: 700; color: var(--muted); text-decoration: none !important; }
.bn-item.is-active { color: var(--accent-ink); }
.bn-item .i { width: 22px; height: 22px; }
.bn-fab {
  justify-self: center; width: 58px; height: 58px; margin-top: -26px; border: 0; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #7a5ff7, #5638db); box-shadow: 0 8px 18px rgba(86, 56, 219, .45), -3px -3px 8px var(--sh-light); display: grid; place-items: center;
}

.footer { padding: 32px 0 24px; border-top: 1px solid var(--line); margin-top: 24px; }
.footer-in { display: grid; gap: 14px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand p { color: var(--muted); font-size: .85rem; }
.footer-rules { color: var(--muted); font-size: .85rem; max-width: 70ch; }
.footer-copy { color: var(--muted); font-size: .8rem; }

/* 5 ─ BERANDA ────────────────────────────────────────────── */
.hero { display: grid; gap: 18px; padding: 24px 20px; margin-bottom: 28px; overflow: hidden; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 3rem); font-weight: 800; margin-bottom: 10px; }
.grad { background: linear-gradient(90deg, #6c4cf1, #8f6cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .grad { background-image: linear-gradient(90deg, #a897ff, #cdbfff); }
.hero p { color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 18px 0 0; color: var(--muted); font-size: .85rem; }
.hero-stats strong { color: var(--text); }
.hero-art { display: none; justify-self: center; width: min(100%, 340px); }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(10px 14px 18px var(--sh-dark)); }

.section { margin-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filter {
  --c: var(--accent);
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  color: var(--muted); background: var(--bg); box-shadow: var(--raise-sm); text-decoration: none !important;
}
.filter:hover { color: var(--text); }
.filter.is-active { color: #fff; background: linear-gradient(135deg, #7357f3, #5638db); box-shadow: 4px 4px 10px rgba(86, 56, 219, .3); }

.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head-cat { display: flex; align-items: center; gap: 14px; }
.cat-ico { --c: var(--accent); display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; flex: none; background: var(--bg); box-shadow: var(--raise-sm); color: var(--c); }
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-card { display: grid; gap: 4px; justify-items: start; text-decoration: none !important; color: var(--text); transition: transform .2s; }
.cat-card:hover { transform: translateY(-3px); }
.cat-card small { color: var(--muted); }
.back-link { margin-bottom: 12px; font-weight: 600; }

.two-col { display: grid; gap: 20px; }
.stack { display: grid; gap: 20px; align-content: start; }
.song-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.song-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); box-shadow: var(--inset); }
.song-list strong { display: block; }
.song-list small { display: block; color: var(--muted); }
.link-more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .88rem; }

/* 6 ─ FEED & KARTU MENFESS ───────────────────────────────── */
.feed { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.feed > .empty { grid-column: 1 / -1; }
.feed-more { display: flex; justify-content: center; margin-top: 22px; }
.post { display: grid; gap: 12px; padding: 18px; animation: rise .35s ease both; scroll-margin-top: 90px; }
.post:target { outline: 3px solid var(--accent); outline-offset: 3px; }
.post-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.post-time { font-size: .76rem; color: var(--muted); }
.post-by { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.post-by strong { color: var(--text); }
.post-body { font-size: .98rem; line-height: 1.65; overflow-wrap: anywhere; word-break: break-word; }
.post-actions { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.post-actions .menu { margin-left: auto; }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: transparent; border-radius: 12px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.act:hover { color: var(--text); background: var(--bg-alt); }
.act-icon { padding: 0; width: 44px; justify-content: center; }
.act-like.is-liked { color: #e0245e; }
.act-like.is-liked .i { animation: pop .3s ease; }
.feed-single { max-width: 640px; }

/* 7 ─ FORM ───────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend, fieldset.field legend { font-weight: 700; font-size: .9rem; padding: 0; }
.field small { font-weight: 500; color: var(--muted); }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  box-shadow: var(--inset); font-size: 16px; outline: 0;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="search"]):focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
input:disabled { opacity: .65; }
input[type="color"] { width: 100%; height: 48px; padding: 6px; border: 0; border-radius: var(--radius-sm); background: var(--bg); box-shadow: var(--inset); cursor: pointer; }
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8fb3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.input-icon { position: relative; }
.input-icon input { padding-right: 56px; }
.input-icon .btn-icon { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); box-shadow: none; background: transparent; }
.field-meta { display: flex; justify-content: space-between; gap: 10px; min-height: 20px; font-size: .8rem; }
.field-error { color: var(--bad); font-size: .82rem; font-weight: 600; }
.field.has-error input, .field.has-error textarea, .field.has-error select { outline: 2px solid var(--danger); }
.counter { color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--warn); font-weight: 700; }
.counter.is-over { color: var(--bad); font-weight: 800; }
.hint { color: var(--muted); font-size: .8rem; }
.hint-box { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); box-shadow: var(--inset); }
.hint-box .i { margin-top: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: 10px; }
.form-actions-row { display: flex; gap: 12px; justify-content: flex-end; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; --c: var(--accent); }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: .86rem;
  color: var(--muted); background: var(--bg); box-shadow: var(--raise-sm); transition: box-shadow .15s, color .15s;
}
.choice input:checked + span { box-shadow: var(--inset); color: color-mix(in srgb, var(--c) 75%, var(--text)); outline: 2px solid color-mix(in srgb, var(--c) 55%, transparent); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 50px; height: 28px; flex: none; border-radius: 999px; background: var(--bg); box-shadow: var(--inset); transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); box-shadow: var(--raise-sm); transition: transform .2s, background .2s; }
.switch input:checked + .switch-ui { background: var(--accent-soft); }
.switch input:checked + .switch-ui::after { transform: translateX(22px); background: var(--accent); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 8 ─ MODAL & TOAST ──────────────────────────────────────── */
dialog.modal { border: 0; padding: 0; background: transparent; color: var(--text); width: min(560px, calc(100vw - 20px)); max-width: none; max-height: calc(100dvh - 20px); margin: auto; overflow: visible; }
dialog.modal-sm { width: min(440px, calc(100vw - 20px)); }
dialog.modal::backdrop { background: rgba(18, 20, 44, .55); backdrop-filter: blur(4px); }
dialog.modal[open] .modal-card { animation: rise .25s ease both; }
.modal-card { background: var(--bg); border-radius: 26px; padding: 20px; box-shadow: 0 24px 60px rgba(10, 12, 40, .4); max-height: calc(100dvh - 20px); overflow-y: auto; overscroll-behavior: contain; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.confirm-text { margin-bottom: 18px; color: var(--muted); }

.toasts { position: fixed; z-index: 90; top: 14px; left: 14px; right: 14px; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; width: min(100%, 420px); padding: 14px 16px; border-radius: 16px;
  background: var(--bg); box-shadow: var(--raise), 0 0 0 1px var(--line); font-weight: 600; font-size: .92rem; animation: slide-in .3s ease both;
}
.toast .i { margin-top: 2px; }
.toast-success { color: var(--ok); }
.toast-error { color: var(--bad); }
.toast-info { color: var(--accent-ink); }
.toast span { color: var(--text); flex: 1; }
.toast.is-out { animation: fade-out .25s ease forwards; }

/* 9 ─ AUTH ───────────────────────────────────────────────── */
.auth-card { max-width: 460px; margin: 12px auto 24px; padding: 28px 22px; display: grid; gap: 14px; text-align: center; }
.auth-card .auth-logo { margin: 0 auto; }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .form { text-align: left; }
.auth-alt { font-size: .9rem; color: var(--muted); }
.auth-alt a { font-weight: 700; }

/* 10 ─ UTILITAS ──────────────────────────────────────────── */
.hide-mobile { display: none !important; }
.stat-sm { font-size: 1.25rem !important; }

/* 11 ─ RESPONSIF ─────────────────────────────────────────── */
@media (min-width: 425px) {
  .toasts { left: auto; right: 16px; justify-items: end; }
}
@media (min-width: 640px) {
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding: 32px; }
}
@media (min-width: 768px) {
  .search-always { max-width: 420px; }
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero-art { display: block; }
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .footer-in { grid-template-columns: auto 1fr; align-items: center; }
  .footer-copy { grid-column: 1 / -1; }
  .menu-pop { min-width: 210px; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .hide-mobile { display: inline-flex !important; }
  .nav-desktop { display: flex; margin-left: 8px; }
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .search-desktop { display: flex; margin-left: auto; }
  .topbar-actions { margin-left: 0; }
  .search-mobile:not(.search-always) { display: none; }
  .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed-single { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 374px) {
  .container, .container-narrow { width: calc(100% - 24px); }
  .brand-name { font-size: 1rem; }
  .card { padding: 16px; }
  .choice span { padding: 0 12px; }
}

/* 12 ─ GERAK ─────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 50% { transform: scale(1.35); } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
