/* ==========================================================================
   Insightika — app screen stylesheet
   Layar aplikasi mobile (bukan halaman marketing) — full-bleed, 1:1 dengan
   referensi desain. Font & warna mengikuti brand: merah #A6121D dari logo asli.
   ========================================================================== */

:root {
  /* --- tema gelap (default) --- */
  --bg: #0B0405;
  --page-void: #050202;
  --ink: #FBF3F1;
  --ink-dim: #C9AFAE;
  --ink-mute: #8C7574;
  --red: #A6121D;
  --red-bright: #D31724;
  --red-soft: #EA3E4A;
  --line: rgba(255, 255, 255, 0.14);

  /* warna tetap (tidak ikut berganti tema) — dipakai di atas foto/panel
     merah gelap yang sengaja dibuat konstan di kedua tema */
  --fixed-ink: #FBF3F1;
  --fixed-ink-dim: rgba(255, 255, 255, 0.78);
  --fixed-ink-mute: rgba(255, 255, 255, 0.6);
  --accent-on-dark: #EA3E4A;

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  --bg: #FBF5F3;
  --page-void: #E9E2DF;
  --ink: #1F0C0D;
  --ink-dim: #6B5150;
  --ink-mute: #93807E;
  --red: #A6121D;
  --red-bright: #8C0F19;
  --red-soft: #B8121F;
  --line: rgba(31, 12, 13, 0.12);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.screen {
  position: relative;
  height: 100dvh;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
}

/* ---------- Status bar ---------- */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  flex: none;
}
.status-bar--minimal {
  justify-content: flex-end;
}
.status-icons { display: flex; align-items: center; gap: 7px; }
.status-icons svg { height: 13px; }

/* ---------- Brand block ---------- */
.brand-block {
  text-align: center;
  padding: 14px 24px 0;
  flex: none;
}
.brand-block img { height: 30px; margin-inline: auto; }
.brand-tagline {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

/* ---------- Hero visual (glow + ilustrasi) ----------
   Catatan: .hero-figures sengaja dibiarkan mengalir normal (bukan
   position:absolute) supaya tingginya mengikuti rasio asli foto —
   tidak lagi dipotong paksa oleh tinggi flex container. */
.hero-visual {
  flex: none;
  display: flex;
  flex-direction: column;
  margin-top: 28px;
}
.glow-frame {
  position: relative;
  overflow: visible;
}
.hero-glow {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 88%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--red-soft) 0%, var(--red) 48%, rgba(139, 15, 26, 0.5) 70%, transparent 80%);
  z-index: 0;
}
.hero-figures {
  position: relative;
  z-index: 1;
  display: block;
  width: 88%;
  max-width: 400px;
  margin: 0 auto;
}
.glow-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 16%;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 96%);
  z-index: 2;
  pointer-events: none;
}
.headline-block {
  position: relative;
  width: 100%;
  padding: 4px 26px 14px;
  flex: none;
}
.headline-block h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 6.4vw, 34px);
  line-height: 1.1;
  margin: 0;
  color: var(--fixed-ink);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.headline-block h1 .accent { color: var(--accent-on-dark); }
.headline-block p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fixed-ink-dim);
  max-width: 34ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.headline-block p .brand-mention { color: var(--fixed-ink); font-weight: 600; }
.headline-block p .brand-mention .i { color: var(--accent-on-dark); }

