/* ============================================================
   PUBLIC.CSS — Zaken News
   ============================================================ */

/* reset → style.css */
:root {
  --accent:      #d63031;
  --accent-dark: #b71c1c;
  --text:        #1a1a1a;
  --text-light:  #fff;
  --text-muted:  #666;
  --text-soft-muted:#ffffffbf;
  --border:      #e5e5e5;
  --card-bg:     #fff;
  --header-h:    60px;
  --font:        'DM Sans', system-ui, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-mono:   'DM Mono',monospace;
  --max-w:       1141px;
  --pad-section: 32px 35px;
  --pad-x:       0 20px;
  --pad-y:       20px 0;
  --pad-page:    28px 20px;
  --radius:      6px;
  --surface:     #fff;
  --bg:          #fff;
  --focus-ring:  rgba(214,48,49,.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* a, img base → style.css */
a { transition: .15s; }
a:not(.btn):hover { text-decoration: none; }
ul, ol { list-style: none; }

.inner-link { cursor: pointer; width: fit-content; transition: .15s; }
.inner-link:hover { opacity: .7; }

/* --- Layout --- */
.container { align-items: center; width: 100%; max-width: var(--max-w); margin: 0 auto; }
.container-narrow { max-width: 800px; }

/* --- STAFF BAR --- */
.staff-bar {
  background: #1a1a2e;
  height: 30px;
  font-size: 11px;
}
.staff-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.staff-bar-left { display: flex; align-items: center; gap: 8px; }
.staff-bar-role {
  color: #a78bfa;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1px 8px;
  border: 1px solid rgba(167,139,250,.3);
  border-radius: 3px;
}
.staff-bar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.staff-bar-nav a {
  color: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 3px;
  transition: color .15s, background .15s;
}
.staff-bar-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* ── ZAKEN PRO ─────────────────────────────────────────────── */

/* Badge inline (sebelum judul) */
.pro-badge-inline {
  display: inline;
  width: auto;
  height: 16px;
  vertical-align: baseline;
  margin-right: 3px;  
}
.ticker-item .pro-badge-inline {
  height: 11px;
}

/* Paywall overlay */
.pro-paywall-body { position: relative; }
.pro-paywall-overlay {
  position: relative;
  padding-top: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--bg) 40%);
  text-align: center;
}
.pro-paywall-cta {
  padding: 40px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  max-width: 480px;
  margin: 0 auto;
}
.pro-paywall-logo {
  width: auto;
  height: 48px;
  margin-bottom: 16px;
  margin-inline: auto;
}
.pro-paywall-cta h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.pro-paywall-cta p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.pro-paywall-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.pro-paywall-btn:hover { opacity: 0.9; }

/* --- TICKER --- */
.ticker {
  background: var(--text);
  overflow: hidden;
  height: 32px;
}
.ticker-inner {
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}
.ticker-item {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1;
  padding: 0 20px;
  flex-shrink: 0;
  transition: color .15s;
}
.ticker-item:hover { color: var(--text-light); opacity: .7; }
.ticker-sep {
  color: var(--text-soft-muted);
  flex-shrink: 0;
  font-size: 8px;
}
.ticker-inner::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 1;
  pointer-events: none;
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  transition: transform .3s ease;
}
.site-header.header-hidden {
  transform: translateY(-100%);
}

/* Baris 1: Logo + Actions */
.header-logo-row {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.header-logo-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.55px;
  margin-top: 3px;
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-logo-text {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text);
  line-height: 1;
  margin-top: -3px;
}
.site-logo-text span{
  color: var(--accent);
}

.btn-header-login {
  padding: 4px 20px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 0;
  text-transform: uppercase;
}
.btn-header-subscribe {
  padding: 4px 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--text);
  color: var(--text-light);
  border: 1px solid var(--text);
  border-radius: 0;
  text-transform: uppercase;
}
.btn-header-subscribe:hover { opacity: .7; color: var(--text-light); }

/* Avatar / user icon */
.btn-header-avatar,
.btn-header-user-icon { display: flex; align-items: center; justify-content: center; }
.header-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.header-avatar-placeholder, .btn-header-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #00000007;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  font-size: 12px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.btn-header-avatar:hover { opacity: .7; }
.btn-header-login:hover { opacity: .7; }
.btn-header-user-icon { color: var(--text); display: none; }
.btn-header-user-icon:hover { opacity: .7; color: var(--text); }

/* Baris 2: Rubrik Nav */
.header-nav-row {
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-muted);
  transition: background .15s, color .15s;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  /* border-bottom: 2px solid transparent; */
}
.site-nav a:hover { opacity: .7;}
.site-nav a.nav-active { color: var(--text); border-bottom-color: var(--accent); }
.nav-item-parent a {
  font-weight: 700;
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--bg);
}

/* Nav dropdown */
.nav-item { position: relative; }
.nav-item .nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  min-width: 160px;
  z-index: 200;
  padding: 4px 0;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 8px 16px;
  border-radius: 0;
  font-size: 14px;
}
.nav-dropdown a:hover { background: #f5f5f5; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.btn-search {
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--text);
  display: flex;
  align-items: center;
}
.btn-search:hover { opacity: .7; }

.btn-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  color: var(--text);
}



/* Drawer nav */
body.drawer-open,
body.filter-open { overflow: hidden; }
.drawer-panel,
.idx-filter-panel { overscroll-behavior: none; }
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 340px;
  max-width: 85vw;
  background: var(--bg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  scrollbar-width: thin;
}
.drawer-overlay.open .drawer-panel { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-logo img { height: 28px; width: auto; }
.drawer-logo span { font-size: 18px; font-weight: 700; color: var(--text); }
.drawer-close {
  background: none; border: none; cursor: pointer;
  color: var(--text); padding: 4px;
}
.drawer-close:hover { opacity: .7; }
.drawer-search { padding: 16px 20px; }
.drawer-search form {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
}
.drawer-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 0;
}
.drawer-section { padding: 8px 0; }
.drawer-rubrik-head {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  width: 100%; 
  padding: 10px 20px;
  background: none; 
  border: none; 
  cursor: pointer;
  font-size: 16px; 
  font-weight: 500;
  color: var(--text); 
  font-family: inherit;
  text-align: left;
}
.drawer-rubrik-head:hover { opacity: .7; }
.drawer-rubrik-head svg {
  flex-shrink: 0; color: var(--text-muted);
  transition: transform .2s;
}
.drawer-rubrik.is-open .drawer-rubrik-head svg { transform: rotate(180deg); }
.drawer-rubrik-children {
  display: none;
  padding-bottom: 4px;
}
.drawer-rubrik.is-open .drawer-rubrik-children { display: block; }
.drawer-rubrik-children a {
  display: block;
  padding: 6px 20px 6px 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.drawer-rubrik-children a:last-child { padding-bottom: 0; }
.drawer-rubrik-children a:hover { color: var(--text); opacity: .7; }
.drawer-link {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.drawer-link:hover { color: var(--text); opacity: .7; }

/* Account Drawer */
.account-drawer-user {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.account-drawer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #00000007; color: var(--text-muted);
  border: 1.5px solid var(--border);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.account-drawer-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-drawer-name { font-size: 15px; line-height: 1; font-weight: 600; color: var(--text); }
.account-drawer-role { font-size: 12px; line-height: 1.2; color: var(--text-muted); text-transform: capitalize; }
.account-drawer-nav { flex: 1; padding: 8px 0; }
.account-drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; font-size: 15px; font-weight: 500;
  color: var(--text); transition: opacity .15s;
}
.account-drawer-link:hover { opacity: .7; color: var(--text); }
.account-drawer-link svg { flex-shrink: 0; color: var(--text); }
.account-drawer-footer {
  padding: 12px 20px; border-top: 1px solid var(--border);
}
.account-drawer-logout {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 0;
  background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 500; font-family: inherit;
  color: var(--danger, #dc3545); transition: opacity .15s;
}
.account-drawer-logout:hover { opacity: .7; }
.account-drawer-logout svg { flex-shrink: 0; }

/* --- MAIN --- */
.site-main { flex: 1; }

/* --- BREADCRUMB --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: #ccc; }

/* --- PAGE HEADER --- */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 24px; font-weight: 700; line-height: 1.3; }
.page-header .page-desc { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* --- GRID --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- ARTICLE CARD --- */
.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }

.article-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0f0f0;
}
.article-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.article-card:hover .article-card-thumb img { transform: scale(1.04); }
.article-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

.article-card-rubrik {
  position: absolute;
  bottom: 8px; left: 8px;
  background: var(--accent);
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 3px;
}

.article-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-title:hover { color: var(--accent); }
.article-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.article-card-meta-sep { color: #ddd; }
.article-card-author { color: var(--text); text-decoration: none; font-weight: 500; }
.article-card-author:hover { color: var(--accent); }

/* --- ARTICLE CARD LARGE (hero) --- */
.article-card-lg {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
}
.article-card-lg .article-card-thumb {
  aspect-ratio: unset;
  height: 100%;
  min-height: 260px;
  border-radius: 0;
}
.article-card-lg .article-card-body { padding: 28px; justify-content: center; }
.article-card-lg .article-card-title { font-size: 22px; -webkit-line-clamp: 4; }

/* --- SIDEBAR --- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  align-items: start;
}
.content-with-sidebar > article {
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  padding: var(--pad-section);
}

.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.sidebar-widget-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

/* --- POPULAR ARTICLE LIST --- */
.article-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  align-items: flex-start;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-thumb {
  width: 72px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}
.article-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-list-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.article-list-title:hover { color: var(--accent); }
.article-list-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }


/* --- PAGINATION --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: .15s;
}
.pg-btn:hover { opacity: .7; color: var(--text); }
.pg-disabled { color: var(--text-muted); opacity: .4; cursor: default; pointer-events: none; }
.pg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: .15s;
}
.pg-num:hover { opacity: .7; color: var(--text); }
.pg-active { background: var(--text); border-color: var(--text); color: var(--text-light); font-weight: 600; }
.pg-active:hover { opacity: .7; color: var(--text-light); }
.pg-dots { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  min-width: 36px;
  height: 36px;
  padding: 0 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted); 
  cursor: default; 
  letter-spacing: 2px; 
}
.pg-goto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.pg-goto-input {
  width: 52px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s;
  -moz-appearance: textfield;
}
.pg-goto-input::-webkit-outer-spin-button,
.pg-goto-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pg-goto-input:focus { border-color: var(--text); }
.pg-goto-btn {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: .15s;
}
.pg-goto-btn:hover { opacity: .7; color: var(--text); }

/* --- ARTICLE DETAIL --- */
.article-detail-header { margin-bottom: 24px; }

/* Rubrik badge */
.sa-cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(214, 48, 49, 0.08);
  border: 1px solid rgba(214, 48, 49, 0.25);
  padding: 3px 10px;
  margin-bottom: 12px;
}
.sa-cat-badge:hover { opacity: .7; color: var(--accent); }
.sa-cat-badges { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.sa-cat-badges .sa-cat-badge { margin-bottom: 0; }
.sa-pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  /* background: rgba(214, 48, 49, 0.08); */
  /* border: 1px solid rgba(214, 48, 49, 0.25); */
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  text-transform: capitalize;
  margin-bottom: 12px;
}
.sa-pro-badge img { height: 11px; width: auto; }

