/* ════════════════════════════════════════════════════════════════
   GOLS Hire2Exit  ·  Design System
   Theme: 80% White · 20% Red · Futuristic Enterprise
   Fonts: DM Sans (body) · Space Grotesk (display) → via Google
════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --red:        #C8102E;
  --red-light:  #E8253E;
  --red-dim:    rgba(200,16,46,.12);
  --red-glow:   rgba(200,16,46,.28);

  --ink:        #0D1117;
  --ink2:       #1A2030;
  --white:      #FFFFFF;
  --surface:    #F8F9FB;
  --border:     #E8EAED;
  --muted:      #8B919E;
  --text:       #2D3340;

  --success:    #16A34A;
  --warning:    #D97706;
  --info:       #2563EB;

  --r:          10px;
  --r-lg:       16px;
  --r-xl:       22px;
  --shadow:     0 2px 12px rgba(0,0,0,.07);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.10);
  --shadow-red: 0 6px 24px var(--red-glow);

  --sidebar-w:  240px;
  --topbar-h:   60px;

  --ease:   cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; color: var(--text); background: var(--surface); }
a { text-decoration: none; color: inherit; }
img, svg { display: block; }
input, button, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
::selection { background: var(--red-dim); color: var(--red); }

/* ── Typography ─────────────────────────────────────────────── */
.font-display { font-family: 'Space Grotesk', sans-serif; }
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; color: var(--ink); }

/* ── Layout – App Shell ─────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  z-index: 200;
  transition: transform .25s var(--ease);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 18px;
  border-bottom: 1px solid var(--border);
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--red);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 14px;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-red);
}
.logo-img { width: auto; height: 38px; max-width: 100%; object-fit: contain; display: block; }
.logo-text { line-height: 1.2; }
.logo-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); }
.logo-sub  { font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
}
.nav-group { margin-bottom: 4px; }
.nav-label {
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  padding: 10px 10px 5px;
  display: block;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s var(--ease);
  position: relative;
}
.nav-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active {
  background: var(--red-dim);
  color: var(--red);
  font-weight: 600;
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--red);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  padding: 12px 10px 16px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
}
.sidebar-user:hover { background: var(--surface); }
.user-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.user-role { font-size: 11px; color: var(--muted); }

/* ── Main Content ───────────────────────────────────────────── */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0; z-index: 100;
}
.topbar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; background: none; border: 1.5px solid var(--border);
  border-radius: 7px; padding: 5px 8px; cursor: pointer; color: var(--muted);
  transition: all .15s;
}
.menu-btn:hover { border-color: var(--red); color: var(--red); }
.menu-btn svg { width: 18px; height: 18px; }

/* ── Page ───────────────────────────────────────────────────── */
.page { padding: 24px 28px; }
.page-head {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px; gap: 12px;
}
.page-head h1 { font-size: 22px; margin-bottom: 3px; }
.page-head p  { font-size: 13px; color: var(--muted); }
.page-head-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

/* ── Stats Grid ─────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 22px; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 19px; height: 19px; }
.stat-icon.red   { background: var(--red-dim); color: var(--red); }
.stat-icon.green { background: #DCFCE7; color: var(--success); }
.stat-icon.blue  { background: #DBEAFE; color: var(--info); }
.stat-icon.amber { background: #FEF3C7; color: var(--warning); }
.stat-val   { font-family: 'Space Grotesk',sans-serif; font-size: 28px; font-weight: 800; color: var(--ink); line-height:1; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ── Section Card ───────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-family: 'Space Grotesk',sans-serif; font-size: 14px; font-weight: 600; color: var(--ink); }
.card-body  { padding: 20px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  font-family: 'Space Grotesk',sans-serif; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all .18s var(--ease);
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--red); color: white; border-color: var(--red); }
.btn-primary:hover { background: var(--red-light); transform: translateY(-1px); box-shadow: var(--shadow-red); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: white; }
.btn-ghost   { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── AI Generate button (red theme, animated icon, glow/pulse) ───────────── */
.btn-ai-generate {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  color: #fff;
  border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 50%, #FF5A6E 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 14px var(--red-glow);
  cursor: pointer;
  overflow: hidden;
  animation: aiGradient 6s ease infinite, aiPulse 2.6s ease-in-out infinite;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-ai-generate::before {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: none;
}
.btn-ai-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--red-glow), 0 0 0 3px var(--red-dim);
  animation-play-state: paused, paused;
}
.btn-ai-generate:hover::before { animation: aiShine 1s ease forwards; }
.btn-ai-generate:active { transform: translateY(0); }
.btn-ai-generate:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ai-generate .ai-spark { display: inline-flex; }
.btn-ai-generate .ai-spark svg {
  width: 16px; height: 16px;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.7));
  animation: aiSpin 4s linear infinite;
}
.btn-ai-generate .ai-spark svg .ai-spark-sm {
  transform-origin: 18.5px 16px;
  animation: aiTwinkle 1.8s ease-in-out infinite;
}

