/* ==========================================================================
   RENTA - Invoice Extractor Design System
   Dark theme with orange accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Backgrounds */
  --bg-base: #0A0A0B;
  --bg-card: #111113;
  --bg-elevated: #1A1A1D;
  --bg-hover: #1F1F23;

  /* Colors - Borders */
  --border-subtle: #1F1F23;
  --border-default: #2A2A2E;

  /* Colors - Text */
  --text-primary: #FFFFFF;
  --text-secondary: #ADADB0;
  --text-muted: #6B6B70;
  --text-dimmed: #8B8B90;

  /* Colors - Accent */
  --accent-primary: #FF5C00;
  --accent-secondary: #FF8A4C;
  --accent-gradient: linear-gradient(135deg, #FF5C00 0%, #FF8A4C 100%);
  --accent-gradient-vertical: linear-gradient(180deg, #FF5C00 0%, #FF8A4C 100%);

  /* Colors - Semantic */
  --success: #22C55E;
  --success-bg: rgba(34, 197, 94, 0.08);
  --warning: #EAB308;
  --warning-bg: rgba(255, 92, 0, 0.08);
  --error: #EF4444;
  --error-bg: rgba(239, 68, 68, 0.08);

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', Consolas, monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
}

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Instrument+Serif&family=Inter:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Layout Components
   -------------------------------------------------------------------------- */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--space-10);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-16) var(--space-10);
  gap: var(--space-10);
}

/* --------------------------------------------------------------------------
   Card Components
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.card-header {
  padding: var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
}

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

.card-footer {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Wizard Component
   -------------------------------------------------------------------------- */
.wizard-card {
  width: 100%;
  max-width: 680px;
}

.wizard-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.wizard-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: normal;
  color: var(--text-primary);
}

.wizard-subtitle {
  font-size: 14px;
  color: var(--text-dimmed);
}

/* Steps Indicator */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition-normal);
}

.step-number.active {
  background: var(--accent-gradient);
  color: var(--text-primary);
}

.step-number.completed {
  background: var(--accent-primary);
  color: var(--text-primary);
}

.step-number.inactive {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.step.inactive .step-label {
  color: var(--text-muted);
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--border-default);
  border-radius: 1px;
  margin: 0 var(--space-2);
}

.step-line.completed {
  background: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   Form Elements
   -------------------------------------------------------------------------- */
.form-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Provider Grid */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.provider-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-normal);
}

.provider-option:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}

.provider-option.selected {
  background: var(--bg-elevated);
  border: 2px solid var(--accent-primary);
}

.provider-option svg {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
}

.provider-option.selected svg {
  color: var(--accent-primary);
}

.provider-option span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  height: 44px;
  padding: 0 var(--space-4);
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.1);
}

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

.form-input-mono {
  font-family: var(--font-mono);
}

/* Select */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Checkbox */
.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Help Text */
.help-text {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--text-muted);
}

.help-text svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* Month Selection Grid */
.month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.month-option {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.month-option:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}

.month-option.selected {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Button Components
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-primary);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

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

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

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Processing State
   -------------------------------------------------------------------------- */
.processing-card {
  width: 100%;
  max-width: 600px;
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

/* Spinner */
.spinner-container {
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner-outer {
  position: absolute;
  inset: 0;
  border: 4px solid var(--border-default);
  border-radius: 50%;
}

.spinner-inner {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.phase-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.phase-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--text-primary);
}

.phase-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Progress Bar */
.progress-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.progress-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
}

.progress-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient-vertical);
  border-radius: var(--radius-sm);
  transition: width var(--transition-normal);
}

/* Activity Log */
.log-console {
  width: 100%;
  height: 200px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-2);
}

