/* ============================================================
   Getinsighto Content Reviewer — Design System v2
   Dark studio theme. Reskin cukup ganti token di :root.
   ============================================================ */
:root {
  /* palette */
  --bg: #0b0f0d;
  --bg-2: #0e1411;
  --surface: #131a16;
  --surface-2: #182019;
  --surface-3: #1f2a22;
  --border: #253128;
  --border-strong: #33422f;
  --text: #eef4ef;
  --text-2: #c4d0c6;
  --muted: #8ba192;
  --primary: #3ddc84;
  --primary-strong: #2bc06e;
  --primary-deep: #16884b;
  --primary-soft: rgba(61, 220, 132, 0.1);
  --primary-glow: rgba(61, 220, 132, 0.35);
  --amber: #ffc24b;
  --amber-soft: rgba(255, 194, 75, 0.12);
  --red: #ff6459;
  --red-soft: rgba(255, 100, 89, 0.12);
  --score-red: #ff6459;
  --score-yellow: #ffc24b;
  --score-green: #3ddc84;

  /* type */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font);

  /* shape */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--primary); color: #06130c; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- ambient glow ---------- */
.glow-field {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 380px at 85% -5%, rgba(61, 220, 132, 0.09), transparent 65%),
    radial-gradient(500px 340px at 0% 15%, rgba(255, 194, 75, 0.05), transparent 65%),
    var(--bg);
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 15, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; max-width: 1040px; margin: 0 auto;
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); display: flex; align-items: center; gap: 9px; }
.brand-dot {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: inline-flex; align-items: center; justify-content: center;
  color: #06130c; font-size: 13px; font-weight: 800;
  box-shadow: 0 0 18px var(--primary-glow);
}
.brand span { color: var(--primary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 13px 22px;
  font-size: 15px; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #06130c;
  box-shadow: 0 4px 24px rgba(61, 220, 132, 0.28);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(61, 220, 132, 0.45); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- forms ---------- */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font);
  background: var(--bg-2); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238ba192' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; margin: 20px 0 8px; }

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface) 60%, var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.muted { color: var(--muted); font-size: 13px; }
.error-box {
  background: var(--red-soft); color: var(--red);
  border: 1px solid rgba(255, 100, 89, 0.25);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; margin-top: 14px;
}
.hidden { display: none !important; }

/* ---------- animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
.anim-1, .anim-2, .anim-3, .anim-4 { animation: fadeUp 0.7s var(--ease) both; }
.anim-2 { animation-delay: 0.12s; }
.anim-3 { animation-delay: 0.24s; }
.anim-4 { animation-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ============================================================
   LANDING
   ============================================================ */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid rgba(61, 220, 132, 0.25);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); animation: pulse 2.4s infinite; }
.hero h1 { font-size: clamp(34px, 5.4vw, 52px); margin: 18px 0 16px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--primary); text-shadow: 0 0 34px var(--primary-glow); }
.hero .lead { font-size: 17px; color: var(--text-2); max-width: 480px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--text); }
.hero-stat span { font-size: 12.5px; color: var(--muted); }

/* demo card */
.demo-card {
  background: linear-gradient(165deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: 20px; padding: 26px;
  box-shadow: var(--shadow), 0 0 80px rgba(61, 220, 132, 0.07);
  animation: floaty 7s ease-in-out infinite;
}
.demo-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.demo-score-row { display: flex; align-items: center; gap: 22px; }
.demo-note {
  margin-top: 18px; background: var(--surface-3); border-left: 3px solid var(--primary);
  border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--text-2);
}
.demo-note b { color: var(--primary); }

/* score ring (dipakai landing & hasil) */
.ring-wrap { position: relative; display: inline-grid; place-items: center; }
.ring-wrap svg { transform: rotate(-90deg); display: block; }
.ring-track { stroke: var(--surface-3); }
.ring-val { transition: stroke-dashoffset 1.4s var(--ease), stroke 0.4s; stroke-linecap: round; }
.ring-num {
  position: absolute; text-align: center; font-family: var(--font-display);
  font-weight: 700; line-height: 1;
}
.ring-num small { display: block; font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; margin-top: 4px; }

