/* ===== Token ===== */
:root {
  --bg: #0b0d14;
  --bg-2: #121522;
  --card: #171b2b;
  --card-2: #1e2337;
  --line: #262c44;
  --text: #e8eaf3;
  --muted: #9097b1;
  --accent: #ff4f8b;
  --accent-2: #8b5cf6;
  --gold: #f5b942;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --info: #38bdf8;
  --radius: 12px;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.mt { margin-top: 24px; }
.mb { margin-bottom: 24px; }

/* ===== Tombol & form ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #3a4266; background: #252b44; }
.btn-primary { background: var(--grad); border: 0; color: #fff; }
.btn-primary:hover { filter: brightness(1.1); background: var(--grad); }
.btn-gold { background: linear-gradient(135deg, #f5b942, #f97316); color: #1a1205; border: 0; }
.btn-gold:hover { filter: brightness(1.08); background: linear-gradient(135deg, #f5b942, #f97316); }
.btn-danger { background: rgba(239, 68, 68, .15); border-color: rgba(239, 68, 68, .4); color: #fca5a5; }
.btn-ok { background: rgba(34, 197, 94, .15); border-color: rgba(34, 197, 94, .4); color: #86efac; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit;
}
.input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(139, 92, 246, .2); }
textarea.input { min-height: 100px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.error { color: #fca5a5; font-size: 13px; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ===== Badge ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; background: var(--card-2); border: 1px solid var(--line);
  color: var(--muted); letter-spacing: .2px;
}
.badge-ok { color: #86efac; border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .1); }
.badge-warn { color: #fcd34d; border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1); }
.badge-bad { color: #fca5a5; border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .1); }
.badge-info { color: #7dd3fc; border-color: rgba(56, 189, 248, .4); background: rgba(56, 189, 248, .1); }
.badge-gold { color: #1a1205; background: var(--gold); border-color: var(--gold); }
.badge-accent { color: #fff; background: var(--grad); border: 0; }

/* ===== Navbar ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 20, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { font-weight: 800; font-size: 21px; letter-spacing: -.3px; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 15px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--card); }
.nav-search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.nav-search input { padding-left: 36px; height: 40px; }
.nav-search svg { position: absolute; left: 11px; top: 11px; color: var(--muted); }
.nav-user { position: relative; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; cursor: pointer; border: 2px solid transparent; }
.avatar.member { border-color: var(--gold); }
.dropdown { position: absolute; right: 0; top: 46px; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow); display: none; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--card-2); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-search-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; margin-left: auto; }
@media (max-width: 640px) {
  .nav-inner { gap: 10px; }
  .logo { font-size: 18px; }
  .nav-search-toggle { display: block; }
  /* Pencarian jadi bar penuh di bawah navbar saat tombol 🔍 diketuk. */
  .nav-search { display: none; position: absolute; left: 0; right: 0; top: 64px; max-width: none; margin: 0; padding: 10px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav-search svg { left: 27px; top: 21px; }
  .nav.search-open .nav-search { display: block; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-search { max-width: none; }
  .nav-member-btn { display: none; }
}

/* ===== Hero ===== */
.hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; margin-top: 20px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 13, 20, .95) 0%, rgba(11, 13, 20, .7) 45%, rgba(11, 13, 20, .1) 100%), linear-gradient(0deg, rgba(11, 13, 20, .9), transparent 50%); }
.hero-content { position: relative; z-index: 1; padding: 36px; max-width: 620px; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.hero p { color: #c8cce0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slides { position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: fade .5s; }
.hero-dots { position: absolute; right: 24px; bottom: 24px; z-index: 2; display: flex; gap: 6px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; transition: .2s; }
.hero-dots button.active { width: 26px; background: var(--accent); }
@media (max-width: 640px) {
  .hero { min-height: 300px; border-radius: 14px; margin-top: 12px; }
  .hero-content { padding: 20px 18px 44px; }
  .hero p { -webkit-line-clamp: 2; font-size: 14px; margin-bottom: 12px; }
  .hero .row { gap: 8px; }
  .hero .btn { padding: 9px 14px; font-size: 14px; }
  .hero .chips { display: none; }
  .hero-dots { right: 50%; transform: translateX(50%); bottom: 14px; }
  .section { margin-top: 26px; }
  .section-head h2 { font-size: 18px; }
  .panel { padding: 16px; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ===== Section ===== */
.section { margin-top: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.section-head h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--grad); }
.section-head a { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ===== Kartu anime ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 380px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { position: relative; display: block; }
.card-poster { position: relative; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--card); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-poster img { transform: scale(1.06); }
.card-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 45%); }
.card-tl { position: absolute; top: 8px; left: 8px; z-index: 1; display: flex; gap: 4px; flex-wrap: wrap; }
.card-tr { position: absolute; top: 8px; right: 8px; z-index: 1; }
.card-bottom { position: absolute; bottom: 8px; left: 8px; right: 8px; z-index: 1; font-size: 12.5px; font-weight: 700; }
.card-title { margin-top: 8px; font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { font-size: 12.5px; color: var(--muted); }
.play-ico { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; z-index: 2; opacity: 0; transform: scale(.8); transition: .2s; }
.card:hover .play-ico { opacity: 1; transform: scale(1); }

/* Kartu episode (landscape) */
.ep-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .ep-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ep-card .card-poster { aspect-ratio: 16/9; }

/* ===== Peringkat ===== */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.rank-item:hover { border-color: #3a4266; }
.rank-no { font-size: 22px; font-weight: 800; width: 30px; text-align: center; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank-item img { width: 46px; height: 64px; object-fit: cover; border-radius: 6px; }

/* ===== Layout dengan sidebar ===== */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
@media (max-width: 1000px) { .with-side { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }

/* ===== Detail anime ===== */
.detail-cover { position: relative; height: 300px; background-size: cover; background-position: center; }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 20, .6) 60%, rgba(11, 13, 20, .3) 100%); }
.detail-head { display: flex; gap: 28px; margin-top: -170px; position: relative; z-index: 1; }
.detail-poster { width: 220px; flex-shrink: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 2/3; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding-top: 90px; flex: 1; min-width: 0; }
.detail-info h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.meta-table { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 14px; }
.meta-table dt { color: var(--muted); }
.meta-table dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.chip:hover, .chip.active { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) {
  .detail-head { flex-direction: column; align-items: center; text-align: center; margin-top: -200px; gap: 14px; }
  .detail-poster { width: 160px; }
  .detail-info { padding-top: 0; }
  .detail-info .row, .detail-info .chips, .detail-info .hero-meta { justify-content: center; }
}

.ep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; padding-right: 4px; }
.ep-item { padding: 10px 12px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ep-item:hover { border-color: var(--accent-2); }
.ep-item.current { background: var(--grad); border-color: transparent; color: #fff; }
.ep-item.locked { color: var(--muted); }

/* ===== Player ===== */
.player-wrap { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.player-wrap video, .player-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background-size: cover; background-position: center; }
.player-lock::before { content: ""; position: absolute; inset: 0; background: rgba(5, 6, 12, .82); backdrop-filter: blur(6px); }
.player-lock > * { position: relative; }
.player-lock .lock-ico { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #f5b942, #f97316); display: grid; place-items: center; margin-bottom: 14px; color: #1a1205; }
.player-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 12px; }
.server-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.server-btn.active, .quality-btn.active { background: var(--grad); border-color: transparent; color: #fff; }
.server-btn.failed { opacity: .5; text-decoration: line-through; }
.stream-picker { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.picker-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.picker-row[hidden] { display: none; }
.picker-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; min-width: 64px; }
.locked-btn { color: var(--muted); }
.locked-btn s { opacity: .8; }

/* Overlay iklan di atas player */
.ad-overlay { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, .94); display: flex; flex-direction: column; padding: 40px 12px 10px; }
.ad-overlay .ad-overlay-inner { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.ad-overlay .ad-item { max-height: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ad-overlay img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }
.ad-overlay-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.ad-overlay .ad-tag { position: absolute; left: 12px; top: 12px; }

/* ===== Slot iklan ===== */
.ad-slot { position: relative; text-align: center; margin: 16px auto; }
.ad-slot img { margin: 0 auto; border-radius: 8px; max-height: 250px; }
.ad-label { position: absolute; top: 4px; right: 6px; font-size: 10px; background: rgba(0, 0, 0, .6); color: #ddd; padding: 1px 6px; border-radius: 4px; z-index: 1; letter-spacing: .3px; }
.ad-item + .ad-item { margin-top: 10px; }
.ad-item { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.ad-slot picture { display: block; }
.ad-sidebar img { max-height: none; }
.ad-upsell { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.ad-upsell a { color: var(--gold); font-weight: 600; }

.ad-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(11, 13, 20, .95); border-top: 1px solid var(--line); padding: 8px 40px 8px 8px; display: flex; justify-content: center; }
.ad-sticky img { max-height: 90px; border-radius: 6px; }
.ad-close { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font-size: 16px; line-height: 1; }
.ad-popup { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .75); display: none; align-items: center; justify-content: center; padding: 16px; }
.ad-popup.show { display: flex; animation: fade .25s; }
.ad-popup-box { position: relative; max-width: 500px; width: 100%; background: var(--card); border-radius: 14px; padding: 12px; border: 1px solid var(--line); }
.ad-popup-box img { border-radius: 10px; margin: 0 auto; }
.ad-popup-box .ad-close { top: -12px; right: -12px; }
.ad-popup-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.ad-popup-foot a { color: var(--gold); font-weight: 700; }

/* Kartu iklan in-feed (ukuran poster, ikut grid) */
.ad-card .card-poster { display: flex; align-items: center; justify-content: center; border: 1px dashed #3a4266; }
.ad-card .card-poster::after { display: none; }
.ad-card .ad-item { width: 100%; height: 100%; }
.ad-card .ad-item a, .ad-card .ad-item picture { display: block; width: 100%; height: 100%; }
.ad-card .ad-item img, .ad-card .ad-item video { width: 100%; height: 100%; object-fit: cover; max-height: none; border-radius: 0; }
.ad-card:hover .card-poster img { transform: none; }

/* Iklan video */
.ad-video video { display: block; max-width: 100%; max-height: 360px; border-radius: 8px; background: #000; margin: 0 auto; }
.ad-overlay .ad-video { height: 100%; }
.ad-overlay .ad-video video { max-height: 100%; height: 100%; width: auto; max-width: 100%; }
.ad-unmute { position: absolute; left: 8px; bottom: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; font-size: 15px; }
.ad-cta { position: absolute; right: 8px; bottom: 8px; z-index: 2; }
.ad-overlay-upsell { color: var(--gold); font-weight: 700; white-space: nowrap; }

/* ===== Trailer ===== */
.detail-cover { overflow: hidden; }
.detail-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.detail-cover video.on { opacity: 1; }
.cover-controls { position: absolute; right: 16px; bottom: 190px; z-index: 2; display: flex; gap: 8px; }
.cover-controls .btn { background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
@media (max-width: 720px) { .cover-controls { bottom: 220px; } }
.trailer-card { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0; width: 100%; padding: 0; }
.trailer-card::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); transition: .2s; }
.trailer-card:hover::before { background: rgba(0, 0, 0, .25); }
.trailer-card .play-big { position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 79, 139, .2); }
.trailer-card .trailer-tag { position: absolute; left: 14px; bottom: 12px; font-weight: 700; color: #fff; }
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .85); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.show { display: flex; animation: fade .2s; }
.modal-box { position: relative; width: 100%; max-width: 980px; }
.modal-box .player-wrap { box-shadow: var(--shadow); }
.modal-title { color: #fff; font-weight: 700; margin-bottom: 10px; padding-right: 44px; }
.modal-close { position: absolute; top: -6px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 20px; cursor: pointer; }

/* ===== Membership ===== */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; transform: translateY(-6px); }
.plan-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.plan-price { font-size: 32px; font-weight: 800; margin: 8px 0 0; }
.plan-strike { text-decoration: line-through; color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 14px; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: rgba(34, 197, 94, .15); color: var(--ok); font-size: 11px; display: grid; place-items: center; font-weight: 800; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.benefit { padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.benefit-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; margin-bottom: 10px; color: #fff; }

.member-banner { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(245, 185, 66, .14), rgba(249, 115, 22, .08)); border: 1px solid rgba(245, 185, 66, .35); }

/* ===== Pilihan metode pembayaran otomatis ===== */
.pay-cat { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; background: var(--bg-2); }
.pay-cat summary { padding: 12px 16px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.pay-cat summary::after { content: "▾"; color: var(--muted); }
.pay-cat[open] summary::after { content: "▴"; }
.pay-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 0 14px 14px; }
.pay-tile { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: .15s; }
.pay-tile:hover { border-color: var(--accent-2); }
.pay-tile.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 79, 139, .2); }

/* ===== Upload langsung ke storage ===== */
.upload-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.upload-progress { flex: 1; min-width: 140px; height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; display: none; }
.upload-progress > div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.upload-status { font-size: 12.5px; color: var(--muted); }

/* ===== Tabel ===== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; background: var(--bg-2); }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.table .thumb { width: 42px; height: 58px; object-fit: cover; border-radius: 6px; }
.table .thumb-wide { width: 120px; height: 50px; object-fit: contain; border-radius: 6px; background: var(--bg-2); }

/* ===== Alert ===== */
.alert { padding: 12px 16px; border-radius: 10px; margin: 16px 0; border: 1px solid; font-weight: 500; }
.alert-success { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .4); color: #bbf7d0; }
.alert-error { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .4); color: #fecaca; }
.alert-info { background: rgba(56, 189, 248, .08); border-color: rgba(56, 189, 248, .35); color: #bae6fd; }

/* ===== Komentar ===== */
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment .avatar { flex-shrink: 0; cursor: default; }
.comment-body { flex: 1; min-width: 0; white-space: pre-line; word-wrap: break-word; }

/* ===== Auth ===== */
.auth-box { max-width: 420px; margin: 56px auto; }

/* ===== Pagination ===== */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 28px 0 8px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border-radius: 9px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.pagination a:hover { border-color: var(--accent-2); }
.pagination .current { background: var(--grad); border-color: transparent; color: #fff; }
.pagination .disabled { opacity: .4; }

/* ===== Footer ===== */
.footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 32px 0 100px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* ===== Filter bar ===== */
.filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr) auto; gap: 10px; }
@media (max-width: 1000px) { .filters { grid-template-columns: repeat(2, 1fr); } .filters .filter-q { grid-column: 1 / -1; } }

.empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty-ico { font-size: 40px; margin-bottom: 10px; }

/* ===== Admin ===== */
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .logo { padding: 6px 10px 18px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.admin-nav a:hover { background: var(--card); color: var(--text); }
.admin-nav a.active { background: var(--card-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.admin-nav .group { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #5d6485; padding: 14px 12px 6px; font-weight: 700; }
.admin-nav .count { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.admin-main { padding: 24px 28px 60px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-top h1 { font-size: 24px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .v { font-size: 25px; font-weight: 800; margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1; background: var(--grad); border-radius: 5px 5px 0 0; min-height: 2px; position: relative; }
.bars .bar:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--card-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; margin-bottom: 4px; z-index: 2; }
.bars-x { display: flex; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; }
.source-row { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; background: var(--bg-2); }
.admin-burger { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; z-index: 80; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: .2s; }
  .admin-side.open { transform: none; box-shadow: var(--shadow); }
  .admin-main { padding: 16px; }
  .admin-burger { display: inline-flex; }
}
