/* ==========================================================================
   Daily Personal Expense Tracker — Modern Design System
   ========================================================================== */

:root {
  --bg-app: #0b0f17;
  --bg-surface: #111827;
  --bg-surface-raised: #1f2937;
  --bg-surface-hover: #283548;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #10b981;

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --primary: #10b981;
  --primary-hover: #059669;
  --primary-tint: rgba(16, 185, 129, 0.12);

  --need-color: #3b82f6;       /* Blue for Needs */
  --need-tint: rgba(59, 130, 246, 0.15);
  --want-color: #f59e0b;       /* Amber for Wants / Discretionary */
  --want-tint: rgba(245, 158, 11, 0.15);
  --invest-color: #10b981;     /* Emerald for Investments */
  --invest-tint: rgba(16, 185, 129, 0.15);

  --danger: #ef4444;
  --danger-tint: rgba(239, 68, 68, 0.15);
  --info: #8b5cf6;
  --info-tint: rgba(139, 92, 246, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.35);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ==========================================================================
   Layout & Navigation
   ========================================================================== */

.app-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sync-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: var(--bg-surface-hover);
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #6b7280;
  transition: background-color 0.2s ease;
}

.sync-dot.connected {
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.sync-dot.connecting {
  background-color: #f59e0b;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

/* Month Selector */
.month-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-lg);
}

.current-month-display {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 140px;
  text-align: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease-in-out;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--bg-surface-raised);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background-color: var(--danger-tint);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background-color: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-icon:hover {
  background-color: var(--bg-surface-raised);
  color: var(--text-primary);
}

.kbd-hint {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-left: 4px;
}

/* ==========================================================================
   KPI Cards Grid
   ========================================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.pacing-card {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-surface) 100%);
  border-color: rgba(16, 185, 129, 0.25);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.kpi-main-metric {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--text-primary);
}

.currency-prefix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.metric-sublabel {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.kpi-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-success { background-color: var(--primary-tint); color: var(--primary); }
.badge-warning { background-color: var(--want-tint); color: var(--want-color); }
.badge-danger  { background-color: var(--danger-tint); color: var(--danger); }
.badge-info    { background-color: var(--info-tint); color: var(--info); }
.badge-neutral { background-color: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

/* Pacing Card Breakdown */
.pacing-breakdown {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 8px;
  font-size: 0.82rem;
}

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

.pacing-num {
  font-weight: 700;
  font-family: var(--font-mono);
  margin-left: 6px;
}

