:root {
  --bg:        #0c0c0e;
  --bg2:       #141416;
  --bg3:       #1c1c1f;
  --border:    #2a2a2d;
  --border2:   #363639;
  --teal:      #00e5a0;
  --teal-dim:  rgba(0,229,160,.12);
  --teal-glow: rgba(0,229,160,.25);
  --white:     #f0f0f0;
  --muted:     #6b6b72;
  --muted2:    #9999a2;
  --r:         12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: #f5f6f8;
  color: #111;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.page { max-width: 1200px; margin: 0 auto; padding: 48px 24px 72px; }

.sec-row   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sec-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.sec-link  { font-size: .78rem; font-weight: 600; color: var(--teal); display: flex; align-items: center; gap: 3px; }
.sec-link:hover { opacity: .8; }

/* ═══════════════════════════════════════════
   UTILITY CLASSES — shared across all pages
   ═══════════════════════════════════════════ */

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: 10px;
  font-family: inherit; font-size: .86rem; font-weight: 700;
  cursor: pointer; border: none; text-decoration: none;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  white-space: nowrap; flex-shrink: 0;
}
.btn:active { transform: scale(.98); }
.btn .material-icons-round { font-size: 1rem !important; }
.btn-full { width: 100%; }
.btn-sm   { padding: 7px 14px; font-size: .8rem; }

.btn-primary { background: #6366f1; color: #fff; }
.btn-primary:hover { opacity: .88; }

.btn-teal { background: var(--teal); color: #0c0c0e; }
.btn-teal:hover { opacity: .88; }

.btn-ghost { background: none; border: 1.5px solid #e2e5ef; color: #64748b; }
.btn-ghost:hover { background: #f8f9fc; border-color: #b0b8cc; color: #1e293b; }

.btn-danger { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; }

/* ── Flash / alert messages ── */
.flash {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .82rem; font-weight: 500; line-height: 1.5;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 18px;
}
.flash .material-icons-round { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.flash ul { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.flash-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.flash-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.flash-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}
.badge-green  { background: #dcfce7; color: #16a34a; }
.badge-muted  { background: #f1f5f9; color: #64748b; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-red    { background: #fef2f2; color: #ef4444; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-green .badge-dot  { background: #22c55e; }
.badge-muted .badge-dot  { background: #94a3b8; }

/* ── Icon action button (edit/delete/pause etc.) ── */
.action-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #94a3b8; text-decoration: none; background: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .13s, color .13s, border-color .13s;
}
.action-btn .material-icons-round { font-size: 1.1rem !important; }
.action-btn:hover         { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.action-btn.pause:hover   { background: #fef9c3; color: #a16207; border-color: #fde68a; }
.action-btn.play:hover    { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.action-btn.danger:hover  { background: #fef2f2; color: #ef4444; border-color: #fecaca; }

/* ── Card ── */
.card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 700; color: #1e2139;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.card-title .material-icons-round { font-size: 1.1rem; color: #6366f1; }