/* ---------- Auth block ---------- */
.auth-block {
  flex: none;
  padding: 0 26px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.auth-btn svg, .auth-btn img { width: 20px; height: 20px; }
.auth-btn--google { background: #FFFFFF; color: #1A1A1A; }
.auth-btn--apple {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
  border: 1px solid var(--line);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0;
  color: var(--ink-mute);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.email-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--red-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 4px 0 2px;
}
.email-link svg { width: 16px; height: 16px; }

.signup-line {
  text-align: center;
  font-size: 14px;
  color: var(--ink-mute);
  padding-bottom: 4px;
}
.signup-line a { color: var(--red-soft); font-weight: 600; }

/* ---------- Home indicator ---------- */
.home-indicator {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 8px 0 8px;
}
.home-indicator span {
  width: 134px;
  height: 5px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.9;
}

@media (min-width: 561px) {
  .screen {
    height: 92dvh;
    margin-block: 4dvh;
    border-radius: 40px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  }
  body { display: flex; background: var(--page-void); }
}

/* ==========================================================================
   Beranda (Home) — layar feed, scroll natural (bukan dikunci satu viewport)
   ========================================================================== */

.screen--feed {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  padding-bottom: 92px; /* ruang untuk tab bar fixed */
}
@media (min-width: 561px) {
  .screen--feed { height: auto; min-height: 92dvh; }
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px 10px;
  background: linear-gradient(180deg, var(--bg) 82%, transparent);
  flex: none;
}
.app-header .logo-mark { height: 24px; }
.app-header .actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 19px; height: 19px; color: var(--ink-dim); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red-soft); border: 1.5px solid var(--bg);
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-soft), var(--red));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff;
  border: 1px solid var(--line);
}

.search-bar {
  margin: 6px 22px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 14.5px;
}
.search-bar svg { width: 18px; height: 18px; flex: none; }

.hero-banner {
  position: relative;
  margin: 0 22px 22px;
  padding: 24px 22px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 22%, rgba(234, 62, 74, 0.55), transparent 60%),
    linear-gradient(150deg, #2A0A0C 0%, #170708 72%);
  border: 1px solid var(--line);
}
.hero-banner .banner-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--accent-on-dark);
  text-transform: uppercase;
}
.hero-banner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.16;
  margin: 10px 0 0;
  max-width: 92%;
  color: var(--fixed-ink);
}
.hero-banner h2 .accent { color: var(--accent-on-dark); }
.hero-banner p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fixed-ink-dim);
  max-width: 42ch;
}
.hero-banner .btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-soft), var(--red));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.hero-banner .btn-explore svg { width: 15px; height: 15px; }
.hero-banner .banner-figures {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 46%;
  opacity: 0.92;
}

/* ---------- Quick actions ---------- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 22px 26px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line);
  text-align: center;
}
.quick-action.is-active {
  background: linear-gradient(155deg, var(--red), #4A0710);
  border-color: transparent;
}
.quick-action .ic {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.quick-action.is-active .ic { background: rgba(255, 255, 255, 0.16); }
.quick-action .ic svg { width: 17px; height: 17px; color: var(--ink); }
.quick-action.is-active .ic svg { color: var(--fixed-ink); }
.quick-action span { font-size: 10px; font-weight: 500; color: var(--ink-dim); line-height: 1.25; }
.quick-action.is-active span { color: var(--fixed-ink); font-weight: 600; }

/* ---------- Section shell ---------- */
.feed-section { margin-bottom: 30px; }
.feed-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 22px 14px;
}
.feed-section-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.feed-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red-soft);
}
.feed-section-head a svg { width: 13px; height: 13px; }

/* Featured / latest content card (horizontal) */
.content-card--latest {
  margin: 0 22px;
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line);
  align-items: center;
}
.content-card--latest .thumb {
  position: relative;
  width: 82px; height: 108px; flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: var(--red-900, #4A0710);
}
.content-card--latest .thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-card--latest .thumb .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 4, 5, 0.28);
}
.content-card--latest .thumb .play svg {
  width: 30px; height: 30px; color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.content-card--latest .meta { flex: 1; min-width: 0; }
.content-card--latest .badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--red-soft);
  background: rgba(234, 62, 74, 0.14);
  border: 1px solid rgba(234, 62, 74, 0.35);
  padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase;
}
.content-card--latest .title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.28;
  margin: 8px 0 0;
}
.content-card--latest .desc {
  display: block;
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.4;
  margin: 4px 0 0;
}
.content-card--latest .submeta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
.content-card--latest .submeta svg { width: 12px; height: 12px; }

