/* =========================================================
   style.css – Clipper V3 (Opus Clip Clean SaaS Design)
   Dark mode · Inter font · Responsive 5-col Grid · Minimalist
   ========================================================= */

/* ── Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-body: #000000;
  --sidebar-bg: #070708;
  --sidebar-border: rgba(255, 255, 255, 0.07);
  --card-bg: #0b0b0d;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(255, 255, 255, 0.22);
  --hero-glow: rgba(255, 255, 255, 0.02);

  --purple-accent: #6366f1;
  --purple-light: #818cf8;
  --purple-pill: #4f46e5;
  --purple-gradient: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  --hero-border-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));

  --bg:           #000000;
  --surface:      rgba(255, 255, 255, 0.035);
  --surface-2:    rgba(255, 255, 255, 0.07);
  --surface-card: #0b0b0d;
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.45);

  --purple-400:   #a5b4fc;
  --purple-500:   #6366f1;
  --sky-400:      #38bdf8;
  --pink-400:     #f472b6;
  --neon-green:   #22c55e;
  --neon-green-glow: rgba(34, 197, 94, 0.25);

  --grad-main:    linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  --grad-btn:     linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --grad-green:   linear-gradient(135deg, #22c55e, #16a34a);

  --text-1:       #f8fafc;
  --text-2:       #a1a1aa;
  --text-3:       #71717a;

  --radius-xl:    18px;
  --radius-lg:    14px;
  --radius-md:    10px;
  --radius-sm:    6px;
  --shadow:       0 16px 40px rgba(0,0,0,0.9);

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-body);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  margin: 0;
  padding: 0;
}

/* Ambient Background Glow (Subtle Deep Dark) */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(160px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}
.glow-1 { top: -200px; left: 100px; background: #312e81; }
.glow-2 { top: 150px; right: -200px; background: #1e1b4b; }

/* Background blobs (legacy fallback) */
.bg-blob { display: none !important; }

/* ── App Shell Layout ──────────────────────────────────── */
.app-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── 1. SIDEBAR KIRI ───────────────────────────────────── */
.app-sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 24px;
}
.brand-app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.brand-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 14px 4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  text-align: left;
}
.nav-btn:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
}
.nav-btn.active {
  color: #ffffff;
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.14);
  font-weight: 600;
}
.nav-btn.active svg {
  stroke: #ffffff;
}

.sidebar-footer-card {
  background: #0c0c0e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  margin-top: auto;
}
.footer-crown-icon {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.footer-promo-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.35;
  margin-bottom: 4px;
}
.footer-promo-desc {
  font-size: 0.72rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── 2. MAIN CONTENT AREA ──────────────────────────────── */
.main-content,
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 36px 60px;
  max-width: 1380px;
  margin: 0 auto;
  width: calc(100% - 240px);
  gap: 24px;
}

.main-content.dashboard-view,
.container.dashboard-view {
  max-width: 1560px;
}

/* ── Top Header Bar ────────────────────────────────────── */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}
.demo-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: #cbd5e1;
  letter-spacing: 0.04em;
}
.header-tagline {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-top: 2px;
}
.header-platforms-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}
.platform-chip svg {
  width: 13px;
  height: 13px;
}

/* ── Header ─────────────────────────────────────────────── */
.header { text-align: center; padding: 4px 0; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.logo:hover {
  opacity: 0.92;
  transform: scale(1.02);
}
.logo-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  -webkit-text-fill-color: var(--text-2);
}

.tagline { color: var(--text-2); font-size: 0.92rem; font-weight: 400; margin-bottom: 12px; }

.platform-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: border-color 0.25s, color 0.25s;
}
.tag:hover { border-color: var(--purple-400); color: var(--text-1); }

