/* =============================================
   ATHON — style.css
   ============================================= */

/* ===== 1. VARIABLES ===== */
:root {
  --bg:           #0b111e;
  --bg2:          #111827;
  --surface:      #161f30;
  --surface2:     #1c2840;
  --border:       rgba(255,255,255,0.07);
  --text:         #e2e8f2;
  --text-muted:   #6b7a99;
  --text-dim:     #8496b8;
  --accent:       #4da8da;
  --accent-dark:  #2d7aab;
  --accent-glow:  rgba(77,168,218,0.18);
  --red:          #e74c3c;
  --green:        #2ecc71;
  --gold:         #f1c40f;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --sidebar-w:    220px;
  --topbar-h:     58px;
  --transition:   0.2s ease;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
}

/* ===== 2. RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  overscroll-behavior: none;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
input, select, textarea {
  font: inherit; color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
ul { list-style: none; }
.hidden { display: none !important; }

/* ===== 3. SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ===== 4. LAYOUT ===== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
}

/* ===== 5. SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform var(--transition);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.logo-icon { font-size: 1.6rem; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #4da8da, #82d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-item i { font-size: 1.1rem; min-width: 20px; }
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}
.nav-item.active i { color: var(--accent); }

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 4px;
}

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
}

.btn-login-sidebar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-login-sidebar:hover { background: var(--accent); color: #fff; }

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}
.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; }
.sidebar-user-level {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== 6. SIDEBAR OVERLAY (mobile) ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
}

/* ===== 7. TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: rgba(11,17,30,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.topbar-menu {
  display: none;
  font-size: 1.3rem;
  color: var(--text-dim);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.topbar-menu:hover { color: var(--text); }

.topbar-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #4da8da, #82d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: none;
}

.topbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}
.topbar-search > i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
.topbar-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  transition: border var(--transition);
}
.topbar-search input:focus { border-color: var(--accent); }
.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-dim);
  transition: all var(--transition);
}
.topbar-btn:hover { background: var(--surface2); color: var(--text); }

/* Tombol search di topbar — hanya tampil di mobile */
#btnSearchToggle { display: none; }

.topbar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--accent);
}
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 8. MOBILE SEARCH BAR ===== */
.mobile-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.mobile-search > i { color: var(--text-muted); font-size: 1rem; flex-shrink: 0; }
.mobile-search input {
  flex: 1;
  padding: 7px 12px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

/* ===== 9. SEARCH DROPDOWN ===== */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 340px;
  overflow-y: auto;
  z-index: 300;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--surface2); }
.search-item img {
  width: 30px; height: 42px;
  object-fit: cover; border-radius: 4px;
  flex-shrink: 0;
}
.search-item span { font-size: 0.84rem; line-height: 1.3; }
.search-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.search-item-title {
  font-size: 0.84rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.search-item-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.search-item-ep {
  font-size: 0.70rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.search-status {
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== 10. PAGE CONTAINER ===== */
.page-container { flex: 1; }

.page { display: block; }
.page.hidden { display: none; }

.content-area {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px;
  gap: 12px;
}
.page-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.page-header h1 i { color: var(--accent); }

/* ===== 11. HERO SLIDER ===== */
.hero-section {
  width: 100%;
  background: #000;
  position: relative;
}
.heroSwiper { width: 100%; }
.swiper-slide {
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--bg2);
  overflow: hidden;
}
.swiper-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.slide-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 2rem 1.5rem;
  background: linear-gradient(to top, rgba(11,17,30,0.97) 0%, rgba(11,17,30,0.6) 50%, transparent 100%);
  pointer-events: none;
}
.slide-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.slide-meta {
  font-size: 0.83rem;
  color: #c0d0e8;
  max-width: 520px;
}

.skeleton-slide { background: var(--surface); }

.swiper-button-next, .swiper-button-prev {
  color: rgba(255,255,255,0.7) !important;
  transform: scale(0.65);
}
.swiper-pagination-bullet { background: rgba(255,255,255,0.4) !important; }
.swiper-pagination-bullet-active { background: var(--accent) !important; }

/* ===== 12. ROW SECTIONS (home) ===== */
.row-section { padding: 24px 16px 8px; max-width: 1280px; margin: 0 auto; }
.row-section + .row-section { padding-top: 8px; }

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.row-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}
.row-header h2 i { color: var(--accent); }