/* Recommended row */
.card-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 22px 4px;
  scrollbar-width: none;
}
.card-scroll::-webkit-scrollbar { display: none; }
.rec-card { display: block; flex: none; width: 160px; }
.rec-card .cover {
  position: relative;
  width: 160px; height: 118px;
  border-radius: 14px;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 8px;
}
.rec-card .cover .bookmark {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(11, 4, 5, 0.45);
  display: flex; align-items: center; justify-content: center;
}
.rec-card .cover .bookmark svg { width: 14px; height: 14px; color: #fff; }
.rec-card .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.3;
  margin: 10px 0 0;
}
.rec-card .submeta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 10px;
}
.rec-card .submeta span { display: inline-flex; align-items: center; gap: 4px; }
.rec-card .submeta svg { width: 12px; height: 12px; }

.cover-a { background: linear-gradient(135deg, #FF7A85, #7A0F1A); }
.cover-b { background: linear-gradient(135deg, #F5B942, #8C121C); }
.cover-c { background: linear-gradient(135deg, #7A0F1A, #200A0C); }
.cover-d { background: linear-gradient(135deg, #EA3E4A, #A6121D); }
.cover-e { background: linear-gradient(135deg, #FF3B4E, #4A0710); }

/* ---------- Bottom tab bar ---------- */
.app-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  display: flex;
  max-width: 560px;
  margin-inline: auto;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.app-tabbar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px 0;
  color: var(--ink-mute);
}
.app-tabbar a svg { width: 21px; height: 21px; }
.app-tabbar a span { font-size: 10px; font-weight: 600; }
.app-tabbar a.is-active { color: var(--ink); }
.app-tabbar a.is-active svg { color: var(--red-soft); }

/* ==========================================================================
   Halaman detail riset (artikel) — isi tulisan asli, bukan gambar PDF
   ========================================================================== */

.article-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent) 60%, transparent);
}
.article-topbar .icon-btn svg { width: 18px; height: 18px; }

.article-hero { position: relative; margin: 0 22px 0; }
.article-hero .cover {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  background: var(--red);
}
.article-hero .cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.article-hero .cover.cover-icon { display: flex; align-items: center; justify-content: center; position: relative; }
.article-hero .cover.cover-icon svg { width: 30%; height: 30%; color: rgba(255,255,255,.9); }
.article-hero .cover.cover-icon::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.16), transparent 55%);
}

.article-head { padding: 20px 22px 8px; }
.article-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-dim);
}
.pill--accent { color: var(--red-soft); background: rgba(234,62,74,.14); border-color: rgba(234,62,74,.35); }
.article-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; line-height: 1.18; margin: 14px 0 0;
}
.article-head .subtitle { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-dim); }
.article-tagline { margin-top: 10px; font-size: 12px; font-style: italic; color: var(--ink-mute); }
.article-byline {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-mute);
}
.article-byline b { color: var(--ink); font-weight: 600; }
.article-byline .sep { opacity: .5; }

.article-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn-read {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 999px;
  background: linear-gradient(135deg, var(--red-soft), var(--red));
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
}
.btn-read svg { width: 16px; height: 16px; }
.btn-icon-square {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line);
}
.btn-icon-square svg { width: 19px; height: 19px; color: var(--ink-dim); }

.toc-scroll {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 18px 22px 4px; scrollbar-width: none;
}
.toc-scroll::-webkit-scrollbar { display: none; }
.toc-chip {
  flex: none; font-size: 12px; font-weight: 600; color: var(--ink-dim);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.toc-chip b { color: var(--red-soft); margin-right: 5px; }

.article-body { padding: 8px 22px 8px; }
.a-section { padding: 30px 0; border-top: 1px solid var(--line); }
.a-section:first-child { border-top: none; }
.a-kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--red-soft); letter-spacing: .04em; text-transform: uppercase;
}
.a-kicker .num {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(234,62,74,.16); font-size: 12px;
}
.a-section h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; line-height: 1.3; margin: 12px 0 0;
}
.a-section > p.lead {
  margin-top: 12px; font-size: 14.5px; line-height: 1.65; color: var(--ink-dim);
}