.band-red { color: var(--score-red); }
.band-yellow { color: var(--score-yellow); }
.band-green { color: var(--score-green); }

/* sections landing */
.section { padding: 56px 0; }
.section-eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.section h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 10px 0 14px; }
.section .sub { color: var(--text-2); max-width: 560px; }
.steps { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform 0.25s var(--ease), border-color 0.25s;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step .num {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--primary); background: var(--primary-soft);
  border-radius: 8px; padding: 4px 10px; display: inline-block; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }

.vs-card {
  display: grid; gap: 0; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 32px;
}
.vs-col { padding: 26px; }
.vs-col:first-child { background: var(--bg-2); border-right: 1px solid var(--border); }
.vs-col:last-child { background: linear-gradient(160deg, rgba(61, 220, 132, 0.07), transparent); }
.vs-col h4 { margin: 0 0 12px; font-size: 15px; }
.vs-col ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; display: grid; gap: 8px; }
@media (max-width: 640px) { .vs-card { grid-template-columns: 1fr; } .vs-col:first-child { border-right: 0; border-bottom: 1px solid var(--border); } }

.final-cta { text-align: center; padding: 64px 0 80px; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap { max-width: 420px; margin: 48px auto; padding: 0 20px; }
.tabs { display: flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.tab {
  flex: 1; text-align: center; padding: 10px; border-radius: 9px;
  color: var(--muted); font-weight: 700; cursor: pointer; font-size: 14px;
  transition: all 0.2s var(--ease);
}
.tab.active { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* ============================================================
   APP
   ============================================================ */
.appnav { display: flex; gap: 8px; align-items: center; margin: 22px 0; }
.quota-pill {
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid rgba(61, 220, 132, 0.22);
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 800;
}
.panel-title { font-size: 22px; margin: 0 0 4px; }
.panel-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }

/* upload */
.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  padding: 34px 20px; text-align: center; color: var(--muted); cursor: pointer;
  background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.dropzone:hover { border-color: var(--primary); background: var(--primary-soft); }
.dropzone.drag { border-color: var(--primary); background: var(--primary-soft); transform: scale(1.01); }
.dropzone .dz-icon { font-size: 30px; display: block; margin-bottom: 8px; }
.dropzone strong { color: var(--text); }

.slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; margin-top: 16px; }
.slide-item {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface-2);
  animation: fadeUp 0.4s var(--ease);
}
.slide-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.slide-item .pos {
  position: absolute; top: 6px; left: 6px;
  background: rgba(6, 19, 12, 0.85); color: var(--primary);
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  border-radius: 6px; padding: 2px 7px;
}
.slide-item .ops { display: flex; border-top: 1px solid var(--border); }
.slide-item .ops button {
  flex: 1; border: 0; background: var(--surface); color: var(--muted);
  padding: 6px 0; cursor: pointer; font-size: 12px; transition: all 0.15s;
}
.slide-item .ops button:hover { background: var(--surface-3); color: var(--text); }

.rereview-banner {
  display: flex; gap: 10px; align-items: center;
  background: var(--amber-soft); border: 1px solid rgba(255, 194, 75, 0.3);
  color: var(--amber); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px;
}

