/* ============================================================================
   DB Backup Manager — Design System
   DFP Pastel Palette, Light Glassmorphism, Charcoal Background
   ============================================================================ */

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

:root {
  /* Colors — DFP Pastel palette */
  --bg-primary: #f5f9f7;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(224, 235, 230, 0.45);
  --bg-glass-hover: rgba(224, 235, 230, 0.65);
  --bg-mint: #e0ebe6;
  --border: rgba(0, 111, 67, 0.10);
  --border-active: rgba(0, 111, 67, 0.30);

  --text-primary: #1a2e25;
  --text-secondary: #3d5a4c;
  --text-muted: #7a9a8a;

  /* DFP Brand colors */
  --accent: #006f43;
  --accent-hover: #005835;
  --accent-glow: rgba(0, 111, 67, 0.12);
  --accent-light: #d4ece2;
  --accent-yellow: #fdd400;
  --accent-yellow-hover: #e6c200;
  --accent-yellow-glow: rgba(253, 212, 0, 0.15);

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.10);
  --warning: #e6a817;
  --warning-bg: rgba(253, 212, 0, 0.12);
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --info: #0e7a52;

  /* Provider colors */
  --mssql: #dc2626;
  --postgres: #336791;
  --mysql: #0891b2;
  --sqlite: #0284c7;

  /* Spacing */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 60, 35, 0.04), 0 1px 2px rgba(0, 60, 35, 0.03);
  --shadow-md: 0 4px 16px rgba(0, 60, 35, 0.06), 0 1px 4px rgba(0, 60, 35, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 60, 35, 0.08), 0 4px 12px rgba(0, 60, 35, 0.04);
  --shadow-glow: 0 0 24px rgba(0, 111, 67, 0.10);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   Reset & Base
   ============================================================================ */

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    url('/img/charcoal-bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(224, 235, 230, 0.85) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 0%, rgba(253, 212, 0, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 111, 67, 0.04) 0%, transparent 50%),
    rgba(245, 249, 247, 0.88);
  z-index: 0;
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 1;
}

/* ============================================================================
   Layout
   ============================================================================ */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-md) var(--gap-xl);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0, 60, 35, 0.04);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.header-brand .logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-brand .subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.header-status {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-dot.offline {
  background: var(--danger);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.main {
  flex: 1;
  padding: var(--gap-xl);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================================================
   Tab Navigation — Pill Style with DFP Yellow active
   ============================================================================ */

.tabs {
  display: flex;
  gap: var(--gap-xs);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-pill);
  padding: 5px;
  margin-bottom: var(--gap-xl);
  overflow-x: auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.tab {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-normal);
  border: none;
  background: transparent;
}

.tab:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.tab.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 111, 67, 0.25);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   Cards
   ============================================================================ */

.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--gap-lg);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  color: var(--text-primary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap-lg);
}

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border-top: 3px solid var(--accent-yellow);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: var(--gap-xs);
}

/* ============================================================================
   Tables
   ============================================================================ */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-mint);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-primary);
}

tr:hover td {
  background: rgba(0, 111, 67, 0.03);
}

tr:last-child td {
  border-bottom: none;
}

/* ============================================================================
   Badges & Status
   ============================================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  color: #96700d;
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-info {
  background: rgba(0, 111, 67, 0.08);
  color: var(--accent);
}

.badge-mssql {
  background: rgba(220, 38, 38, 0.08);
  color: var(--mssql);
}

.badge-postgres {
  background: rgba(51, 103, 145, 0.10);
  color: var(--postgres);
}

.badge-mysql {
  background: rgba(8, 145, 178, 0.10);
  color: var(--mysql);
}

.badge-sqlite {
  background: rgba(2, 132, 199, 0.10);
  color: var(--sqlite);
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #10b981);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 111, 67, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(0, 111, 67, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-mint);
  border-color: var(--border-active);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
  background: rgba(220, 38, 38, 0.15);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

.btn-icon {
  padding: 6px;
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  justify-content: center;
}

/* ============================================================================
   Forms
   ============================================================================ */