.a-findings { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.a-finding { display: flex; gap: 12px; }
.a-finding .n {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink) 7%, transparent); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
}
.a-finding b { display: block; font-size: 14px; font-weight: 600; }
.a-finding p { margin: 3px 0 0; font-size: 13px; color: var(--ink-dim); line-height: 1.5; }

.a-stats {
  margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.a-stat {
  padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--line);
}
.a-stat .label { font-size: 11px; color: var(--ink-mute); line-height: 1.35; }
.a-stat .value {
  margin-top: 5px; font-family: var(--font-display); font-weight: 700;
  font-size: 21px; color: var(--red-soft);
}
.a-stat.full { grid-column: 1 / -1; }
.a-stat.full .value { font-size: 14px; color: var(--ink); font-weight: 600; }

.a-callout {
  margin-top: 20px; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(155deg, rgba(166,18,29,.22), rgba(11,4,5,.4));
  border: 1px solid rgba(234,62,74,.3);
  font-size: 13.5px; line-height: 1.55; color: var(--ink);
}
.a-callout b { color: var(--red-soft); }

.a-cards { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.a-card {
  padding: 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--line);
}
.a-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.a-card ul { margin: 8px 0 0; padding-left: 18px; }
.a-card li { font-size: 12.5px; color: var(--ink-dim); line-height: 1.55; margin-bottom: 3px; }

.a-table { margin-top: 20px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.a-table .row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 11px 14px; font-size: 12.5px;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.a-table .row:nth-child(even) { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.a-table .row span:first-child { color: var(--ink-dim); flex: 1 1 auto; min-width: 0; }
.a-table .row span:last-child { font-weight: 600; text-align: right; flex: 1 1 auto; min-width: 0; }

.a-model-grid { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.a-model {
  padding: 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--line);
}
.a-model .tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px;
  background: rgba(234,62,74,.18); color: var(--red-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
}
.a-model h3 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-top: 10px; }
.a-model p { margin-top: 5px; font-size: 12.5px; color: var(--ink-dim); line-height: 1.5; }
.a-model .price {
  margin-top: 8px; display: inline-block; font-size: 11.5px; font-weight: 600;
  color: var(--red-soft);
}

.a-roadmap { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.a-phase { padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--line); }
.a-phase .phase-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--red-soft); }
.a-phase ul { margin: 8px 0 0; padding-left: 18px; }
.a-phase li { font-size: 12.5px; color: var(--ink-dim); line-height: 1.55; margin-bottom: 3px; }

.a-checklist { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-check {
  padding: 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--line);
}
.a-check b { display: block; font-size: 12.5px; font-weight: 600; }
.a-check p { margin: 3px 0 0; font-size: 11px; color: var(--ink-mute); line-height: 1.4; }

.article-closing {
  margin-top: 30px; padding: 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 4%, transparent); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.6; color: var(--ink-dim);
  font-style: italic;
}
.article-source {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-mute); line-height: 1.6;
}

/* ==========================================================================
   Top Penulis — carousel di Beranda
   ========================================================================== */