/* ── Card ───────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, #0c0c0e 0%, #060608 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  padding: 28px 24px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  transition: opacity 0.3s, transform 0.3s;
}

.upload-card,
.progress-card,
.error-card {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* ── Drop Zone ──────────────────────────────────────────── */
.drop-zone {
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 38px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  outline: none;
  background: #040405;
}
.drop-zone:hover, .drop-zone:focus, .drop-zone.drag-over {
  border-color: rgba(255, 255, 255, 0.35);
  background: #09090c;
  transform: none;
}
.drop-icon {
  margin-bottom: 12px;
  color: #a1a1aa;
  transition: transform 0.2s ease, color 0.2s ease;
}
.drop-zone:hover .drop-icon {
  transform: translateY(-3px);
  color: #ffffff;
}

.drop-title  { font-size: 1.05rem; font-weight: 600; color: #ffffff; margin-bottom: 4px; }
.drop-subtitle { font-size: 0.82rem; color: var(--text-2); margin-bottom: 6px; }
.drop-hint { font-size: 0.74rem; color: var(--text-3); margin-top: 4px; }

/* ── File Info ──────────────────────────────────────────── */
.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  animation: slideDown 0.25s ease;
}
.file-icon-svg { color: var(--purple-400); display: flex; align-items: center; }
.file-details { flex: 1; overflow: hidden; }
.file-name { display: block; font-weight: 600; font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 0.74rem; color: var(--text-2); }

.btn-clear {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-clear:hover { border-color: var(--pink-400); color: var(--pink-400); background: rgba(244,114,182,0.08); }

/* ── Video Trimmer ──────────────────────────────────────── */
.range-trimmer {
  margin-top: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  animation: slideDown 0.3s ease;
}
.trimmer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.trimmer-title { font-size: 0.95rem; font-weight: 700; color: var(--text-1); }
.trimmer-subtitle { font-size: 0.76rem; color: var(--text-2); }

.range-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--purple-400);
  padding: 3px 8px;
  border-radius: 999px;
}
.range-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-400);
}

.trimmer-preview-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.trimmer-preview-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-overlay-info {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: monospace;
  color: #fff;
}

.dual-range-container {
  position: relative;
  height: 28px;
  margin-bottom: 12px;
}
.dual-range-track {
  position: absolute;
  top: 11px;
  left: 0; right: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
.dual-range-fill {
  position: absolute;
  height: 100%;
  background: var(--grad-main);
  border-radius: 999px;
}
.dual-range-container input[type="range"] {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 28px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.dual-range-container input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--purple-500);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  cursor: ew-resize;
  transition: transform 0.15s;
}
.dual-range-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.trimmer-inputs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.time-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.time-input-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
}
.time-input-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text-1);
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
}
.trimmer-arrow { color: var(--text-3); font-size: 0.9rem; }

.trimmer-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.preset-label { font-size: 0.74rem; font-weight: 600; color: var(--text-2); }
.preset-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.preset-chip.active, .preset-chip:hover {
  background: rgba(167, 139, 250, 0.15);
  border-color: var(--purple-400);
  color: #fff;
}
.trimmer-hint {
  font-size: 0.74rem;
  color: var(--text-3);
  line-height: 1.35;
}

/* ── Settings Section ───────────────────────────────────── */
.clip-settings, .youtube-clip-settings {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideDown 0.3s ease;
}
.setting-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.setting-row label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}
.setting-row select, .setting-row input[type="range"] {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-1);
  font-size: 0.82rem;
  outline: none;
}
.slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-wrap input[type="range"] {
  flex: 1;
  padding: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
}
.slider-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-400);
  min-width: 20px;
}

.toggles-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}
.toggle-control {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.toggle-control input { display: none; }
.toggle-switch {
  width: 36px; height: 20px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-control input:checked + .toggle-switch {
  background: var(--purple-500);
}
.toggle-control input:checked + .toggle-switch::after {
  transform: translateX(16px);
}
.toggle-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-1);
}
.settings-hint {
  font-size: 0.74rem;
  color: var(--text-3);
  line-height: 1.4;
  margin-top: 4px;
}

/* ── Upload Button ──────────────────────────────────────── */
.btn-upload {
  margin-top: 18px;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--grad-btn);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-upload:hover { opacity: 0.92; transform: translateY(-1px); }

