/* ═══════════════════════════════════════════════════════════════
   Panel VIP — Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-0: #060610;
  --bg-1: #0a0a18;
  --bg-2: #0e0e22;
  --bg-3: #13132c;
  --bg-4: #191940;

  --border-1: rgba(255,255,255,0.035);
  --border-2: rgba(255,255,255,0.07);
  --border-3: rgba(255,255,255,0.11);

  --text-1: #eceef4;
  --text-2: #8891a5;
  --text-3: #505868;

  --accent: #e94560;
  --accent-hover: #f2607a;
  --accent-dim: rgba(233,69,96,0.10);
  --accent-glow: rgba(233,69,96,0.20);

  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --blue: #3b82f6;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.25);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.15);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;

  --sidebar-w: 256px;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0; padding: 0;
}
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
}
a { color: var(--accent-hover); text-decoration: none; }
a:hover { color: #ff8fa3; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-sm);
}
.card-sm { padding: 18px; border-radius: var(--radius-md); }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.835rem;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.005em;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.06s; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(233,69,96,0.3), var(--shadow-xs);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(233,69,96,0.3), var(--shadow-sm); }
.btn-secondary {
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { background: var(--bg-4); color: var(--text-1); border-color: var(--border-3); }
.btn-danger { background: var(--red); color: #fff; box-shadow: 0 1px 3px rgba(239,68,68,0.25); }
.btn-danger:hover { background: #dc2626; box-shadow: 0 4px 16px rgba(239,68,68,0.25); }
.btn-client { background: #1e40af; color: #fff; box-shadow: 0 1px 3px rgba(30,64,175,0.3); }
.btn-client:hover { background: #2563eb; box-shadow: 0 4px 16px rgba(37,99,235,0.25); }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; border-radius: 7px; }
.btn-xs { padding: 4px 10px; font-size: 0.72rem; border-radius: 6px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 7px; font-size: 1rem; }
.btn-group { display: flex; gap: 4px; flex-wrap: wrap; }

/* ─── Forms ───────────────────────────────────────────────── */
.input, .select {
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-1);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.input-client:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.input::placeholder { color: var(--text-3); }
.input-group { display: flex; gap: 8px; align-items: center; }
.input-group .input { flex: 1; }
label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.form-group { margin-bottom: 18px; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
}
.checkbox-row:hover { background: rgba(255,255,255,0.03); }
.checkbox-row input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px; height: 15px;
  cursor: pointer;
}

/* ─── Tables ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.835rem;
}
thead { background: rgba(255,255,255,0.02); }
th {
  text-align: left;
  padding: 11px 16px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  white-space: nowrap;
  border-bottom: 1px solid var(--border-2);
}
td {
  padding: 10px 16px;
  border-top: 1px solid var(--border-1);
  vertical-align: middle;
}
tbody tr { transition: background 0.1s; }
tbody tr:hover { background: rgba(255,255,255,0.015); }
.td-actions { display: flex; gap: 5px; }
.td-mono { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2); }

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.badge-active  { background: rgba(34,197,94,0.1);  color: #4ade80; }
.badge-expired { background: rgba(239,68,68,0.1);  color: #f87171; }
.badge-warning { background: rgba(234,179,8,0.1);  color: #facc15; }
.badge-info    { background: rgba(59,130,246,0.1); color: #60a5fa; }
.badge-success { background: rgba(34,197,94,0.1);  color: #4ade80; }

.btn-warning { background: #f59e0b; color: #1a1a1a !important; }
.btn-warning:hover { background: #d97706; color: #1a1a1a !important; }

/* ─── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-1);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.01em; }
.modal-close {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-3);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.12s;
}
.modal-close:hover { color: var(--text-1); background: var(--bg-3); border-color: var(--border-3); }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-1);
}
.modal-accounts-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  padding: 4px;
  background: var(--bg-1);
}

/* ─── Toast ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  min-width: 240px;
  animation: toast-in 0.35s var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
}
.toast-success { background: #16a34a; }
.toast-error   { background: #dc2626; }
.toast-info    { background: #2563eb; }
.toast.fade-out { animation: toast-out 0.25s ease forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateY(8px); } }

/* ─── Spinner ─────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner-lg { width: 32px; height: 32px; border-width: 2.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  flex-direction: column;
  gap: 14px;
  color: var(--text-3);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════
   Login Pages
   ═══════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,69,96,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%);
  top: 60%; left: 35%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.login-card {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-xl);
}
.login-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-1);
  letter-spacing: -0.025em;
}
.login-card .subtitle {
  color: var(--text-3);
  font-size: 0.835rem;
  margin-bottom: 28px;
  line-height: 1.5;
}
.login-card .error-msg {
  background: rgba(239,68,68,0.08);
  color: #f87171;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 16px;
  border: 1px solid rgba(239,68,68,0.12);
}
.login-card .success-msg {
  background: rgba(34,197,94,0.08);
  color: #4ade80;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 16px;
  border: 1px solid rgba(34,197,94,0.12);
}

/* ═══════════════════════════════════════════════════════════════
   App Shell — Sidebar
   ═══════════════════════════════════════════════════════════════ */
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-1);
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s var(--ease);
}
.sidebar-header {
  padding: 22px 18px;
  border-bottom: 1px solid var(--border-1);
}
.sidebar-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-header h2::before {
  content: '';
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, #a8325a 100%);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(233,69,96,0.25);
}
.sidebar-header .sid-sub {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 4px;
  padding-left: 38px;
  font-weight: 500;
}
.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-2);
  transition: all 0.12s;
  font-weight: 500;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.03); color: var(--text-1); }
