@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #09090f;
  --surface: #0f0f1a;
  --surface-2: #141425;
  --surface-3: #1a1a30;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.12);
  --accent: #7c3aed;
  --accent-2: #6d28d9;
  --accent-glow: rgba(124,58,237,0.25);
  --success: #22c55e;
  --success-bg: rgba(34,197,94,0.1);
  --success-border: rgba(34,197,94,0.2);
  --danger: #ef4444;
  --danger-bg: rgba(239,68,68,0.1);
  --danger-border: rgba(239,68,68,0.2);
  --warning: #f59e0b;
  --warning-bg: rgba(245,158,11,0.1);
  --warning-border: rgba(245,158,11,0.2);
  --info: #3b82f6;
  --info-bg: rgba(59,130,246,0.1);
  --info-border: rgba(59,130,246,0.2);
  --text: #f0f0ff;
  --text-muted: #6060a0;
  --text-faint: #2a2a4a;
  --radius: 12px;
  --radius-lg: 16px;
  --sidebar-w: 220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sidebar-logo img { height: 26px; width: auto; }

.sidebar-logo .logo-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav { padding: 10px; flex: 1; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
  border: 1px solid transparent;
}

.sidebar-link i { width: 16px; text-align: center; font-size: 13px; }
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link.active {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
  border-color: rgba(124,58,237,0.25);
}

.sidebar-user {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 10.5px; color: var(--text-muted); text-transform: capitalize; }

.sidebar-logout {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 13px;
  padding: 5px;
  border-radius: 6px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.sidebar-logout:hover { color: var(--danger); }

.main-wrapper { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; }
.content { padding: 32px 36px; }

.page-header { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.flash-messages { padding: 0 36px; margin-top: 16px; }

.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500; margin-bottom: 8px;
  animation: fadeUp 0.25s ease;
}
.flash-success { background: var(--success-bg); border: 1px solid var(--success-border); color: #34d399; }
.flash-error   { background: var(--danger-bg); border: 1px solid var(--danger-border); color: #f87171; }
.flash-warning { background: var(--warning-bg); border: 1px solid var(--warning-border); color: #fbbf24; }
.flash-info    { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); color: #a78bfa; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border-top: 3px solid var(--border);
}
.stat-card.amber { border-top-color: var(--warning); }
.stat-card.red   { border-top-color: var(--danger); }
.stat-card.green { border-top-color: var(--success); }
.stat-card.violet { border-top-color: var(--accent); }

.stat-value { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; line-height: 1; }
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

.filter-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }

.filter-tab {
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  display: inline-block;
}
.filter-tab:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-hover); }
.filter-tab.active { background: rgba(124,58,237,0.18); color: #a78bfa; border-color: rgba(124,58,237,0.35); }

.video-list { display: flex; flex-direction: column; gap: 10px; }

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  text-decoration: none;
  transition: all 0.15s;
}
.video-card:hover { background: var(--surface-2); border-color: var(--border-hover); transform: translateX(2px); }

.video-thumb {
  width: 96px; height: 60px;
  border-radius: 8px;
  background: var(--surface-3);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 20px;
}
.video-thumb video, .video-thumb img { width: 100%; height: 100%; object-fit: cover; }

.video-info { flex: 1; min-width: 0; }

.video-name {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 5px;
}

.video-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.video-meta-item {
  font-size: 11.5px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.video-meta-item i { font-size: 10px; }

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

.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 99px; letter-spacing: 0.02em;
}
.status.review  { background: rgba(245,158,11,0.1); color: #fbbf24; box-shadow: 0 0 0 1px rgba(245,158,11,0.25); }
.status.revision { background: rgba(239,68,68,0.1); color: #f87171; box-shadow: 0 0 0 1px rgba(239,68,68,0.25); }
.status.approved { background: rgba(16,185,129,0.1); color: #34d399; box-shadow: 0 0 0 1px rgba(16,185,129,0.25); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; padding: 9px 18px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.15s;
  box-shadow: 0 4px 16px var(--accent-glow); font-family: inherit;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--text-muted);
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--border); cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-hover); }

.btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--danger-bg); color: var(--danger);
  padding: 7px 12px; border-radius: var(--radius);
  font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--danger-border); cursor: pointer; transition: all 0.15s;
  text-decoration: none; font-family: inherit;
}
.btn-danger:hover { background: rgba(239,68,68,0.18); }

.review-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,58,237,0.1); color: #a78bfa;
  padding: 7px 13px; border-radius: var(--radius);
  font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(124,58,237,0.2); cursor: pointer; transition: all 0.15s;
  text-decoration: none; font-family: inherit;
}
.review-btn:hover { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.35); }

.upload-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; padding: 9px 18px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.15s;
  box-shadow: 0 4px 16px var(--accent-glow); font-family: inherit;
}
.upload-btn:hover { filter: brightness(1.1); }

