/* ── Reset ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Reduced Motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* Font stack */
  --font-sans: Inter, system-ui, -apple-system, sans-serif;
  --font-mono: "Consolas", "Fira Code", monospace;

  /* Font sizes */
  --text-xs: 0.65rem;
  --text-sm: 0.75rem;
  --text-base: 0.875rem;
  --text-md: 0.95rem;
  --text-lg: 1.1rem;
  --text-xl: 1.4rem;
  --text-2xl: 1.8rem;
  --text-3xl: 2.4rem;
  --text-4xl: 3rem;
  --text-hero: 4rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  /* Shadows - more dramatic for bold design */
  --shadow-card: 0 12px 48px rgba(0, 0, 0, 0.6);
  --shadow-card-light: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-modal: 0 20px 64px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 40px rgba(145, 71, 255, 0.3);
  --shadow-glow-strong: 0 0 60px rgba(145, 71, 255, 0.5);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.33, 1, 0.68, 1);
  --transition-medium: 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  --transition-slow: 0.5s cubic-bezier(0.33, 1, 0.68, 1);

  /* Container widths */
  --container-sm: 480px;
  --container-md: 650px;
  --container-lg: 800px;
  --container-xl: 1400px;
}

/* ── Dark theme (login + dashboard) ───────────────────────────────────── */
.theme-dark,
[data-theme="dark"] {
  --color-bg: #0a0a0c;
  --color-bg-gradient: linear-gradient(135deg, #0a0a0c 0%, #121215 50%, #0d0d0f 100%);
  --color-surface: #18181b;
  --color-surface-raised: #27272a;
  --color-border: rgba(63, 63, 70, 0.5);
  --color-border-strong: rgba(145, 71, 255, 0.3);
  --color-border-subtle: rgba(39, 39, 42, 0.6);
  --color-text: #f4f4f6;
  --color-text-muted: #b8b8c2;
  --color-text-faint: #7a7a85;
  --color-text-faintest: #4a4a55;
  --color-primary: #9147ff;
  --color-primary-light: #a060ff;
  --color-primary-hover: #b378ff;
  --color-primary-soft: rgba(191, 148, 255, 0.15);
  --color-primary-gradient: linear-gradient(135deg, #9147ff 0%, #a060ff 50%, #b378ff 100%);
  --color-accent-cyan: #00d4ff;
  --color-accent-cyan-soft: rgba(0, 212, 255, 0.1);
  --color-accent-pink: #ff4d9d;
  --color-accent-pink-soft: rgba(255, 77, 157, 0.1);
  --color-success-bg: rgba(126, 200, 126, 0.15);
  --color-success-border: rgba(126, 200, 126, 0.3);
  --color-success-text: #8ed88e;
  --color-error-bg: rgba(200, 126, 126, 0.15);
  --color-error-border: rgba(200, 126, 126, 0.3);
  --color-error-text: #ff8888;
  --color-warning-bg: rgba(200, 168, 75, 0.15);
  --color-warning-border: rgba(200, 168, 75, 0.3);
  --color-warning-text: #ffb84b;
  --color-destructive: #c43232;
  --color-destructive-hover: #dc4848;
  --color-destructive-text: #ffb4b4;
  --color-focus: #9147ff;
  --color-hover-row: rgba(145, 71, 255, 0.05);
  --shadow-card-themed: var(--shadow-card);

  /* Table */
  --color-thead-bg: rgba(145, 71, 255, 0.05);
  --color-thead-text: var(--color-text);
}

/* ── Light theme (admin) ──────────────────────────────────────────────── */
.theme-light,
[data-theme="light"] {
  --color-bg: #f0f2f5;
  --color-surface: #ffffff;
  --color-surface-raised: #f8f9fa;
  --color-border: #e0e0e0;
  --color-border-subtle: #f0f0f0;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-text-faint: #888888;
  --color-text-faintest: #aaaaaa;
  --color-primary: #1a1a2e;
  --color-primary-hover: #2d2d4e;
  --color-primary-soft: #4a4a6e;
  --color-success-bg: #d4edda;
  --color-success-border: #c3e6cb;
  --color-success-text: #155724;
  --color-error-bg: #f8d7da;
  --color-error-border: #f5c6cb;
  --color-error-text: #721c24;
  --color-warning-bg: #fff3cd;
  --color-warning-border: #ffc107;
  --color-warning-text: #856404;
  --color-destructive: #c0392b;
  --color-destructive-hover: #a93226;
  --color-destructive-text: #ffffff;
  --color-focus: #1a1a2e;
  --color-hover-row: #f8f9fa;
  --shadow-card-themed: var(--shadow-card-light);

  /* Table */
  --color-thead-bg: #1a1a2e;
  --color-thead-text: #ffffff;
}

/* ── Focus ─────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-focus, #9147ff);
  outline-offset: 2px;
}

/* ── Skip Link ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* ── Shared button base ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition-fast), opacity var(--transition-fast);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
}
.btn-sm {
  padding: 10px 14px;
  font-size: var(--text-sm);
  min-height: 44px;
  min-width: 44px;
}
.btn-destructive {
  background: var(--color-destructive);
  color: var(--color-destructive-text);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
}
.btn-destructive:hover:not(:disabled) {
  opacity: 0.9;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}
.btn-success {
  background: #27ae60;
  color: #fff;
}
.btn-danger {
  background: var(--color-destructive);
  color: var(--color-destructive-text);
}

/* ── Contextual action buttons ────────────────────────────────────────── */
.btn-confirm {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
}
.btn-confirm:hover:not(:disabled) {
  background: var(--color-primary-hover);
}
.btn-confirm.is-danger {
  background: var(--color-destructive);
  color: var(--color-destructive-text);
}
.btn-confirm.is-danger:hover:not(:disabled) {
  background: var(--color-destructive-hover);
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
}
.btn-cancel:hover:not(:disabled) {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

/* ── Table scroll wrapper ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--sp-4));
  padding: 0 var(--sp-4);
}

/* ── Data Tables ───────────────────────────────────────────────────────── */
.data-table,
.table-wrap table,
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table thead,
thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th,
th {
  text-align: left;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: var(--sp-3) var(--sp-2);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.data-table td,
td {
  padding: var(--sp-2);
  border-bottom: 1px solid var(--color-border-subtle);
  vertical-align: middle;
}

.data-table tbody tr,
tbody tr {
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover,
tbody tr:hover > td {
  background-color: var(--color-hover-row);
}

.data-table tbody tr:hover td:first-child {
  background-color: var(--color-hover-row);
}

/* Primary column - more prominent */
.data-table td[data-primary] {
  font-weight: 600;
  color: var(--color-text);
}

/* Secondary columns - muted */
.data-table td[data-secondary] {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* Actions column */
.data-table td[data-actions] {
  white-space: nowrap;
  text-align: right;
  width: 1%;
}

/* Sticky first column for mobile */
@media (max-width: 600px) {
  .data-table th:first-child,
  .data-table td:first-child,
  th:first-child,
  td:first-child {
    position: sticky;
    left: 0;
    background: var(--color-bg);
    z-index: 5;
    min-width: 80px;
  }
  
  .data-table thead th:first-child {
    background: var(--color-bg);
  }
  
  .data-table tbody td:first-child {
    background: var(--color-surface);
  }
}

/* ── Action Buttons ────────────────────────────────────────────────────── */
.action-group {
  display: flex;
  gap: var(--sp-1);
  justify-content: flex-end;
  align-items: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn:hover {
  background: var(--color-surface-raised);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.action-btn.is-danger:hover {
  background: var(--color-destructive-bg);
  border-color: var(--color-destructive);
  color: var(--color-destructive-text);
}

.action-btn svg {
  width: 14px;
  height: 14px;
}

.action-btn.is-sm {
  width: 24px;
  height: 24px;
}

.action-btn.is-sm svg {
  width: 12px;
  height: 12px;
}

/* ── Status Badges ─────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.is-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.status-badge.is-error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.status-badge.is-pending {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.status-badge.is-inactive {
  background: var(--color-surface-raised);
  color: var(--color-text-muted);
}

.status-badge.is-refunded {
  background: var(--color-border);
  color: var(--color-text-muted);
}

/* ── Badge / status ────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}
.badge-green,
.badge-ok {
  background: #1e5a1e;
  color: #b8f6b8;
}
.badge-red,
.badge-fail {
  background: #8b2a2a;
  color: #ffb4b4;
}
.badge-warning,
.badge-refunded {
  background: #5c4a1f;
  color: #ffeaa7;
}

/* ── Notice / flash messages ───────────────────────────────────────────── */
.notice,
.flash-success {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-text);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: var(--text-sm);
}
.notice {
  margin-top: 12px;
  font-family: var(--font-mono);
  word-break: break-all;
  display: none;
}
.notice.visible {
  display: block;
}
.error-notice,
.flash-error {
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  color: var(--color-error-text);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: var(--text-sm);
}
.error-notice {
  margin-top: 12px;
  display: none;
}
.error-notice.visible {
  display: block;
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.flash {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}

/* ── Pagination ────────────────────────────────────────────────────────── */
.pagination-row,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pagination {
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
}

/* ── Loading spinner ───────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 0.7s linear infinite;
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 60px 0;
  color: var(--color-text-muted);
}

.loading-branded {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-8);
}

.loading-branded .spinner {
  width: 48px;
  height: 48px;
  border-width: 4px;
  border-color: var(--color-border);
  border-top-color: var(--color-primary);
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loading-branded-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}
.loading-state[hidden] {
  display: none;
}
.loading {
  color: var(--color-text-faintest);
  font-style: italic;
}

/* ── Modal base ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay[hidden] {
  display: none;
}
.modal-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-modal);
}
.modal-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}
.modal-message {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: 24px;
  white-space: pre-line;
}
.modal-actions {
  display: flex;
  gap: var(--sp-2);
  justify-content: flex-end;
}
.modal-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  margin-bottom: 16px;
}
.btn-confirm {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  transition: background 0.2s ease;
}
.btn-confirm:hover:not(:disabled) {
  background: var(--color-primary-hover);
}
.btn-confirm.is-danger {
  background: var(--color-destructive);
  color: var(--color-destructive-text);
}
.btn-confirm.is-danger:hover:not(:disabled) {
  background: var(--color-destructive-hover);
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-cancel:hover:not(:disabled) {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

/* ── Contextual action buttons ────────────────────────────────────────── */
.btn-confirm {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
}
.btn-confirm:hover:not(:disabled) {
  background: var(--color-primary-hover);
}
.btn-confirm.is-danger {
  background: var(--color-destructive);
  color: var(--color-destructive-text);
}
.btn-confirm.is-danger:hover:not(:disabled) {
  background: var(--color-destructive-hover);
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
}
.btn-cancel:hover:not(:disabled) {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

/* ── Empty state ───────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── Mono / code display ───────────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  word-break: break-all;
  background: var(--color-bg);
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

/* ── File input styling ────────────────────────────────────────────────── */
input[type="file"]::file-selector-button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-right: var(--sp-2);
  transition: background var(--transition-fast);
}
input[type="file"]::file-selector-button:hover {
  background: var(--color-primary-hover);
}

/* ── Copy button inline ────────────────────────────────────────────────── */
.copy-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.copy-feedback {
  font-size: var(--text-sm);
  color: var(--color-success-text);
  opacity: 0;
  transition: opacity 0.2s;
}
.copy-feedback.visible {
  opacity: 1;
}

/* ── Shared hint text ──────────────────────────────────────────────────── */
.hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ── Muted text ────────────────────────────────────────────────────────── */
.muted {
  color: var(--color-text-muted);
}

/* ── Error text ────────────────────────────────────────────────────────── */
.error-text {
  color: var(--color-error-text);
}

/* ── Bolder Background Pattern ─────────────────────────────────────────── */
.theme-dark {
  background: var(--color-bg);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(145, 71, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 77, 157, 0.01) 0%, transparent 70%),
    var(--color-bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ── Bolder Button Styles ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--color-primary-gradient);
  box-shadow: 0 4px 16px rgba(145, 71, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #a060ff 0%, #c788ff 50%, #d49aff 100%);
  box-shadow: 0 6px 24px rgba(145, 71, 255, 0.6);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(145, 71, 255, 0.4);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-primary:hover::before {
  transform: translateX(100%);
}

/* ── Bolder Stat Cards ───────────────────────────────────────────────── */
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ── Bolder Tab Active State ───────────────────────────────────────────── */
.tab-btn.active {
  background: linear-gradient(180deg, rgba(145, 71, 255, 0.15) 0%, rgba(145, 71, 255, 0.05) 100%);
  border-bottom: 3px solid;
  border-image: var(--color-primary-gradient) 1;
  color: #fff;
  text-shadow: 0 0 20px rgba(145, 71, 255, 0.5);
}

/* ── Bolder Card Styles ───────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  position: relative;
}

/* ── Bolder Input Focus ───────────────────────────────────────────────── */
input:focus, select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(145, 71, 255, 0.2), 0 0 20px rgba(145, 71, 255, 0.15);
  outline: none;
}

/* ── Scrollbar Styling ───────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(39, 39, 42, 0.5);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9147ff, #772ce8);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a060ff, #9147ff);
}