.article-detail-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.article-detail-excerpt {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  padding-bottom: 24px;
  margin-bottom: 24px;
  font-style: italic;
  border-bottom: 1px solid var(--border);
}

/* Author card */
a.sa-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: .15s;
  width: fit-content;
}
a.sa-author-card:hover { opacity: .7; }
.sa-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.sa-author-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #00000007;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
}
.sa-author-name { font-weight: 600; font-size: 16px; color: var(--text); }
.sa-author-role {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.sa-author-role.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.sa-author-card .article-save-btn { margin-left: auto; }

/* Meta card */
.sa-meta-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid var(--border);
}
.sa-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1px;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}
.sa-meta-icon { color: #999; flex-shrink: 0; }
.sa-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.sa-edit-link:hover { opacity: .7; }

/* Featured image */
.sa-featured-image { 
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border); 
  padding-bottom: 16px;
}
.sa-featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.sa-featured-image figcaption {
  padding-top: 10px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.3;
  font-style: italic;
}

/* Article body */
.dropcap {
  float: left;
  font-size: 56px;
  line-height: 1;
  margin-top: -5px;
  padding-right: 6px;
  font-weight: 400;
  color: var(--text);
  font-family: var(--font-serif, Georgia, serif);
}
.article-body {
  font-size: 18px;
  line-height: 1.5;
  color: #222;
}
.article-body h2 { font-size: 26px; font-weight: 700; margin: 28px 0 12px; }
.article-body h3 { font-size: 22px; font-weight: 700; margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body figure { 
  margin: 28px 50px;
  align-items: center;
  
}
.article-body img { max-width: 100%; }
.article-body figcaption {
  padding-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.3;
  font-style: italic;
}

/* Baca Juga */
.baca-juga-wrap { margin: 28px 0; }
.baca-juga-card,
.baca-juga-card:hover,
.baca-juga-card *,
.baca-juga-card:hover * { text-decoration: none !important; }
.baca-juga-card {
  display: block;
  background: #fafafa;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  padding: 14px 14px;
  color: inherit;
  transition: background .2s, border-color .2s;
}
.baca-juga-card:hover {
  border-color: rgba(214, 48, 49, 0.3);
  border-left-color: var(--accent);
}
.baca-juga-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.baca-juga-body {
  display: flex;
  align-items: start;
  gap: 10px;
}
.baca-juga-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0;
}
.baca-juga-img-placeholder {
  width: 72px;
  height: 72px;
  background: #eee;
  border-radius: 4px;
  flex-shrink: 0;
}
.baca-juga-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  background: #fef5f5;
  color: #555;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: revert;
}
.article-body li { margin-bottom: 6px; }
.article-body pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 15px;
  margin: 16px 0;
}
.article-body code {
  font-family: 'Courier New', monospace;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 15px;
}
.article-body pre code { background: none; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.article-body th { background: #f5f5f5; font-weight: 600; }

/* Tags */
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.tag-chip {
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  border-radius: 0;
  color: var(--accent);
  text-transform: capitalize;
  background: rgba(214, 48, 49, 0.08);
  border: 1px solid rgba(214, 48, 49, 0.25);
  padding: 3px 10px;
  transition: opacity .15s;
}
.tag-chip:hover { opacity: .7; }

/* Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-share-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity .15s;
}
.share-btn:hover { opacity: .85; color: var(--text-light); }
.share-btn.twitter { background: #000; }
.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: #555; }

/* Save button */
.article-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  margin-left: auto;
}
.article-save-btn:hover, .article-save-btn.saved {
  background: #fef5f5;
  border-color: var(--accent);
  color: var(--accent);
}

/* Image Lightbox */
.img-lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 10000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.img-lightbox-overlay.open { opacity: 1; visibility: visible; }
.img-lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #fff;
  font-size: 32px; cursor: pointer; z-index: 2;
  line-height: 1;
}
.img-lightbox-close:hover { opacity: .7; }
.img-lightbox-img-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: auto; width: 100%; padding: 20px;
}
.img-lightbox-img {
  max-width: 90%; max-height: 80vh;
  transition: transform .2s;
  cursor: zoom-in;
  user-select: none;
}
.img-lightbox-img.zoomed { cursor: zoom-out; }
.img-lightbox-bar {
  width: 100%; padding: 12px 20px;
  background: rgba(0,0,0,.7);
  color: rgba(255,255,255,.8);
  font-size: 13px; text-align: center;
  min-height: 40px;
}
.img-lightbox-zoom {
  position: absolute; bottom: 60px; right: 20px;
  display: flex; gap: 8px;
}
.img-lightbox-zoom button {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  font-size: 18px; cursor: pointer; line-height: 1;
}
.img-lightbox-zoom button:hover { background: rgba(255,255,255,.3); }
.article-body img, .sa-featured-image img { cursor: pointer; }

