/**
 * MisFinanzas - Estilos Holográficos
 * Mismo estilo visual que el app web original
 */

:root {
  --primary: #1a1a8a;
  --primary-light: #2d2db5;
  --accent-pink: #FF00A0;
  --accent-cyan: #00F0FF;
  --accent-gold: #FFD700;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --income-color: #16a34a;
  --expense-color: #dc2626;
  --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);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== LOGIN ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a8a 0%, #2d1b69 50%, #1a1a8a 100%);
  padding: 20px;
}

.login-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
  animation: slideUp 0.5s ease;
}

.login-logo { margin-bottom: 16px; }

.logo-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(255,0,160,0.3);
}

.logo-icon { width: 40px; height: 40px; color: white; }

.login-title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle { color: var(--text-secondary); margin: 8px 0 24px; font-size: 14px; }

.login-form { text-align: left; }

.form-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.login-lang { margin-top: 20px; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}

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

.header-company { display: flex; flex-direction: column; }

.header-company-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.header-company-cat {
  font-size: 11px;
  color: var(--text-secondary);
}

.header-balance {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

/* ===== APP CONTAINER ===== */
.app-container {
  min-height: 100vh;
  padding-top: 64px;
  padding-bottom: 80px;
}

/* ===== VIEWS ===== */
.view { padding: 16px; animation: fadeIn 0.3s ease; }
.view.hidden { display: none; }

/* ===== COMPANY SELECTOR ===== */
.company-selector h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.companies-grid {
  display: grid;
  gap: 12px;
}

.company-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  position: relative;
}

.company-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.company-card.is-primary { border-color: var(--accent-pink); }
.company-card.needs-attention { border-color: var(--warning); }

.company-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.company-card-name { font-weight: 700; font-size: 15px; color: var(--primary); }
.company-card-cat { font-size: 12px; color: var(--text-secondary); }

.company-card-balance {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0;
}

.company-card-balance.positive { color: var(--income-color); }
.company-card-balance.negative { color: var(--expense-color); }

.company-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.company-card .btn-delete-company {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  opacity: 0;
  transition: all 0.2s;
}