.log-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.log-clear {
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

.log-clear:hover {
  color: var(--text-secondary);
}

.log-entries {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.log-entry {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 12px;
  font-family: var(--font-mono);
  line-height: 1.6;
}

.log-time {
  color: var(--text-muted);
  flex-shrink: 0;
}

.log-message {
  color: var(--text-secondary);
}

.log-entry.success .log-message {
  color: var(--success);
}

.log-entry.warning .log-message {
  color: var(--warning);
}

.log-entry.error .log-message {
  color: var(--error);
}

/* Hint Section */
.hint-section {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}

.hint-section svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.hint-text {
  font-size: 13px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Results Page
   -------------------------------------------------------------------------- */
.results-content {
  width: 100%;
  max-width: 1200px;
  padding: var(--space-8) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.page-header-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.page-title {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  gap: var(--space-3);
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
}

.metric-change {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.metric-change svg {
  width: 14px;
  height: 14px;
}

.metric-change.positive {
  color: var(--success);
}

.metric-change.negative {
  color: var(--error);
}

.metric-change span {
  font-size: 12px;
}

.metric-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-6);
}

/* Provider Breakdown */
.breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.breakdown-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.breakdown-count {
  font-size: 12px;
  color: var(--text-muted);
}

.breakdown-list {
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.breakdown-item:hover {
  background: var(--bg-elevated);
}

.breakdown-item.selected {
  background: var(--bg-elevated);
}

.breakdown-item-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
}

.breakdown-item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.breakdown-item-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.breakdown-item-amount {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

/* Notable Findings */
.findings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.findings-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.findings-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.findings-list {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.finding-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
}

.finding-item.warning {
  background: var(--warning-bg);
}

.finding-item.success {
  background: var(--success-bg);
}

.finding-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.finding-item.warning .finding-icon {
  color: var(--accent-primary);
}

.finding-item.success .finding-icon {
  color: var(--success);
}

.finding-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.finding-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.finding-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Invoice Table */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.table-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.table-count {
  font-size: 12px;
  color: var(--text-muted);
}

.table-container {
  overflow-x: auto;
}

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

thead {
  background: var(--bg-base);
}

th {
  padding: var(--space-4) var(--space-5);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  white-space: nowrap;
}

th.text-right {
  text-align: right;
}

td {
  padding: var(--space-4) var(--space-5);
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}

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

tr:hover {
  background: var(--bg-elevated);
}

.td-date {
  color: var(--text-secondary);
  white-space: nowrap;
}

.td-provider {
  font-weight: 500;
  color: var(--text-primary);
}

.td-invoice {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.td-concept {
  color: var(--text-secondary);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-usd {
  font-family: var(--font-mono);
  color: var(--text-primary);
  text-align: right;
}

.td-clp {
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: right;
}

/* Table Footer Totals */
tfoot {
  background: var(--bg-base);
  border-top: 2px solid var(--border-subtle);
}

tfoot td {
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  border-bottom: none;
}

tfoot .td-usd,
tfoot .td-clp {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Wizard Steps (multiple forms)
   -------------------------------------------------------------------------- */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

/* AI Provider Grid */
.ai-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.ai-provider-option {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-normal);
}

.ai-provider-option:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}

.ai-provider-option.selected {
  background: var(--bg-elevated);
  border: 2px solid var(--accent-primary);
}

.ai-provider-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.ai-provider-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Provider Selection (for filtering)
   -------------------------------------------------------------------------- */
.provider-selection {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.provider-selection-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.provider-selection-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.provider-selection-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-base);
  border-radius: var(--radius-md);
}

.provider-selection-item label {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.provider-selection-item .name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.provider-selection-item .count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-accent { color: var(--accent-primary); }

.font-mono { font-family: var(--font-mono); }
.font-serif { font-family: var(--font-serif); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

.hidden { display: none !important; }

/* Row layout utilities */
.row {
  display: flex;
  gap: var(--space-4);
}

.row-2 > * {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .two-column {
    grid-template-columns: 1fr;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 var(--space-4);
  }

  .main-content {
    padding: var(--space-8) var(--space-4);
  }

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

  .ai-provider-grid {
    grid-template-columns: 1fr;
  }

  .month-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-indicator {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .step-line {
    display: none;
  }
}
