/* ============================================================
   ERP System — Main Stylesheet
   نظام تصميم متكامل للـ ERP
   ============================================================ */

:root {
  --bg: #07111f;
  --bg2: #0d1f35;
  --panel: rgba(15,23,42,0.95);
  --panel2: rgba(20,30,55,0.85);
  --border: rgba(148,163,184,0.18);
  --border2: rgba(148,163,184,0.10);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted2: #64748b;
  --gold: #facc15;
  --gold2: #fde68a;
  --blue: #38bdf8;
  --green: #22c55e;
  --red: #fb7185;
  --orange: #f97316;
  --purple: #a78bfa;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 16px 50px rgba(0,0,0,.4);
  --shadow-sm: 0 4px 16px rgba(0,0,0,.25);
  --nav-h: 64px;
  --top-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  width: 100%; min-height: 100%;
  background: radial-gradient(ellipse at top, #122347 0%, var(--bg) 50%, #030712 100%);
  color: var(--text); font-family: var(--font); font-size: 15px;
  overflow-x: hidden; direction: rtl;
}
button, input, select, textarea { font: inherit; direction: rtl; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }

/* ======== SPLASH ======== */
.splash-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100dvh; gap: 16px;
}
.splash-logo {
  width: 80px; height: 80px; border-radius: 24px;
  background: linear-gradient(135deg, var(--gold), #f97316);
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 900;
  color: #111; box-shadow: 0 0 40px rgba(250,204,21,.3);
}
.splash-text { color: var(--muted); font-size: 0.9rem; }
.splash-bar { width: 160px; height: 4px; background: var(--border); border-radius: 9px; overflow: hidden; }
.splash-bar-fill { height: 100%; background: var(--gold); border-radius: 9px; animation: splashLoad 1.5s ease infinite; }
@keyframes splashLoad { 0%{width:0%} 50%{width:70%} 100%{width:100%} }

/* ======== APP SHELL ======== */
.app-topbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 100; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 16px; background: rgba(7,17,31,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-logo {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #f97316);
  display: grid; place-items: center; font-weight: 900; color: #111; font-size: 0.85rem;
}
.topbar-name { font-weight: 800; font-size: 1.05rem; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-user { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; }
.topbar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 1rem;
}
.btn-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--panel2); color: var(--text);
  font-size: 1.1rem; transition: background .15s;
}
.btn-icon:hover { background: rgba(148,163,184,.15); }

/* Desktop Sidebar */
.app-sidebar {
  position: fixed; top: var(--top-h); bottom: 0; right: 0; width: 220px; z-index: 50;
  background: rgba(7,17,31,.96); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 14px 10px; overflow-y: auto;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 13px;
  color: var(--muted); font-weight: 600; font-size: 0.9rem; cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
}
.nav-item:hover { background: rgba(148,163,184,.08); color: var(--text); }
.nav-item.active {
  background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.35);
  color: var(--blue);
}
.nav-icon { font-size: 1.2rem; width: 24px; text-align: center; flex-shrink: 0; }
.sidebar-bottom { margin-top: auto; }
.sidebar-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* Main Content */
.app-main {
  margin-top: var(--top-h); padding-bottom: calc(var(--nav-h) + 16px);
}
@media (min-width: 860px) {
  .app-main { margin-right: 220px; padding-bottom: 24px; }
  .app-bottomnav { display: none !important; }
  .app-sidebar { display: flex !important; }
}
@media (max-width: 859px) {
  .app-sidebar { display: none; }
}
.page-content { padding: 16px; max-width: 1100px; margin: 0 auto; }

/* Bottom Navigation (Mobile) */
.app-bottomnav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 100; height: var(--nav-h);
  display: flex; background: rgba(7,17,31,.96); border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.bottomnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted2); font-size: 0.68rem; font-weight: 600;
  cursor: pointer; transition: color .15s; border-top: 2px solid transparent;
}
.bottomnav-item .bnav-icon { font-size: 1.35rem; }
.bottomnav-item.active { color: var(--blue); border-top-color: var(--blue); }

/* ======== COMPONENTS ======== */

/* Cards */
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.card-title { font-size: 1rem; font-weight: 800; margin-bottom: 12px; }

