/* ========== PANELS & CARDS ========== */
.panel, .card {
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card {
  padding: var(--space-6);
}

.card-heading {
  font-size: var(--text-lg);
  font-weight: 600;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: var(--space-4);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-tight);
  white-space: nowrap;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  user-select: none;
  text-decoration: none;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-2);
  }
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  filter: brightness(1.08);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(78, 161, 255, 0.25);
}

.btn-primary:active {
  filter: brightness(0.95);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: transparent;
}

.btn-danger {
  background: var(--danger-subtle);
  border-color: transparent;
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
  border-color: transparent;
}

.btn-success {
  background: var(--success-subtle);
  border-color: transparent;
  color: var(--success);
}

.btn-success:hover {
  background: var(--success);
  color: white;
  border-color: transparent;
}

.btn-icon {
  padding: var(--space-2);
  min-width: 36px;
  min-height: 36px;
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  min-height: 28px;
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-md);
  min-height: 44px;
}

.btn-full {
  width: 100%;
}

/* ========== INPUTS ========== */
.input, textarea, select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  outline: none;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-subtle);
}

.input::placeholder, textarea::placeholder {
  color: var(--text-tertiary);
}

.input-error {
  border-color: var(--danger);
}

.input-error:focus {
  box-shadow: 0 0 0 3px var(--danger-subtle);
}

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-group {
  margin-bottom: var(--space-4);
}

/* ========== TOGGLE SWITCH ========== */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.toggle input {
  display: none;
}

.toggle-slider {
  width: 40px;
  height: 22px;
  background: var(--bg);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-base), border-color var(--transition-base);
  flex-shrink: 0;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--text-tertiary);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform var(--transition-spring), background var(--transition-base);
}

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

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

.toggle:hover .toggle-slider {
  border-color: var(--border-hover);
}

/* ========== BADGE ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-accent {
  background: var(--accent-gradient);
  color: white;
}

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

.badge-warning {
  background: var(--warning);
  color: white;
}

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

.badge-subtle {
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

/* ========== CHAT ========== */
.chat {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  scroll-behavior: smooth;
}

.chat-inner {
  max-width: 800px;
  margin: 0 auto;
}

.msg {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-4);
  animation: fadeInUp 200ms var(--ease-out) both;
}

.msg.user {
  flex-direction: row-reverse;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.msg.user .avatar {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: transparent;
}

.msg.assistant .avatar {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}

.bubble {
  max-width: 72ch;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  line-height: var(--leading-relaxed);
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: var(--shadow-sm);
}

.msg.user .bubble {
  background: var(--chat-user);
  border: 1px solid var(--chat-user-border);
  border-bottom-right-radius: var(--radius-sm);
}

.msg.assistant .bubble {
  background: var(--chat-assistant);
  border: 1px solid var(--chat-assistant-border);
  border-bottom-left-radius: var(--radius-sm);
}

.msg.system .bubble {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-style: dashed;
}

.timestamp {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* Chat bubbles: code styles */
.bubble p { margin-bottom: var(--space-2); }
.bubble p:last-child { margin: 0; }
.bubble ul, .bubble ol { margin: var(--space-2) 0; padding-left: var(--space-5); }
.bubble li { margin-bottom: var(--space-1); }

.bubble pre {
  background: var(--bg-inset);
  border: 1px solid var(--border-primary);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-3) 0;
  position: relative;
}

.bubble code {
  background: var(--bg-inset);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-primary);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.bubble pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: var(--text-sm);
}

.copy-btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: opacity var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  opacity: 0;
}