.writer-scroll {
  display: flex; gap: 18px; overflow-x: auto;
  padding: 0 22px 4px; scrollbar-width: none;
}
.writer-scroll::-webkit-scrollbar { display: none; }
.writer-card { flex: none; width: 84px; text-align: center; }
.writer-avatar {
  position: relative;
  width: 72px; height: 72px; border-radius: 50%; margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.22);
}
.writer-avatar .badge {
  position: absolute; bottom: -3px; right: -3px;
  width: 21px; height: 21px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--red-soft); border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.writer-avatar .badge svg { width: 10px; height: 10px; color: #fff; }
.writer-avatar .badge--mythic { background: linear-gradient(150deg, #FF8A94, #A6121D); }
.writer-avatar .badge--legend { background: linear-gradient(150deg, #FFD873, #B8860B); }
.writer-avatar .badge--epic { background: linear-gradient(150deg, #D6C6FC, #6D28D9); }
.writer-card b { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; line-height: 1.25; }
.writer-card > span:not(.writer-avatar) { display: block; margin-top: 2px; font-size: 10.5px; color: var(--ink-mute); }

/* ==========================================================================
   Halaman profil penulis (gaya artist page)
   ========================================================================== */
.wp-hero {
  position: relative; padding: 16px 0 60px; min-height: 200px; overflow: hidden;
  display: flex; flex-direction: column;
}
.wp-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,4,5,0) 0%, var(--bg) 96%);
}
.wp-avatar {
  position: relative; z-index: 1;
  width: 108px; height: 108px; border-radius: 50%; margin: auto auto 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 34px; color: #fff;
  background: rgba(255, 255, 255, 0.14); border: 3px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
}
.wp-avatar .badge {
  position: absolute; bottom: 2px; right: 2px; z-index: 2;
  width: 32px; height: 32px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 3px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.wp-avatar .badge svg { width: 15px; height: 15px; color: #fff; }
.wp-avatar .badge--mythic { background: linear-gradient(150deg, #FF8A94, #A6121D); }
.wp-avatar .badge--legend { background: linear-gradient(150deg, #FFD873, #B8860B); }
.wp-avatar .badge--epic { background: linear-gradient(150deg, #D6C6FC, #6D28D9); }
.wp-head { padding: 4px 24px 0; text-align: center; }
.wp-head h1 { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.wp-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wp-badges .pill svg { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }
.wp-bio { margin: 14px auto 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-dim); max-width: 42ch; }
.wp-stats { margin-top: 14px; font-size: 13px; color: var(--ink-mute); }
.wp-stats b { color: var(--ink); font-weight: 700; }
.wp-stats .dot { margin: 0 8px; opacity: .5; }
.wp-actions { margin-top: 18px; }
.wp-actions .ob-cta { display: inline-flex; padding-inline: 32px; width: auto; }

.wp-tracklist { margin: 0 22px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.wp-track {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; background: color-mix(in srgb, var(--ink) 3%, transparent);
  border-bottom: 1px solid var(--line);
}
.wp-track:last-child { border-bottom: none; }
.wp-track .idx { width: 18px; text-align: center; font-family: var(--font-display); font-weight: 600; color: var(--ink-mute); font-size: 13px; flex: none; }
.wp-track .meta { flex: 1; min-width: 0; }
.wp-track .meta b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-track .meta span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-mute); }
.wp-track .time { flex: none; font-size: 11.5px; color: var(--ink-mute); }
.wp-track--dummy { opacity: .72; }
.wp-track--dummy .idx { color: var(--ink-mute); }

/* ==========================================================================
   Onboarding — daftar fitur & CTA penutup
   ========================================================================== */
.ob-features { position: relative; z-index: 2; padding: 20px 26px 0; display: flex; flex-direction: column; gap: 6px; flex: none; }
.ob-feature { display: flex; align-items: center; gap: 14px; padding: 8px 2px; }
.ob-feature .ic { width: 42px; height: 42px; border-radius: 12px; flex: none; background: rgba(234, 62, 74, 0.12); border: 1px solid rgba(234, 62, 74, 0.28); display: flex; align-items: center; justify-content: center; }
.ob-feature .ic svg { width: 19px; height: 19px; color: var(--red-soft); }
.ob-feature b { display: block; font-size: 14px; font-weight: 600; }
.ob-feature span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-mute); }

.ob-footer { position: relative; z-index: 2; padding: 20px 26px 16px; flex: none; }
.ob-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; border-radius: 999px;
  background: linear-gradient(135deg, var(--red-soft), var(--red)); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  box-shadow: 0 16px 32px -12px rgba(220, 29, 44, 0.55);
}
.ob-cta svg { width: 16px; height: 16px; }

/* ==========================================================================
   Tema gelap/terang
   ========================================================================== */
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }

.theme-switch {
  margin: 0 22px; padding: 4px; display: flex; gap: 4px;
  border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line);
}
.theme-switch button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 0; border-radius: 11px;
  font-size: 13px; font-weight: 600; color: var(--ink-mute);
}
.theme-switch button svg { width: 16px; height: 16px; }
.theme-switch button.is-active {
  background: var(--bg); color: var(--ink);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.3);
}
:root[data-theme="light"] .theme-switch button.is-active { box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.12); }

/* ==========================================================================
   Ringkasan artikel
   ========================================================================== */
.article-summary {
  margin: 18px 22px 0; padding: 16px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px solid var(--line); scroll-margin-top: 70px;
}
.article-summary .lbl {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--red-soft);
}
.article-summary .lbl svg { width: 14px; height: 14px; }
.article-summary p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-dim); }