/* Stat Cards */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 6px;
}
.stat-icon { font-size: 1.6rem; }
.stat-value { font-size: 1.5rem; font-weight: 900; }
.stat-label { color: var(--muted); font-size: 0.8rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; border: 1px solid transparent; transition: all .15s; min-height: 42px;
}
.btn-primary { background: linear-gradient(135deg, #0ea5e9, #2563eb); color: white; border-color: rgba(56,189,248,.4); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-success { background: linear-gradient(135deg, #16a34a, #15803d); color: white; }
.btn-success:hover { opacity: 0.9; }
.btn-warning { background: rgba(250,204,21,.15); color: var(--gold); border-color: rgba(250,204,21,.3); }
.btn-danger { background: rgba(251,113,133,.15); color: var(--red); border-color: rgba(251,113,133,.3); }
.btn-ghost { background: var(--panel2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(148,163,184,.15); }
.btn-sm { padding: 7px 12px; font-size: 0.8rem; min-height: 34px; border-radius: 10px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Form Fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  background: rgba(2,6,23,.7); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 0.9rem; outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(56,189,248,.6); box-shadow: 0 0 0 3px rgba(56,189,248,.1);
}
.field select option { background: #0d1f35; }
.field textarea { min-height: 80px; resize: vertical; }
.form-grid { display: grid; gap: 12px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 580px) {
  .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
}
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; min-width: 500px; }
.table th { padding: 11px 12px; text-align: right; background: rgba(15,23,42,.9); color: var(--muted); font-size: 0.8rem; font-weight: 700; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border2); font-size: 0.88rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(148,163,184,.04); }
.table-actions { display: flex; gap: 6px; align-items: center; }

/* Badges / Status */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px;
  border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.badge-green { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.badge-blue { background: rgba(56,189,248,.15); color: var(--blue); border: 1px solid rgba(56,189,248,.25); }
.badge-yellow { background: rgba(250,204,21,.15); color: var(--gold); border: 1px solid rgba(250,204,21,.25); }
.badge-red { background: rgba(251,113,133,.15); color: var(--red); border: 1px solid rgba(251,113,133,.25); }
.badge-orange { background: rgba(249,115,22,.15); color: var(--orange); border: 1px solid rgba(249,115,22,.25); }
.badge-purple { background: rgba(167,139,250,.15); color: var(--purple); border: 1px solid rgba(167,139,250,.25); }
.badge-gray { background: rgba(148,163,184,.12); color: var(--muted); border: 1px solid var(--border); }

/* Page Header */
.page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.page-title { font-size: 1.3rem; font-weight: 900; }
.page-sub { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* Search Bar */
.search-bar {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.search-input-wrap { position: relative; flex: 1; min-width: 200px; }
.search-input-wrap input { width: 100%; padding-right: 36px; }
.search-icon { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted2); pointer-events: none; }

/* Tabs */
.tabs { display: flex; gap: 4px; background: rgba(2,6,23,.6); border-radius: 13px; padding: 5px; margin-bottom: 16px; overflow-x: auto; }
.tab-btn {
  flex-shrink: 0; padding: 8px 14px; border-radius: 10px; font-size: 0.85rem; font-weight: 700;
  color: var(--muted); cursor: pointer; border: none; background: none; white-space: nowrap;
  transition: all .15s;
}
.tab-btn.active { background: var(--panel); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; padding: 16px;
  overflow-y: auto;
}
.modal {
  background: #0d1f35; border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 580px; padding: 20px; box-shadow: var(--shadow);
  margin: auto; flex-shrink: 0;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-title { font-size: 1.05rem; font-weight: 800; }
.modal-close {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  color: var(--muted); background: var(--panel2); border: 1px solid var(--border); font-size: 1.1rem;
}
.modal-close:hover { color: var(--red); }

/* Toast */
#toast-container { position: fixed; bottom: calc(var(--nav-h) + 16px); inset-inline: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (min-width: 860px) { #toast-container { bottom: 24px; } }
.toast {
  background: rgba(15,23,42,.98); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); max-width: 400px; width: 100%;
  animation: toastIn .2s ease; pointer-events: all;
}
.toast.success { border-color: rgba(34,197,94,.4); }
.toast.error { border-color: rgba(251,113,133,.4); }
.toast.info { border-color: rgba(56,189,248,.4); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Empty State */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-icon { font-size: 3rem; margin-bottom: 10px; }
.empty-text { font-size: 0.9rem; }

/* ======== LOGIN PAGE ======== */
.login-page {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.login-box {
  width: 100%; max-width: 420px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow);
}
.login-header { text-align: center; margin-bottom: 24px; }
.login-logo {
  width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--gold), #f97316);
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; color: #111;
  box-shadow: 0 12px 30px rgba(250,204,21,.25);
}
.login-title { font-size: 1.4rem; font-weight: 900; }
.login-sub { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-error { background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.3); border-radius: 10px; padding: 10px 12px; color: var(--red); font-size: 0.85rem; }
.login-footer { margin-top: 12px; text-align: center; color: var(--muted2); font-size: 0.78rem; }

/* ======== DASHBOARD ======== */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
@media (min-width: 500px) { .quick-actions { grid-template-columns: repeat(3, 1fr); } }
.quick-btn {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; transition: all .15s;
}
.quick-btn:hover { border-color: var(--blue); background: rgba(56,189,248,.08); }
.quick-btn .q-icon { font-size: 1.6rem; }
.quick-btn .q-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-align: center; }

/* ======== SALES ======== */
.invoice-total { font-size: 1.3rem; font-weight: 900; color: var(--gold); }
.items-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.item-row {
  display: grid; grid-template-columns: 1fr 70px 90px 32px; gap: 6px; align-items: center;
}
.item-row input { padding: 8px 10px; font-size: 0.85rem; }
.item-total-display { font-size: 0.85rem; color: var(--gold); font-weight: 700; padding: 8px 4px; }

/* ======== TRAINING ======== */
.trainee-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; cursor: pointer; transition: all .15s;
}
.trainee-card:hover { border-color: var(--blue); }
.trainee-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.trainee-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.trainee-name { font-weight: 800; font-size: 0.95rem; }
.trainee-meta { color: var(--muted); font-size: 0.8rem; }
.trainee-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .trainee-grid { grid-template-columns: repeat(3, 1fr); } }

/* Task Checklist */
.task-list { display: flex; flex-direction: column; gap: 6px; }
.task-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: rgba(15,23,42,.6); border-radius: 10px; border: 1px solid var(--border2);
  cursor: pointer; transition: all .15s;
}
.task-item:hover { border-color: var(--border); }
.task-check {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border);
  display: grid; place-items: center; flex-shrink: 0; font-size: 0.8rem;
  transition: all .15s;
}
.task-item.done .task-check { background: var(--green); border-color: var(--green); color: white; }
.task-item.done .task-label { color: var(--muted); text-decoration: line-through; }
.task-label { font-size: 0.88rem; flex: 1; }