@keyframes aiGradient { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes aiPulse {
  0%,100% { box-shadow: 0 4px 14px var(--red-glow); }
  50%     { box-shadow: 0 4px 22px var(--red-glow), 0 0 0 4px var(--red-dim); }
}
@keyframes aiShine { 0%{left:-120%} 100%{left:140%} }
@keyframes aiSpin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes aiTwinkle { 0%,100%{opacity:.3;transform:scale(.6)} 50%{opacity:1;transform:scale(1.1)} }
@media (prefers-reduced-motion: reduce) {
  .btn-ai-generate, .btn-ai-generate .ai-spark svg, .btn-ai-generate .ai-spark svg .ai-spark-sm { animation: none; }
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  font-family: 'Space Grotesk',sans-serif;
  letter-spacing: .03em;
}
.badge-success   { background: #DCFCE7; color: #166534; }
.badge-warning   { background: #FEF3C7; color: #92400E; }
.badge-danger    { background: #FEE2E6; color: var(--red); }
.badge-info      { background: #DBEAFE; color: #1E40AF; }
.badge-neutral   { background: var(--surface); color: var(--muted); }
.badge-active    { background: #DCFCE7; color: #166534; }
.badge-draft     { background: var(--surface); color: var(--muted); }
.badge-queued    { background: #DBEAFE; color: #1E40AF; }
.badge-processing{ background: #FEF3C7; color: #92400E; }
.badge-completed { background: #DCFCE7; color: #166534; }
.badge-failed    { background: #FEE2E6; color: var(--red); }
.badge-ready     { background: #DCFCE7; color: #166534; }

/* ── Table ──────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  padding: 9px 14px; text-align: left;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface); }

/* ── Search Bar ─────────────────────────────────────────────── */
.search-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 180px; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.search-input {
  width: 100%; padding: 8px 12px 8px 34px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13px; background: var(--white); outline: none;
  transition: border-color .15s;
}
.search-input:focus { border-color: var(--red); }
.filter-select {
  padding: 8px 28px 8px 11px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 13px; color: var(--text);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B919E' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none; outline: none; cursor: pointer;
  transition: border-color .15s;
}
.filter-select:focus { border-color: var(--red); }

/* ── Form Controls ──────────────────────────────────────────── */
.form-row { display: grid; gap: 14px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text); font-family: 'Space Grotesk',sans-serif; }
.form-label .req { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13.5px; color: var(--text);
  background: var(--white); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}
.form-textarea { resize: vertical; min-height: 90px; }

/* ── Upload Zone ────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--r-lg);
  padding: 36px 20px; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--surface);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--red); background: var(--red-dim); }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-zone svg { width: 36px; height: 36px; color: var(--muted); margin: 0 auto 10px; }
.upload-zone h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.upload-zone p  { font-size: 12px; color: var(--muted); }

/* ── Progress Bar ───────────────────────────────────────────── */
.progress-wrap { width: 100%; height: 5px; background: var(--border); border-radius: 10px; overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 10px;
  background: linear-gradient(90deg, var(--red), #FF6B6B);
  transition: width .4s var(--ease);
  position: relative; overflow: hidden;
}
.progress-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shimmer 1.5s infinite;
}

/* ── Modal ──────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(13,17,23,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 16px;
  opacity: 0; visibility: hidden;
  transition: all .2s;
}
.overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  transform: scale(.95) translateY(8px);
  transition: transform .2s var(--spring);
}
.overlay.open .modal { transform: scale(1) translateY(0); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-family: 'Space Grotesk',sans-serif; font-size: 16px; font-weight: 700; color: var(--ink); }
.modal-close {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 7px; background: var(--surface); border: none; cursor: pointer;
  color: var(--muted); transition: all .15s;
}
.modal-close:hover { background: var(--red-dim); color: var(--red); }
.modal-close svg { width: 15px; height: 15px; }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--border);
}

/* ── Toast ──────────────────────────────────────────────────── */
#toasts {
  position: fixed; top: 16px; right: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-radius: 10px;
  background: var(--ink); color: white;
  font-size: 13px; font-weight: 500; min-width: 240px;
  box-shadow: var(--shadow-lg); pointer-events: all;
  animation: slideIn .25s var(--spring) both;
}
.toast.success { background: #166534; }
.toast.error   { background: var(--red); }
.toast.warning { background: var(--warning); }
.toast svg     { width: 16px; height: 16px; flex-shrink: 0; }
.toast.out     { animation: slideOut .2s var(--ease) both; }

/* ── Pipeline Steps ─────────────────────────────────────────── */
.pipe { display: flex; flex-direction: column; gap: 8px; }
.pipe-step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .15s;
}
.pipe-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pipe-dot.ok    { background: var(--success); box-shadow: 0 0 6px rgba(22,163,74,.4); }
.pipe-dot.pulse { background: var(--info); animation: pulse 1.2s infinite; }
.pipe-dot.idle  { background: var(--border); }
.pipe-dot.err   { background: var(--red); }
.pipe-label { font-size: 13px; font-weight: 500; color: var(--text); }
.pipe-time  { margin-left: auto; font-size: 11px; color: var(--muted); }

/* ── Skeleton ───────────────────────────────────────────────── */
.skel {
  background: linear-gradient(90deg, var(--border) 25%, #e5e7eb 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: 6px;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; flex-wrap: wrap; gap: 8px; }
.page-info  { font-size: 12px; color: var(--muted); }
.page-btns  { display: flex; gap: 3px; }
.page-btn {
  min-width: 32px; height: 32px; padding: 0 8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px; border: 1.5px solid var(--border);
  background: var(--white); font-size: 13px; font-weight: 600;
  font-family: 'Space Grotesk',sans-serif;
  color: var(--text); cursor: pointer; transition: all .15s;
}
.page-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.page-btn.cur { background: var(--red); color: white; border-color: var(--red); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Empty state ────────────────────────────────────────────── */
.empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 56px 20px; text-align: center;
}
.empty svg   { width: 52px; height: 52px; color: var(--border); margin-bottom: 14px; }
.empty h3    { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty p     { font-size: 13px; color: var(--muted); max-width: 260px; }
.empty .btn  { margin-top: 16px; }

/* ── Grid layouts ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 16px; }

/* ── Video Card ─────────────────────────────────────────────── */
.vid-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all .2s; cursor: pointer;
}
.vid-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--red); }
.vid-thumb {
  height: 148px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vid-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
  display: flex; align-items: flex-end; padding: 10px;
  opacity: 0; transition: opacity .2s;
}
.vid-card:hover .vid-thumb-overlay { opacity: 1; }
.vid-info { padding: 12px 14px; }
.vid-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes shimmer  { from{background-position:-200% 0} to{background-position:200% 0} }
@keyframes slideIn  { from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:none} }
@keyframes slideOut { to{opacity:0;transform:translateX(16px)} }
@keyframes pulse    { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes spin     { to{transform:rotate(360deg)} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }

.spinner { display:inline-block; width:16px; height:16px; border:2px solid rgba(255,255,255,.3); border-top-color:white; border-radius:50%; animation:spin .6s linear infinite; }
.fade-up { animation: fadeUp .4s var(--ease) both; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-btn { display: flex; }
  .page { padding: 16px; }
  .topbar { padding: 0 16px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}
