/* ==========================================
   PERKEY 2.0 — Mobile-First Design
   Search-dominant · Big results · AI-powered
   ========================================== */

:root {
  /* Colors - Clean, premium palette */
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: rgba(59, 130, 246, 0.1);
  
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --mobile-nav-height: 72px;
  --sidebar-width: 260px;
  
  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  
  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

ul { list-style: none; }

/* ==========================================
   APP LAYOUT — MOBILE FIRST
   ========================================== */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Hide sidebar on mobile */
.sidebar {
  display: none;
}

/* Main content — full width on mobile */
.main {
  flex: 1;
  padding: 0 16px 100px;
  max-width: 100%;
}

/* ==========================================
   PAGE STRUCTURE
   ========================================== */
.page {
  display: none;
  padding-top: 16px;
}

.page.active {
  display: block;
}

.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.page-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* AI Setup Button */
.ai-setup-btn {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  margin-left: 8px;
  vertical-align: middle;
  transition: all var(--transition);
}

.ai-setup-btn:hover {
  background: var(--accent);
  color: white;
}

/* ==========================================
   ADVISOR PAGE — THE STAR
   ========================================== */
.advisor-container {
  max-width: 600px;
}

/* Search Box — BIG and prominent */
.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-box input {
  width: 100%;
  padding: 18px 20px;
  font-size: 1.1rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: all var(--transition);
}

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

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 4px var(--accent-light);
}

.search-box.small input {
  padding: 12px 16px;
  font-size: 0.9rem;
}

.search-shortcut {
  display: none;
}

/* Category Chips */
.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.category-chip {
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.category-chip:hover {
  border-color: var(--border-strong);
}

.category-chip.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

/* Result Card — HUGE and unmissable */
.advisor-result {
  margin-top: 20px;
}

.result-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}

.result-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--success);
  font-weight: 700;
  margin-bottom: 16px;
}

.result-card-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.card-swatch {
  width: 72px;
  height: 45px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.result-card-info {
  flex: 1;
  min-width: 0;
}

.result-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.result-card-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.result-rate {
  text-align: right;
  flex-shrink: 0;
}

.result-rate-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--success);
  line-height: 1;
}

.result-rate-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-reason {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 14px 16px;
  background: var(--success-light);
  border-radius: var(--radius);
  margin-top: 12px;
}

/* Runner up */
.result-runner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.runner-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.runner-swatch {
  width: 48px;
  height: 30px;
  border-radius: 4px;
  flex-shrink: 0;
}

.runner-info {
  flex: 1;
  min-width: 0;
}

.runner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.runner-rate {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* AI Badge */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}

/* No result state */
.advisor-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.advisor-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.advisor-empty h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* ==========================================
   MOBILE BOTTOM NAV
   ========================================== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 8px);
  z-index: 100;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  transition: color var(--transition);
}

.mobile-nav-item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.mobile-nav-item.active {
  color: var(--accent);
}

.mobile-nav-item.active svg {
  stroke: var(--accent);
}

/* ==========================================
   CARDS PAGE
   ========================================== */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0;
  line-height: 1;
}

.stat-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-value.accent {
  color: var(--accent);
}

.stat-value.success,
.stat-value.positive {
  color: var(--success);
}

.stat-value.negative {
  color: var(--danger);
}

/* Sections */
.section {
  margin-bottom: 32px;
}

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

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Cards Layout */
.cards-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Wallet Grid */
.wallet-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wallet-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.wallet-card-swatch {
  width: 72px;
  height: 45px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wallet-card-info {
  flex: 1;
  min-width: 0;
}

.wallet-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

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

.wallet-card-anniversary {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  background: var(--accent-light);
  color: var(--accent);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.wallet-card-anniversary:hover {
  background: var(--accent);
  color: white;
}

.wallet-card-anniversary.not-set {
  background: var(--bg);
  color: var(--text-muted);
}

.wallet-card-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.wallet-card-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.wallet-card-remove:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* Filter Pills */
.filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition);
}