/* ── Progress Card ──────────────────────────────────────── */
.progress-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.progress-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--purple-400);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-info { flex: 1; text-align: left; }
.progress-label { font-size: 0.92rem; font-weight: 600; color: var(--text-1); }
.progress-sub { font-size: 0.76rem; color: var(--text-2); }
.progress-pct { font-size: 1.1rem; font-weight: 800; color: var(--purple-400); }

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-main);
  border-radius: 999px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: mainBarShimmer 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes mainBarShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Download Stats Row */
.download-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}
.download-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dl-engine-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.dl-engine-badge.fast {
  background: rgba(52,211,153,0.15);
  color: #34d399;
}
.dl-engine-badge.slow {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
}
@media (max-width: 600px) {
  .download-stats { gap: 1rem; flex-wrap: wrap; }
}

/* =========================================================
   Opus Clip Dashboard & Grid Styles
   ========================================================= */
.result-dashboard {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.35s ease;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 17, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  gap: 14px;
  position: sticky;
  top: 14px;
  z-index: 30;
  transition: all 0.25s ease;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Back to Home Dashboard Button */
.btn-back-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-1);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  user-select: none;
}

.btn-back-dashboard svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-back-dashboard:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.45);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-back-dashboard:hover svg {
  transform: translateX(-3px);
}

.btn-back-dashboard:active {
  transform: translateY(0) scale(0.98);
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.toolbar-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.grid-icon { color: var(--text-2); }
.dashboard-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
}
.dashboard-count-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-dashboard-reset {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-dashboard-reset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--purple-400);
  transform: translateY(-1px);
}

/* ── Opus Grid Layout (1 to 5 Columns) ─────────────────── */
.opus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  width: 100%;
}

@media (min-width: 1200px) {
  .opus-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1199px) and (min-width: 900px) {
  .opus-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 899px) and (min-width: 600px) {
  .opus-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 599px) {
  .opus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ── Opus Card ──────────────────────────────────────────── */
.opus-card {
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.opus-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.opus-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
}

.opus-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opus-timecode-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: monospace;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
}

.opus-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 4px 10px;
}

.opus-score-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--neon-green);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 12px var(--neon-green-glow);
}

.opus-actions-inline {
  display: flex;
  align-items: center;
  gap: 4px;
}

.opus-btn-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.opus-btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.opus-card-title {
  padding: 4px 10px 12px 10px;
  font-size: 0.88rem;
  font-weight: 650;
  color: #f1f5f9;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.4em;
}

/* =========================================================
   Opus Inspector Modal
   ========================================================= */
.opus-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.opus-modal-dialog {
  background: #0f1017;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.opus-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.opus-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.opus-modal-body {
  display: grid;
  grid-template-columns: 120px 220px 1fr 170px;
  gap: 18px;
  padding: 24px;
  align-items: start;
  overflow-y: auto;
}

@media (max-width: 860px) {
  .opus-modal-body {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 580px) {
  .opus-modal-body {
    grid-template-columns: 1fr;
  }
}

/* Modal Column 1: Scores & Grades */
.modal-col-score {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.modal-react-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.modal-react-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-3);
  text-transform: uppercase;
}
.modal-react-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.modal-react-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-react-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}
.modal-btn-like.active {
  color: #f43f5e;
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}
.modal-btn-like.active svg {
  fill: #f43f5e;
}
.modal-btn-dislike.active {
  color: #fb7185;
  border-color: #f43f5e;
  background: rgba(225, 29, 72, 0.15);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.3);
}
.modal-btn-dislike.active svg {
  fill: #fb7185;
}
.modal-feedback-status {
  margin-top: 2px;
}
.feedback-status-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  animation: fadeIn 0.2s ease;
}
.feedback-status-pill.liked {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.feedback-status-pill.disliked {
  background: rgba(234, 88, 12, 0.18);
  color: #fdba74;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.modal-virality-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.modal-score-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--neon-green);
  line-height: 1;
}
.modal-score-denom {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
}

.modal-grades-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-grade-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}
.modal-grade-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--neon-green);
  width: 18px;
  text-align: center;
}
.modal-grade-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
}