/* progress */
.progress-wrap { text-align: center; padding: 44px 20px; }
.progress-ring { width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; border: 4px solid var(--surface-3); border-top-color: var(--primary); animation: spin 0.9s linear infinite; }
.progress-steps { max-width: 340px; margin: 22px auto 0; text-align: left; display: grid; gap: 12px; }
.pstep { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); transition: color 0.3s; }
.pstep .ic {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all 0.3s;
}
.pstep.active { color: var(--text); }
.pstep.active .ic { border-color: var(--primary); color: var(--primary); animation: pulse 1.4s infinite; }
.pstep.done { color: var(--text-2); }
.pstep.done .ic { border-color: var(--primary); background: var(--primary); color: #06130c; animation: none; }

/* ============================================================
   HASIL REVIEW
   ============================================================ */
.score-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 6px; }
.band-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 800; margin-top: 16px;
}
.band-chip.red { background: var(--red-soft); color: var(--score-red); border: 1px solid rgba(255,100,89,0.3); }
.band-chip.yellow { background: var(--amber-soft); color: var(--score-yellow); border: 1px solid rgba(255,194,75,0.3); }
.band-chip.green { background: var(--primary-soft); color: var(--score-green); border: 1px solid rgba(61,220,132,0.3); }
.delta-hero { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-top: 10px; }
.delta.up, .delta-hero.up { color: var(--score-green); }
.delta.down, .delta-hero.down { color: var(--score-red); }
.score-summary { color: var(--text-2); font-size: 14.5px; max-width: 500px; margin: 14px auto 0; }

.dims { display: grid; gap: 14px; margin: 26px 0 8px; }
.dim { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.dim .delta { font-size: 11.5px; margin-left: 5px; }
.bar { height: 9px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.2s var(--ease); }
.dim .val { text-align: right; font-family: var(--font-display); font-size: 15px; }

.result-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-top: 16px;
  animation: fadeUp 0.5s var(--ease) both;
}
.result-section .rs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.result-section h3 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 9px; }
.rs-score { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.finding { font-size: 14px; color: var(--text-2); margin: 10px 0; padding-left: 12px; border-left: 3px solid var(--border-strong); }
.finding b, .finding strong { color: var(--text); }
.copy-label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 4px; }
.copy-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px; margin: 8px 0; font-size: 14px;
  transition: border-color 0.2s;
}
.copy-item:hover { border-color: var(--border-strong); }
.copy-item p { margin: 0; flex: 1; color: var(--text-2); }
.copy-btn {
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2);
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap; font-family: var(--font);
  transition: all 0.15s;
}
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.copy-btn.copied { background: var(--primary); border-color: var(--primary); color: #06130c; }

.result-actions { display: flex; gap: 12px; margin-top: 20px; position: sticky; bottom: 14px; }
.result-actions .btn { flex: 1; }

/* ============================================================
   RIWAYAT
   ============================================================ */
.history-item {
  display: flex; gap: 14px; align-items: center; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 12px; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease);
  animation: fadeUp 0.4s var(--ease) both;
}
.history-item:hover { border-color: var(--primary); transform: translateX(3px); }
.history-thumb { width: 56px; height: 70px; border-radius: 8px; object-fit: cover; background: var(--surface-3); flex-shrink: 0; }
.history-meta { flex: 1; min-width: 0; }
.history-meta .t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.history-meta .muted { margin-top: 3px; }
.score-badge { font-family: var(--font-display); font-weight: 700; font-size: 22px; min-width: 48px; text-align: right; }
.rev-badge {
  display: inline-block; background: var(--primary-soft); color: var(--primary);
  font-size: 10.5px; font-weight: 800; border-radius: 5px; padding: 2px 7px; margin-left: 7px;
}
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state .big { font-size: 40px; display: block; margin-bottom: 12px; }

.skeleton {
  border-radius: var(--radius); height: 86px; margin-bottom: 12px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 800px 100%; animation: shimmer 1.4s infinite linear;
}

/* ---------- toast ---------- */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; z-index: 100;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  box-shadow: var(--shadow);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

footer { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--border); margin-top: 40px; }