/* ── ARTICLE TOOLBAR (at-*) ── */
.at-toolbar {
  position: fixed;
  left: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px;
  /* box-shadow: 0 2px 12px rgba(0,0,0,.08); */
}
.at-toolbar-toggle { display: none; }
/* Drag overlay */
.at-drag-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,.3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.at-drag-overlay.active { opacity: 1; pointer-events: auto; }
.at-toolbar.at-dragging { box-shadow: 0 4px 24px rgba(0,0,0,.18); transform: scale(1.05); z-index: 101; }
/* Right-side variant */
.at-toolbar.at-right { left: auto; right: 0; }
.at-toolbar.at-right .at-toolbar-toggle {
  right: auto; left: -22px;
  border-left: 1px solid var(--border); border-right: none;
  border-radius: 6px 0 0 6px;
}
.at-toolbar.at-right .at-toolbar-toggle svg { transform: rotate(180deg); }
.at-toolbar.at-right.at-peeked { transform: translateX(100%); }
.at-toolbar.at-right.at-peeked .at-toolbar-toggle svg { transform: rotate(0deg); }
.at-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.at-btn:hover { background: #f5f5f5; color: var(--text); }
.at-btn.saved { color: var(--accent); }
.at-aa {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.at-divider {
  width: 24px;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.at-fontsize-wrap { position: relative; }
.at-fontsize-menu {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: row;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  white-space: nowrap;
}
/* Right-side: menu opens to the left */
.at-toolbar.at-right .at-fontsize-menu {
  left: auto;
  right: calc(100% + 8px);
}
.at-fontsize-menu.open { display: flex; }
.at-size-opt {
  padding: 6px 10px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--font-serif);
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1;
}
.at-size-opt[data-size="small"] { font-size: 13px; }
.at-size-opt[data-size="medium"] { font-size: 16px; }
.at-size-opt[data-size="large"] { font-size: 20px; }
.at-size-opt.active { background: var(--accent); color: #fff; }
.at-size-opt:hover:not(.active) { background: #f5f5f5; }
.at-text-small { font-size: 16px !important; }
.at-text-medium { font-size: 18px !important; }
.at-text-large { font-size: 20px !important; }
.at-text-small .dropcap { font-size: 51px !important; margin-top: -4px; }
.at-text-medium .dropcap { font-size: 56px !important; margin-top: -5px; }
.at-text-large .dropcap { font-size: 64px !important; margin-top: -5px; }
/* --- AUTHOR BOX --- */
.author-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 32px;
  align-items: flex-start;
}
.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #aaa;
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.author-box-role { font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.author-box-bio { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* --- COMMENTS --- */
.comments-section { margin-top: 40px; }
.comments-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.comment-form { margin-bottom: 32px; }
.comment-form textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--font);
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: border-color .15s;
}
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form button {
  margin-top: 10px;
  padding: 9px 22px;
  background: var(--accent);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.comment-form button:hover { background: var(--accent-dark); }

.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #00000007;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-name { font-size: 14px; font-weight: 600; }
.comment-date { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.comment-text { font-size: 14px; color: #333; margin-top: 4px; line-height: 1.6; }
.comment-del {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 12px;
  margin-top: 4px;
  padding: 0;
}
.comment-del:hover { color: var(--accent); }
.comments-disabled { color: var(--text-muted); font-size: 14px; padding: 16px 0; }

/* --- AUTHOR PROFILE PAGE --- */
.author-profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.author-profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  flex-shrink: 0;
  background: #00000007;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
}
.author-profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-profile-name { font-weight: 600; font-size: 16px; color: var(--text); }
.author-profile-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.author-profile-desc.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.author-join-date { font-style: italic; font-size: 13px; color: var(--text-muted); }

/* --- RUBRIK/TAG PAGE --- */
.rubrik-hero {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  color: var(--text-light);
  margin-bottom: 28px;
}
.rubrik-hero h1 { font-size: 26px; font-weight: 700; }
.rubrik-hero p { font-size: 14px; opacity: .85; margin-top: 4px; }
.rubrik-children {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.rubrik-child-link {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  transition: background .15s;
}
.rubrik-child-link:hover, .rubrik-child-link.active { background: rgba(255,255,255,.35); color: var(--text-light); }

/* --- SEARCH PAGE --- */
.search-no-results { text-align: center; padding: 60px 0; color: var(--text-muted); }
.search-no-icon { color: #ccc; margin: 0 auto 16px; }
.search-no-hint { font-size: 13px; margin-top: 8px; }
.comment-login-prompt { padding: 16px; background: #f9f9f9; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; margin-bottom: 24px; }
.comment-body { flex: 1; }
.empty-page { padding: 60px 0; }

.search-form-inline {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.search-form-inline input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s;
}
.search-form-inline input:focus { border-color: var(--accent); }
.search-form-inline button {
  padding: 10px 22px;
  background: var(--accent);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.search-form-inline button:hover { background: var(--accent-dark); }

/* --- ACCOUNT SETTINGS --- */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0 48px;
}
.account-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.account-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #00000007; 
  color: var(--text-muted); 
  border: 1.5px solid var(--border); 
  font-size: 18px; font-weight: 500; 
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; 
  flex-shrink: 0;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-sidebar-name { font-size: 14px; font-weight: 600; }
.account-sidebar-role { font-size: 12px; line-height: 1.2; color: var(--text-muted); text-transform: capitalize; }
.account-nav a {
  display: block; padding: 11px 20px; font-size: 14px;
  border-bottom: 1px solid #f5f5f5; color: var(--text); transition: background .15s;
}
.account-nav a:hover, .account-nav a.active { background: #fef5f5; color: var(--accent); font-weight: 600; }
.account-nav-logout {
  display: block; width: 100%; text-align: left;
  padding: 11px 20px; font-size: 14px; color: #dc2626;
  background: none; border: none; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.account-nav-logout:hover { background: #fef2f2; }

.account-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.account-panel h2 {
  font-size: 18px; font-weight: 700; margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.account-panel .form-label { font-size: 13px; font-weight: 500; margin-bottom: 6px; display: block; }
.account-panel .form-control { width: 100%; padding: 10px 14px; font-size: 14px; }
.account-panel .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-panel .form-disabled { background: #f9f9f9; color: #999; cursor: not-allowed; }

.avatar-upload { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.avatar-upload-preview {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  background: #00000007; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 500; color: var(--text-muted); flex-shrink: 0;
}
.avatar-upload-preview img { width: 100%; height: 100%; object-fit: cover; }

.avatar-crop-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.avatar-crop-overlay.is-hidden { display: none; }
.avatar-crop-box { background: #fff; border-radius: var(--radius); width: 420px; max-width: 95vw; overflow: hidden; }
.avatar-crop-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 15px;
}
.avatar-crop-header button { background: none; border: none; cursor: pointer; color: var(--text-muted); }
.avatar-crop-header button:hover { color: var(--text); }
.avatar-crop-container { max-height: 380px; overflow: hidden; }
.avatar-crop-container img { display: block; max-width: 100%; }
.avatar-crop-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }

.account-empty { text-align: center; padding: 48px 0; color: var(--text-muted); }
.account-empty a { margin-top: 8px; display: inline-block; }

.warning-zone {
  margin-top: 32px; padding: 20px;
  border: 1px solid #fde68a; border-radius: var(--radius); background: #fffbeb;
}
.warning-zone h3 { font-size: 14px; font-weight: 700; color: #92400e; margin-bottom: 8px; }
.warning-zone p { font-size: 13px; color: #92400e; margin-bottom: 12px; line-height: 1.5; }

.danger-zone {
  margin-top: 32px; padding: 20px;
  border: 1px solid #fecaca; border-radius: var(--radius); background: #fef2f2;
}
.danger-zone h3 { font-size: 14px; font-weight: 700; color: #991b1b; margin-bottom: 8px; }
.danger-zone p { font-size: 13px; color: #991b1b; margin-bottom: 12px; line-height: 1.5; }
.danger-zone .form-group { margin-top: 16px; }

.security-form { max-width: 400px; }

/* --- STATIC PAGES --- */
.static-page { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.static-page h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.static-page .lead { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.static-page h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.static-page p { font-size: 15px; color: #333; line-height: 1.75; margin-bottom: 12px; }

/* --- CONTACT PAGE --- */
.contact-page { padding: 20px 0 48px; }
.contact-header { text-align: center; padding: 40px 0 36px; }
.contact-title { font-family: var(--font-serif); font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.contact-subtitle { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.6; }

.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.contact-info-card p { font-size: 14px; color: var(--text); margin: 0; line-height: 1.5; }
.contact-info-note { font-size: 14px; color: var(--text); line-height: 1.7; padding: 16px 20px; background: #fafafa; border-radius: var(--radius); border: 1px solid var(--border); }
.contact-info-note p { margin: 0 0 8px; }
.contact-info-note p a { color: var(--accent); }
.contact-info-note p:last-child { margin-bottom: 0; }

.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-form .form-control { padding: 10px 14px; font-size: 14px; }
.contact-form textarea.form-control { resize: vertical; overflow: auto; min-height: 120px; }
.contact-file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  transition: border-color .15s, background .15s;
}
.contact-file-label:hover { border-color: var(--accent); background: #fafafa; }
.contact-file-label svg { flex-shrink: 0; color: var(--text-muted); }
.contact-submit { width: 100%; padding: 8px 12px; font-size: 14px; font-weight: 600; border-radius: var(--radius); }

/* --- ADVERTENSI PAGE --- */
.adv-page { padding: 20px 0 48px; }
.adv-header { text-align: center; padding: 40px 0 36px; }
.adv-title { font-family: var(--font-serif); font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.adv-subtitle { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.6; }

.adv-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  margin-bottom: 40px;
}
.adv-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
}
.adv-stat:last-child { border-right: none; }
.adv-stat-num { font-size: 28px; font-weight: 800; color: var(--accent); }
.adv-stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; text-align: center; }


.adv-cta {
  text-align: center;
  padding: 48px 0 0;
}
.adv-cta h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.adv-cta p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.adv-cta-btns .btn { padding: 12px 36px; font-size: 15px; color: var(--card-bg); font-weight: 600; border-radius: 8px; text-decoration: none; }

/* --- SUBSCRIBE PAGE --- */
.subscribe-page { padding: 20px 0 48px; }
.subscribe-header { text-align: center; padding: 40px 16px 20px; }
.subscribe-logo { width: auto; height: 56px; margin-bottom: 16px; margin-inline: auto; }
.subscribe-title { font-family: var(--font-serif); font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.subscribe-subtitle { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }

.subscribe-active { text-align: center; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); }
.subscribe-active p { font-size: 15px; margin-bottom: 16px; line-height: 1.6; }

.subscribe-plans {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 16px 40px 8px;
  scroll-padding-inline: 40px;
  cursor: grab;
  max-width: fit-content;
  margin-inline: auto;
}
.subscribe-plans:active { cursor: grabbing; }
.subscribe-plans::-webkit-scrollbar { display: none; }
.subscribe-plans > * {
  flex: 0 0 300px;
  scroll-snap-align: start;
}
.subscribe-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
  box-shadow: 0 0 0 1px var(--border);
}
.subscribe-card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.subscribe-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.subscribe-card-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.subscribe-card-price {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.subscribe-card-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}
.subscribe-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.subscribe-card-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.subscribe-card-features li {
  font-size: 14px;
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--text);
}
.subscribe-card-features li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 14px; height: 14px; border-radius: 50%; background: #e8f5e9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%234caf50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 8px;
}
.subscribe-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  align-items: center;
  line-height: 1.2;
  border: 1px solid var(--text);
  background: var(--card-bg);
  color: var(--text);
}
.subscribe-card-featured .subscribe-card-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--card-bg);
}
/* --- CHECKOUT PAGE --- */
.checkout-page { max-width: 480px; margin: 0 auto; padding: 48px 0 64px; }
.checkout-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.checkout-box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); margin-bottom: 24px; }
.checkout-item { display: flex; justify-content: space-between; padding: 16px 20px; font-size: 15px; }
.checkout-total { display: flex; justify-content: space-between; padding: 16px 20px; font-size: 16px; font-weight: 700; border-top: 1px solid var(--border); }
.checkout-pay-btn { width: 100%; padding: 14px; font-size: 16px; font-weight: 600; border-radius: 8px; }
.checkout-pending-note { text-align: center; font-size: 14px; color: #f9a825; margin-bottom: 12px; }
.checkout-cancel-btn {
  width: 100%; padding: 12px; font-size: 14px; border-radius: 8px; margin-top: 10px;
  background: none; border: 1px solid var(--border); color: var(--text-muted); cursor: pointer;
}
.checkout-cancel-btn:hover { border-color: var(--accent); color: var(--accent); }
.checkout-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 12px; }

#snap-midtrans {
  left: 50% !important; top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 560px !important; max-width: 95vw !important;
  height: 85vh !important; max-height: 700px !important;
  z-index: 10000 !important;
  border-radius: 10px;
}
.snap-overlay {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
}
body:has(.snap-overlay) { height: auto !important; overflow: hidden !important; }
.snap-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; font-size: 15px; }
.snap-spinner {
  width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%; animation: snap-spin .7s linear infinite;
}
@keyframes snap-spin { to { transform: rotate(360deg); } }
#snap-midtrans iframe { width: 100% !important; height: 100% !important; }

/* --- PAYMENT STATUS PAGE --- */
.pay-status-page { max-width: 480px; margin: 0 auto; padding: 64px 0; text-align: center; }
.pay-status-icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.pay-status-success { background: #e8f5e9; color: #2e7d32; }
.pay-status-pending { background: #fff8e1; color: #f9a825; }
.pay-status-failed { background: #fce4ec; color: #c62828; }
.pay-status-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.pay-status-desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.pay-status-order { font-size: 13px; color: var(--text-muted); margin-top: 16px; font-family: monospace; }
.pay-status-resume { margin-top: 20px; }
.pay-status-cancel { margin-top: 10px; font-size: 14px; background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 10px 24px; border-radius: 8px; cursor: pointer; }
.pay-status-cancel:hover { border-color: var(--accent); color: var(--accent); }

/* --- SUBSCRIPTION (settings tab) --- */
.subscription-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--card-bg); margin-bottom: 16px; }
.subscription-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.subscription-active { background: #e8f5e9; color: #2e7d32; }
.subscription-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.subscription-detail { font-size: 14px; color: var(--text-muted); }
.subscription-detail strong { color: var(--text); margin-left: 6px; }

.payment-history-title { font-size: 16px; font-weight: 700; margin-top: 28px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.payment-history-entry { border-bottom: 1px solid #f0f0f0; }
.payment-history-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; font-size: 14px; cursor: pointer; transition: background .15s;
}
.payment-history-item:hover { background: #fafafa; }
.payment-history-item > div { display: flex; align-items: center; gap: 12px; }
.payment-history-chevron { color: var(--text-muted); transition: transform .2s; flex-shrink: 0; }
.payment-history-entry.open .payment-history-chevron { transform: rotate(180deg); }
.payment-history-order { font-family: monospace; font-size: 13px; }
.payment-history-date { color: var(--text-muted); font-size: 13px; }
.payment-history-amount { font-weight: 600; }
.payment-history-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.payment-badge-settlement { background: #e8f5e9; color: #2e7d32; }
.payment-badge-pending { background: #fff8e1; color: #f9a825; }
.payment-badge-expire, .payment-badge-cancel { background: #f5f5f5; color: #999; }
.payment-badge-deny { background: #fce4ec; color: #c62828; }
.payment-badge-refund { background: #e3f2fd; color: #1565c0; }
.payment-history-detail {
  max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
  background: #fafafa; border-radius: 8px; margin-bottom: 4px;
}
.payment-history-entry.open .payment-history-detail {
  max-height: 300px; padding: 14px 16px;
}
.payment-detail-row {
  display: flex; justify-content: space-between; font-size: 13px;
  padding: 5px 0; border-bottom: 1px solid #f0f0f0;
}
.payment-detail-row:last-of-type { border-bottom: none; }
.payment-detail-row span:first-child { color: var(--text-muted); }
.payment-detail-mono { font-family: monospace; font-size: 12px; }
.payment-detail-resume {
  margin-top: 12px; width: 100%; padding: 10px; font-size: 14px;
}

/* --- ABOUT PAGE (Tentang Kami) --- */
.about-hero { padding: 72px 0 56px; text-align: center; border-bottom: 1px solid var(--border); }
.about-hero-inner { max-width: 680px; margin: 0 auto; }
.about-hero-title { font-family: var(--font-serif); font-size: 40px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 16px; }
.about-hero-subtitle { font-size: 17px; line-height: 1.75; color: var(--text-muted); margin: 0; }

.about-stats { padding: 0; }
.about-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.about-stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 32px 16px;
  border-right: 1px solid var(--border);
}
.about-stat-item:last-child { border-right: none; }
.about-stat-num { font-size: 32px; font-weight: 800; color: var(--accent); }
.about-stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

.about-section { padding: 64px 0; }
.about-section-alt { background: var(--card-bg); }
.about-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; max-width: 1060px; margin: 0 auto;
}
.about-row-reverse .about-row-text { order: 2; }
.about-row-reverse .about-row-img { order: 1; }
.about-section-num {
  display: inline-block; font-size: 48px; font-weight: 800;
  color: var(--accent); opacity: .15; line-height: 1; margin-bottom: 4px;
}
.about-section-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 8px;
}
.about-section-title { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.about-section-body {
  font-size: 15px; line-height: 1.85; color: var(--text-muted);
}
.about-section-body p { margin: 0 0 12px; }
.about-section-body h3 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; color: var(--text); }
.about-section-body h4 { font-size: 16px; font-weight: 600; margin: 12px 0 6px; color: var(--text); }
.about-section-body ul, .about-section-body ol { padding-left: 24px; margin: 8px 0; list-style: revert; }
.about-section-body li { margin: 4px 0; }
.about-section-body a { color: var(--accent); }
.about-section-body blockquote {
  border-left: 3px solid var(--accent); padding-left: 16px;
  margin: 12px 0; font-style: italic;
}
.about-row-img {
  border-radius: 12px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
  aspect-ratio: 4/3; position: relative;
}
.about-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; width: 100%; height: 100%; color: var(--text-muted); opacity: .4;
}
.about-img-placeholder span { font-size: 12px; }
.about-img-editable { cursor: pointer; transition: box-shadow .2s; }
.about-img-editable:hover { box-shadow: 0 0 0 3px var(--accent); }
.about-img-delete {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none;
  font-size: 18px; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  z-index: 2;
}
.about-img-editable:hover .about-img-delete { display: flex; }
.about-img-delete:hover { background: #e53e3e; }

.about-cta { padding: 56px 0; text-align: center; border-top: 1px solid var(--border); }
.about-cta-inner { max-width: 520px; margin: 0 auto; }
.about-cta-inner h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.about-cta-inner p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.about-cta-btns { display: flex; gap: 12px; justify-content: center; }
.about-cta-btns .btn { padding: 10px 28px; font-size: 14px; font-weight: 600; border-radius: 8px; text-decoration: none; }
.about-cta-btns .btn-primary { background: var(--accent); color: #fff; border: none; }
.about-cta-btns .btn-primary:hover { background: var(--accent-dark); }
.about-cta-btns .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.about-cta-btns .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* --- KETENTUAN LAYANAN (TOS) --- */
.tos-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4px;
  align-items: start;
}
.tos-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  padding: 4px 0;
  align-self: start;
}
.tos-toc-card {
  border: 1px solid var(--border);
  background: var(--card-bg);
  overflow: hidden;
}
.tos-toc-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.tos-toc-nav {
  padding: 8px 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.tos-toc-link {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  line-height: 1.4;
}
.tos-toc-link:hover { color: var(--text); background: #fafafa; }
.tos-toc-link.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.tos-toc-sub { padding-left: 32px; font-size: 13px; }

.tos-main {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: var(--pad-section);
  min-height: 60vh;
}
.tos-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.tos-page-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; font-family: var(--font-serif); }
.tos-page-subtitle { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.tos-content { line-height: 1.8; font-size: 15px; color: var(--text); }
.tos-content h2 { font-size: 20px; font-weight: 700; margin: 36px 0 14px; padding-top: 24px; border-top: 1px solid var(--border); }
.tos-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.tos-content h3 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; }
.tos-content p { margin: 0 0 16px; }
.tos-content ul, .tos-content ol { margin: 0 0 16px; padding-left: 24px; list-style: revert; }
.tos-content li { margin-bottom: 6px; }
.tos-content blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 16px 0; background: #fafafa; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text-muted); }
.tos-content a { color: var(--accent); }
.tos-content a:hover { color: var(--accent); text-decoration: underline; }

.tos-content-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 14px; }

/* --- FLASH MESSAGES --- */
/* alert + variants → style.css */
.flash-messages { margin-bottom: 20px; }
.alert { font-size: 14px; }

/* --- FOOTER --- */
.site-footer { background: #1a1a1a; color: #ccc; padding: var(--pad-section); padding-block: 45px; }

/* Row 1: Social Media */
.footer-social-row {
  display: flex;
  justify-content: start;
  padding-bottom: 32px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-social { display: flex; gap: 12px; color: #1a1a1a; }
.footer-social a {
  display: flex; 
  align-items: center; 
  justify-content: center;
  width: 36px; height: 36px; 
  border-radius: 50%;
  background: var(--bg); 
  color: #1a1a1a; 
  transition: .15s;
}
.footer-social a svg {
  height: 20px;
  width: auto;
}
.footer-social a:hover { opacity: .7; }

/* Row 2: Columns */
.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr 0.7fr;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid #2a2a2a;
}
.footer-col h4 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}
.footer-col-spacer { visibility: hidden; }
.footer-col ul { display: flex; flex-direction: column; row-gap: 16px; }
.footer-col a { font-size: 16px; color: var(--text-light); transition: .15s; }
.footer-col a:hover { opacity: .7; }

/* Row 3: Copyright */
.footer-bottom {
  display: flex;
  gap: 6px;
  padding-top: 32px;
  font-size: 14px;
  color: var(--text-light);
}

/* --- ERROR PAGES --- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 16px;
}
.error-code { font-size: 96px; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 16px; }
.error-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.error-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.error-page a.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--text-light);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: background .15s;
}
.error-page a.btn-home:hover { background: var(--accent-dark); color: var(--text-light); }

/* ── HERO (full-width above beranda) ── */
.beranda-full { 
  width: 100%; 
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  border: 1px solid var(--border);
}
.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: block;
}
.hero-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: brightness(.55);
  transition: filter .3s;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 50%);
}
.hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 40px;
}
.hero-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-light);
  background: rgba(214, 48, 48, 0.3);
  border: 1px solid rgba(214, 48, 49, 0.5);
  padding: 3px 10px;
  margin-bottom: 12px;
}
.hero-hed {
  font-family: var(--font-serif);
  font-size: 40Px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
}
.hero-dek {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft-muted);
  margin-bottom: 12px;
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-byline {
  font-size: 14px;
  color: var(--text-soft-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-byline strong {
  color: rgba(255,255,255,.8);
  font-weight: 500;
}
.hero-text .read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: var(--bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 18px;
  transition: background .15s, color .15s;
}
.read-btn svg { width: 14px; height: 14px; }
.hero-main .read-btn:hover { opacity: .7; }
.hero-main:hover .hero-main-img { filter: brightness(.4); }

/* Hero stack (right column) */
.hero-stack {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.hs-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: block;
}
.hs-item:last-child { border-bottom: none; }
.hs-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: brightness(.55);
  transition: filter .3s;
}
.hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 50%);
}
.hs-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
}
.hs-kicker {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  background: rgba(214, 48, 48, 0.3);
  border: 1px solid rgba(214, 48, 49, 0.5);
  padding: 2px 7px;
  margin-bottom: 6px;
}
.hs-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hs-meta {
  font-size: 12px;
  color: var(--text-soft-muted);
  margin-top: 6px;
}
.hs-item:hover .hs-img { filter: brightness(.4); }

/* ============================================================
   BERANDA — Tempo.co + Bloomberg style
   White bg, border dividers, no margin gaps, min title 16px
   ============================================================ */
.beranda-wrap { 
  width: 100%; 
  max-width: var(--max-w); 
  margin: 0 auto;
  /* border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); */
}
.beranda-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  align-items: stretch;
}
.beranda-main { border-right: 1px solid var(--border); border-left: 1px solid var(--border); }

.empty-state { text-align: center; padding: 60px 0; color: var(--text-muted); font-size: 15px; }

/* ── TRENDING SECTION ── */
.trending-section { border-bottom: 1px solid var(--border); padding: var(--pad-section);}

/* Trending 1st — Slideshow */
.trending-slide {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.trending-slide-track { width: 100%; height: 100%; position: relative; }
.trending-slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s;
  display: block;
}
.trending-slide-item.is-active { opacity: 1; z-index: 1; }
.trending-slide-img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  transition: opacity .2s; 
}
.trending-slide-img-ph { width: 100%; height: 100%; background: #222; }
.trending-slide-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 32px 24px;
  transition: opacity .2s; 
  background: linear-gradient(transparent, rgba(0,0,0,.7));

}
.trending-slide-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-light);
}
.trending-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s, background .2s;
}
.trending-slide:hover .trending-arrow { opacity: 1; }
.trending-arrow:hover { background: var(--surface); }
.trending-arrow:active { transform: translateY(-50%) scale(.9); }
.trending-slide-item .trending-slide-img:hover,
.trending-slide-item .trending-slide-overlay:hover { opacity: .7; }
.trending-arrow-left { left: 12px; }
.trending-arrow-right { right: 12px; }

/* Trending 2nd — 3 columns title only */
.trending-2nd {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.trending-2nd-item {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  display: block;
}
.trending-2nd-item:last-child { border-right: none; }
.trending-2nd-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-2nd-item .trending-2nd-title:hover,
.trending-2nd-item .trending-2nd-rubrik:hover { opacity: .7; }

/* ── POPULAR SECTION ── */
.popular-section { padding: var(--pad-section) }

/* Popular hero: centered */
.popular-hero {
  display: block;
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.popular-hero-img-wrap {
  margin-bottom: 16px;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.popular-hero-img { width: 100%; height: 100%; object-fit: cover; }
.popular-hero-body {
  padding: 0 50px;
}
.popular-hero-badge {
  display: inline-block;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 6px 10px;
  line-height: 1;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid var(--text);
}
.popular-hero-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 6px;
}
.popular-hero .popular-hero-img:hover,
.popular-hero .popular-hero-title:hover,
.popular-hero .popular-hero-rubrik:hover,
.popular-hero .popular-hero-excerpt:hover { opacity: .7; }
.popular-hero-author { font-size: 16px; color: var(--text); }

/* Popular more: 3 kolom × 2 baris */
.popular-more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
}
.popular-more-item {
  display: block;
  padding: 20px 0;
}
.popular-more-row1 { padding-top: 0; padding-bottom: 20px; order: 0; }
.popular-more::after {
  content: '';
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  order: 1;
  margin-bottom: 20px;
}
.popular-more-row2 { order: 2; padding-block: 0; }
.popular-more-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 18px;
}
.popular-more-img { width: 100%; height: 100%; object-fit: cover; }
.popular-more-rubrik {
  font-size: 14px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
}
.popular-more-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-more-item .popular-more-img:hover,
.popular-more-item .popular-more-title:hover,
.popular-more-item .popular-more-rubrik:hover,
.popular-more-item .popular-more-excerpt:hover { opacity: .7; }
.popular-more-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
}

/* ── ARTIKEL PILIHAN ── */
.pilihan-section { border-bottom: 1px solid var(--border); padding: 0 35px; }
.pilihan-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
}
.pilihan-item-wrap:last-child { border-left: 1px solid var(--border); }
.pilihan-item {
  display: block;
  padding-right: 35px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.pilihan-item-big {
  padding-left: 35px;
  padding-right: 0;
}
.pilihan-img-wrap { aspect-ratio: 16/9; overflow: hidden; margin-bottom: 24px; }
.pilihan-img { width: 100%; height: 100%; object-fit: cover; }
.pilihan-rubrik {
  font-size: 14px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
}
.pilihan-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pilihan-item .pilihan-img:hover,
.pilihan-item .pilihan-title:hover,
.pilihan-item .pilihan-rubrik:hover,
.pilihan-item .pilihan-excerpt:hover,
.pilihan-item .pilihan-author:hover { opacity: .7; }
.pilihan-excerpt {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.pilihan-author { font-size: 14px; color: var(--text); line-height: 1;}

/* ── KOLOM SECTION ── */
.kolom-section { padding: var(--pad-section); }
.kolom-section-head {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.kolom-section-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.kolom-section-hint {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1;
}
.kolom-section-head a { color: inherit; }
.kolom-section-head a:hover { opacity: .7; }

.kolom-trending {
  display: grid;
  grid-template-columns: 3fr 2fr;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.kolom-trending-more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.kolom-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.kolom-item:hover { color: inherit; }
.kolom-item .kolom-title:hover,
.kolom-item .kolom-author:hover,
.kolom-item .kolom-avatar:hover,
.kolom-item .kolom-avatar-placeholder:hover { opacity: .7; }

.kolom-avatar-wrap { flex-shrink: 0; }
.kolom-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.kolom-avatar-placeholder {
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  line-height: 1;
  align-items: center;
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
}
.kolom-text { flex: 1; min-width: 0; }
.kolom-author {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1;
}
.kolom-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Trending top — border separator between left & right */
.kolom-trending .kolom-item:first-child {
  padding-right: 20px;
  border-right: 1px solid var(--border);
}
.kolom-trending .kolom-item:last-child {
  padding-left: 20px;
}
/* Left item (3fr) — bigger */
.kolom-trending .kolom-item:first-child .kolom-avatar-wrap .kolom-avatar-placeholder { font-size: 32px; }
.kolom-trending .kolom-item:first-child .kolom-avatar { width: 72px; height: 72px; }
.kolom-trending .kolom-item:first-child .kolom-title { font-size: 28px; }
/* Right item (2fr) — medium */
.kolom-trending .kolom-item:last-child .kolom-avatar-wrap .kolom-avatar-placeholder { font-size: 28px; }
.kolom-trending .kolom-item:last-child .kolom-avatar { width: 56px; height: 56px; }
.kolom-trending .kolom-item:last-child .kolom-title { font-size: 24px; }

/* Bottom row — border separators between columns */
.kolom-trending-more .kolom-item {
  padding: 0 16px;
  border-right: 1px solid var(--border);
}

.kolom-trending-more .kolom-item:first-child { padding-left: 0; padding-top: 0; }
.kolom-trending-more .kolom-item:last-child { border-right: none; padding-right: 0; }

/* ── RUBRIK SECTION (per parent) ── */
.rubrik-section { border-bottom: 1px solid var(--border); padding: var(--pad-section) }
.rubrik-section:first-of-type { border-top: 1px solid var(--border); }
.rubrik-section:last-child { border-bottom: none; }
.rubrik-section-head {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.rubrik-section-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.rubrik-section-hint {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1;
  font-style: italic;
}
.rubrik-section-head a { color: inherit; }
.rubrik-section-head a:hover { opacity: .7; }

/* Newest 1st — horizontal */
.rubrik-newest-1st {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.rubrik-newest-1st-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.rubrik-newest-1st-img { width: 100%; height: 100%; object-fit: cover; }
.rubrik-newest-1st-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rubrik-newest-1st .rubrik-newest-1st-img:hover,
.rubrik-newest-1st .rubrik-newest-1st-title:hover,
.rubrik-newest-1st .rubrik-newest-1st-excerpt:hover { opacity: .7; }
.rubrik-newest-1st-excerpt {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Newest more — 3 columns */
.rubrik-newest-more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rubrik-newest-more-item { display: block; }
.rubrik-newest-more-img-wrap {
  max-width: 230px;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 8px;
}
.rubrik-newest-more-img { width: 100%; height: 100%; object-fit: cover; }
.rubrik-newest-more-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rubrik-newest-more-item .rubrik-newest-more-title:hover,
.rubrik-newest-more-item .rubrik-newest-more-img:hover { opacity: .7; }

/* ── RUBRIK FULL (rf-*) — trending layout ── */
.beranda-full .rubrik-section-head { border: 0; padding-bottom: 0; }
.rf-row1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.rf-row1:last-child { margin-bottom: 0; }
.rf-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.rf-lead-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.rf-lead-img { width: 100%; height: 100%; object-fit: cover; }
.rf-lead-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-lead-excerpt {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-lead-author {
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
}
.rf-lead-img:hover, .rf-lead-title:hover, .rf-lead-excerpt:hover, .rf-lead-author:hover  { opacity: .7; }

.rf-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.rf-sub-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-sub-excerpt {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-sub-title:hover, .rf-sub-excerpt:hover { opacity: .7; }

.rf-row2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.rf-card { display: flex; flex-direction: column; gap: 6px; }
.rf-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-card-title:hover, .rf-card-excerpt:hover { opacity: .7; }

/* ── RUBRIK GRID (rg-*) — 4-column layout ── */
.rg-row:first-of-type { border-top: 1px solid var(--border); }
.rg-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: var(--pad-section);
  border-bottom: 1px solid var(--border);
}
.rg-row:last-child { border-bottom: none; }
/* .rg-col .rubrik-section-head { border: 0; padding-bottom: 0; margin-bottom: 12px; } */
.rg-body { display: flex; flex-direction: column; }

.rg-item-first, .rg-item-min { 
  display: block;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.rg-item-first:last-child, .rg-item-min:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.rg-item-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 12px;
}
.rg-item-title {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rg-item-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rg-item-img:hover, .rg-item-title:hover, .rg-item-excerpt:hover { opacity: .7; }

/* Rubrik article list (child / terkait) */
.rubrik-article-list { display: flex; flex-direction: column; }
.rubrik-article-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.rubrik-article-item:first-child { padding-top: 0; }
.rubrik-article-item:last-child { border-bottom: none; padding-bottom: 0; }
.rubrik-article-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.rubrik-article-img { width: 100%; height: 100%; object-fit: cover; }
.rubrik-article-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rubrik-article-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.rubrik-article-time { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.rubrik-article-meta { font-size: 13px; color: var(--text-muted); }
.rubrik-article-item .rubrik-article-body:hover,
.rubrik-article-item .rubrik-article-img:hover { opacity: .7; }
.rubrik-pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 20px 0;
}
.rubrik-page-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.rubrik-page-btn:hover { border-color: var(--accent); color: var(--accent); }
.rubrik-view-all { padding: 24px 0 0; text-align: center; }
.rubrik-view-all-btn {
  width: 100%;
  display: inline-block;
  padding: 6px 28px;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.rubrik-view-all-btn:hover { color: var(--text); opacity: .7;}

/* ── SIDEBAR ── */
.beranda-sidebar { 
  height: 100%;
  border-right: 1px solid var(--border);
}
.beranda-sidebar-box {
  border-bottom: 1px solid var(--border);
  padding: var(--pad-section);
}
.beranda-sidebar-box:last-child {border-bottom: none;}
.beranda-sidebar-head {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Zaken Perspektif */
.zp-box { position: relative; }
.zp-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  align-items: center;
}
.zp-content::before {
  content: '\201C';
  position: absolute;
  top: -0.3em;
  left: -4px;
  font-family: var(--font-serif);
  font-size: 60px;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
  opacity: .35;
  pointer-events: none;
}
.zp-quote::before { content: '\201C'; }
.zp-quote::after  { content: '\201D'; }
.zp-quote {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
  padding-bottom: 4px;
  margin-bottom: 4px;
  border-image: linear-gradient(to right, transparent, var(--accent), transparent) 1;
  border-bottom: 2px solid;
  font-weight: 500;
  width: 100%;
}
.zp-meta {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: capitalize;
  line-height: 1;
}
.zp-author { font-weight: 600; color: var(--text); }
.zp-role { font-weight: 400; }
.zp-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity .15s;
  align-self: center;
  line-height: 1;
}
.zp-link:hover { opacity: .7; }

.beranda-sidebar-item:first-child { padding-top: 0; }
.beranda-sidebar-item:last-child { border-bottom: none; padding-bottom: 0; }
.beranda-sidebar-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.beranda-sidebar-thumb {
  width: 80px; height: 80px;
  flex-shrink: 0;
  object-fit: cover;
}
.beranda-sidebar-thumb-placeholder {
  width: 80px; height: 80px;
  flex-shrink: 0;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.beranda-sidebar-item-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.beranda-sidebar-item .beranda-sidebar-item-title:hover,
.beranda-sidebar-item img:hover { opacity: .7; }
.beranda-sidebar-empty { padding: 20px 0; font-size: 13px; color: var(--text-muted); }

/* Sidebar market box */
.mkt-box { 
  border: 1px solid var(--border);
  /* margin: 18px; */
}
.mkt-head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
}
.mkt-live {
  display: flex;
  color: #d4a017; 
  font-size: 10px; 
  align-items: center;
  margin: 0 auto;
}
.mkt-live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4a017;
  margin-right: 4px;
  vertical-align: middle;
  animation: mkt-pulse 1.5s infinite;
}
@keyframes mkt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.mkt-body { font-size: 13px; }
.mkt-loading { padding: 16px; color: var(--text-muted); font-size: 13px; }
.mkt-row {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  gap: 4px;
}
.mkt-row:last-child { border-bottom: none; }
.mkt-line1, .mkt-line2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.mkt-ticker { font-weight: 600; font-size: 13px; color: var(--text); line-height: 1;}
.mkt-val { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); line-height: 1; }
.mkt-desc { font-size: 12px; color: var(--text-muted); line-height: 1; }
.mkt-chg { font-family: var(--font-mono); font-size: 11px; white-space: nowrap; line-height: 1;}
.mkt-chg-up { color: #1a7a4a; }
.mkt-chg-dn { color: #c8392b; }
.mkt-chg-flat { color: var(--text-muted); }

/* Sidebar tags */
.beranda-sidebar-tag {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--text);
  text-transform: capitalize;
  font-weight: 500;
  max-width: fit-content;
}
.beranda-sidebar-tag:hover { color: var(--text); opacity: .7; }
.beranda-sidebar-tag:last-child { margin-bottom: 0;}

/* Sidebar ranked (Banyak Dibaca) */
.beranda-sidebar-ranked {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.beranda-sidebar-ranked:first-child { padding-top: 0; }
.beranda-sidebar-ranked:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-rank {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--border);
  flex-shrink: 0;
  min-width: 28px;
}
.sidebar-rank-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.beranda-sidebar-ranked:hover .sidebar-rank-title { opacity: .7; }

/* ── Slot edit (hero & pilihan inline edit) ── */
.hero-main-wrap, .hs-item-wrap, .pilihan-item-wrap { position: relative; }
.hs-item-wrap { flex: 1; display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.hs-item-wrap:last-child { border-bottom: none; }
.hs-item-wrap .hs-item { flex: 1; border-bottom: none; }
.pilihan-item-wrap { position: relative; }

.slot-edit-btn {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 5;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.hero-main-wrap:hover .slot-edit-btn,
.hs-item-wrap:hover .slot-edit-btn,
.pilihan-item-wrap:hover .slot-edit-btn,
.zp-box:hover .slot-edit-btn { opacity: 1; }
.slot-edit-btn:hover { background: var(--accent); }
.slot-edit-btn-light { background: rgba(0,0,0,.35); }

/* Slot modal */
.slot-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.slot-modal-overlay.open { opacity: 1; visibility: visible; }
.slot-modal {
  background: var(--bg);
  width: 520px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.slot-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.slot-modal-title { font-size: 16px; font-weight: 600; }
.slot-modal-close {
  background: none; border: none; font-size: 24px;
  cursor: pointer; color: var(--text-muted); line-height: 1;
}
.slot-modal-close:hover { color: var(--text); }
.slot-modal-body { padding: 16px 20px; overflow-y: auto; scrollbar-width: thin; }
.slot-modal-search { margin-bottom: 12px; }
.slot-modal-results { max-height: 400px; overflow-y: auto; }
.slot-result-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
}
.slot-result-item:hover { background: #f9f9f9; }
.slot-result-item:last-child { border-bottom: none; }
.slot-result-thumb { width: 64px; height: 48px; object-fit: cover; flex-shrink: 0; }
.slot-result-body { flex: 1; min-width: 0; }
.slot-result-title {
  font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slot-result-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.slot-no-result { padding: 20px 0; text-align: center; color: var(--text-muted); font-size: 14px; }
.slot-current-wrap { margin-bottom: 12px; padding: 10px 12px; background: #f7f7f7; border: 1px solid var(--border); }
.slot-current-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.slot-current-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot-current-title { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-remove-btn {
  background: none; border: 1px solid #d32f2f; color: #d32f2f;
  font-size: 12px; padding: 3px 10px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.slot-remove-btn:hover { background: #d32f2f; color: #fff; }


.hs-item-empty, .pilihan-item-empty {
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--border); min-height: 80px; position: relative;
}
.slot-edit-btn-empty {
  position: static; background: none; border: 1px solid var(--border);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); transition: border-color .15s, color .15s;
}
.slot-edit-btn-empty:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 1141px) {
  :root { --header-h: 52px; --pad-section: 24px 24px; }
  body { overflow-x: hidden; }
  /* Staff bar hidden */
  .staff-bar { display: none; }
  /* Article toolbar — peek/hide on mobile */
  .at-toolbar { left: 0; bottom: 8px; padding: 4px; transition: transform .3s ease; }
  .at-toolbar .at-btn { width: 32px; height: 32px; }
  .at-toolbar.at-peeked { transform: translateX(-100%); }
  .at-toolbar-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 50%; right: -22px; transform: translateY(-50%);
    width: 22px; height: 40px;
    background: #fff; border: 1px solid var(--border); border-left: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer; color: var(--text-muted);
    transition: color .15s;
  }
  .at-toolbar-toggle:hover { color: var(--text); }
  .at-toolbar-toggle svg { transition: transform .3s; }
  .at-toolbar.at-peeked .at-toolbar-toggle svg { transform: rotate(180deg); }
  /* Right-side responsive overrides */
  .at-toolbar.at-right .at-toolbar-toggle {
    right: auto; left: -22px;
    border-left: 1px solid var(--border); border-right: none;
    border-radius: 6px 0 0 6px;
  }
  .at-toolbar.at-right .at-toolbar-toggle svg { transform: rotate(180deg); }
  .at-toolbar.at-right.at-peeked { transform: translateX(100%); }
  .at-toolbar.at-right.at-peeked .at-toolbar-toggle svg { transform: rotate(0deg); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card-lg { grid-template-columns: 1fr; }
  .article-card-lg .article-card-thumb { min-height: 200px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .content-with-sidebar > article { border-left: none; border-right: none; }
  .content-with-sidebar > .beranda-sidebar { border-top: 1px solid var(--border); padding-top: 24px; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 38px 16px; }
  .footer-col h4 { font-size: 16px; margin-bottom: 20px; }
  .footer-col a { font-size: 14px; }
  /* Beranda */
  .beranda-sidebar-ranked { gap: 4px; }
  /* Hero */
  .hero { border-inline: none; }
  /* Pilihan */
  .pilihan-section { padding: var(--pad-section); }
  .pilihan-grid { gap: 20px }
  .pilihan-item { padding: 0; }
  .pilihan-item-big { padding: 0; }
  .pilihan-item-wrap:last-child { border-left: none; }
  .pilihan-title { font-size: 22px; }
  .pilihan-excerpt { display: none; }
  .pilihan-img-wrap { margin-bottom: 12px; }
  /* Kolom */
  .kolom-trending { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; }
  .kolom-trending .kolom-item:first-child { padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .kolom-trending .kolom-item:last-child { padding-left: 0; }
  .kolom-trending .kolom-item:first-child .kolom-title { font-size: 22px; }
  .kolom-trending .kolom-item:last-child .kolom-title { font-size: 20px; }
  .kolom-trending-more { grid-template-columns: 1fr; }
  .kolom-trending-more .kolom-item { padding: 16px 0; border-right: none; border-bottom: 1px solid var(--border); }
  .kolom-trending-more .kolom-item:last-child { border-bottom: none; padding-bottom: 0; }
  /* Trending */
  .trending-arrow { opacity: .7; }
  .trending-2nd { padding-top: 16px; }
  .trending-2nd-title { font-size: 16px; }
  .trending-2nd-item { padding: 10px 12px; }
  /* Popular */
  .popular-hero-body { padding: 0 24px; }
  /* Rubrik section */
  .rubrik-newest-1st { grid-template-columns: 1.5fr 1fr; }
  .rubrik-newest-1st-excerpt { display: none; }
  /* Rubrik full */
  .rf-lead-title, .rf-sub-title { 
    font-size: 20px; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rf-lead-excerpt, .rf-sub-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rf-card-excerpt { display: none; }
  .rf-row2 { gap: 16px 12px; }
  .rf-card-title { font-weight: normal; }
  /* Page-level horizontal padding (container has no padding) */
  .contact-page, .adv-page { padding-left: 24px; padding-right: 24px; }
  .subscribe-plans { padding-left: 24px; padding-right: 24px; }
  .account-layout { padding-left: 24px; padding-right: 24px; }
  .about-hero { padding-left: 24px; padding-right: 24px; }
  .about-stats .container, .about-section .container { padding: 0 24px; }
  .about-cta { padding-left: 24px; padding-right: 24px; }
  .tos-layout { padding: 0 24px; }
}

@media (max-width: 760px) {
  .articles-grid { grid-template-columns: 1fr; }
  /* Header: nav tetap tampil, horizontal scroll */
  .site-nav { overflow-x: auto; scrollbar-width: thin; }
  /* .site-nav::-webkit-scrollbar { scrollbar-width: thin; } */
  .site-nav a { padding: 8px 10px; font-size: 10px; }
  /* Logo row compact */
  .header-logo-inner { display: flex; justify-content: space-between; }
  .site-logo-text { font-size: 32px; }
  .header-date { display: none; }
  .header-actions { gap: 12px; }
  .btn-header-login { display: none; }
  .btn-header-user-icon { display: flex; }
  .btn-header-subscribe { font-size: 10px; padding: 3px 10px; }
  .btn-header-avatar { width: 28px; height: 28px; }
  .header-avatar-placeholder { width: 28px; height: 28px; font-size: 10px; }
  /* Ticker compact */
  .ticker { height: 28px; }
  .ticker-item { font-size: 11px; padding: 0 12px; }
  /* Author profile */
  .author-profile-hero { margin-bottom: 16px; padding-bottom: 16px; }
  /* Index filter */
  .idx-header { padding: 12px 0; }
  .idx-header-title { font-size: 18px; }
  /* Rubrik hero */
  .rubrik-hero { padding: 16px 20px; margin-bottom: 20px; }
  .rubrik-hero h1 { font-size: 20px; }
  .rubrik-hero p { font-size: 13px; }
  .rubrik-child-link { font-size: 12px; padding: 3px 10px; }
  /* Search no results */
  .search-no-results { padding: 40px 0; }
  /* Footer */
  .footer-social-row { padding-bottom: 24px; }
  .footer-social a { width: 32px; height: 32px; }
  .footer-social a svg { height: 16px; }
  .footer-columns { padding: 24px 0; }
  .footer-col h4 { font-size: 14px; margin-bottom: 16px; }
  .footer-col ul { row-gap: 10px; }
  .footer-col a { font-size: 13px; }
  .footer-bottom { padding-top: 24px; font-size: 12px; flex-direction: column; gap: 0; }
  /* Article detail */
  .article-detail-title { font-size: 26px; }
  .article-detail-excerpt { font-size: 16px; padding-bottom: 16px; margin-bottom: 16px; }
  .sa-meta-card { padding: 10px; gap: 4px 10px; }
  .sa-meta-item { font-size: 11px; gap: 2px; }
  /* .article-body { font-size: 16px; }
  .article-body h2 { font-size: 20px; }
  .article-body h3 { font-size: 18px; }
  .article-body blockquote { padding-left: 16px; margin: 16px 0; }
  .article-body pre { padding: 12px; font-size: 13px; } */
  .article-share { flex-wrap: wrap; gap: 8px; }
  .article-tags { flex-wrap: wrap; }
  .author-box { flex-direction: column; padding: 16px; }
  .author-box-avatar { width: 56px; height: 56px; font-size: 22px; }
  .comments-section { margin-top: 24px; }
  .comments-section h3 { font-size: 16px; }
  /* Static pages */
  .static-page { padding: 24px 12px; }
  .static-page h1 { font-size: 22px; }
  .static-page h2 { font-size: 18px; }
  .static-page .lead { font-size: 14px; }
  /* Contact */
  .contact-page { padding: 12px 16px 32px; }
  .contact-header { padding: 24px 0 20px; }
  .contact-body { grid-template-columns: 1fr; }
  .contact-title { font-size: 24px; }
  .contact-subtitle { font-size: 14px; }
  .contact-info-card { padding: 16px; }
  .contact-form-wrap { padding: 20px; }
  .contact-file-row { flex-direction: column; }
  .contact-file-row .contact-file-clear { width: 100%; height: 40px; }
  /* Advertensi */
  .adv-page { padding: 12px 16px 32px; }
  .adv-header { padding: 24px 0 20px; }
  .adv-title { font-size: 24px; }
  .adv-subtitle { font-size: 14px; }
  .adv-stat { padding: 20px 8px; }
  .adv-stat-num { font-size: 22px; }
  .adv-stat-label { font-size: 11px; }
  .adv-cta { padding: 32px 0 0; }
  .adv-cta h3 { font-size: 18px; }
  /* Subscribe / Checkout / Payment status */
  .subscribe-page { padding: 12px 0 32px; }
  .subscribe-header { padding: 24px 16px 16px; }
  .subscribe-title { font-size: 24px; }
  .subscribe-subtitle { font-size: 14px; }
  .subscribe-plans {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-inline: 16px;
    cursor: default;
  }
  .subscribe-plans > * { flex: none; }
  .subscribe-card { padding: 24px 20px; }
  .subscribe-card-price { font-size: 26px; }
  .checkout-page { padding: 24px 16px 48px; }
  .pay-status-page { padding: 40px 16px; }
  .payment-history-item { flex-wrap: wrap; gap: 6px; }
  .payment-history-item > div { flex-wrap: wrap; gap: 6px; }
  /* Account settings */
  .account-layout { grid-template-columns: 1fr; padding: 16px 16px 32px; gap: 16px; }
  .account-sidebar { position: static; border: none; border-radius: 0; background: none; }
  .account-sidebar-header { padding: 16px 0; border-bottom: none; }
  .account-nav {
    display: flex; gap: 0; overflow-x: auto;    border-bottom: 2px solid var(--border); scrollbar-width: none;
  }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav a {
    flex-shrink: 0; white-space: nowrap; padding: 10px 16px; font-size: 13px;
    border-bottom: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
  }
  .account-nav a:hover, .account-nav a.active {
    background: none; border-bottom-color: var(--accent); color: var(--accent);
  }
  .account-nav-logout {
    flex-shrink: 0; white-space: nowrap; padding: 10px 16px; font-size: 13px;
  }
  .account-panel .form-row { grid-template-columns: 1fr; }
  .account-panel { padding: 20px; }
  .account-panel h2 { font-size: 16px; margin-bottom: 16px; }
  .avatar-upload { gap: 14px; }
  .avatar-upload-preview { width: 64px; height: 64px; font-size: 22px; }
  .security-form { max-width: 100%; }
  .danger-zone { padding: 16px; }
  /* About page */
  .about-hero { padding: 32px 16px 28px; }
  .about-hero-title { font-size: 28px; }
  .about-hero-subtitle { font-size: 15px; }
  .about-stat-num { font-size: 24px; }
  .about-stat-label { font-size: 11px; }
  .about-stat-item { padding: 20px 8px; }
  .about-section { padding: 32px 0; }
  .about-stats .container, .about-section .container { padding: 0 16px; }
  .about-row { grid-template-columns: 1fr; gap: 24px; }
  .about-row-reverse .about-row-text { order: 1; }
  .about-row-reverse .about-row-img { order: 2; }
  .about-row-img { aspect-ratio: 16/9; }
  .about-section-num { font-size: 36px; }
  .about-section-title { font-size: 22px; }
  .about-section-body { font-size: 14px; }
  .about-cta { padding: 32px 16px; }
  .about-cta-inner h3 { font-size: 20px; }
  .about-cta-btns { flex-direction: column; }
  .about-cta-btns .btn { width: 100%; text-align: center; }
  /* TOS / Privacy page */
  .tos-layout { grid-template-columns: 1fr; padding: 0 16px; }
  .tos-sidebar { position: static; padding: 0 0 20px; }
  .tos-main { border-left: none; border-right: none; padding: 24px 16px; }
  .tos-header { margin-bottom: 20px; padding-bottom: 16px; }
  .tos-page-title { font-size: 22px; }
  .tos-page-subtitle { font-size: 14px; }
  .tos-toc-card { border-left: none; border-right: none; border-radius: 0; }
  .tos-content { font-size: 14px; }
  .tos-content h2 { font-size: 18px; margin: 28px 0 10px; padding-top: 16px; }
  .tos-content h3 { font-size: 15px; }
  /* Lightbox */
  .img-lightbox-close { top: 8px; right: 8px; font-size: 28px; }
  .img-lightbox-bar { font-size: 12px; padding: 8px 12px; }
  .img-lightbox-zoom button { width: 32px; height: 32px; font-size: 16px; }
  /* Search */
  .search-form-inline { flex-direction: column; }
  .search-form-inline input { width: 100%; }
  /* Pagination */
  .pg-btn { padding: 6px 10px; font-size: 12px; }
  .pg-num { min-width: 32px; height: 32px; font-size: 12px; }
  .pg-dots { min-width: 20px; height: 32px; font-size: 12px; }
  .pg-goto-input { width: 44px; height: 32px; font-size: 12px; }
  .pg-goto-btn { height: 32px; padding: 0 8px; font-size: 12px; }
  /* Empty state */
  .empty-state { padding: 40px 0; font-size: 14px; }
  /* Beranda containers */
  .beranda-layout { grid-template-columns: 1fr; }
  .beranda-wrap, .beranda-full { overflow: hidden; }
  .beranda-main { border-right: none; border-left: none; padding-right: 0; }
  .beranda-sidebar { padding-left: 0; padding-top: 24px; border-right: none; border-top: 1px solid var(--border); }
  .beranda-sidebar-box:first-child { padding-top: 0; }
  .beranda-sidebar-ranked { gap: 4px; }
  /* Trending */
  .trending-slide-overlay { padding: 16px; }
  .trending-slide-title { font-size: 20px; }
  .trending-slide-excerpt { display: none; }
  .trending-2nd { grid-template-columns: 1fr; }
  .trending-2nd-title { font-size: 15px; }
  .trending-2nd-item { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 12px; }
  .trending-2nd-item:first-child { padding-top: 0; }
  .trending-2nd-item:last-child { border-bottom: none; padding-bottom: 0; }
  /* Popular */
  .popular-hero-title { font-size: 22px; }
  .popular-hero-author { font-size: 14px; }
  .popular-hero-body { padding: 0 12px; }
  .popular-hero-badge { font-size: 11px; padding: 4px 8px; }
  .popular-more { grid-template-columns: 1fr; }
  .popular-more::after { display: none; }
  .popular-more-item { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
  .popular-more-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .popular-more-row1 .popular-more-img-wrap { display: none; }
  .popular-more-title { font-size: 15px; }
  .popular-more-excerpt { display: none; }
  /* Hero */
  .hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 260px; }
  .hero-text { padding: 12px; }
  .hero-hed { font-size: 20px; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-dek { line-height: 1.3; font-size: 13px; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-kicker { font-size: 9px; padding: 2px 8px; margin-bottom: 6px; }
  .hero-byline { font-size: 12px; }
  .hero-text .read-btn { font-size: 10px; padding: 6px 12px; margin-top: 8px; }
  .read-btn svg { width: 12px; height: 12px; }
  /* Hero stack */
  .hero-stack { border-left: none; flex-direction: column; }
  .hs-item { min-height: 120px; border-right: none; border-bottom: 1px solid var(--border); }
  .hs-item:last-child { border-bottom: none; }
  .hs-item-wrap { border-bottom: none; }
  .hs-item-wrap:last-child { border-bottom: none; }
  .hs-text { padding: 10px 12px; }
  .hs-title { font-size: 14px; }
  .hs-kicker { font-size: 8px; padding: 2px 6px; margin-bottom: 4px; }
  .hs-meta { font-size: 11px; }
  /* Pilihan */
  .pilihan-title { font-size: 18px; }
  .pilihan-excerpt { display: none; }
  .pilihan-img-wrap { margin-bottom: 12px; }
  /* Kolom */
  .kolom-section-title { font-size: 16px; }
  .kolom-trending .kolom-item:first-child .kolom-title { font-size: 20px; }
  .kolom-trending .kolom-item:first-child .kolom-avatar { width: 56px; height: 56px; }
  .kolom-trending .kolom-item:last-child .kolom-title { font-size: 18px; }
  .kolom-trending .kolom-item:last-child .kolom-avatar { width: 48px; height: 48px; }
  .kolom-trending-more { grid-template-columns: 1fr; gap: 16px; }
  .kolom-trending-more .kolom-item { padding: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
  .kolom-trending-more .kolom-item:first-child { padding-left: 0; }
  .kolom-trending-more .kolom-item:last-child { border-right: none; border-bottom: none; padding-bottom: 0; }
  /* Rubrik section */
  .rubrik-section-head { font-size: 16px; }
  .rubrik-newest-1st { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
  .rubrik-newest-1st:nth-last-child(-n+1) { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .rubrik-newest-1st-title { font-size: 18px; margin-bottom: 0; }
  .rubrik-newest-1st-excerpt { display: none; }
  .rubrik-newest-more { grid-template-columns: 1fr; gap: 0; }
  .rubrik-newest-more-item { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
  .rubrik-newest-more-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
  .rubrik-newest-more-img-wrap { display: none; }
  .rubrik-newest-more-title { font-size: 16px; }
  /* Rubrik full */
  .rf-row1 { grid-template-columns: 1fr; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
  .rf-row1:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0;}
  .rf-lead { grid-template-columns: 1fr; }
  .rf-lead-title { font-size: 18px; }
  .rf-sub-title { font-size: 18px; }
  .rf-card-excerpt { display: none; }
  .rf-row2 { grid-template-columns: repeat(2, 1fr); border-top: none; padding-top: 0; gap: 16px 12px; }
  .rf-sub { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
  .rf-card:nth-child(n+3) { padding-top: 16px; border-top: 1px solid var(--border); }
  .rf-card-title { font-weight: normal; }
  .rg-row { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .rg-col { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
  .rg-col:nth-last-child(-n+2) { padding-bottom: 0; border-bottom: none; }
  /* Article list */
  .rubrik-article-item { grid-template-columns: 80px 1fr; gap: 12px; padding: 12px 0; }
  .rubrik-article-img-wrap { aspect-ratio: 4/3; }
  .rubrik-article-title { font-size: 15px; font-weight: 500; }
  .rubrik-article-excerpt { display: none; }
  .rubrik-view-all-btn { font-size: 13px; }
  /* Market ticker sidebar */
  .mkt-row { padding: 8px 12px; }
  .mkt-ticker { font-size: 13px; }
}

@media (max-width: 560px) {
  .trending-slide-title { font-size: 18px; }
  .rubrik-newest-more { grid-template-columns: 1fr; }
  /* .rf-row2 { grid-template-columns: 1fr; }
  .rg-row { grid-template-columns: 1fr; } */
}

/* ── Inline site_texts editing ── */
.st-editable {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.st-editable:hover {
  text-decoration-color: var(--accent);
  cursor: text;
}
.st-editing {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
  text-decoration: none !important;
}
.st-saved {
  outline: 1px solid #22c55e;
  outline-offset: 2px;
}

/* Richtext modal */
.rt-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
}
.rt-overlay.open { display: flex; }
.rt-modal {
  background: #fff; border-radius: 12px; width: 720px; max-width: 94vw;
  max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.rt-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.rt-header-title { font-size: 15px; font-weight: 600; }
.rt-close {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--text-muted); line-height: 1; padding: 0 4px;
}
.rt-close:hover { color: var(--text); }
.rt-toolbar {
  display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 12px;
  border-bottom: 1px solid var(--border); background: #fafafa;
}
.rt-toolbar button {
  background: none; border: 1px solid transparent; border-radius: 4px;
  padding: 5px 8px; cursor: pointer; font-size: 13px; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px;
}
.rt-toolbar button:hover { background: var(--border); }
.rt-toolbar button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.rt-toolbar .rt-sep { width: 1px; background: var(--border); margin: 4px 6px; }
.rt-editor {
  flex: 1; overflow-y: auto; padding: 20px;
  font-size: 15px; line-height: 1.8; color: var(--text);
  outline: none; min-height: 200px;
  scrollbar-width: thin;
}
.rt-editor:focus { outline: none; }
.rt-editor p { margin: 0 0 12px; }
.rt-editor h2 { font-size: 20px; font-weight: 700; margin: 20px 0 10px; }
.rt-editor h3 { font-size: 17px; font-weight: 600; margin: 16px 0 8px; }
.rt-editor ul, .rt-editor ol { padding-left: 24px; margin: 8px 0; list-style: revert; }
.rt-editor li { margin: 4px 0; }
.rt-editor a { color: var(--accent); }
.rt-editor blockquote {
  border-left: 3px solid var(--accent); padding-left: 16px;
  margin: 12px 0; color: var(--text-muted); font-style: italic;
}
.rt-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 20px; border-top: 1px solid var(--border);
}
.rt-footer button {
  padding: 8px 20px; border-radius: 6px; font-size: 13px;
  font-weight: 600; cursor: pointer; border: 1px solid var(--border);
}
.rt-footer .rt-btn-cancel { background: #fff; color: var(--text); }
.rt-footer .rt-btn-cancel:hover { background: var(--bg); }
.rt-footer .rt-btn-save { background: var(--accent); color: #fff; border-color: var(--accent); }
.rt-footer .rt-btn-save:hover { background: var(--accent-dark); }

/* ── Nav Preset ── */
.nav-preset-btn {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
  padding: 4px;
  margin-left: auto;
  display: flex;
  align-items: center;
}
.nav-preset-btn:hover { opacity: 1; }

.np-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
}
.np-overlay.open { display: flex; }
.np-modal {
  background: #fff;
  border-radius: 8px;
  width: 560px;
  height: 580px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.np-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.np-title { font-weight: 600; font-size: 15px; }
.np-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
}
.np-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.np-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.np-empty { color: var(--text-muted); font-size: 13px; padding: 8px 0; }
.np-preset-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
}
.np-preset-active { border-color: var(--accent); background: #f0f6ff; }
.np-preset-info { flex: 1; min-width: 0; }
.np-preset-info strong { font-size: 13px; }
.np-preset-items { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-badge-active { font-size: 10px; background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 3px; font-weight: 500; }
.np-preset-actions { display: flex; gap: 4px; }
.np-act-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.np-act-btn:hover { background: #f5f5f5; }
.np-act-activate { color: #22c55e; }
.np-act-delete { color: #dc2626; }

.np-divider { height: 1px; background: var(--border); margin: 12px 0; }

.np-editor-head { margin-bottom: 12px; }
.np-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.np-col-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.05em; }
.np-available, .np-selected {
  border: 1px solid var(--border);
  border-radius: 4px;
  min-height: 250px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
}
.np-rubrik-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 3px;
  cursor: default;
  user-select: none;
}
.np-rubrik-item:hover { background: #f5f5f5; }
.np-rubrik-child { padding-left: 20px; }
.np-rubrik-selected { cursor: grab; }
.np-rubrik-selected:active { cursor: grabbing; }
.np-sel-name { flex: 1; }
.np-dragging { opacity: 0.4; }
.np-drag-over { border-top: 2px solid var(--accent); }
.np-add-btn, .np-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0 4px;
  margin-left: auto;
}
.np-add-btn { color: #22c55e; }
.np-remove-btn { color: #dc2626; }
.np-drag-handle { color: var(--text-muted); font-size: 10px; cursor: grab; }

.np-btn {
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
}
.np-btn-save { background: var(--accent); color: #fff; border-color: var(--accent); }
.np-btn-legacy { color: var(--text-muted); }


/* --- INDEX PAGE (idx-*) --- */
.idx-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: -16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 10px;
  gap: 12px;
}
.idx-header-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.idx-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.idx-filter-btn:hover { opacity: .7; }

/* Filter Drawer */
.idx-filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.idx-filter-overlay.open { opacity: 1; visibility: visible; }
.idx-filter-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 340px; 
  max-width: 85vw;
  background: var(--bg, #fff);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  scrollbar-width: thin;
}
.idx-filter-overlay.open .idx-filter-panel { transform: translateX(0); }

.idx-filter-view-hidden { display: none !important; }
.idx-filter-view { display: flex; flex-direction: column; flex: 1; }

.idx-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.idx-filter-header-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
}
.idx-filter-close {
  border: none; background: none;
  font-size: 24px; color: var(--text-muted);
  cursor: pointer; line-height: 1;
}
.idx-filter-close:hover { color: var(--text); }
.idx-filter-back {
  display: flex; align-items: end; gap: 6px;
  border: none; background: none;
  font-size: 14px; font-weight: 600;
  color: var(--text); cursor: pointer;
}
.idx-filter-back:hover { opacity: .7; }

.idx-filter-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.idx-filter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.idx-filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.idx-filter-label-row .idx-filter-label { margin-bottom: 0; }
.idx-filter-more {
  border: none; background: none;
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.idx-filter-more:hover { opacity: .7; }

.idx-filter-dates { display: flex; gap: 10px; }
.idx-filter-date-field {
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
}
.idx-filter-date-field span {
  font-size: 12px; color: var(--text-muted);
}
.idx-filter-date-field input[type="date"] {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  background: var(--card-bg, #fff);
}
.idx-filter-date-field input[type="date"]:focus {
  outline: none;
  border-color: var(--accent);
}

.idx-filter-options { display: flex; flex-direction: column; }
.idx-filter-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: .15s;
}
.idx-filter-option:hover { opacity: .7; }
.idx-filter-option input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.idx-filter-option.active span { font-weight: 600; }
.idx-filter-option-child { padding-left: 20px; }

.idx-rubrik-group { border-bottom: 1px solid rgba(0,0,0,.05); }
.idx-rubrik-group:last-child { border-bottom: none; }
.idx-filter-option-parent span { font-weight: 600; }

.idx-filter-all-rubriks {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.idx-filter-footer {
  padding: 16px 20px;
  margin-top: auto;
}
.idx-filter-apply {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity .15s;
}
.idx-filter-apply:hover { opacity: .85; }
.idx-filter-reset {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.idx-filter-reset:hover { border-color: var(--text-muted); color: var(--text); }

/* --- Rubrik Section Preset (rs-*) --- */
.rubrik-sections-wrap { position: relative; }
.rs-section-hidden {
  opacity: .25;
  max-height: 56px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: max-height .3s ease, opacity .3s ease;
}
.rs-section-hidden::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.rs-section-hidden:hover {
  max-height: 2000px;
  opacity: .5;
}
.rubrik-sections-edit-btn {
  position: absolute;
  top: 16px; right: 0;
  z-index: 5;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.rubrik-sections-wrap:hover .rubrik-sections-edit-btn { opacity: 1; }
.rubrik-sections-edit-btn:hover { background: var(--accent); }

.rs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
}
.rs-overlay.open { display: flex; }
.rs-modal {
  background: #fff;
  border-radius: 8px;
  width: 560px;
  height: 580px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.rs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.rs-title { font-weight: 600; font-size: 15px; }
.rs-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
}
.rs-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.rs-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.rs-footer-left { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.rs-visibility-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.rs-visibility-toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 32px;
  height: 18px;
  background: #ccc;
  border-radius: 9px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.rs-visibility-toggle input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.rs-visibility-toggle input:checked {
  background: var(--accent);
}
.rs-visibility-toggle input:checked::after {
  transform: translateX(14px);
}
.rs-apply-all-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.rs-apply-all-label input {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--accent);
}
.rs-empty { color: var(--text-muted); font-size: 13px; padding: 8px 0; }
.rs-preset-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
}
.rs-preset-active { border-color: var(--accent); background: #f0f6ff; }
.rs-preset-info { flex: 1; min-width: 0; }
.rs-preset-info strong { font-size: 13px; }
.rs-preset-items { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-badge-active { font-size: 10px; background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 3px; font-weight: 500; }
.rs-badge-section { font-size: 10px; background: #e8e8e8; color: #555; padding: 1px 6px; border-radius: 3px; font-weight: 500; margin-left: 3px; }
.rs-preset-actions { display: flex; gap: 4px; }
.rs-act-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rs-act-btn:hover { background: #f5f5f5; }
.rs-act-activate { color: #22c55e; }
.rs-act-delete { color: #dc2626; }

.rs-divider { height: 1px; background: var(--border); margin: 12px 0; }

.rs-editor-head { margin-bottom: 12px; }
.rs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rs-col-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.05em; }
.rs-available, .rs-selected {
  border: 1px solid var(--border);
  border-radius: 4px;
  min-height: 250px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
}
.rs-rubrik-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 3px;
  cursor: default;
  user-select: none;
}
.rs-rubrik-item:hover { background: #f5f5f5; }
.rs-rubrik-child { padding-left: 20px; }
.rs-rubrik-selected { cursor: grab; }
.rs-rubrik-selected:active { cursor: grabbing; }
.rs-sel-name { flex: 1; }
.rs-dragging { opacity: 0.4; }
.rs-drag-over { border-top: 2px solid var(--accent); }
.rs-add-btn, .rs-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0 4px;
  margin-left: auto;
}
.rs-add-btn { color: #22c55e; }
.rs-remove-btn { color: #dc2626; }
.rs-drag-handle { color: var(--text-muted); font-size: 10px; cursor: grab; }

.rs-btn {
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
}
.rs-btn-save { background: var(--accent); color: #fff; border-color: var(--accent); }
.rs-btn-legacy { color: var(--text-muted); }

/* ── Confirm modal (admin on public pages) ──────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 28px 28px 24px;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-title   { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.modal-body    { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