/* Modal Column 2: Video Player */
.modal-col-video {
  width: 100%;
}
.modal-video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-video-topbar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.modal-preview-badge {
  background: rgba(0, 0, 0, 0.65);
  color: var(--text-2);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.modal-timecode-badge {
  background: rgba(0, 0, 0, 0.75);
  color: #e2e8f0;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: monospace;
  padding: 2px 6px;
  border-radius: 4px;
}
.modal-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

/* Modal Column 3: Title & Transcript */
.modal-col-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-header-row {
  display: flex;
  align-items: flex-start;
}
.modal-title-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.45;
}

.modal-scene-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-2);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.modal-scene-label { font-weight: 600; color: #cbd5e1; }
.modal-time-range { font-family: monospace; font-size: 0.8rem; color: var(--purple-400); }

.modal-transcript-container {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-transcript-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal-transcript-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #e2e8f0;
  max-height: 150px;
  overflow-y: auto;
}
.modal-reason-body {
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.78rem;
}
.modal-reason-title { font-weight: 600; color: var(--purple-400); display: block; margin-bottom: 2px; }
.modal-reason-desc { color: #cbd5e1; line-height: 1.35; }

/* Modal Column 4: Action Stack */
.modal-col-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.modal-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.modal-btn-download {
  background: var(--grad-green);
  border: none;
  color: #000;
  font-weight: 700;
}
.modal-btn-download:hover {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 4px 14px var(--neon-green-glow);
}

.modal-ratio-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Error Card ─────────────────────────────────────────── */
.error-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.error-icon-svg { margin-bottom: 2px; }
.error-title { font-size: 1.1rem; font-weight: 700; color: #ef4444; }
.error-message { font-size: 0.85rem; color: var(--text-2); max-width: 400px; }

.btn-reset {
  margin-top: 10px;
  padding: 9px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-reset:hover { border-color: var(--purple-400); background: rgba(167,139,250,0.1); }

/* ── Clipper V3.7: Tier, ClipType & Title Engine Styles ─── */
.opus-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.opus-tier-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.opus-tier-tag.tier-s, .modal-tier-pill.tier-s {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #000;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.opus-tier-tag.tier-a, .modal-tier-pill.tier-a {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: #fff;
}
.opus-tier-tag.tier-b, .modal-tier-pill.tier-b {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.opus-type-tag {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.opus-edited-tag {
  background: rgba(16, 185, 129, 0.22);
  backdrop-filter: blur(4px);
  color: #34d399;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.02em;
}

.opus-framing-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.opus-framing-badge.status-active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.opus-framing-badge.status-active-static {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.opus-framing-badge.status-legacy {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.opus-framing-badge.status-fallback {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

/* Glowing Highlight Effect for Newly Updated Clip Card */
.opus-card.card-just-updated {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6), 0 0 0 2px #10b981 !important;
  animation: cardPulseGlow 2s ease-in-out infinite alternate;
}

@keyframes cardPulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.45), 0 0 0 1.5px #10b981;
  }
  100% {
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.9), 0 0 0 2.5px #34d399;
  }
}

/* Banner Notifikasi di Modal Inspector untuk Klip Hasil Re-render */
.modal-rerender-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  padding: 10px 16px;
  margin: 0 0 16px 0;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
  animation: fadeInDown 0.3s ease-out;
}
.modal-rerender-banner.hidden {
  display: none !important;
}
.rerender-banner-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.rerender-banner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rerender-banner-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.02em;
}
.rerender-banner-desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

.modal-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 8px 0;
}

.modal-tier-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.modal-type-pill {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.modal-hook-box, .modal-core-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 8px 10px;
}

.modal-section-badge {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--purple-400);
  margin-bottom: 2px;
  letter-spacing: 0.03em;
}

.modal-hook-content {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
}