.pacing-progress-bar,
.progress-bar-wide {
  height: 8px;
  background-color: var(--bg-surface-raised);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* 50/30/20 Ratio Component */
.ratio-bars-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ratio-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ratio-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.ratio-tag {
  font-weight: 600;
}

.tag-need { color: var(--need-color); }
.tag-want { color: var(--want-color); }
.tag-invest { color: var(--invest-color); }

.ratio-pct {
  font-weight: 700;
  font-family: var(--font-mono);
}

.bar-track {
  height: 6px;
  background-color: var(--bg-surface-raised);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.bar-need { background-color: var(--need-color); }
.bar-want { background-color: var(--want-color); }
.bar-invest { background-color: var(--invest-color); }

.ratio-subamt {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.kpi-footer-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cashflow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.flow-pill {
  background-color: var(--bg-surface-raised);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}

.flow-pill span { color: var(--text-muted); }
.flow-pill strong { font-size: 0.95rem; font-family: var(--font-mono); margin-top: 2px; }
.income-pill strong { color: var(--primary); }
.expense-pill strong { color: #f87171; }

/* ==========================================================================
   Visual Analytics & Charts Section
   ========================================================================== */

.visuals-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 992px) {
  .visuals-grid {
    grid-template-columns: 1fr;
  }
}

.visual-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-header-clean {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-need { background-color: var(--need-color); }
.dot-want { background-color: var(--want-color); }
.dot-invest { background-color: var(--invest-color); }
.chip-line {
  width: 14px;
  height: 2px;
  background-color: #ef4444;
  border-top: 2px dashed #ef4444;
}

.chart-canvas-wrapper {
  position: relative;
  width: 100%;
  min-height: 220px;
}

.interactive-chart {
  width: 100%;
  height: 240px;
  overflow: visible;
}

.chart-tooltip {
  position: absolute;
  background-color: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  pointer-events: none;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.15s ease-out;
}

.hidden { display: none !important; }

/* Category Donut & Breakdown */
.category-visual-flex {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.donut-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  margin: 0 auto;
}

.donut-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.donut-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.donut-total {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.category-legend-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 6px;
}

.cat-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.cat-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-color-indicator {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.cat-numbers {
  text-align: right;
  font-family: var(--font-mono);
}

.cat-amt { font-weight: 700; }
.cat-pct { color: var(--text-muted); font-size: 0.72rem; margin-left: 6px; }

/* ==========================================================================
   Ledger & Table
   ========================================================================== */

.ledger-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.ledger-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.ledger-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.count-pill {
  background-color: var(--bg-surface-raised);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

.ledger-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  width: 180px;
  font-family: inherit;
}

.filter-pills {
  display: flex;
  background-color: var(--bg-surface-raised);
  border-radius: var(--radius-md);
  padding: 2px;
  border: 1px solid var(--border-subtle);
}

.filter-pills .pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-pills .pill.active {
  background-color: var(--bg-surface);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.select-input {
  background-color: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  outline: none;
}

/* Table */
.table-responsive {
  overflow-x: auto;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.ledger-table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ledger-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.ledger-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

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

.tx-time-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tx-merchant {
  font-weight: 600;
  color: var(--text-primary);
}

.tx-notes {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.tx-tag-badge {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--primary);
  background-color: var(--primary-tint);
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 3px;
  margin-right: 4px;
}

.tx-amt-cell {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.amt-expense { color: #f87171; }
.amt-income { color: var(--primary); }

.nature-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-need { background-color: var(--need-tint); color: var(--need-color); }
.badge-want { background-color: var(--want-tint); color: var(--want-color); }
.badge-invest { background-color: var(--invest-tint); color: var(--invest-color); }

.action-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================================
   Modals & Native Dialog
   ========================================================================== */

.modal-dialog {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: 0;
  margin: auto;
  max-width: 540px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  outline: none;
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.modal-content {
  padding: 28px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Hero Amount Input */
.form-amount-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface-raised);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  transition: border-color 0.15s;
}

.form-amount-hero:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.amount-currency-symbol {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-right: 6px;
}

.form-amount-hero input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  width: 100%;
  max-width: 240px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.flex-1 { flex: 1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group select {
  background-color: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.input-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Nature Radio Card Group */
.nature-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.nature-card {
  position: relative;
  cursor: pointer;
}

.nature-card input {
  position: absolute;
  opacity: 0;
}

.nature-card-content {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-raised);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  transition: all 0.15s ease;
}

.nature-card input:checked + .nature-card-content {
  border-color: currentColor;
  box-shadow: 0 0 0 2px currentColor;
}

.nature-card-need { color: var(--need-color); }
.nature-card-want { color: var(--want-color); }
.nature-card-invest { color: var(--invest-color); }

.nature-name {
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
}

.nature-desc {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Tag Selector */
.tag-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-chip {
  background-color: var(--bg-surface-raised);
  color: var(--text-secondary);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all 0.15s;
}

.tag-chip.selected {
  background-color: var(--primary-tint);
  color: var(--primary);
  border-color: var(--primary);
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.footer-submit-group {
  display: flex;
  gap: 10px;
}

/* Settings Modal Specifics */
.settings-simulation-box {
  background-color: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.sim-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sim-item {
  display: flex;
  flex-direction: column;
}

.sim-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sim-item strong {
  font-size: 0.95rem;
  font-family: var(--font-mono);
}

.sim-item.highlight strong {
  color: var(--primary);
}

.settings-danger-zone {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.settings-danger-zone h4 {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.danger-actions {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   Supabase Cloud Sync Modal Styles
   ========================================================================== */

.sync-info-box {
  background-color: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.sync-info-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.sync-info-box a:hover {
  text-decoration: underline;
}

.sync-info-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.sync-feedback {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.sync-feedback.success {
  background-color: var(--primary-tint);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sync-feedback.error {
  background-color: var(--danger-tint);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sync-actions-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