.nav-item.active {
  color: var(--text-1);
  background: rgba(255,255,255,0.04);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.nav-item .nav-icon { font-size: 1.05rem; width: 22px; text-align: center; opacity: 0.7; }
.nav-item.active .nav-icon { opacity: 1; }
.sidebar-footer {
  padding: 10px;
  border-top: 1px solid var(--border-1);
}

/* ═══════════════════════════════════════════════════════════════
   Main Content
   ═══════════════════════════════════════════════════════════════ */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 32px;
  min-width: 0;
  position: relative;
}
.main::before {
  content: '';
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: var(--sidebar-w);
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.015) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: 0;
}
.main > * { position: relative; z-index: 1; }
.main-header { margin-bottom: 28px; }
.main-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.025em;
}
.main-header p {
  color: var(--text-3);
  font-size: 0.835rem;
  margin-top: 3px;
}

/* Hamburger */
.hamburger {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 200;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  color: var(--text-1);
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; }
  .main { margin-left: 0; padding: 60px 16px 16px; }
  .main::before { left: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Stats
   ═══════════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon.si-pink   { background: rgba(233,69,96,0.1);  color: var(--accent); }
.stat-icon.si-green  { background: rgba(34,197,94,0.1);  color: #4ade80; }
.stat-icon.si-red    { background: rgba(239,68,68,0.1);  color: #f87171; }
.stat-icon.si-blue   { background: rgba(59,130,246,0.1); color: #60a5fa; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-info { flex: 1; min-width: 0; }
.stat-number {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
  font-weight: 600;
}
.stat-green  { color: #4ade80; }
.stat-red    { color: #f87171; }
.stat-yellow { color: #facc15; }
.stat-blue   { color: #60a5fa; }
.stat-pink   { color: var(--accent); }
.sc-pink, .sc-green, .sc-red, .sc-blue { /* handled by icon coloring */ }

/* ═══════════════════════════════════════════════════════════════
   Toolbar
   ═══════════════════════════════════════════════════════════════ */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar .input { max-width: 260px; }
.toolbar-right {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
@media (max-width: 640px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .input { max-width: 100%; }
  .toolbar-right { margin-left: 0; }
}

/* ─── Section transitions ─────────────────────────────────── */
.section { display: none; }
.section.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   Client Portal
   ═══════════════════════════════════════════════════════════════ */
.client-app {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
}
.client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.client-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

/* ─── Password reveal ────────────────────────────────────── */
.pw-cell { display: flex; align-items: center; gap: 6px; }
.pw-masked { font-family: monospace; letter-spacing: 2px; }

/* ─── Code inline ─────────────────────────────────────────── */
code {
  background: var(--bg-3);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.8em;
  font-family: var(--font-mono);
}

/* ─── Filter active ───────────────────────────────────────── */
.filter-active {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Utilities
   ═══════════════════════════════════════════════════════════════ */
.hidden    { display: none !important; }
.flex      { display: flex; }
.flex-col  { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm    { gap: 8px; }
.gap-md    { gap: 16px; }
.mt-sm     { margin-top: 8px; }
.mt-md     { margin-top: 16px; }
.mb-md     { margin-bottom: 16px; }
.text-sm   { font-size: 0.835rem; }
.text-muted { color: var(--text-3); }
.text-center { text-align: center; }
.truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full    { width: 100%; }

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ─── Selection ───────────────────────────────────────────── */
::selection { background: rgba(233,69,96,0.2); }

/* ═══════════════════════════════════════════════════════════════
   Mobile — Global
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
  .stat-card { padding: 14px 12px; gap: 10px; }
  .stat-number { font-size: 1.25rem; }
  .stat-icon { width: 36px; height: 36px; border-radius: 8px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .stat-label { font-size: 0.63rem; }
  .main-header { margin-bottom: 16px; }
  .main-header h1 { font-size: 1.15rem; }
  .main-header p { font-size: 0.78rem; }
  th { padding: 8px 10px; font-size: 0.62rem; }
  td { padding: 8px 10px; font-size: 0.78rem; }
  table { font-size: 0.78rem; }
  .btn-xs { padding: 6px 10px; font-size: 0.7rem; min-height: 32px; }
  .btn-sm { padding: 7px 12px; font-size: 0.75rem; }
  .td-actions { gap: 4px; flex-wrap: wrap; }
  .modal { padding: 18px; width: 94%; }
  .modal-header { margin-bottom: 14px; }
  .modal-header h3 { font-size: 0.95rem; }
  .modal-footer { margin-top: 14px; padding-top: 12px; }
  .toast-container { right: 8px; left: 8px; bottom: 12px; }
  .toast { min-width: auto; font-size: 0.78rem; padding: 10px 14px; }
  .form-group { margin-bottom: 12px; }
  .input, .select { padding: 9px 12px; font-size: 0.82rem; }
  .card { padding: 16px; }
  .card-sm { padding: 12px; }
  .client-app { padding: 16px 12px; }
  .client-header { margin-bottom: 16px; }
  .client-header h1 { font-size: 1.1rem; }
  .loading-wrap { padding: 32px 16px; }
}