.modal-core-content {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.modal-title-engine-body {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.78rem;
}

.modal-title-engine-tag {
  font-weight: 700;
  color: var(--neon-green);
  display: block;
  margin-bottom: 2px;
}

.modal-title-engine-desc {
  color: #cbd5e1;
  line-height: 1.35;
}

/* ── Project View Active Meta Banner ─────────────────────── */
.project-view-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.project-active-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-active-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* =========================================================
   Recent Projects Gallery (Opus Clip Style - Modern 5-Col Grid)
   ========================================================= */
.recent-projects-section {
  width: 100%;
  background: rgba(15, 17, 26, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 32px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.projects-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.projects-heading-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.projects-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(14, 165, 233, 0.2));
  border: 1px solid rgba(167, 139, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
}

.projects-heading-texts {
  display: flex;
  flex-direction: column;
}

.projects-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(167, 139, 250, 0.16);
  color: #c084fc;
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 2px 9px;
  border-radius: 999px;
}

.projects-subtext {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 1px;
}

/* Search & Filter Controls */
.projects-controls-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-wrap svg {
  position: absolute;
  left: 11px;
  color: #64748b;
  pointer-events: none;
}

.search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 7px 12px 7px 32px;
  font-size: 0.82rem;
  color: #f1f5f9;
  outline: none;
  width: 170px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.search-input:focus {
  border-color: #8b5cf6;
  background: rgba(255, 255, 255, 0.08);
  width: 210px;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.search-input::placeholder {
  color: #64748b;
}

.filter-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  gap: 2px;
}

.filter-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.filter-tab:hover {
  color: #f1f5f9;
}

.filter-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn-refresh-projects {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-refresh-projects:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-refresh-projects svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-refresh-projects.rotating svg {
  transform: rotate(360deg);
}

/* Button View All Projects (Recent Projects Section Header) */
.btn-view-all-projects {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-view-all-projects:hover {
  background: rgba(139, 92, 246, 0.24);
  border-color: rgba(167, 139, 250, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.btn-view-all-projects svg {
  transition: transform 0.2s ease;
}

.btn-view-all-projects:hover svg {
  transform: translateX(2px);
}

/* Button Upload Video Baru (All Projects Page) */
.btn-action-upload-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-action-upload-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.5);
  filter: brightness(1.1);
}

/* All Projects Page Section */
.all-projects-section {
  padding: 28px 32px 48px;
}

.all-projects-header {
  margin-bottom: 20px;
}

.projects-controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Projects Responsive Grid (5 Columns on Desktop) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .recent-projects-section {
    padding: 20px;
  }
}

@media (max-width: 680px) {
  .dashboard-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    top: 8px;
  }
  .toolbar-left {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }
  .toolbar-divider {
    display: none;
  }
  .btn-dashboard-reset {
    justify-content: center;
    width: 100%;
  }
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .search-box-wrap {
    width: 100%;
  }
  .search-input {
    width: 100% !important;
  }
  .filter-tabs {
    width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 440px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Project Card */
.project-card {
  background: #121420;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  outline: none;
}

.project-card:hover, .project-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(167, 139, 250, 0.25);
}

.project-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090a12;
  overflow: hidden;
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb-img {
  transform: scale(1.06);
}

.project-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background: linear-gradient(135deg, #131422 0%, #0d0e17 100%);
}

.project-card:hover .project-thumb-placeholder {
  transform: scale(1.06);
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 18, 0.4) 0%,
    transparent 40%,
    rgba(10, 11, 18, 0.85) 100%
  );
  pointer-events: none;
}

/* Play Icon Indicator Overlay on Hover */
.project-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: scale(0.85);
  pointer-events: none;
}

.project-card:hover .project-play-overlay {
  opacity: 1;
  transform: scale(1);
}

.play-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.5);
}

.play-circle svg {
  margin-left: 2px;
}

