/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}
.btn-primary:hover { background: var(--primary-dim); box-shadow: 0 4px 20px var(--primary-glow); }

.btn-gold {
  background: var(--gold);
  color: #07070f;
  font-weight: 600;
  box-shadow: 0 2px 12px var(--gold-glow);
}
.btn-gold:hover { background: var(--gold-dim); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--card); color: var(--text); border-color: var(--border-glow); }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(248,113,113,0.3);
}
.btn-danger:hover { background: rgba(248,113,113,0.2); }

.btn-sm {
  padding: 6px var(--space-3);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px var(--space-8);
  font-size: var(--text-md);
}

.btn-full { width: 100%; }

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-md);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Spinner inside button */
.btn .spinner { width: 14px; height: 14px; }

/* ============================
   Cards
   ============================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.card-hover:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  cursor: pointer;
}

.card-glow {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.card-gold {
  border-color: rgba(212,168,83,0.4);
  box-shadow: var(--shadow-gold);
}

/* ============================
   Forms
   ============================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.form-input,
.form-textarea,
.form-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px var(--space-4);
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6880' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option {
  background: var(--card);
  color: var(--text);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--muted);
}

.form-char-count {
  font-size: var(--text-xs);
  color: var(--muted);
  text-align: right;
}

/* ============================
   Badges
   ============================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.badge-primary { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(139,92,246,0.2); }
.badge-gold    { background: var(--gold-light); color: var(--gold); border: 1px solid rgba(212,168,83,0.2); }
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(52,211,153,0.2); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(248,113,113,0.2); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(251,191,36,0.2); }
.badge-muted   { background: rgba(90,88,120,0.2); color: var(--muted); border: 1px solid rgba(90,88,120,0.2); }

/* ============================
   Tarot Card Visual
   ============================ */
.tarot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.tarot-card-face {
  width: 80px;
  height: 130px;
  background: linear-gradient(145deg, var(--card), var(--surface));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-spring);
  padding: var(--space-2);
}

.tarot-card-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(139,92,246,0.05), transparent 60%);
  pointer-events: none;
}

.tarot-card-face.reversed {
  transform: rotate(180deg);
  border-color: rgba(248,113,113,0.3);
}

.tarot-card-face .card-sigil {
  font-size: 28px;
  line-height: 1;
}

.tarot-card-face .card-label {
  font-family: var(--font-display);
  font-size: 8px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

.tarot-card-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  max-width: 90px;
}

.tarot-card-meta {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

/* Card grid layouts */
.cards-grid-1  { display: flex; justify-content: center; }
.cards-grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.cards-grid-5  { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); }
.cards-grid-cc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: var(--space-2);
}

/* ============================
   Spread Picker
   ============================ */