/* ==========================================================================
   Aksi artikel: bookmark + share (fungsional)
   ========================================================================== */
.icon-btn.is-saved { background: rgba(234, 62, 74, 0.16); border-color: rgba(234, 62, 74, 0.4); }
.icon-btn.is-saved svg { color: var(--red-soft); fill: var(--red-soft); }

.share-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 2, 2, 0.6);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.share-overlay.is-open { opacity: 1; pointer-events: auto; }
.share-sheet {
  width: 100%; max-width: 560px; background: var(--bg);
  border-radius: 22px 22px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .25s ease;
  border: 1px solid var(--line); border-bottom: none;
}
.share-overlay.is-open .share-sheet { transform: translateY(0); }
.share-sheet .grabber { width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: 6px auto 14px; }
.share-sheet h4 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.share-item { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.share-item .ic {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.share-item .ic svg { width: 24px; height: 24px; }
.share-item span { font-size: 11px; color: var(--ink-dim); text-align: center; }
.share-item--wa .ic { background: #25D366; }
.share-item--tg .ic { background: #229ED9; }
.share-item--ig .ic { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.share-item--x .ic { background: #000; }
.share-item--fb .ic { background: #1877F2; }
.share-item--copy .ic { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.share-item--more .ic { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.share-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; z-index: 60;
  opacity: 0; pointer-events: none; transition: all .2s ease;
}
.share-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Badge tingkat penulis (Mythic / Legend / Epic)
   ========================================================================== */
.tier-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 7px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.tier-badge .gem { width: 15px; height: 15px; flex: none; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.tier-badge--mythic { color: #FF6270; background: rgba(234, 62, 74, .14); border: 1px solid rgba(234, 62, 74, .35); }
.tier-badge--mythic .gem { background: linear-gradient(150deg, #FF8A94, #A6121D); }
.tier-badge--legend { color: #E4AC3D; background: rgba(245, 185, 66, .14); border: 1px solid rgba(245, 185, 66, .35); }
.tier-badge--legend .gem { background: linear-gradient(150deg, #FFD873, #B8860B); }
.tier-badge--epic { color: #B79CF7; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .35); }
.tier-badge--epic .gem { background: linear-gradient(150deg, #D6C6FC, #6D28D9); }

.avatar-tier {
  position: absolute; bottom: -3px; right: -3px;
  width: 22px; height: 22px; border: 2px solid var(--bg);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
}
.avatar-tier svg { width: 10px; height: 10px; color: #fff; }
.avatar-tier--mythic { background: linear-gradient(150deg, #FF8A94, #A6121D); }
.avatar-tier--legend { background: linear-gradient(150deg, #FFD873, #B8860B); }
.avatar-tier--epic { background: linear-gradient(150deg, #D6C6FC, #6D28D9); }

/* ==========================================================================
   Notifikasi
   ========================================================================== */
.notif-item { display: flex; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.notif-item .ic {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(234, 62, 74, .14); color: var(--red-soft);
}
.notif-item .ic svg { width: 18px; height: 18px; }
.notif-item .body { flex: 1; min-width: 0; }
.notif-item .body p { font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.notif-item .body p b { font-weight: 700; }
.notif-item .body span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-mute); }
.notif-item.is-unread { background: color-mix(in srgb, var(--red) 6%, transparent); }
.notif-item.is-unread::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red-soft); flex: none; margin-top: 5px; }

/* ==========================================================================
   Traffic & Monetisasi — halaman profil penulis
   ========================================================================== */
.monet-panel {
  margin: 18px 22px 0; padding: 16px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px solid var(--line);
}
.monet-panel .lbl {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--red-soft);
}
.monet-panel .lbl svg { width: 14px; height: 14px; }
.monet-row { display: flex; gap: 10px; margin-top: 12px; }
.monet-stat { flex: 1; padding: 12px 10px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); text-align: center; }
.monet-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.monet-stat .v.v--sm { font-size: 14.5px; }
.monet-stat .l { margin-top: 3px; font-size: 10.5px; color: var(--ink-mute); }
.monet-rate {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 8px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--red-soft) 10%, transparent);
  border: 1px solid rgba(234, 62, 74, .25);
  font-size: 11.5px; color: var(--ink-dim);
}
.monet-rate svg { width: 13px; height: 13px; color: var(--red-soft); flex: none; }
.monet-rate b { color: var(--ink); font-weight: 700; }
.monet-bar { margin-top: 12px; }
.monet-bar .track { height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.monet-bar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--red-soft)); }
.monet-bar p { margin-top: 8px; font-size: 11.5px; color: var(--ink-mute); line-height: 1.5; }
.monet-bar p b { color: var(--ink-dim); font-weight: 600; }

.wp-track .meta .views-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.wp-track .meta .views { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ink-mute); flex: none; margin: 0; }
.wp-track .meta .views svg { width: 11px; height: 11px; }
.monet-badge {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  padding: 3px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
}
.wp-track .meta .monet-badge { display: inline-flex; margin: 0; }
.monet-badge svg { width: 9px; height: 9px; }
.monet-badge--live { color: #3DDC84; background: rgba(61, 220, 132, .14); border: 1px solid rgba(61, 220, 132, .3); }
.monet-badge--pending { color: var(--ink-mute); background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line); }

/* ==========================================================================
   Komentar
   ========================================================================== */
.comments-section { margin-top: 8px; padding: 20px 22px 4px; border-top: 1px solid var(--line); }
.comments-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.comments-head svg { width: 17px; height: 17px; color: var(--red-soft); }
.comments-head .count { color: var(--ink-mute); font-weight: 500; }

.comment-form { display: flex; gap: 10px; margin-top: 16px; align-items: flex-start; }
.comment-form .cf-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #EA3E4A, #A6121D);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff;
}
.comment-form .cf-body { flex: 1; min-width: 0; }
.comment-form textarea {
  width: 100%; resize: none; min-height: 40px; max-height: 140px;
  padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: var(--ink); font-family: var(--font-body); font-size: 13.5px; line-height: 1.4;
}
.comment-form textarea::placeholder { color: var(--ink-mute); }
.comment-form .cf-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.comment-form button {
  padding: 8px 18px; border-radius: 999px; background: var(--red-soft); color: #fff;
  font-size: 12.5px; font-weight: 700; opacity: .5; pointer-events: none;
}
.comment-form button.is-ready { opacity: 1; pointer-events: auto; }

.comment-list { margin-top: 18px; display: flex; flex-direction: column; gap: 18px; }
.comment-item { display: flex; gap: 10px; }
.comment-item .c-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff;
}
.comment-item .c-body { flex: 1; min-width: 0; }
.comment-item .c-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.comment-item .c-head b { font-size: 13px; font-weight: 700; }
.comment-item .c-head span { font-size: 11px; color: var(--ink-mute); }
.comment-item .c-text { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--ink-dim); }
.comment-item .c-you { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--red-soft); background: rgba(234,62,74,.14); padding: 1px 7px; border-radius: 999px; }
.comment-empty { margin-top: 18px; font-size: 12.5px; color: var(--ink-mute); text-align: center; padding: 10px 0; }