.btn-viewall {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-viewall:hover { border-color: var(--accent); color: var(--accent); }

/* Tab buttons di row-header */
.all-tabs {
  display: flex;
  gap: 6px;
}
.tab-btn {
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Section all di home: grid penuh */
.all-section {
  padding-bottom: 0;
}
.all-section .card-grid {
  margin-top: 4px;
}

/* Load more button */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}
.btn-loadmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-loadmore:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.btn-loadmore:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 13. CARD ROW (horizontal scroll) ===== */
.card-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.card-row::-webkit-scrollbar { height: 3px; }
.card-row::-webkit-scrollbar-track { background: transparent; }
.card-row::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 99px; }
.card-row .card { flex: 0 0 140px; scroll-snap-align: start; }
@media (max-width: 500px) { .card-row .card { flex: 0 0 120px; } }

/* Loading skeleton di card-row */
.card-row .empty-state {
  min-width: 100%;
  padding: 30px 0;
}

/* ===== 14. CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding-top: 4px;
}
@media (max-width: 1400px) { .card-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 860px)  { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (max-width: 620px)  { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 380px)  { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } }

/* ===== 15. CARD ===== */
.card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(77,168,218,0.4);
  box-shadow: 0 8px 28px rgba(77,168,218,0.12);
}
.card-thumb {
  position: relative;
  aspect-ratio: 2 / 2.8;
  background: var(--surface2);
  overflow: hidden;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card-thumb img { transform: scale(1.06); }

.card-badge {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.card-ep {
  position: absolute;
  bottom: 6px; left: 6px;
  background: rgba(0,0,0,0.65);
  color: #ddd;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 99px;
}

.card-body {
  padding: 7px 8px 8px;
}
.card-title {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 16. WATCH PAGE (YouTube Style) ===== */
.watch-layout {
  display: flex;
  gap: 16px;
  padding: 16px;
  max-width: 1680px;
  margin: 0 auto;
  min-height: calc(100vh - var(--topbar-h));
}

/* Kolom kiri: video + detail + comments */
.watch-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.watch-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 12px;
}
.btn-back {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--surface2);
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-back:hover { background: var(--accent-glow); color: var(--accent); }

/* Video container: full width, 16/9 */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2.5rem;
}

/* Detail series di bawah video (seperti YouTube) */
.watch-detail {
  padding: 14px 0 8px;
}

.watch-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.watch-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.btn-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface2);
  color: var(--text-dim);
  transition: all var(--transition);
}
.btn-icon-sm i { font-size: 1.05rem; }
.btn-icon-sm:hover { background: var(--accent-glow); color: var(--accent); }
.btn-icon-sm.active { background: var(--accent-glow); color: var(--accent); }

/* Info series (di bawah tombol aksi) */
.series-info-box {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0.85rem;
  margin-top: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow: hidden;
  max-height: 2000px; /* expanded */
  transition: max-height 0.35s ease, padding 0.25s ease, opacity 0.25s ease;
  opacity: 1;
}
.series-info-box.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.series-info-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.info-row:last-of-type { border-bottom: none; }
.info-row .label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.info-row .value {
  color: var(--text);
  font-size: 0.85rem;
}
.synopsis {
  color: var(--text-dim);
  font-size: 0.84rem;
  line-height: 1.7;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Tombol expand/collapse detail mirip YouTube */
.btn-expand-info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--surface2);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-expand-info:hover { background: var(--accent-glow); color: var(--accent); }
.btn-expand-info i { font-size: 1rem; transition: transform 0.25s ease; }
.btn-expand-info.expanded i { transform: rotate(180deg); }

/* Sidebar kanan: episode list (seperti playlist YouTube) */
.watch-sidebar {
  width: 360px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-self: flex-start;
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  max-height: calc(100vh - var(--topbar-h) - 32px);
  display: flex;
  flex-direction: column;
}