.pill:hover {
  border-color: var(--border-strong);
}

.pill.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Card List */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.card-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.card-list-item:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.card-list-item.in-wallet {
  opacity: 0.5;
}

.card-list-swatch {
  width: 40px;
  height: 25px;
  border-radius: 4px;
  flex-shrink: 0;
}

.card-list-info {
  flex: 1;
  min-width: 0;
}

.card-list-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.card-list-issuer {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-list-fee {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================
   BENEFITS PAGE
   ========================================== */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  box-shadow: var(--shadow-lg);
}

.benefit-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  transition: background var(--transition);
}

.benefit-header:hover {
  background: rgba(0,0,0,0.02);
}

.benefit-swatch {
  width: 56px;
  height: 35px;
  border-radius: 6px;
  flex-shrink: 0;
}

.benefit-info {
  flex: 1;
  min-width: 0;
}

.benefit-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.benefit-card-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.benefit-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.benefit-card.expanded .benefit-toggle {
  transform: rotate(180deg);
}

.benefit-perks {
  display: none;
  padding: 0 16px 16px;
}

.benefit-card.expanded .benefit-perks {
  display: block;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg);
}

.perk-item.used {
  opacity: 0.5;
}

.perk-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.perk-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.perk-info {
  flex: 1;
}

.perk-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.perk-value {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
}

.perk-freq {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   OPTIMIZER PAGE
   ========================================== */
.optimizer-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.optimizer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.optimizer-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.optimizer-category {
  flex: 1;
}

.optimizer-category-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.optimizer-category-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.optimizer-card-swatch {
  width: 48px;
  height: 30px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.optimizer-card-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.optimizer-rate {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--success);
  min-width: 50px;
  text-align: right;
}

/* ==========================================
   CALENDAR PAGE
   ========================================== */
.calendar-container {
  max-width: 600px;
}

.calendar-info {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.calendar-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.upcoming-events {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.event-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.event-item.urgent {
  border-left: 4px solid var(--warning);
}

.event-item.overdue {
  border-left: 4px solid var(--danger);
}

.event-date {
  text-align: center;
  min-width: 56px;
  padding: 8px;
  background: var(--bg);
  border-radius: var(--radius);
}

.event-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.event-day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.event-info {
  flex: 1;
}

.event-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.event-card {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--border-strong);
}

/* ==========================================
   TOAST
   ========================================== */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--text);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   LOADING STATE
   ========================================== */
.loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

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

/* ==========================================
   MODALS
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
}

.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

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

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--card);
  color: var(--text);
}

.modal-input:focus {
  border-color: var(--accent);
  outline: none;
}

/* ==========================================
   DESKTOP STYLES (768px+)
   ========================================== */
@media (min-width: 768px) {
  /* Show sidebar */
  .sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    background: var(--card);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
  }
  
  /* Hide mobile nav */
  .mobile-nav {
    display: none;
  }
  
  /* Adjust main content */
  .main {
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    max-width: 900px;
  }
  
  /* Sidebar brand */
  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
  }
  
  .brand-icon {
    width: 36px !important;
    height: auto !important;
  }
  
  .brand-text {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
  }
  
  /* Sidebar nav */
  .sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
  }
  
  .nav-item:hover {
    background: var(--bg);
    color: var(--text);
  }
  
  .nav-item.active {
    background: var(--accent-light);
    color: var(--accent);
  }
  
  .nav-item.active svg {
    stroke: var(--accent);
  }
  
  .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Sidebar footer */
  .sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
  }
  
  .wallet-summary {
    text-align: center;
  }
  
  .summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .summary-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2px;
  }
  
  /* Search shortcut visible on desktop */
  .search-shortcut {
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 4px;
  }
  
  /* Page header */
  .page-header h1 {
    font-size: 2rem;
  }
  
  /* Larger result on desktop */
  .result-rate-value {
    font-size: 4rem;
  }
  
  /* Cards grid on desktop */
  .dashboard-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Two column layout for cards page */
  .cards-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  /* Optimizer grid */
  .optimizer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
