/* === UANGKU - Smart Money Tracker === */
:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --primary-dark: #0d1642;
  --green: #4caf50;
  --green-light: #e8f5e9;
  --red: #f44336;
  --red-light: #ffebee;
  --amber: #ff9800;
  --amber-light: #fff3e0;
  --blue: #2196f3;
  --blue-light: #e3f2fd;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #212121;
  --text-secondary: #757575;
  --border: #e0e0e0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { border: none; cursor: pointer; font-family: inherit; font-size: inherit; }
input, textarea, select {
  font-family: inherit; font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: var(--transition);
  background: white;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,35,126,0.1); }
textarea { resize: vertical; min-height: 120px; }

/* === AUTH SCREEN === */
.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.auth-logo {
  font-size: 48px;
  margin-bottom: 8px;
}
.auth-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}
.auth-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 30px;
}
.auth-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px 24px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.auth-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  width: 100%;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { opacity: 0.9; }
.btn-red { background: var(--red); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 13px; width: auto; }
.auth-toggle {
  text-align: center;
  margin-top: 20px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.auth-toggle a { color: white; font-weight: 600; text-decoration: underline; }

/* === APP LAYOUT === */
.app { display: none; min-height: 100vh; padding-bottom: 70px; }
.app.active { display: block; }

/* Top Bar */
.topbar {
  background: var(--primary);
  padding: 16px 20px 14px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; }
.topbar h1 { font-size: 20px; font-weight: 700; }
.topbar .greeting { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.topbar-actions { display: flex; gap: 12px; }
.topbar-actions button {
  background: rgba(255,255,255,0.15);
  color: white;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  display: flex;
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 6px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  font-size: 10px;
  color: var(--text-secondary);
  transition: var(--transition);
  background: none;
  gap: 3px;
}
.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { font-weight: 900; }

/* === PAGE CONTAINER === */
.page { display: none; padding: 20px; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* === MONTH SELECTOR === */
.month-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.month-selector button {
  background: var(--bg);
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text);
}
.month-selector span { font-weight: 700; font-size: 16px; }

/* === SUMMARY CARDS === */
.balance-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: white;
  margin-bottom: 16px;
  box-shadow: var(--shadow-lg);
}
.balance-label { font-size: 13px; opacity: 0.8; }
.balance-amount { font-size: 32px; font-weight: 800; margin: 6px 0; }
.balance-sub { font-size: 12px; opacity: 0.7; }

.summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.summary-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.summary-card .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  font-size: 16px;
}
.summary-card .icon.green { background: var(--green-light); color: var(--green); }
.summary-card .icon.red { background: var(--red-light); color: var(--red); }
.summary-card .icon.blue { background: var(--blue-light); color: var(--blue); }
.summary-card .amount { font-size: 15px; font-weight: 700; }
.summary-card .label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* === SECTION HEADERS === */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
}
.section-head h3 { font-size: 17px; font-weight: 700; }
.section-head a { font-size: 13px; color: var(--primary); font-weight: 600; }