.project-top-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.project-viral-badge {
  background: linear-gradient(135deg, #ff3366, #ff6b3d);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2.5px 7px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(255, 51, 102, 0.45);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.project-delete-btn {
  pointer-events: auto;
  background: rgba(15, 17, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-delete-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.45);
}

.project-clips-pill {
  position: absolute;
  bottom: 7px;
  right: 8px;
  background: rgba(10, 11, 18, 0.88);
  backdrop-filter: blur(6px);
  color: #f1f5f9;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.project-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: space-between;
}

.project-title {
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.35;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.3em;
  transition: color 0.15s ease;
}

.project-card:hover .project-title {
  color: #c084fc;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.genre-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: capitalize;
}

.genre-podcast {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.genre-motivasi {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.genre-auto {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-date-text {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 500;
}

.no-results-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #64748b;
}

.projects-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-3);
}

.empty-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
}

.empty-sub {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-3);
  padding: 12px 0;
}

/* ── Animations & Utilities ─────────────────────────────── */
.hidden { display: none !important; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Modal Dislike Feedback Card ───────────────────────────── */
.modal-dislike-card {
  background: rgba(18, 22, 31, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 10px 0 16px 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 63, 94, 0.12);
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dislike-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dislike-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.dislike-icon {
  font-size: 1.1rem;
}

.dislike-close-btn {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.dislike-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dislike-guide {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 10px;
}

.dislike-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.dislike-tag-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-2);
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dislike-tag-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.dislike-tag-chip.active {
  background: rgba(244, 63, 94, 0.22);
  border-color: #f43f5e;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.dislike-comment-wrap {
  margin-bottom: 12px;
}

.dislike-comment-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.82rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}

.dislike-comment-input:focus {
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.15);
}

.dislike-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-cancel-dislike {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-cancel-dislike:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-submit-dislike {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.35);
  transition: all 0.2s;
}

.btn-submit-dislike:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.45);
}

/* ── AI Training Dataset Section (Separate Dashboard) ──────── */
.ai-training-section {
  margin-top: 24px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 22px 24px;
  border-radius: 16px;
}

.training-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.training-heading-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.training-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.training-main-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.training-phase-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.training-subtext {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 2px;
}

.training-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-export-training {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-export-training:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-refresh-training {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-refresh-training:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: rotate(45deg);
}

.training-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .training-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.training-stat-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, border-color 0.2s;
}

.training-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
}

.stat-top-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
}

.stat-target-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.stat-pill-green {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.stat-pill-red {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

.stat-hero-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.stat-hero-number.text-green {
  color: #4ade80;
}

.stat-hero-number.text-rose {
  color: #fb7185;
}

.stat-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}

.stat-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-helper-note {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* Bottom Row: Top Dislike Tags Breakdown */
.training-breakdown-row {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px 16px;
}

.breakdown-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.breakdown-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
}

.breakdown-sub {
  font-size: 0.72rem;
  color: var(--text-3);
}

.breakdown-tags-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-empty-text {
  font-size: 0.78rem;
  color: var(--text-3);
  font-style: italic;
  padding: 8px 0;
}

.breakdown-tag-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
}

.breakdown-tag-label {
  width: 210px;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breakdown-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f43f5e 0%, #fb923c 100%);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.breakdown-tag-count {
  width: 32px;
  text-align: right;
  font-weight: 700;
  color: #fb7185;
}

/* =======================================================
   In-App Background Auto-Update Banner
   ======================================================= */
.inapp-update-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  max-width: 440px;
  min-width: 340px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: inherit;
  animation: slideUpFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.inapp-update-banner.banner-ready {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(16, 185, 129, 0.25);
}

.inapp-update-banner.banner-error {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(239, 68, 68, 0.25);
}

.update-banner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.update-banner-icon.spinning {
  display: inline-block;
  animation: spin 2s linear infinite;
}

.update-banner-content {
  flex: 1;
  min-width: 0;
}

.update-banner-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.update-banner-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.35;
}

.update-progress-track {
  margin-top: 8px;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.update-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 999px;
  transition: width 0.15s ease;
}

.update-progress-info {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c4b5fd;
  font-variant-numeric: tabular-nums;
}