.bubble pre:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.copy-btn.copied {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

/* Source markers */
.response-segment {
  margin: var(--space-2) 0;
  padding: var(--space-3) var(--space-4);
  padding-left: 44px;
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  position: relative;
  min-height: 24px;
}

.segment-icon {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.segment-text {
  display: block;
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
}

.source-info {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.rag-source {
  background: var(--accent-subtle);
  border-left-color: var(--accent);
}
.rag-source .segment-icon { color: var(--accent); }

.rag-analysis {
  background: var(--success-subtle);
  border-left-color: var(--success);
}
.rag-analysis .segment-icon { color: var(--success); }

.model-knowledge {
  background: var(--bg-surface-2);
  border-left-color: var(--text-tertiary);
}
.model-knowledge .segment-icon { color: var(--text-tertiary); }

/* ========== COMPOSER ========== */
.composer {
  padding: var(--space-4);
  border-top: 1px solid var(--border-primary);
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  background: var(--bg-surface);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.composer textarea {
  min-height: 48px;
  max-height: 200px;
  flex: 1;
  padding: var(--space-3) var(--space-4);
}

/* ========== SIDEBAR ========== */
.sidebar-section {
  margin-bottom: var(--space-5);
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

/* ========== UTILITY: MESSAGES ========== */
.msg-box {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.msg-box-success {
  background: var(--success-subtle);
  color: var(--success);
  border: 1px solid transparent;
}

.msg-box-error {
  background: var(--danger-subtle);
  color: var(--danger);
  border: 1px solid transparent;
}

.msg-box-warning {
  background: var(--warning-subtle);
  color: var(--warning);
  border: 1px solid transparent;
}

.msg-box-info {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid transparent;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
  z-index: var(--z-toast);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-warning { border-color: var(--warning); }

/* ========== MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  justify-content: center;
  align-items: center;
  z-index: var(--z-modal);
  animation: fadeIn var(--transition-base) ease both;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

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

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: fadeInScale var(--transition-base) ease both;
}

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

.modal-header h2 {
  font-size: var(--text-xl);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .modal-close:hover {
    background: var(--bg-surface-2);
    color: var(--text-primary);
  }
}

.modal-footer {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-primary);
}

/* ========== TABLES ========== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
}

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

th, td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-primary);
}

th {
  background: var(--bg-surface-2);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

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

tr:hover td {
  background: var(--accent-subtle);
}

/* Status colors in tables */
.status-active, .status-approved {
  color: var(--success);
  font-weight: 600;
}

.status-pending {
  color: var(--warning);
  font-weight: 600;
}

.status-admin {
  color: var(--accent-2);
  font-weight: 600;
}

/* ========== LOADING ========== */
.loading {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

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

.spinner-lg {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--skeleton) 0%,
    var(--skeleton-shine) 50%,
    var(--skeleton) 100%
  );
  background-size: 200px 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-2);
}

.skeleton-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.skeleton-bubble {
  height: 60px;
  border-radius: var(--radius-lg);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state-text {
  font-size: var(--text-sm);
  max-width: 360px;
  color: var(--text-tertiary);
}

/* ========== CREDITS MODAL (used in index.html) ========== */
.credits-modal {
  display: none;
  position: fixed;
  top: 60px;
  right: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  min-width: 200px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.credits-modal.active {
  display: block;
  animation: fadeInScale var(--transition-base) ease both;
}

.credits-modal .credits-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
}

.credits-modal .credits-item:not(:last-child) {
  border-bottom: 1px solid var(--border-primary);
}

.credits-modal .credits-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.credits-modal .credits-value {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-sm);
}

.credits-modal .credits-loading {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.credits-modal .credits-error {
  color: var(--danger);
  font-size: var(--text-sm);
}

/* ========== CREDITS PANEL ========== */
.credits-panel {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-md);
  z-index: 100;
  min-width: 140px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.credits-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-1) 0;
}

.credits-label {
  color: var(--text-secondary);
}

.credits-value {
  color: var(--accent);
  font-weight: 600;
}

.credits-error {
  color: var(--danger);
  font-size: var(--text-xs);
}

.credits-loading {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

/* ========== VOICE INPUT ========== */
.voice-indicator {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  display: none;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-primary);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-tooltip);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.voice-indicator.active {
  display: flex;
  animation: fadeInUp var(--transition-base) ease both;
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.voice-wave span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.voice-wave span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { animation-delay: 0.4s; }

/* ========== TOOLBAR ========== */
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--bg);
  padding: var(--space-1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

.tab {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .tab:hover {
    color: var(--text-primary);
    background: var(--bg-surface-2);
  }
}

.tab.active {
  background: var(--accent-gradient);
  color: white;
}

/* ========== HEADER NAVIGATION ========== */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-surface-2);
  }
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

/* ========== OCR LOADING ========== */
#loading-ocr {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  margin: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* ========== LOGIN PAGE ========== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-5);
}

.login-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-10);
  width: 100%;
  max-width: 420px;
}

.login-logo {
  text-align: center;
  margin-bottom: var(--space-8);
}

.login-logo h1 {
  font-size: var(--text-3xl);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.login-logo p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ========== PASSWORD SECTIONS (admin page) ========== */
.password-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.password-requirements {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
}

/* ========== SYSTEM HEALTH ========== */
.health-status {
  font-size: var(--text-lg);
  margin: var(--space-2) 0;
}

.health-label {
  margin: var(--space-1) 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ========== RAG PAGE ========== */
.rag-page {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-6);
  height: 100vh;
  overflow-y: auto;
}

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

/* RAG search result items */
.result-item {
  background: var(--bg);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  border-left: 4px solid var(--accent);
  border: 1px solid var(--border-primary);
  border-left-width: 4px;
  color: var(--text-primary);
}

/* ========== STATS GRID ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
}

.stat-item {
  background: var(--bg);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-primary);
}

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

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}