.episode-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}
/* Episode bar di dalam sidebar: tanpa margin, tanpa border (sudah dari parent) */
.episode-bar--sidebar {
  background: transparent;
  border: none;
  border-radius: 0;
  margin-top: 0;
  flex: 1;
  min-height: 0;
}

.episode-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.episode-bar h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  margin: 0;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.episode-search {
  flex: 1;
  max-width: 140px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  outline: none;
  transition: border-color var(--transition);
}
.episode-search:focus { border-color: var(--accent); }
.episode-search::placeholder { color: var(--text-muted); }

/* Episode grid di kolom kiri: 6 kolom, max-height sedang */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 14px;
  max-height: 280px;
  overflow-y: auto;
}
/* Episode grid di sidebar: 4 kolom, ambil sisa tinggi */
.episode-bar--sidebar .episode-grid {
  grid-template-columns: repeat(4, 1fr);
  max-height: none;
  flex: 1;
  overflow-y: auto;
}

.episode-grid::-webkit-scrollbar { width: 4px; }
.episode-grid::-webkit-scrollbar-track { background: transparent; }
.episode-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.ep-card {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
}
.ep-card:hover { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); }
.ep-card.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ep-card.hidden { display: none; }

/* Mobile: sidebar turun ke bawah */
@media (max-width: 1024px) {
  .watch-layout {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }
  .watch-sidebar {
    display: none; /* sembunyikan sidebar di mobile, episode sudah ada di kolom utama */
  }
  .episode-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 768px) {
  .watch-layout {
    padding: 8px;
  }
  .video-container {
    border-radius: var(--radius-sm);
  }
  .watch-title {
    font-size: 1rem;
  }
  .episode-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 480px) {
  .episode-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===== 17. SETTINGS PAGE ===== */
.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.settings-row--danger,
.settings-row--full {
  grid-template-columns: 1fr;
}
@media (max-width: 768px) {
  .settings-row { grid-template-columns: 1fr; }
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Header tiap card dengan ikon + judul + deskripsi */
.settings-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.settings-card-header > i {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.settings-card-header h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.settings-card-header p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Profile card — avatar + nama di samping */
.profile-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
}
.avatar-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--accent);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.profile-username {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}
.stat-item--full {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-label-sm {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-label-sm i { color: var(--accent); }
.stat-date {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* Danger zone */
.danger-card {
  border-color: rgba(231,76,60,0.2);
}
.danger-card .settings-card-header > i {
  background: rgba(231,76,60,0.12);
  color: var(--red);
}
.danger-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.danger-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.danger-action-item:last-child { border-bottom: none; }
.danger-action-title {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.danger-action-desc {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Form elements tetap sama */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.form-group input:disabled { opacity: 0.5; cursor: not-allowed; }
.form-group select { appearance: none; }

.toggle-group {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface2);
  border-radius: 99px;
  transition: all var(--transition);
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px; bottom: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: all var(--transition);
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.badge-level {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--surface2);
  color: var(--text-dim);
  width: fit-content;
}
.badge-level.admin { background: rgba(231,76,60,0.2); color: #e74c3c; }
.badge-level.vip   { background: rgba(241,196,15,0.2); color: #f1c40f; }
.badge-level.user  { background: rgba(77,168,218,0.15); color: var(--accent); }

/* ===== 18. ADMIN TABLE ===== */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.admin-table th, .admin-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.admin-table select {
  padding: 4px 8px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  background: var(--surface2);
}

/* ===== 19. MODAL AUTH ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-box {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
  animation: slideUp 0.22s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: var(--surface2);
  transition: all var(--transition);
}
.modal-close:hover { color: var(--text); background: var(--surface2); }

.auth-panel { display: flex; flex-direction: column; gap: 16px; }
.auth-panel.hidden { display: none; }

.auth-header { text-align: center; }
.auth-logo { font-size: 2.2rem; }
.auth-header h2 { font-size: 1.3rem; font-weight: 700; margin: 6px 0 4px; }
.auth-header p  { font-size: 0.82rem; color: var(--text-muted); }

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon > i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}
.input-icon input {
  width: 100%;
  padding: 10px 40px 10px 36px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}
.btn-eye {
  position: absolute;
  right: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 4px;
  transition: color var(--transition);
}
.btn-eye:hover { color: var(--text); }

.form-error {
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.3);
  color: #e74c3c;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.form-msg {
  background: rgba(46,204,113,0.1);
  border: 1px solid rgba(46,204,113,0.3);
  color: var(--green);
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.auth-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.link-btn {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color var(--transition);
}
.link-btn:hover { color: #82d4ff; }

/* ===== 20. BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-full { width: 100%; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: rgba(231,76,60,0.12);
  color: var(--red);
  border: 1px solid rgba(231,76,60,0.3);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-danger:hover { background: rgba(231,76,60,0.22); }

/* ===== 21. TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: rgba(46,204,113,0.15); border-color: rgba(46,204,113,0.4); color: var(--green); }
.toast.error   { background: rgba(231,76,60,0.15); border-color: rgba(231,76,60,0.4); color: var(--red); }

/* ===== 22. EMPTY STATE ===== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 10px; display: block; color: var(--surface2); }

/* ===== 23. LOADING SPINNER ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; display: inline-block; }

/* ===== 24. RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-220px);
    width: 220px;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }

  .main-wrapper { margin-left: 0; }

  .topbar-menu  { display: flex; }
  .topbar-logo  { display: block; }
  .topbar-search { display: none; }
  #btnSearchToggle { display: flex; }
  #btnLoginTopbar  { display: flex; }

  .swiper-slide { aspect-ratio: 16 / 9; }
  .slide-info h3 { font-size: 1rem; }

  .card-row .card { flex: 0 0 130px; }

  .settings-layout { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .topbar-menu   { display: none; }
  .topbar-logo   { display: none; }
  #btnLoginTopbar { display: none; }
}

/* ===== 25. SECTION ICONS COLOR ===== */
/* Terbaru — biru */
.row-section:nth-child(1) .row-header h2 i { color: var(--accent); }
/* Populer — kuning */
.row-section:nth-child(2) .row-header h2 i { color: var(--gold); }
/* Trending — merah */
.row-section:nth-child(3) .row-header h2 i { color: #ff6b6b; }

/* ===== 26. HOME SECTION SPACING ===== */
#page-home .content-area {
  padding-bottom: 48px;
}
#page-home .row-section:last-child {
  margin-bottom: 0;
}

/* ===== 27. CARD ROW MOBILE FIX ===== */
@media (max-width: 768px) {
  .card-row .card { flex: 0 0 130px; }
  .row-section { padding: 18px 12px 6px; }
}
@media (max-width: 480px) {
  .card-row .card { flex: 0 0 115px; }
  .slide-info h3 { font-size: 0.95rem; }
  .slide-info { padding: 2rem 1rem 1rem; }
}

/* ===== 28. TOPBAR LOGO LINK FIX ===== */
.topbar-logo {
  cursor: pointer;
}
.topbar-logo:hover {
  opacity: 0.85;
}

/* ===== 29. WATCH PAGE — sidebar scroll fix (sudah digabung ke section 16) ===== */

/* ===== 30. ADMIN TABLE RESPONSIVE ===== */
@media (max-width: 600px) {
  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3) { display: none; }
}

/* ===== 31. TOAST MOBILE FIX ===== */
@media (max-width: 480px) {
  .toast {
    left: 16px;
    right: 16px;
    width: auto;
    transform: translateX(0) translateY(10px);
    white-space: normal;
    text-align: center;
  }
  .toast.show {
    transform: translateX(0) translateY(0);
  }
}

/* ===== 32. BADGE LEVEL (sudah digabung ke section 17) ===== */

/* ===== 33. EMPTY STATE IN ROW ===== */
.card-row > .empty-state {
  flex: 1;
  min-width: 280px;
}

/* ===== 34. COMMENTS SECTION ===== */
.comments-section {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
.comments-section > h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-form {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--transition);
}
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Comment item: avatar | konten */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.comment-item:hover { border-color: rgba(77,168,218,0.25); }

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}
.comment-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Baris atas: nama + badge level + (badge eps) + waktu + tombol hapus */
.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  row-gap: 4px;
}
.comment-username {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text);
}
.comment-time {
  font-size: 0.71rem;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* Badge episode — menunjukkan di eps berapa komentar ditulis */
.badge-episode {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(52,199,89,0.15);
  color: #34c759;
  border: 1px solid rgba(52,199,89,0.25);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.badge-episode:hover {
  background: rgba(52,199,89,0.28);
  color: #2ecc71;
}
.badge-episode i { font-size: 0.72rem; }

.comment-body {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.6;
  word-break: break-word;
}
.comment-delete {
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--red);
  font-size: 0.82rem;
  transition: background var(--transition);
  flex-shrink: 0;
}
.comment-delete:hover {
  background: rgba(231,76,60,0.12);
}
.empty-comment {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== 35. AVATAR UPLOAD BUTTON ===== */
#btnUploadAvatar {
  margin-bottom: 8px;
}

/* ===== 36. RESPONSIVE COMMENTS & EPISODE ===== */
@media (max-width: 600px) {
  .comment-item {
    padding: 10px;
  }
  .comment-avatar {
    width: 32px;
    height: 32px;
  }
  .comment-username {
    font-size: 0.82rem;
  }
  .comment-body {
    font-size: 0.82rem;
  }
  .episode-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    max-height: 200px;
  }
  .episode-search {
    max-width: 110px;
  }
}
@media (max-width: 400px) {
  .episode-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===== NOTIFICATION BANNER ===== */
.notif-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 4px;
  background: transparent;
  margin: 0 0 4px;
}
.notif-banner.hidden { display: none; }

.notif-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 0;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.855rem;
  line-height: 1.45;
  animation: notifSlideIn 0.4s cubic-bezier(.22,.68,0,1.15) both;
}

/* Label badge di kiri */
.notif-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 0 6px 6px 0;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
}