.update-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-update-action {
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-update-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-update-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.btn-update-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-update-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.btn-update-dismiss {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.btn-update-dismiss:hover {
  color: #f8fafc;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   In-App Clip Editor & Re-Renderer Modal Styles
   ========================================================= */
.modal-btn-edit {
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
  font-weight: 600;
}
.modal-btn-edit:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(165, 180, 252, 0.65);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}

.modal-btn-facetrack {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
  font-weight: 600;
}
.modal-btn-facetrack:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(52, 211, 153, 0.65);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.edit-modal-dialog {
  max-width: 960px;
  width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9);
}

.edit-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edit-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edit-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #818cf8;
}

.edit-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.01em;
}

.edit-modal-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

.edit-modal-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  padding: 22px 24px;
  overflow-y: auto;
  max-height: calc(92vh - 80px);
}

@media (max-width: 860px) {
  .edit-modal-body {
    grid-template-columns: 1fr;
  }
}

/* Kolom Kiri: Video Preview */
.edit-col-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-video-timecode {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: monospace;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  pointer-events: none;
}

.edit-preview-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.edit-preview-hint svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #94a3b8;
}

/* Kolom Kanan: Editor Form */
.edit-col-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edit-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
}

.edit-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.edit-transcript-tip {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: #38bdf8;
}

.edit-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-input-label {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 600;
}

.edit-text-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.edit-text-input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

/* Micro-stepper Grid */
.edit-times-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .edit-times-grid {
    grid-template-columns: 1fr;
  }
}

.edit-time-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.edit-time-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edit-time-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
}

.edit-time-formatted {
  font-size: 0.76rem;
  font-family: monospace;
  font-weight: 700;
  color: #38bdf8;
}

.edit-input-with-steppers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edit-num-input {
  width: 100%;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: monospace;
}