/* ---------- admin ---------- */
table.admin { width: 100%; border-collapse: collapse; font-size: 13px; }
table.admin th, table.admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
table.admin th { color: var(--muted); font-weight: 700; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
table.admin input { padding: 6px 8px !important; }

/* ============================================================
   DASHBOARD SHELL v3 — sidebar (desktop) + bottomnav (mobile)
   ============================================================ */
:root { --chart-line: #23ad61; --sidebar-w: 236px; }

.sidebar { display: none; }
.bottomnav { display: none; }
.appmain { max-width: 720px; margin: 0 auto; padding: 8px 20px 96px; }

/* mobile bottom nav */
@media (max-width: 899px) {
  body.in-app footer { display: none; }
  .bottomnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(14, 20, 17, 0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .bn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: transparent; border: 0; color: var(--muted);
    font-family: var(--font); font-size: 10.5px; font-weight: 700;
    padding: 6px 0; cursor: pointer; border-radius: 12px;
    transition: color 0.2s;
  }
  .bn.active { color: var(--primary); }
  .bn-primary {
    color: #06130c; background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    border-radius: 14px; margin: -14px 6px 0; padding: 10px 0 7px;
    box-shadow: 0 6px 24px rgba(61, 220, 132, 0.35);
  }
  .bn-primary.active { color: #06130c; }
}

/* desktop sidebar */
@media (min-width: 900px) {
  body.in-app .topbar { display: none; }
  body.in-app footer { margin-left: var(--sidebar-w); }
  .sidebar {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 40;
    background: var(--bg-2); border-right: 1px solid var(--border);
    padding: 22px 16px;
  }
  .sidebar .brand { margin-bottom: 30px; padding: 0 8px; }
  .snav-list { display: grid; gap: 4px; }
  .snav {
    display: flex; align-items: center; gap: 11px;
    background: transparent; border: 0; text-align: left; width: 100%;
    color: var(--muted); font-family: var(--font); font-size: 14px; font-weight: 600;
    padding: 11px 12px; border-radius: 11px; cursor: pointer;
    transition: all 0.18s var(--ease);
  }
  .snav:hover { color: var(--text); background: var(--surface-2); }
  .snav.active { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
  .sidebar-foot { margin-top: auto; display: grid; gap: 10px; }
  .appmain { margin-left: var(--sidebar-w); max-width: none; padding: 30px 40px 60px; }
  .appmain > div { max-width: 760px; }
  #quota-pill { display: none !important; }
}

.quota-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 14px;
}
.quota-card-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 9px; }
.quota-card-top b { font-family: var(--font-display); font-size: 14px; color: var(--text); }
.quota-bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.quota-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--primary-deep), var(--primary)); transition: width 0.8s var(--ease); }

/* dash */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
.dash-cta { margin-top: 6px; }
@media (max-width: 480px) { .dash-cta { display: none; } }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 17px;
  animation: fadeUp 0.5s var(--ease) both;
}
.tile:nth-child(2) { animation-delay: 0.06s; } .tile:nth-child(3) { animation-delay: 0.12s; } .tile:nth-child(4) { animation-delay: 0.18s; }
.tile .tl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.tile .tv { font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: 1.2; margin-top: 5px; color: var(--text); }
.tile .tf { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.chart-card { padding: 20px 22px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.chart-head h3 { margin: 0 0 2px; font-size: 16px; }
#chart { position: relative; }
#chart svg { display: block; width: 100%; height: auto; }
#chart .grid-line { stroke: var(--border); stroke-width: 1; }
#chart .band-line { stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.5; }
#chart .axis-text { fill: var(--muted); font-family: var(--font); font-size: 10px; font-weight: 600; }
#chart .trend-area { fill: url(#trendFill); }
#chart .trend-line { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#chart .pt { fill: var(--surface); stroke: var(--chart-line); stroke-width: 2; }
#chart .pt-last-label { fill: var(--text); font-family: var(--font-display); font-size: 12px; font-weight: 700; }
#chart .crosshair { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--surface-3); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 8px 11px; font-size: 12px; line-height: 1.5;
  box-shadow: var(--shadow); white-space: nowrap;
  transform: translate(-50%, -110%); opacity: 0; transition: opacity 0.12s;
}
.chart-tip b { font-family: var(--font-display); font-size: 14px; }
.chart-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 34px 10px; }

.dash-recent { margin-top: 24px; }
.dash-recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-recent-head h3 { margin: 0; font-size: 16px; }

/* ============================================================
   FITUR v4 — compare, reels teaser, rubrik, langganan, more
   ============================================================ */