/* Trainee Profile */
.profile-header {
  background: linear-gradient(135deg, rgba(56,189,248,.15), rgba(250,204,21,.08));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 900;
}
.profile-name { font-size: 1.2rem; font-weight: 900; }
.profile-badge { margin-top: 4px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 600px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-item { background: var(--panel2); border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 10px; }
.info-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 3px; }
.info-value { font-size: 0.9rem; font-weight: 700; }
.progress-bar-wrap { background: rgba(148,163,184,.12); border-radius: 99px; height: 8px; overflow: hidden; margin-top: 6px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 99px; transition: width .4s ease; }

/* ======== MAINTENANCE ======== */
.order-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; cursor: pointer; transition: all .15s;
}
.order-card:hover { border-color: var(--blue); }
.order-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.order-num { font-weight: 800; font-size: 0.95rem; }
.order-device { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.order-footer { display: flex; align-items: center; justify-content: space-between; }
.order-customer { font-size: 0.82rem; color: var(--muted); }
.order-cost { font-weight: 800; color: var(--gold); font-size: 0.95rem; }
.orders-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .orders-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .orders-grid { grid-template-columns: repeat(3, 1fr); } }

/* Status Timeline */
.status-timeline { display: flex; flex-direction: column; gap: 8px; }
.status-step {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; font-size: 0.85rem;
}
.status-step.done { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2); }
.status-step.current { background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.3); }
.status-step.pending { background: rgba(148,163,184,.06); border: 1px solid var(--border2); color: var(--muted); }
.step-icon { font-size: 1.1rem; }
.step-info { flex: 1; }
.step-label { font-weight: 700; }
.step-date { font-size: 0.75rem; color: var(--muted); }

/* Parts Row */
.parts-list { display: flex; flex-direction: column; gap: 6px; }
.part-row { display: grid; grid-template-columns: 1fr 60px 80px 32px; gap: 6px; align-items: center; }
.part-row input { padding: 7px 9px; font-size: 0.83rem; }

/* ======== SETTINGS ======== */
.settings-section { margin-bottom: 20px; }
.settings-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.user-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  background: var(--panel2); border: 1px solid var(--border2); border-radius: 12px;
}
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--panel); border: 1px solid var(--border); display: grid; place-items: center; }
.user-info { flex: 1; }
.user-name { font-weight: 700; font-size: 0.9rem; }
.user-role { font-size: 0.78rem; color: var(--muted); }

/* ======== PRINT ======== */
@media print {
  .app-topbar, .app-sidebar, .app-bottomnav, .btn, .modal-overlay { display: none !important; }
  .app-main { margin: 0 !important; padding: 0 !important; }
  body { background: white !important; color: black !important; }
  .print-doc { padding: 20px; }
  .print-header { text-align: center; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 10px; }
  .print-table { width: 100%; border-collapse: collapse; }
  .print-table th, .print-table td { border: 1px solid #ccc; padding: 8px; text-align: right; font-size: 12px; }
  .print-table th { background: #f5f5f5; }
  .print-total { font-size: 16px; font-weight: 900; margin-top: 10px; text-align: left; }
}

/* ======== UTILITIES ======== */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.78rem; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-center { text-align: center; }
.note-box {
  border: 1px dashed rgba(250,204,21,.35); background: rgba(250,204,21,.07);
  border-radius: 12px; padding: 10px 12px; color: var(--gold2); font-size: 0.85rem; line-height: 1.6;
}
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px; color: var(--muted); }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