.edit-num-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.edit-stepper-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.btn-step {
  padding: 5px 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-step:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-step:active {
  transform: translateY(0);
}

/* Duration Summary & Delta */
.edit-duration-summary {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
}

.edit-dur-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.stat-lbl {
  color: #94a3b8;
}

.highlight-dur {
  color: #f8fafc;
  font-family: monospace;
  font-size: 0.88rem;
}

.edit-delta-pill {
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: monospace;
}

.delta-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.delta-positive {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.delta-negative {
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
}

/* Transcript Context Window */
.edit-transcript-scroll {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.edit-transcript-scroll::-webkit-scrollbar {
  width: 5px;
}
.edit-transcript-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.edit-transcript-empty {
  font-size: 0.76rem;
  color: #64748b;
  text-align: center;
  padding: 16px 0;
}

.edit-transcript-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  transition: background 0.12s ease;
  cursor: pointer;
}

.edit-transcript-line:hover {
  background: rgba(255, 255, 255, 0.05);
}

.line-time-tag {
  font-family: monospace;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.line-in-range {
  background: rgba(34, 197, 94, 0.08);
  border-left: 2px solid #22c55e;
  color: #f1f5f9;
}
.line-in-range .line-time-tag {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.line-out-range {
  opacity: 0.55;
  color: #94a3b8;
}
.line-out-range .line-time-tag {
  background: rgba(255, 255, 255, 0.06);
  color: #64748b;
}

/* Status Alert */
.edit-status-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.edit-status-alert.info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.edit-status-alert.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.edit-status-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Footer Actions */
.edit-actions-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.btn-edit-secondary {
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-edit-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.btn-edit-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: 1px solid rgba(165, 180, 252, 0.4);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-edit-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
  transform: translateY(-1px);
}

.btn-edit-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   YouTube URL Import Section
   ========================================================= */

/* Source Toggle */
.source-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.toggle-btn:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}

.toggle-btn.active {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* YouTube Section */
.youtube-section {
  margin-top: 16px;
  animation: slideDown 0.3s ease;
}

.youtube-url-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.youtube-url-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: border-color 0.2s;
}

.youtube-url-input-wrap:focus-within {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.youtube-url-icon {
  color: var(--text-3);
  flex-shrink: 0;
}

.youtube-brand-icon {
  color: #ff0033;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255, 0, 51, 0.25));
}

.youtube-url-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 0;
  color: var(--text-1);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.youtube-url-input::placeholder {
  color: var(--text-3);
}

.btn-analisis {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--grad-btn);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-analisis:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-analisis:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* YouTube Preview Card */
.youtube-preview {
  animation: slideDown 0.3s ease;
}

.preview-card {
  display: flex;
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.preview-thumbnail-wrap {
  position: relative;
  width: 200px;
  min-width: 200px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.preview-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-duration-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: monospace;
  padding: 2px 6px;
  border-radius: 4px;
}

.preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-channel {
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
}

.preview-meta {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: auto;
}

/* Cancel YouTube Button */
.btn-cancel-youtube {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-cancel-youtube:hover {
  border-color: var(--pink-400);
  color: var(--pink-400);
  background: rgba(244, 114, 182, 0.08);
}

/* Responsive */
@media (max-width: 600px) {
  .source-toggle {
    flex-direction: column;
  }
  
  .youtube-url-row {
    flex-direction: column;
  }
  
  .preview-card {
    flex-direction: column;
  }
  
  .preview-thumbnail-wrap {
    width: 100%;
    min-width: unset;
  }
}


/* =========================================================
   NEW OBSIDIAN OLED DARK - LOADING & PIPELINE UI
   ========================================================= */

.loading-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.loading-status-group {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pulse-spinner-box {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-ring-outer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #6366f1;
  border-right-color: #38bdf8;
  animation: spinOuter 1.2s linear infinite;
}
.pulse-ring-inner {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-bottom-color: #a855f7;
  animation: spinInner 2s linear infinite reverse;
}
.pulse-ring-core {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.85);
  animation: pulseCore 1.5s ease-in-out infinite;
}
@keyframes spinOuter { to { transform: rotate(360deg); } }
@keyframes spinInner { to { transform: rotate(-360deg); } }
@keyframes pulseCore {
  0%, 100% { transform: scale(0.9); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}

.loading-title-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loading-step-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #818cf8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.loading-stage-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.loading-stage-desc {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.45;
}

.loading-pct-box {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.loading-pct-num {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: monospace, inherit;
}
.loading-eta-text {
  font-size: 0.74rem;
  color: #71717a;
  font-weight: 500;
}

.progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.progress-track {
  height: 9px;
  width: 100%;
  background: #18181e;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 50%, #06b6d4 100%);
  border-radius: 6px;
  transition: width 0.35s ease;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.6);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: barShimmer 1.8s infinite;
}
@keyframes barShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress-labels-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #71717a;
  font-family: monospace;
}

/* Pipeline Stepper */
.pipeline-stepper-card {
  background: #09090c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stepper-header {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a1aa;
}
.stepper-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.step-row-item.done {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}
.step-row-item.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.38);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}
.step-left-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-icon-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-row-item.done .step-icon-badge {
  background: #059669;
  color: #ffffff;
}
.step-row-item.active .step-icon-badge {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
  animation: pulseCore 1.2s infinite;
}
.step-row-item.pending .step-icon-badge {
  background: #18181b;
  color: #71717a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.step-name-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f1f5f9;
}
.step-row-item.pending .step-name-text {
  color: #71717a;
}
.step-time-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.step-row-item.done .step-time-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.step-row-item.active .step-time-badge {
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.4);
}
.step-row-item.pending .step-time-badge {
  background: transparent;
  color: #52525b;
}

/* Modifikasi tombol Like modal */
.modal-btn-accept { --btn-accent: #22c55e; }
.modal-btn-accept:hover { background: rgba(34, 197, 94, 0.15); }
.modal-btn-accept.active { background: rgba(34, 197, 94, 0.25); border-color: #22c55e; color: #22c55e; }
.modal-btn-reject { --btn-accent: #ef4444; }
.modal-btn-reject:hover { background: rgba(239, 68, 68, 0.15); }
.modal-btn-reject.active { background: rgba(239, 68, 68, 0.25); border-color: #ef4444; color: #ef4444; }