.badge-soon {
  margin-left: auto; background: var(--amber-soft); color: var(--amber);
  border: 1px solid rgba(255, 194, 75, 0.28);
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 5px; padding: 2px 6px;
}
.side-divider { height: 1px; background: var(--border); margin: 12px 8px; }
.snav { position: relative; }
a.snav { text-decoration: none; }

/* compare */
.compare-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 22px 0 8px; }
.compare-side { text-align: center; }
.compare-side .cs-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.compare-side .cs-date { font-size: 12px; color: var(--muted); margin-top: 8px; }
.compare-arrow { text-align: center; }
.compare-arrow .ca-delta { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.compare-arrow .ca-ico { font-size: 18px; color: var(--muted); }
.compare-dims { margin-top: 20px; display: grid; gap: 10px; }
.cmp-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; }
.cmp-vals { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 14px; }
.cmp-vals .old { color: var(--muted); }
.cmp-vals .arrow { color: var(--muted); font-size: 12px; }
.compare-note { margin-top: 18px; }

/* teaser reels */
.teaser-card { text-align: center; padding: 40px 26px; }
.teaser-icon { font-size: 44px; margin-bottom: 14px; }
.teaser-list { display: grid; gap: 10px; max-width: 440px; margin: 0 auto; text-align: left; }
.teaser-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 15px; font-size: 13.5px; color: var(--text-2); }
.teaser-item b { color: var(--text); }

/* rubrik */
.rubric-bands { display: grid; gap: 14px; }
@media (min-width: 640px) { .rubric-bands { grid-template-columns: repeat(3, 1fr); } }
.rubric-band { position: relative; padding-left: 20px; }
.rubric-band .band-dot { position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; }
.rubric-band b { font-family: var(--font-display); font-size: 14px; }
.rubric-band p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.rubric-dim { margin-bottom: 12px; padding: 20px 22px; }
.rubric-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rubric-head h3 { margin: 0; font-size: 16px; }
.rubric-w { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 7px; padding: 4px 10px; }
.rubric-dim p { margin: 0; }

/* langganan */
.plan-current-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-transform: capitalize; }
.plan-cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .plan-cards { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column;
}
.plan-card.featured { border-color: rgba(61, 220, 132, 0.4); background: linear-gradient(170deg, rgba(61, 220, 132, 0.07), var(--surface)); }
.plan-flag {
  position: absolute; top: -10px; right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #06130c;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 6px; padding: 3px 9px;
}
.plan-card h4 { margin: 0; font-size: 15px; }
.plan-price { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin: 8px 0 12px; color: var(--text); }
.plan-card ul { margin: 0 0 16px; padding-left: 18px; color: var(--text-2); font-size: 13px; display: grid; gap: 7px; flex: 1; }

/* more (mobile) */
.more-list { display: grid; gap: 10px; }
.more-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font); font-size: 14.5px; font-weight: 600;
  padding: 16px 18px; cursor: pointer; transition: border-color 0.2s;
}
.more-item:hover { border-color: var(--primary); }
.more-item .chev { margin-left: auto; color: var(--muted); }
.more-item .badge-soon { margin-left: 6px; }
a.more-item { text-decoration: none; }
@media (min-width: 900px) {
  #panel-more .more-list { max-width: 420px; }
}

/* reels */
.reels-info {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--primary-soft); border: 1px solid rgba(61, 220, 132, 0.22);
  color: var(--primary); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; font-weight: 600; margin-top: 14px;
}
.slide-item .frame-label {
  position: absolute; bottom: 30px; left: 0; right: 0;
  background: rgba(6, 19, 12, 0.75); color: var(--text-2);
  font-size: 10px; font-weight: 700; text-align: center; padding: 2px 0;
}
.slide-item.frame .ops { display: none; }
.type-chip { font-size: 12px; margin-right: 4px; }
.slide-item.frame .frame-label { bottom: 0; }

.btn-link-inline {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font-family: var(--font); font-size: inherit; color: var(--primary);
  text-decoration: underline; text-underline-offset: 2px;
}
.btn-link-inline:hover { color: var(--primary-strong); }