.upload-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px; margin-top: 16px;
}
.upload-info h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

.upload-drop-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--surface-2);
}
.upload-drop-area:hover, .upload-drop-area.drag-over { border-color: rgba(124,58,237,0.5); background: rgba(124,58,237,0.05); }
.upload-drop-area i { font-size: 30px; color: var(--text-faint); margin-bottom: 10px; display: block; }
.upload-drop-area p { font-size: 13.5px; color: var(--text-muted); }

.progress-container { background: var(--surface-3); border-radius: 99px; height: 6px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #a78bfa); border-radius: 99px; transition: width 0.3s; }

.empty-library { text-align: center; padding: 80px 20px; }
.empty-library i { font-size: 44px; color: var(--text-faint); margin-bottom: 14px; display: block; }
.empty-library h3 { font-size: 15px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.empty-library p { font-size: 13px; color: var(--text-faint); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.panel-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.panel-title { font-size: 13.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.panel-body { padding: 16px 20px; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }

.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 13.5px;
  font-family: inherit; padding: 10px 14px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
.form-textarea { resize: vertical; min-height: 80px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; padding: 10px 14px; border-bottom: 1px solid var(--border); }
td { padding: 13px 14px; font-size: 13.5px; color: var(--text); border-bottom: 1px solid rgba(255,255,255,0.04); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.top-bar { display: none; }
.video-grid { display: flex; flex-direction: column; gap: 10px; }

.delete-video-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; color: var(--text-faint);
  padding: 6px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.delete-video-btn:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  max-width: 420px; width: 100%;
  animation: fadeUp 0.2s ease;
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.modal-text { font-size: 13.5px; color: var(--text-muted); margin-bottom: 22px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.badge-violet { background: rgba(124,58,237,0.15); color: #a78bfa; box-shadow: 0 0 0 1px rgba(124,58,237,0.25); }
.badge-green  { background: var(--success-bg); color: #34d399; box-shadow: 0 0 0 1px var(--success-border); }
.badge-red    { background: var(--danger-bg); color: #f87171; box-shadow: 0 0 0 1px var(--danger-border); }
.badge-amber  { background: var(--warning-bg); color: #fbbf24; box-shadow: 0 0 0 1px var(--warning-border); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

.animate-fade-up { animation: fadeUp 0.3s ease both; }

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main-wrapper { margin-left: 0; }
  .content { padding: 20px 16px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* LOGIN PAGE */
.login-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 24px; position: relative; overflow: hidden;
}
.login-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12; pointer-events: none; }
.login-blob-1 { width: 500px; height: 500px; background: var(--accent); top: -150px; left: -100px; }
.login-blob-2 { width: 380px; height: 380px; background: #2563eb; bottom: -80px; right: -80px; }

.login-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; width: 100%; max-width: 380px;
  position: relative; z-index: 1;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: fadeUp 0.4s ease;
}
.login-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.login-logo img { height: 30px; }
.login-logo .login-logo-text { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; background: linear-gradient(135deg, #a78bfa, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.login-title { font-size: 20px; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 4px; }
.login-subtitle { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 28px; }

.login-input-group { position: relative; margin-bottom: 12px; }
.login-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 13px; pointer-events: none; }
.login-input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 13.5px;
  font-family: inherit; padding: 11px 14px 11px 38px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input:focus { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.login-input::placeholder { color: var(--text-faint); }

.login-btn {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; font-size: 14px; font-weight: 700; font-family: inherit;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: all 0.15s; box-shadow: 0 4px 20px var(--accent-glow);
  margin-top: 6px;
}
.login-btn:hover { filter: brightness(1.1); box-shadow: 0 6px 24px var(--accent-glow); }
.login-btn:active { transform: scale(0.99); }

.login-error {
  display: flex; align-items: center; gap: 8px;
  background: var(--danger-bg); border: 1px solid var(--danger-border);
  color: #f87171; font-size: 13px; padding: 10px 14px;
  border-radius: var(--radius); margin-bottom: 14px;
}

/* ── THUMBNAIL ── */
.video-thumb { position: relative; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-skeleton {
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 20px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.thumb-status-badge {
  position: absolute; top: 5px; left: 5px;
  font-size: 9px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; letter-spacing: 0.03em;
  backdrop-filter: blur(6px);
}
.thumb-status-badge.review  { background: rgba(245,158,11,0.85); color: #fff; }
.thumb-status-badge.revision { background: rgba(239,68,68,0.85); color: #fff; }
.thumb-status-badge.approved { background: rgba(34,197,94,0.85); color: #fff; }

.thumb-duration {
  position: absolute; bottom: 4px; right: 5px;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 10px; font-weight: 600; padding: 1px 5px;
  border-radius: 4px; backdrop-filter: blur(4px);
}

.thumb-hover-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.15s;
  pointer-events: none;
}
.video-card:hover .thumb-hover-canvas { opacity: 1; }

/* ── CARD ANIMATIONS & HOVER ── */
.video-card {
  opacity: 0;
  animation: cardIn 0.35s ease forwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.video-card:hover {
  background: var(--surface-2);
  border-color: rgba(124,58,237,0.25);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(124,58,237,0.12);
}

/* ── EMPTY STATE SVG ── */
.empty-library { text-align: center; padding: 72px 20px; }
.empty-library svg { margin: 0 auto 18px; display: block; opacity: 0.35; }
.empty-library h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-library p  { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.empty-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa; padding: 9px 18px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.empty-cta:hover { background: rgba(124,58,237,0.2); }

/* ── TOOLTIP ── */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: #1a1a30; border: 1px solid rgba(255,255,255,0.1); color: #f0f0ff;
  font-size: 11px; font-weight: 500; padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.15s;
  z-index: 999;
}
[data-tip]:hover::after { opacity: 1; }

/* ── CHECKLIST DE APROVAÇÃO ── */
.approval-checklist {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}
.checklist-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.checklist-title { font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px; }
.checklist-progress-text { font-size: 11px; color: var(--text-muted); }
.checklist-progress-bar { height: 3px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.checklist-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #22c55e); border-radius: 99px; transition: width 0.3s ease; }
.checklist-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 4px; border-radius: 6px; cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}
.checklist-item:hover { background: rgba(255,255,255,0.04); }
.checklist-item input[type=checkbox] { display: none; }
.checklist-box {
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 5px; border: 1.5px solid rgba(255,255,255,0.2);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.checklist-item.checked .checklist-box {
  background: #22c55e; border-color: #22c55e;
}
.checklist-box i { font-size: 10px; color: #fff; opacity: 0; transition: opacity 0.15s; }
.checklist-item.checked .checklist-box i { opacity: 1; }
.checklist-icon { font-size: 12px; color: var(--text-muted); width: 16px; text-align: center; }
.checklist-item.checked .checklist-icon { color: #22c55e; }
.checklist-label { font-size: 12.5px; color: var(--text-muted); flex: 1; }
.checklist-item.checked .checklist-label { color: var(--text); text-decoration: line-through; }

/* ── ANNOTATION CANVAS ── */
.annotation-overlay {
  position: absolute; inset: 0; z-index: 50;
  cursor: crosshair; display: none;
}
.annotation-overlay.active { display: block; }

.annotation-toolbar {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(9,9,15,0.92); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 8px 12px;
  display: flex; align-items: center; gap: 6px;
  z-index: 60; backdrop-filter: blur(8px);
  flex-wrap: wrap; max-width: 90%;
}
.ann-tool-btn {
  width: 30px; height: 30px; border-radius: 7px;
  background: transparent; border: 1px solid transparent;
  color: var(--text-muted); font-size: 12px;
  cursor: pointer; transition: all 0.12s;
  display: flex; align-items: center; justify-content: center;
}
.ann-tool-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.ann-tool-btn.active { background: rgba(124,58,237,0.25); border-color: rgba(124,58,237,0.5); color: #c4b5fd; }
.ann-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.1); margin: 0 2px; }
.ann-color-btn {
  width: 18px; height: 18px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color 0.12s; flex-shrink: 0;
}
.ann-color-btn.active { border-color: #fff; }
.ann-thickness {
  width: 56px; height: 4px; cursor: pointer; accent-color: #7c3aed;
  background: transparent; -webkit-appearance: none;
}
.ann-action-btn {
  padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.12s;
}
.ann-confirm { background: #22c55e; color: #fff; }
.ann-confirm:hover { background: #16a34a; }
.ann-cancel  { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.ann-cancel:hover  { background: rgba(239,68,68,0.25); }

.ann-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 7px; font-size: 12px; font-weight: 600;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.25);
  color: #c4b5fd; cursor: pointer; transition: all 0.12s;
}
.ann-btn:hover { background: rgba(124,58,237,0.22); }

.ann-thumb {
  width: 48px; height: 30px; border-radius: 4px;
  object-fit: cover; border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; flex-shrink: 0;
}
.ann-overlay-display {
  position: absolute; inset: 0; z-index: 20;
  pointer-events: none; display: none;
}
.ann-overlay-display img { width: 100%; height: 100%; object-fit: fill; }
.ann-overlay-display.visible { display: block; }

/* ── ANNOTATION TIMELINE MARKER ── */
.ann-timeline-marker {
  position: absolute; top: -6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #a78bfa; border: 2px solid #7c3aed;
  transform: translateX(-50%); cursor: pointer;
  transition: transform 0.1s;
}
.ann-timeline-marker:hover { transform: translateX(-50%) scale(1.4); }

/* ── PAGE TRANSITION ── */
.content { animation: fadeUp 0.2s ease both; }