/* type: info — biru */
.notif-item.type-info {
  background: linear-gradient(135deg, rgba(45,122,171,0.15) 0%, rgba(45,122,171,0.07) 100%);
  border: 1px solid rgba(45,122,171,0.3);
  color: #c2dff5;
}
.notif-item.type-info .notif-label   { background: #2d7aab; color: #fff; }
.notif-item.type-info .notif-item-icon { color: #60b4f8; }

/* type: warning — amber */
.notif-item.type-warning {
  background: linear-gradient(135deg, rgba(234,179,8,0.15) 0%, rgba(234,179,8,0.07) 100%);
  border: 1px solid rgba(234,179,8,0.35);
  color: #fde68a;
}
.notif-item.type-warning .notif-label   { background: #ca8a04; color: #fff; }
.notif-item.type-warning .notif-item-icon { color: #facc15; }

/* type: success — hijau */
.notif-item.type-success {
  background: linear-gradient(135deg, rgba(34,197,94,0.15) 0%, rgba(34,197,94,0.07) 100%);
  border: 1px solid rgba(34,197,94,0.3);
  color: #bbf7d0;
}
.notif-item.type-success .notif-label   { background: #16a34a; color: #fff; }
.notif-item.type-success .notif-item-icon { color: #4ade80; }

.notif-item-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}
.notif-item-msg {
  flex: 1;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.notif-counter {
  font-size: 0.72rem;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}
.notif-item-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.4;
  font-size: 1rem;
  padding: 3px 4px;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
  transition: opacity 0.15s, background 0.15s;
  display: flex;
  align-items: center;
}
.notif-item-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}

@keyframes notifSlideIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}


/* ===== ADMIN — NOTIFICATION SECTION ===== */
.admin-notif-section {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.admin-notif-header {
  padding: 14px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-notif-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.admin-notif-form {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.admin-notif-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
  min-height: 64px;
  transition: border var(--transition);
  box-sizing: border-box;
}
.admin-notif-textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(45,122,171,0.15); }
.admin-notif-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-notif-select {
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border var(--transition);
}
.admin-notif-select:focus { border-color: var(--accent); outline: none; }
.admin-notif-submit {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* ── Daftar notifikasi ── */
.admin-notif-list {
  max-height: 380px;
  overflow-y: auto;
}
.admin-notif-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.admin-notif-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.admin-notif-row:last-child { border-bottom: none; }
.admin-notif-row:hover { background: rgba(255,255,255,0.03); }

/* Badge tipe di kiri */
.admin-notif-type-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-notif-type-badge.badge-info    { background: rgba(45,122,171,0.2); color: #60b4f8; border: 1px solid rgba(45,122,171,0.35); }
.admin-notif-type-badge.badge-warning { background: rgba(234,179,8,0.2);  color: #facc15; border: 1px solid rgba(234,179,8,0.35); }
.admin-notif-type-badge.badge-success { background: rgba(34,197,94,0.2);  color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }

.admin-notif-row-body { flex: 1; min-width: 0; }
.admin-notif-row-msg {
  font-size: 0.875rem;
  font-weight: 500;
  word-break: break-word;
  margin-bottom: 3px;
  line-height: 1.4;
}
.admin-notif-row-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Aksi kanan */
.admin-notif-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Toggle pill — aktif/nonaktif */
.admin-notif-toggle {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.admin-notif-toggle:hover { opacity: 0.85; }
.admin-notif-toggle.active {
  background: rgba(34,197,94,0.18);
  color: #4ade80;
  border-color: rgba(34,197,94,0.4);
}

/* Tombol hapus */
.admin-notif-del {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid rgba(239,68,68,0.4);
  background: transparent;
  color: #f87171;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.admin-notif-del:hover {
  background: rgba(239,68,68,0.15);
  border-color: #ef4444;
  color: #ef4444;
}


/* ===================================================
   SITE FOOTER
   =================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text-dim);
  font-size: 0.83rem;
}

/* ── Main area ── */
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px 48px;
  padding: 36px 28px 28px;
  max-width: 100%;
}

/* Brand kolom */
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-logo-icon { font-size: 1.4rem; line-height: 1; }
.footer-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  background: linear-gradient(90deg, var(--accent), #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 280px;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}
.footer-badge i { font-size: 0.8rem; color: var(--accent); }

/* Kolom navigasi & legal */
.footer-col {}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color var(--transition);
}
.footer-links a i { font-size: 0.88rem; opacity: 0.6; }
.footer-links a:hover { color: var(--accent); }
.footer-links a:hover i { opacity: 1; }

/* ── Bottom bar ── */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 12px 28px;
  background: rgba(0,0,0,0.15);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-copyright strong { color: var(--text-dim); }
.footer-license {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.footer-license i { font-size: 0.9rem; }
.footer-license a {
  color: var(--accent);
  text-decoration: none;
}
.footer-license a:hover { text-decoration: underline; }
.footer-version {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    padding: 28px 20px 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 24px 16px 20px;
    gap: 20px;
  }
  .footer-bottom { padding: 10px 16px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-version { margin-left: 0; }
}

/* ========================
   DONATE PAGE
   ======================== */
.donate-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 40px;
}
.donate-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.donate-hero {
  text-align: center;
}
.donate-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}
.donate-hero h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}
.donate-hero p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.donate-qris {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.donate-qris-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.donate-qris-img-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donate-qris-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.donate-qris-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
  opacity: 0.75;
}
.donate-thanks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(var(--accent-rgb, 99, 102, 241), 0.1);
  border: 1px solid rgba(var(--accent-rgb, 99, 102, 241), 0.2);
  border-radius: 10px;
  padding: 14px 20px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Tombol donasi di topbar */
.topbar-btn--donate {
  color: #f472b6 !important;
}
.topbar-btn--donate:hover {
  background: rgba(244, 114, 182, 0.12) !important;
  color: #ec4899 !important;
}

/* Nav item donasi di sidebar */
.nav-item--donate {
  color: #f472b6 !important;
  margin-top: 4px;
}
.nav-item--donate:hover,
.nav-item--donate.active {
  background: rgba(244, 114, 182, 0.12) !important;
  color: #ec4899 !important;
}
.nav-item--donate i { color: inherit; }

/* Tombol donasi di footer */
.footer-donate-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0 0 12px;
}
.btn-donate-footer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  color: #fff;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-donate-footer:hover { opacity: 0.85; }

@media (max-width: 560px) {
  .donate-card { padding: 24px 16px; }
  .donate-qris-img-wrap { width: 220px; height: 220px; }
}
