/* JKT48 HUB — Liquid Glass (CSS biasa, tanpa build) */
:root {
  --bg1: #050b1f; --bg2: #0b1d45;
  --fg: #f4f7ff; --muted: #a9b8d9; --accent: #3b82ff; --ice: #bfe3ff;
  --glass: rgba(255,255,255,.07); --glass-strong: rgba(255,255,255,.12);
  --glass-border: rgba(255,255,255,.16);
  --shadow: 0 10px 40px rgba(2,8,30,.45);
  --line: rgba(255,255,255,.1);
}
:root.light {
  --bg1: #eef4ff; --bg2: #d6e6ff;
  --fg: #0b1736; --muted: #485a82; --accent: #1f63e6; --ice: #2a6fb8;
  --glass: rgba(255,255,255,.62); --glass-strong: rgba(255,255,255,.85);
  --glass-border: rgba(255,255,255,.95);
  --shadow: 0 10px 36px rgba(40,80,160,.18);
  --line: rgba(11,23,54,.12);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.light { color-scheme: light; }
body {
  margin: 0; min-height: 100vh; color: var(--fg);
  font-family: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(59,130,255,.28), transparent 60%),
    radial-gradient(700px 420px at 95% 5%, rgba(191,227,255,.14), transparent 60%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,p,ul,dl,dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-size: .8em; }
.container { max-width: 72rem; margin: 0 auto; padding: 0 .75rem; }
main.container { padding-top: 1.5rem; }

/* ---------- Glass & kontrol ---------- */
.glass {
  position: relative; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 22px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.22), transparent 38%); opacity: .55;
  -webkit-mask: linear-gradient(#000, transparent 70%); mask: linear-gradient(#000, transparent 70%);
}
.pad { padding: 1.25rem; } .pad-lg { padding: 1.75rem; } .pad-sm { padding: .75rem 1rem; }
.glass-hover { transition: transform .25s ease, background .25s ease, border-color .25s ease; display: block; }
.glass-hover:hover { transform: translateY(-3px); background: var(--glass-strong); border-color: rgba(191,227,255,.45); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .55rem 1.1rem; border-radius: 14px; font-weight: 600; font-size: .9rem;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--fg); cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: var(--glass-strong); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg,#3b82ff,#1f5de0); border-color: rgba(255,255,255,.3); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg,#5a96ff,#2f6bf0); }
.btn-danger { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.45); color: #fca5a5; }
:root.light .btn-danger { color: #b91c1c; }
.btn-sm { padding: .3rem .7rem; font-size: .78rem; border-radius: 12px; }
.btn.is-on { border-color: var(--accent); background: rgba(59,130,255,.25); }
.btn.is-on svg { fill: currentColor; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-size: .75rem; color: var(--muted); display: inline-flex; gap: .25rem; align-items: center; }
.linkbtn:hover { color: var(--fg); }
.linkbtn.warn { color: #fcd34d; font-weight: 600; } .linkbtn.del { color: #fca5a5; }
.input {
  width: 100%; padding: .6rem .85rem; border-radius: 14px; background: var(--glass);
  border: 1px solid var(--glass-border); outline: none;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,255,.25); }
select.input option { color: #0b1736; }
textarea.input { resize: vertical; }
.label { display: block; margin-bottom: .3rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; padding: .15rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; background: rgba(59,130,255,.18);
  border: 1px solid rgba(59,130,255,.4); color: var(--ice); white-space: nowrap;
}
.chip-active { background: var(--accent); color: #fff; border-color: transparent; }
.chip-mute { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: var(--muted); }
.chip-warn { background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.4); color: #fcd34d; }
.chip-bad { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.4); color: #fca5a5; }
.skeleton { border-radius: 16px; background: linear-gradient(90deg,var(--glass),var(--glass-strong),var(--glass)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Utilitas ---------- */
.stack > * + * { margin-top: 1rem; } .stack-sm > * + * { margin-top: .5rem; } .stack-lg > * + * { margin-top: 2rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.row-3 { gap: .75rem; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.nowrap { flex-wrap: nowrap; }
.muted { color: var(--muted); } .ice { color: var(--ice); } .warn { color: #fcd34d; } .bad { color: #fca5a5; }
.sm { font-size: .875rem; } .xs { font-size: .75rem; } .lg { font-size: 1.125rem; } .xl { font-size: 1.25rem; }
.b { font-weight: 700; } .sb { font-weight: 600; } .center { text-align: center; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp2, .clamp3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { -webkit-line-clamp: 2; } .clamp3 { -webkit-line-clamp: 3; }
.pre { white-space: pre-line; word-break: break-word; }
.mt { margin-top: .75rem; } .mt-lg { margin-top: 1.25rem; } .mb { margin-bottom: 1rem; } .mb-lg { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.divide > * + * { border-top: 1px solid var(--line); }
.divide > * { padding: .75rem 0; } .divide > :first-child { padding-top: 0; } .divide > :last-child { padding-bottom: 0; }
.link:hover, a.ice:hover { text-decoration: underline; }
.tnum { font-variant-numeric: tabular-nums; }
.grid { display: grid; gap: 1rem; }
.g2, .g3, .g4, .g5, .g6 { grid-template-columns: 1fr; }
.gs2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .g3, .g4, .g5 { grid-template-columns: repeat(2, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .gs3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g5 { grid-template-columns: repeat(3, 1fr); } .g6 { grid-template-columns: repeat(3, 1fr); } .span2 { grid-column: span 2; } }
@media (min-width: 1024px) { .g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); } .g6 { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Foto ---------- */
.ph { object-fit: cover; background: rgba(255,255,255,.05); }
.ph-init { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ice); background: linear-gradient(135deg, rgba(59,130,255,.3), rgba(191,227,255,.1)); font-size: 1.5rem; }
.av { border-radius: 50%; flex-shrink: 0; } .av-24 { width: 24px; height: 24px; font-size: .7rem; } .av-32 { width: 32px; height: 32px; font-size: .75rem; }
.av-40 { width: 40px; height: 40px; font-size: .9rem; } .av-44 { width: 44px; height: 44px; font-size: 1rem; } .av-48 { width: 48px; height: 48px; font-size: 1rem; }
.av-80 { width: 80px; height: 80px; } .av-96 { width: 96px; height: 96px; border-radius: 1rem; }
.cover { width: 100%; } .ar-34 { aspect-ratio: 3/4; } .ar-1 { aspect-ratio: 1; } .h-36 { height: 9rem; } .h-40 { height: 10rem; } .h-44 { height: 11rem; }
.card-media { overflow: hidden; border-radius: 22px 22px 0 0; }
.rounded { border-radius: 1rem; }

/* ---------- Navbar & footer ---------- */
.topbar { position: sticky; top: 0; z-index: 40; padding: .75rem .75rem 0; }
.nav { max-width: 72rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; border-radius: 18px; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; letter-spacing: -.01em; flex-shrink: 0; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#3b82ff,#7dd3fc); color: #fff; font-size: .9rem; }
.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links a { padding: .35rem .6rem; border-radius: 12px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.nav-links a:hover { background: rgba(255,255,255,.1); color: var(--fg); }
.nav-links a.active { background: rgba(255,255,255,.15); color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: .5rem; }
.nav-right .btn { padding: .45rem .7rem; }
.bell { position: relative; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.only-sm { display: none; } .only-lg { display: none; }
.mobile-menu { max-width: 72rem; margin: .5rem auto 0; padding: .75rem; border-radius: 18px; }
.mobile-menu a, .mobile-menu button.mi { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .6rem .75rem; border-radius: 12px; font-weight: 600; background: none; border: 0; text-align: left; cursor: pointer; }
.mobile-menu a:hover, .mobile-menu button.mi:hover, .mobile-menu a.active { background: rgba(255,255,255,.12); }
@media (min-width: 640px) { .only-sm { display: inline-flex; } }
@media (min-width: 1024px) { .nav-links { display: flex; } .menu-btn, .mobile-menu { display: none !important; } .only-lg { display: inline-flex; } }
.footer { max-width: 72rem; margin: 4rem auto 0; padding: 0 .75rem 2.5rem; }
.footer .glass { padding: 1.5rem; border-radius: 18px; font-size: .875rem; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2.5rem; font-weight: 600; align-content: start; }
.footer-links a:hover { color: var(--ice); }

/* ---------- Komponen halaman ---------- */
.page-title { margin-bottom: 1.5rem; }
.page-title h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.page-title p { margin-top: .5rem; color: var(--muted); max-width: 42rem; }
@media (min-width: 640px) { .page-title h1 { font-size: 2.4rem; } }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.sec-head h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.sec-head a { font-size: .875rem; font-weight: 600; color: var(--ice); } .sec-head a:hover { text-decoration: underline; }
.empty { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; padding: 2rem 1rem; border: 1px dashed rgba(255,255,255,.18); border-radius: 18px; }
.empty b { font-weight: 600; } .empty span { color: var(--muted); font-size: .875rem; max-width: 24rem; }
.hero { padding: 1.5rem; border-radius: 28px; overflow: hidden; background-size: cover; background-position: center; }
.hero h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 1rem; }
.hero-grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 640px) { .hero { padding: 2.5rem; } .hero h1 { font-size: 3.5rem; } }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1.4fr 1fr; } }
.clock { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cd { display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; text-align: center; }
.cd div { border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 16px; padding: .5rem 0; }
.cd b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; } .cd span { font-size: .7rem; color: var(--muted); }
.flash { padding: .6rem .8rem; border-radius: 12px; font-size: .875rem; border: 1px solid; margin-bottom: 1rem; }
.flash.ok { border-color: rgba(52,211,153,.4); background: rgba(16,185,129,.15); }
.flash.err { border-color: rgba(248,113,113,.4); background: rgba(239,68,68,.15); }
.flash.warn { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.15); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; font-weight: 600; }
.check input { margin-top: .25rem; width: 1rem; height: 1rem; }
.toolbar { display: grid; gap: .75rem; padding: 1rem; margin-bottom: 1.5rem; border-radius: 18px; }
@media (min-width: 640px) { .toolbar { grid-template-columns: 1fr auto auto auto; } }
.search-wrap { position: relative; } .search-wrap svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-wrap .input { padding-left: 2.25rem; }
.narrow { max-width: 28rem; margin: 1.5rem auto 0; } .mid { max-width: 42rem; margin: 0 auto; } .wide { max-width: 48rem; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--ice); margin-bottom: 1.5rem; }
.dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; font-size: .875rem; }
@media (min-width: 640px) { .dl { grid-template-columns: repeat(3, 1fr); } }
.dl dt { font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: .2rem; } .dl dd { font-weight: 600; }
.detail { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .detail { grid-template-columns: 220px 1fr; } }
.comment { background: rgba(255,255,255,.05); border-radius: 16px; padding: .75rem; }
.nested { margin-left: 1.5rem; border-left: 1px solid var(--line); padding-left: 1rem; }
details > summary { cursor: pointer; font-size: .75rem; font-weight: 600; color: var(--ice); margin-top: .5rem; list-style: none; }
.author { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; min-width: 0; font-weight: 600; }
.author:hover { color: var(--ice); }

/* ---------- Kalender ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal .cell { min-height: 56px; border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 12px; padding: 4px; font-size: .75rem; text-align: left; overflow: hidden; }
.cal .cell.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cal .cell b { font-size: .75rem; }
.cal .ev { margin-top: 2px; padding: 0 4px; border-radius: 4px; font-size: 10px; line-height: 16px; background: rgba(59,130,255,.3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .bd { background: rgba(244,114,182,.28); }
@media (min-width: 640px) { .cal .cell { min-height: 84px; padding: 6px; } .cal .ev { font-size: 11px; } }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: 70vh; min-height: 420px; padding: 0; }
.chat-head { display: flex; justify-content: space-between; padding: .6rem 1rem; border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.chat-list { flex: 1; overflow-y: auto; padding: .75rem 1rem; }
.chat-list > * + * { margin-top: .75rem; }
.msg { display: flex; gap: .75rem; } .msg p { white-space: pre-wrap; word-break: break-word; font-size: .875rem; }
.chat-foot { border-top: 1px solid var(--line); padding: .75rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: .4rem; }

/* ---------- Admin ---------- */
.admin { max-width: 80rem; margin: 0 auto; padding: 1rem .75rem; display: grid; gap: 1rem; }
@media (min-width: 1024px) { .admin { grid-template-columns: 240px 1fr; } }
.side { padding: .75rem; height: fit-content; border-radius: 18px; }
@media (min-width: 1024px) { .side { position: sticky; top: 1rem; } }
.side nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
@media (min-width: 1024px) { .side nav { flex-direction: column; overflow: visible; } }
.side nav a { flex-shrink: 0; padding: .5rem .75rem; border-radius: 12px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.side nav a:hover { background: rgba(255,255,255,.1); color: var(--fg); }
.side nav a.active { background: rgba(255,255,255,.15); color: var(--fg); }
.stat { padding: 1.25rem; } .stat b { display: block; font-size: 1.9rem; font-weight: 800; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .875rem; }
.admin h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.admin .glass + .glass, .admin .flash + .glass, .admin p + .glass { margin-top: 1rem; }
.tagrow { display: flex; flex-wrap: wrap; gap: .5rem; }