.spread-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.spread-option {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  text-align: center;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.spread-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.spread-option:hover:not(.selected) {
  border-color: var(--border-glow);
}

.spread-option-icon { font-size: 24px; margin-bottom: var(--space-2); }
.spread-option-name { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.spread-option-desc { font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }

/* ============================
   Category Chips
   ============================ */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.category-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
  color: var(--text-dim);
  background: transparent;
}

.category-chip:hover { border-color: var(--border-glow); color: var(--text); }
.category-chip.selected { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ============================
   Reading Card (list item)
   ============================ */
.reading-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  text-decoration: none;
}

.reading-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.reading-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.reading-item-question {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reading-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.reading-item-date {
  font-size: var(--text-xs);
  color: var(--muted);
}

.reading-item-preview {
  font-size: var(--text-sm);
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

/* ============================
   Exchange Card (list item)
   ============================ */
.exchange-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  text-decoration: none;
}

.exchange-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.exchange-poster {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.exchange-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}

.exchange-user-info { flex: 1; min-width: 0; }
.exchange-username { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.exchange-level { font-size: var(--text-xs); color: var(--muted); }

.exchange-question {
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exchange-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ============================
   Profile / Scores
   ============================ */
.score-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.score-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--muted);
}

.score-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s var(--ease);
}

.score-bar-fill.magic { background: linear-gradient(90deg, var(--primary), #a78bfa); }
.score-bar-fill.karma { background: linear-gradient(90deg, var(--gold), #f59e0b); }

/* ============================
   Stats Grid
   ============================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================
   Spinner / Loading
   ============================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(139,92,246,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.spinner-center {
  display: flex;
  justify-content: center;
  padding: var(--space-12) 0;
}

.global-loader {
  position: fixed;
  inset: 0;
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-sigil {
  font-size: 40px;
  color: var(--gold);
  animation: sigil-glow 1.5s ease-in-out infinite alternate;
}

/* ============================
   Toast Notifications
   ============================ */
#toast-container {
  position: fixed;
  bottom: calc(var(--bnav-height) + var(--space-4));
  right: var(--space-4);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  max-width: 340px;
  pointer-events: all;
  animation: toast-in var(--dur-base) var(--ease-spring) forwards;
  font-size: var(--text-sm);
}

.toast.removing {
  animation: toast-out var(--dur-base) var(--ease) forwards;
}

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-msg { flex: 1; color: var(--text); }

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

@media (min-width: 768px) {
  #toast-container {
    bottom: var(--space-6);
    right: var(--space-6);
  }
}

/* ============================
   Modal
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fade-in var(--dur-base) var(--ease);
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-6);
  width: 100%;
  max-width: 540px;
  max-height: 90dvh;
  overflow-y: auto;
  animation: slide-up var(--dur-base) var(--ease-spring);
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 18px;
  transition: color var(--dur-fast) var(--ease);
}

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

@media (min-width: 768px) {
  .modal-overlay { align-items: center; }
  .modal {
    border-radius: var(--radius-xl);
    max-height: 85vh;
  }
}

/* ============================
   Empty State
   ============================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-6);
  text-align: center;
  gap: var(--space-4);
}

.empty-icon { font-size: 48px; opacity: 0.5; }
.empty-title { font-family: var(--font-display); color: var(--text-dim); }
.empty-desc { font-size: var(--text-sm); color: var(--muted); max-width: 280px; }

/* ============================
   Pagination
   ============================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.page-btn {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ============================
   Tabs
   ============================ */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: var(--space-5);
}

.tab {
  flex: 1;
  padding: 8px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  border: none;
  background: none;
}

.tab.active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.tab:hover:not(.active) { color: var(--text-dim); }

/* ============================
   Alert Banner
   ============================ */
.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.alert-success { background: var(--success-bg); border: 1px solid rgba(52,211,153,0.2); color: var(--success); }
.alert-danger  { background: var(--danger-bg); border: 1px solid rgba(248,113,113,0.2); color: var(--danger); }
.alert-info    { background: var(--info-bg); border: 1px solid rgba(96,165,250,0.2); color: var(--info); }
.alert-warning { background: var(--warning-bg); border: 1px solid rgba(251,191,36,0.2); color: var(--warning); }

/* ============================
   Collapsible / Accordion
   ============================ */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.collapsible-icon {
  transition: transform var(--dur-fast) var(--ease);
  color: var(--muted);
  font-size: 18px;
}

.collapsible.open .collapsible-icon { transform: rotate(180deg); }
.collapsible-body { display: none; padding-top: var(--space-4); }
.collapsible.open .collapsible-body { display: block; }

/* ============================
   Insight Charts
   ============================ */
.insight-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.insight-bar-label {
  min-width: 100px;
  font-size: var(--text-sm);
  color: var(--text-dim);
  text-align: right;
  font-weight: 500;
}

.insight-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.insight-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  transition: width 0.8s var(--ease);
}

.insight-bar-count {
  min-width: 32px;
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: left;
}

/* ============================
   Reading Detail
   ============================ */
.reading-interpretation {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  color: var(--text-dim);
  line-height: 1.8;
  white-space: pre-wrap;
  font-size: var(--text-base);
}

.ai-interpretation {
  background: var(--primary-light);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  color: var(--text);
  line-height: 1.8;
  white-space: pre-wrap;
  font-size: var(--text-base);
  position: relative;
}

.ai-interpretation::before {
  content: '✦ AI Insight';
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

/* ============================
   Daily Card Display
   ============================ */
.daily-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-8) var(--space-4);
  text-align: center;
}

.daily-card-large {
  width: 120px;
  height: 200px;
  background: linear-gradient(145deg, var(--card), var(--surface));
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.daily-card-large::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.daily-card-large .sigil { font-size: 48px; }
.daily-card-large .name { font-family: var(--font-display); font-size: var(--text-sm); color: var(--text); text-align: center; padding: 0 var(--space-2); }

/* ============================
   Hero / Welcome
   ============================ */
.hero {
  text-align: center;
  padding: var(--space-16) var(--space-4) var(--space-8);
}

.hero-sigil {
  font-size: 48px;
  display: block;
  margin-bottom: var(--space-4);
  animation: sigil-glow 3s ease-in-out infinite alternate;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: var(--text-md);
  color: var(--text-dim);
  max-width: 400px;
  margin: 0 auto var(--space-8);
}

/* ============================
   Apple Sign In Button
   ============================ */
.btn-apple {
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 13px var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease);
  width: 100%;
}

.btn-apple:hover { background: #e5e5e5; }

.btn-apple svg { width: 20px; height: 20px; }

/* ============================
   Wizard Steps
   ============================ */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}

.wizard-step-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.wizard-step.active .wizard-step-num { border-color: var(--primary); background: var(--primary); color: #fff; }
.wizard-step.done .wizard-step-num { border-color: var(--success); background: var(--success); color: #fff; }
.wizard-step.active .wizard-step-label { color: var(--text); }

.wizard-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================
   Card Selector (reading builder)
   ============================ */
.card-slot {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  background: transparent;
}

.card-slot:hover { border-color: var(--primary); background: var(--primary-light); }
.card-slot.filled { border-style: solid; border-color: var(--border-glow); background: var(--card); }

.card-slot-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

/* ============================
   Progress Ring (for levels)
   ============================ */
.level-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.level-ring svg { transform: rotate(-90deg); }
.level-ring-bg { fill: none; stroke: var(--border); }
.level-ring-fill { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.level-ring-fill.magic { stroke: var(--primary); }
.level-ring-fill.karma { stroke: var(--gold); }

.level-ring-label {
  position: absolute;
  text-align: center;
  pointer-events: none;
}

/* ============================
   Responsive helpers
   ============================ */
@media (max-width: 480px) {
  .spread-options { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .cards-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid-cc { grid-template-columns: repeat(3, 1fr); }
}