/* === TRANSACTION LIST === */
.tx-list { display: flex; flex-direction: column; gap: 8px; }
.tx-group-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 12px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.tx-item:active { transform: scale(0.98); }
.tx-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.tx-icon.income { background: var(--green-light); }
.tx-icon.expense { background: var(--red-light); }
.tx-info { flex: 1; min-width: 0; }
.tx-desc {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-cat { font-size: 12px; color: var(--text-secondary); }
.tx-amount { font-weight: 700; font-size: 15px; white-space: nowrap; }
.tx-amount.income { color: var(--green); }
.tx-amount.expense { color: var(--red); }

/* === CHART === */
.chart-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.donut-container {
  display: flex;
  align-items: center;
  gap: 20px;
}
.donut-chart {
  width: 120px; height: 120px;
  flex-shrink: 0;
}
.chart-legend { flex: 1; }
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend-value { margin-left: auto; font-weight: 600; font-size: 12px; }

/* === DEBT CARDS === */
.debt-card {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.debt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.debt-creditor { font-weight: 700; font-size: 16px; }
.debt-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.debt-badge.active { background: var(--red-light); color: var(--red); }
.debt-badge.paid { background: var(--green-light); color: var(--green); }
.debt-progress {
  background: var(--bg);
  border-radius: 6px;
  height: 8px;
  margin: 10px 0;
  overflow: hidden;
}
.debt-progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 0.5s ease;
}
.debt-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.debt-details strong { color: var(--text); display: block; }
.debt-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* === BULK INPUT === */
.bulk-textarea {
  min-height: 180px;
  font-size: 14px;
  line-height: 1.8;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.bulk-tips {
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--primary);
}
.bulk-tips h4 { margin-bottom: 6px; font-size: 14px; }
.bulk-tips code {
  background: rgba(26,35,126,0.1);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}
.parsed-item {
  background: white;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--border);
}
.parsed-item.income { border-left-color: var(--green); }
.parsed-item.expense { border-left-color: var(--red); }
.parsed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.parsed-amount { font-size: 18px; font-weight: 700; }
.parsed-desc { font-size: 14px; color: var(--text-secondary); }
.parsed-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.parsed-meta select, .parsed-meta input {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  flex: 1;
}
.confidence {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.confidence.high { background: var(--green-light); color: var(--green); }
.confidence.medium { background: var(--amber-light); color: var(--amber); }
.confidence.low { background: var(--red-light); color: var(--red); }

/* === BULK SUMMARY === */
.bulk-summary-card { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum-item { padding: 12px; border-radius: 8px; text-align: center; }
.sum-item.income { background: var(--green-light); }
.sum-item.expense { background: var(--red-light); }
.sum-item.hutang { background: #fff3e0; }
.sum-label { font-size: 12px; color: #666; margin-bottom: 4px; }
.sum-val { font-size: 16px; font-weight: 700; }
.sum-item.income .sum-val { color: var(--green); }
.sum-item.expense .sum-val { color: var(--red); }
.sum-item.hutang .sum-val { color: #e65100; }

.bulk-tips-list { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.tip-item { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; line-height: 1.5; }
.tip-item:last-child { border: none; }

.bulk-allocations { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 16px; overflow-x: auto; }
.alloc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.alloc-table th { text-align: left; padding: 8px 6px; border-bottom: 2px solid #eee; font-weight: 600; color: #666; }
.alloc-table td { padding: 8px 6px; border-bottom: 1px solid #f5f5f5; }
.alloc-over td { color: var(--red); font-weight: 600; }
.alloc-warning td { color: #e65100; }
.status-badge { font-size: 14px; }

.source-select { padding: 4px 8px; border: 1px solid #ddd; border-radius: 6px; font-size: 12px; background: #fff; }
.parsed-item.source-hutang { border-left: 3px solid #e65100 !important; }
.parsed-item.source-kas { border-left: 3px solid var(--green) !important; }

/* OCR Section */
.ocr-section { text-align: center; margin: 8px 0 16px; }
.divider-text { color: #999; font-size: 13px; margin: 8px 0; position: relative; }
.divider-text::before, .divider-text::after { content: ''; position: absolute; top: 50%; width: 35%; height: 1px; background: #ddd; }
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }
.ocr-btn { display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; }
.ocr-hint { font-size: 12px; color: #999; margin-top: 6px; }

/* Ambigu Items */
.parsed-item.ambigu { border-left: 3px solid #ff9800 !important; background: #fff8e1; }
.ambigu-banner { background: #ff9800; color: white; padding: 6px 12px; border-radius: 6px 6px 0 0; margin: -12px -12px 10px -12px; font-size: 13px; font-weight: 600; }
.ambigu-input { width: 100%; padding: 8px 12px; border: 2px solid #ff9800; border-radius: 6px; font-size: 14px; background: white; }
.ambigu-input:focus { outline: none; border-color: var(--primary); }
.ambigu-input::placeholder { color: #bbb; }

/* === RECOMMENDATIONS === */
.reco-card {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.reco-card h4 {
  font-size: 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.budget-bar {
  margin-bottom: 10px;
}
.budget-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}
.budget-bar-track {
  background: var(--bg);
  border-radius: 6px;
  height: 10px;
  position: relative;
  overflow: hidden;
}
.budget-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}
.budget-bar-target {
  position: absolute;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--text);
  opacity: 0.3;
}
.reco-tip {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.reco-tip i { color: var(--amber); font-size: 16px; margin-top: 2px; flex-shrink: 0; }

/* === PROFILE === */
.profile-header {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin: 0 auto 12px;
}
.profile-name { font-size: 20px; font-weight: 700; }
.profile-email { font-size: 13px; color: var(--text-secondary); }

.settings-group {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--bg);
  cursor: pointer;
  transition: var(--transition);
}
.settings-item:last-child { border-bottom: none; }
.settings-item:active { background: var(--bg); }
.settings-item i { font-size: 18px; color: var(--primary); width: 24px; text-align: center; }
.settings-item span { flex: 1; font-size: 15px; }
.settings-item .chevron { color: var(--text-secondary); font-size: 12px; }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: white;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.modal h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

/* Type Toggle */
.type-toggle {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 16px;
}
.type-toggle button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  color: var(--text-secondary);
  transition: var(--transition);
}
.type-toggle button.active { background: white; color: var(--text); box-shadow: var(--shadow); }

/* Amount Input */
.amount-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.amount-prefix {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
}
.amount-input {
  font-size: 28px !important;
  font-weight: 800 !important;
  border: none !important;
  padding: 8px 0 !important;
  border-bottom: 2px solid var(--border) !important;
  border-radius: 0 !important;
}
.amount-input:focus { border-bottom-color: var(--primary) !important; box-shadow: none !important; }

/* Category Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.cat-item .emoji { font-size: 22px; }
.cat-item.selected {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

/* === FAB === */
.fab {
  position: fixed;
  bottom: 80px;
  right: calc(50% - 210px);
  width: 56px; height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: var(--transition);
}
.fab:active { transform: scale(0.9); }

/* === SEARCH BAR === */
.search-bar {
  position: relative;
  margin-bottom: 16px;
}
.search-bar input {
  padding-left: 42px;
}
.search-bar i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* === TABS === */
.tabs {
  display: flex;
  background: white;
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  transition: var(--transition);
}
.tab.active { background: var(--primary); color: white; }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}
.empty-state i { font-size: 48px; margin-bottom: 12px; opacity: 0.3; }
.empty-state p { font-size: 14px; }

/* === TOAST === */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* === LOADING === */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--bg);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === OCR SOURCE BANNER === */
.ocr-source-banner { padding:12px 16px; border-radius:12px; margin-bottom:12px; font-size:14px; }
.ocr-source-banner.detected { background:#e8f5e9; color:#2e7d32; }
.ocr-source-banner.unknown { background:#fff3e0; color:#e65100; }

/* === BULK GUIDE === */
.bulk-examples { margin-top:10px; }
.example-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px dashed var(--border); font-size:13px; }
.ex-input { font-family:monospace; background:var(--bg); padding:3px 8px; border-radius:6px; font-size:12px; color:var(--text); }
.ex-result { font-size:12px; color:var(--text-secondary); }
.bulk-detect-list { margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }
.bulk-detect-list ul { margin:8px 0 0; padding-left:0; list-style:none; }
.bulk-detect-list li { padding:4px 0; font-size:13px; }
.ocr-detect-logos { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; font-size:12px; }
.ocr-detect-logos span { background:var(--bg); padding:3px 8px; border-radius:6px; }
.ocr-hint small { display:block; margin-top:4px; color:var(--text-secondary); font-size:11px; }

/* === WALLET PAGE === */
.wallet-header-card { background:linear-gradient(135deg,var(--primary),var(--primary-light)); color:white; padding:24px 20px; border-radius:16px; margin:16px; text-align:center; }
.wallet-header-label { font-size:13px; opacity:.8; }
.wallet-header-total { font-size:28px; font-weight:700; margin:4px 0 12px; }
.wallet-header-actions { display:flex; gap:8px; justify-content:center; }
.wallet-card { background:var(--card); border-radius:12px; padding:16px; margin:0 16px 10px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.wallet-row { display:flex; align-items:center; gap:12px; }
.wallet-icon { font-size:28px; }
.wallet-info { flex:1; }
.wallet-name { font-weight:600; font-size:15px; display:flex; align-items:center; gap:6px; }
.wallet-type { font-size:12px; color:var(--text-secondary); margin-top:2px; }
.wallet-balance { font-weight:700; font-size:16px; }
.wallet-actions { display:flex; gap:6px; margin-top:10px; justify-content:flex-end; }
.badge-default { background:var(--primary); color:white; font-size:10px; padding:2px 6px; border-radius:8px; font-weight:500; }

/* === WISHLIST PAGE === */
.wish-header-card { background:linear-gradient(135deg,#f59e0b,#d97706); color:white; padding:20px; border-radius:16px; margin:16px; }
.wish-header-row { display:flex; justify-content:space-between; }
.wish-header-label { font-size:12px; opacity:.8; }
.wish-header-total { font-size:22px; font-weight:700; margin-top:2px; }
.wish-card { background:var(--card); border-radius:12px; padding:16px; margin:0 16px 10px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.wish-card.achieved { opacity:.7; }
.wish-card.cancelled { opacity:.5; }
.wish-header { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.wish-status { font-size:20px; }
.wish-name { font-weight:600; font-size:15px; flex:1; }
.wish-priority { font-size:10px; }
.wish-progress-bar { height:8px; background:var(--bg); border-radius:4px; overflow:hidden; margin-bottom:6px; }
.wish-progress-fill { height:100%; border-radius:4px; transition:width .5s ease; }
.wish-meta { display:flex; justify-content:space-between; font-size:13px; color:var(--text-secondary); }
.wish-pct { font-weight:600; color:var(--primary); }
.wish-date { font-size:12px; color:var(--text-secondary); margin-top:6px; }
.wish-notes { font-size:12px; color:var(--text-secondary); margin-top:4px; font-style:italic; }
.wish-actions { display:flex; gap:8px; margin-top:10px; }

/* === RESPONSIVE === */
@media (min-width: 481px) {
  body { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