.form-group {
  margin-bottom: var(--gap-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--gap-xs);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 9px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select.form-control {
  cursor: pointer;
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
  display: inline-block;
}

.toggle input {
  display: none;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-mint);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition-normal);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: all var(--transition-normal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle input:checked+.toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle input:checked+.toggle-slider::before {
  background: white;
  transform: translateX(20px);
}

.slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-mint);
  outline: none;
  margin-top: var(--gap-sm);
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 111, 67, 0.3);
}

/* ============================================================================
   Modal
   ============================================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 46, 37, 0.4);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--gap-xl);
  width: 95%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--gap-lg);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--gap-sm);
  margin-top: var(--gap-lg);
  padding-top: var(--gap-md);
  border-top: 1px solid var(--border);
}

/* ============================================================================
   Compliance
   ============================================================================ */

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-md);
}

.compliance-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
  box-shadow: var(--shadow-sm);
}

.compliance-item.ok {
  border-left: 3px solid var(--success);
}

.compliance-item.warn {
  border-left: 3px solid var(--warning);
}

.compliance-item.fail {
  border-left: 3px solid var(--danger);
}

.compliance-status {
  font-size: 1.5rem;
  margin-bottom: var(--gap-sm);
}

/* ============================================================================
   Wizard
   ============================================================================ */

.wizard-steps {
  display: flex;
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
  overflow-x: auto;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.wizard-step.active {
  background: var(--accent-light);
  border-color: var(--border-active);
  color: var(--accent);
}

.wizard-step.done {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.wizard-step .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}

.wizard-step.active .step-num {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.wizard-step.done .step-num {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

/* ============================================================================
   Empty State
   ============================================================================ */

.empty-state {
  text-align: center;
  padding: var(--gap-xl) * 2;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: var(--gap-md);
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: var(--gap-sm);
}

/* ============================================================================
   Code/Mono
   ============================================================================ */

code,
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
}

.code-block {
  background: #f0f5f2;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--gap-md);
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

/* ============================================================================
   Loading
   ============================================================================ */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 249, 247, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  z-index: 10;
}

/* ============================================================================
   Toast
   ============================================================================ */

.toast-container {
  position: fixed;
  bottom: var(--gap-lg);
  right: var(--gap-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--gap-md) var(--gap-lg);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--danger);
}

.toast.warning {
  border-left: 3px solid var(--warning);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================================================
   Login Overlay
   ============================================================================ */

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg-primary);
  background-image:
    url('/img/charcoal-bg.png'),
    radial-gradient(ellipse at 30% 40%, rgba(224, 235, 230, 0.7) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(253, 212, 0, 0.08) 0%, transparent 50%);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  font-size: 4rem;
  margin-bottom: var(--gap-md);
}

.login-title {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--gap-sm);
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--gap-xl);
}

.login-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 1rem;
  text-decoration: none;
}

.login-footer {
  margin-top: var(--gap-xl);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================================================
   User Header
   ============================================================================ */

.header-user {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.user-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================================
   RBAC Badges
   ============================================================================ */

.badge-admin {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.badge-operator {
  background: rgba(253, 212, 0, 0.12);
  color: #96700d;
}

.badge-reader {
  background: rgba(0, 111, 67, 0.08);
  color: var(--accent);
}

.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-tag.admin {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.role-tag.operator {
  background: rgba(253, 212, 0, 0.12);
  color: #96700d;
}

.role-tag.reader {
  background: rgba(0, 111, 67, 0.08);
  color: var(--accent);
}

/* ============================================================================
   Database Checkbox Picker
   ============================================================================ */

.db-checkbox-list {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--gap-sm);
  max-height: 240px;
  overflow-y: auto;
  margin-top: var(--gap-xs);
}

.db-checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition-fast);
}

.db-checkbox-item:hover {
  background: var(--bg-mint);
}

.db-checkbox-item input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.db-checkbox-all {
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--gap-xs);
  padding-bottom: 8px;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 768px) {
  .main {
    padding: var(--gap-md);
  }

  .header {
    padding: var(--gap-sm) var(--gap-md);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-wrap: nowrap;
  }

  .header-user .user-info {
    display: none;
  }

  .login-card {
    padding: 32px 24px;
  }
}