.company-card:hover .btn-delete-company { opacity: 1; }
.company-card .btn-delete-company:hover { color: var(--danger); background: #fef2f2; }

/* ===== DASHBOARD ===== */
.balance-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.balance-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.income-icon { background: #dcfce7; color: var(--income-color); }
.expense-icon { background: #fef2f2; color: var(--expense-color); }

.balance-icon i { width: 22px; height: 22px; }

.balance-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.balance-value { font-size: 18px; font-weight: 800; }

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-item {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item span { font-size: 11px; color: var(--text-secondary); font-weight: 600; }
.stat-item strong { font-size: 16px; font-weight: 800; color: var(--primary); }

/* ===== TRANSACTIONS ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header h3 { font-size: 16px; font-weight: 700; color: var(--primary); }

.btn-add-tx {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-tx:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255,0,160,0.3); }
.btn-add-tx i { width: 16px; height: 16px; }

.transactions-list { display: flex; flex-direction: column; gap: 8px; }

.tx-item {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tx-icon.income { background: #dcfce7; }
.tx-icon.expense { background: #fef2f2; }

.tx-info { flex: 1; min-width: 0; }
.tx-payee { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

.tx-amount { font-weight: 800; font-size: 15px; white-space: nowrap; }
.tx-amount.income { color: var(--income-color); }
.tx-amount.expense { color: var(--expense-color); }

.tx-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.tx-empty i { width: 48px; height: 48px; color: var(--border); margin-bottom: 12px; }

/* ===== REPORTS ===== */
.reports h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.report-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.report-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.report-btn.active {
  border-color: var(--accent-pink);
  background: linear-gradient(135deg, rgba(255,0,160,0.05), rgba(0,240,255,0.05));
  color: var(--accent-pink);
}

.chart-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.report-list { margin-top: 16px; }

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

.report-item-icon { font-size: 20px; }
.report-item-info { flex: 1; }
.report-item-name { font-weight: 600; font-size: 14px; }
.report-item-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
}

.report-item-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
  transition: width 0.5s ease;
}

.report-item-amount { font-weight: 800; font-size: 14px; color: var(--primary); }
.report-item-count { font-size: 11px; color: var(--text-secondary); }

/* ===== PROFILE ===== */
.profile h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  color: white;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}

.profile-info h3 { font-size: 18px; font-weight: 700; }
.profile-info p { font-size: 13px; opacity: 0.8; }

.settings-group {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.settings-group h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}

.setting-item:last-child { border-bottom: none; }

.editable-lists { display: flex; flex-direction: column; gap: 8px; }

.list-item-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.list-item-btn:hover { background: #e0e7ff; }

.danger-zone { border: 1px solid #fecaca; }

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider:before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider { background: var(--accent-pink); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(22px); }

/* ===== BACKUPS LIST ===== */
.backups-list { display: flex; flex-direction: column; gap: 6px; }

.backup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.backup-info { flex: 1; }
.backup-name { font-weight: 600; }
.backup-meta { font-size: 11px; color: var(--text-secondary); }

.backup-actions { display: flex; gap: 6px; }

/* ===== TRANSACTION FORM ===== */
.transaction-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.form-header h2 { font-size: 18px; font-weight: 700; color: var(--primary); }

.type-toggle { display: flex; gap: 8px; }

.type-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.type-btn.expense.active { border-color: var(--expense-color); color: var(--expense-color); background: #fef2f2; }
.type-btn.income.active { border-color: var(--income-color); color: var(--income-color); background: #dcfce7; }

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.2s;
  background: var(--card-bg);
}

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

.receipt-btn {
  min-height: 48px;
  justify-content: center;
}

.receipt-preview {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: flex;
  font-size: 13px;
  margin-top: 8px;
  padding: 10px 12px;
}

.receipt-preview-main {
  align-items: center;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.receipt-preview-main div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.receipt-preview-main:hover strong { color: var(--accent-pink); }

.receipt-preview-main strong {
  color: var(--text);
  font-size: 13px;
}

.receipt-preview-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-thumb {
  border-radius: 10px;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.receipt-file-icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 10px;
  color: var(--primary);
  display: flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.receipt-file-icon i { width: 24px; height: 24px; }

.receipt-preview.hidden { display: none; }

.receipt-preview button {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-weight: 700;
}

.receipt-viewer {
  align-items: center;
  background: rgba(0,0,0,0.82);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 500;
}

.receipt-viewer.hidden { display: none; }

.receipt-viewer-content {
  max-height: 92vh;
  max-width: 920px;
  position: relative;
  width: 100%;
}

.receipt-viewer-content img {
  background: white;
  border-radius: var(--radius);
  display: block;
  max-height: 92vh;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.receipt-viewer-close {
  align-items: center;
  background: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 42px;
  z-index: 2;
}

.receipt-viewer-close i { width: 22px; height: 22px; }

.form-input-inline {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

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

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(26,26,138,0.3); }

.btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 2px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover { border-color: var(--accent-pink); color: var(--accent-pink); }

.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-danger:hover { background: #dc2626; }

.btn-logout {
  background: none;
  color: var(--text-secondary);
  border: 2px solid var(--border);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-logout:hover { border-color: var(--danger); color: var(--danger); }

.btn-full { width: 100%; }
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  color: var(--text);
  transition: all 0.2s;
}

.btn-icon:hover { background: var(--bg); color: var(--accent-pink); }
.btn-icon i { width: 22px; height: 22px; }
.btn-back { background: none; border: none; cursor: pointer; padding: 8px; border-radius: 10px; color: var(--text); }
.btn-back:hover { background: var(--bg); }
.btn-back i { width: 20px; height: 20px; }

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

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

.lang-btn {
  background: var(--bg);
  border: 2px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover { border-color: var(--accent-pink); }

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal.hidden { display: none; }

.modal-content {
  background: var(--card-bg);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-header h2 { font-size: 18px; font-weight: 700; color: var(--primary); }

.modal-list { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; overflow-x: hidden; }

.modal-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.editable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px 34px;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.editable-row.has-icon {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 50px 42px 34px;
}

.editable-row .form-input-inline {
  min-width: 0;
  width: 100%;
}

.btn-row-action {
  min-width: 42px;
  padding: 10px 12px;
}

.icon-picker { position: relative; }

.icon-picker-current {
  width: 50px;
  height: 42px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
}

.icon-palette {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 350;
  width: 220px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.icon-palette.hidden { display: none; }

.icon-palette button {
  border: none;
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
}

.icon-palette button:hover { background: #eef2ff; }

.modal-add {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.modal-add .form-input-inline { min-width: 120px; flex: 1; }

@media (max-width: 520px) {
  .editable-row,
  .editable-row.has-icon {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px;
  }

  .editable-row .icon-picker { grid-column: 1; }
  .editable-row .btn-row-action { grid-column: 2; }
  .editable-row .btn-icon { grid-column: 3; }
}

/* ===== DIALOG ===== */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.dialog-overlay.hidden { display: none; }

.dialog-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

.dialog-box h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.dialog-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }

.dialog-actions { display: flex; gap: 10px; }
.dialog-actions button { flex: 1; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s;
  font-size: 10px;
  font-weight: 700;
}

.nav-btn i { width: 22px; height: 22px; }
.nav-btn.active { color: var(--accent-pink); background: rgba(255,0,160,0.05); }
.nav-btn:not(.active):hover { color: var(--primary); }

/* ===== HOLOGRAPHIC EFFECTS ===== */
@keyframes holoShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.holo-gradient {
  background: linear-gradient(135deg, rgba(255,0,160,0.1), rgba(0,240,255,0.1), rgba(255,215,0,0.1));
  background-size: 200% 200%;
  animation: holoShimmer 3s ease infinite;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .app-container { max-width: 600px; margin: 0 auto; }
  .balance-value { font-size: 22px; }
  .modal-content { border-radius: 24px; margin: auto; }
  .modal { align-items: center; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-income { color: var(--income-color); }
.text-expense { color: var(--expense-color); }
