:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --border: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --accent: #059669;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --warn: #d97706;
  --danger: #dc2626;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 16px;
  --sidebar-w: 240px;
}

[data-theme="dark"] {
  --bg: #080c14;
  --surface: #0f1624;
  --surface2: #192236;
  --border: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(99, 102, 241, 0.4);
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --warn: #f59e0b;
  --danger: #ef4444;
  --text: #f1f5f9;
  --muted: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; transition: background-color 0.3s, color 0.3s; }
.hidden { display: none !important; }

/* ONBOARDING */
.onboarding { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 100; background: var(--bg); }
.onboarding-bg { position: absolute; inset: 0; overflow: hidden; }
.onboarding-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; }
.orb-1 { width: 500px; height: 500px; background: var(--primary-dark); top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; right: -50px; }
.orb-3 { width: 300px; height: 300px; background: var(--warn); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.onboarding-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 48px; width: 100%; max-width: 560px; box-shadow: 0 32px 80px rgba(0,0,0,0.5); }
.onboarding-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.logo-icon { font-size: 28px; }
.logo-text { font-size: 22px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ob-step { display: none; }
.ob-step.active { display: block; }
.ob-step h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.ob-step h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.subtitle { color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.step-icon { font-size: 48px; margin-bottom: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group select { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text); font-family: inherit; font-size: 14px; outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 4px; display: block; }
.field-error { font-size: 11px; color: var(--danger); margin-top: 4px; display: block; }
.req { color: var(--danger); }
.ob-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.ob-progress { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.ob-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all .3s; }
.ob-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* GMAIL CONNECT */
.gmail-connect-box { display: flex; align-items: center; gap: 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.gcb-icon { width: 40px; height: 40px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #4285F4; flex-shrink: 0; }
.gcb-info { flex: 1; }
.gcb-info strong { display: block; font-size: 14px; }
.gcb-info span { font-size: 12px; color: var(--muted); }
.btn-google { background: #4285F4; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-google:hover { background: #3574e2; }
.gmail-perms { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.perm-item { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.perm-icon { font-size: 12px; }
.gmail-status { font-size: 13px; color: var(--accent); min-height: 20px; }
.setup-summary { background: var(--surface2); border-radius: 12px; padding: 16px; font-size: 14px; color: var(--muted); line-height: 2; }
.setup-summary strong { color: var(--text); }

/* BUTTONS */
.btn-primary { background: var(--primary-dark); color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; }
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.4); }
.btn-primary.btn-lg { padding: 14px 28px; font-size: 15px; width: 100%; }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all .2s; }
.btn-secondary:hover { border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--muted); border: none; padding: 10px 16px; font-size: 14px; cursor: pointer; font-family: inherit; }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: rgba(248,113,113,0.15); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 8px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-family: inherit; transition: all .2s; }
.btn-icon:hover { color: var(--text); border-color: var(--primary); }
.btn-active { color: var(--primary) !important; border-color: var(--primary) !important; background: rgba(129,140,248,0.12) !important; }

/* APP SHELL */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* SIDEBAR */
.sidebar { width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; transition: width .3s; overflow: hidden; }
.sidebar.collapsed { width: 64px; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 16px; border-bottom: 1px solid var(--border); }
.app-logo { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.sidebar-toggle { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; }
.sidebar-toggle:hover { color: var(--text); background: var(--surface2); }
.sidebar-ruc { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ruc-badge { display: flex; align-items: center; gap: 6px; }
.ruc-label { font-size: 10px; font-weight: 700; color: var(--primary); background: rgba(129,140,248,0.1); border: 1px solid rgba(129,140,248,0.2); padding: 2px 6px; border-radius: 4px; }
.ruc-value { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.ruc-name { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 8px; }
.nav-section-title { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; padding: 12px 8px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: all .2s; position: relative; }
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: rgba(129,140,248,0.12); color: var(--primary); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-count { margin-left: auto; font-size: 11px; background: var(--surface2); color: var(--muted); padding: 1px 7px; border-radius: 10px; }
.nav-badge { margin-left: auto; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--border); }
.gmail-indicator { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.gi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.gi-dot.connected { background: var(--accent); }
.btn-sync-mini { width: 100%; background: rgba(129,140,248,0.1); border: 1px solid rgba(129,140,248,0.2); color: var(--primary); border-radius: 8px; padding: 8px; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit; transition: all .2s; }
.btn-sync-mini:hover { background: rgba(129,140,248,0.2); }

/* TOP HEADER */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.top-header { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; gap: 16px; flex-shrink: 0; }
.header-left { display: flex; align-items: center; gap: 12px; }
.hamburger { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; }
.breadcrumb { font-size: 14px; font-weight: 600; }
.header-center { display: flex; align-items: center; }
.period-selector { display: flex; align-items: center; gap: 6px; }
.period-btn { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 2px 8px; }
.period-btn:hover { color: var(--text); }
#period-month, #period-year { background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 4px 8px; font-size: 13px; font-family: inherit; outline: none; }
.header-right { display: flex; align-items: center; gap: 8px; }
.header-btn { background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; position: relative; }
.header-btn:hover { background: var(--surface2); color: var(--text); }
.notif-dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; background: var(--danger); border-radius: 50%; }
.avatar { width: 32px; height: 32px; background: var(--primary-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; cursor: pointer; }

/* PAGE CONTENT */
.page-content { flex: 1; overflow-y: auto; padding: 28px; }
.page-header { margin-bottom: 24px; }
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.page-subtitle { font-size: 14px; color: var(--muted); }
.page-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* KPI CARDS */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all .2s; }
.kpi-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.kpi-value { font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.kpi-value.green { color: var(--accent); }
.kpi-value.yellow { color: var(--warn); }
.kpi-value.red { color: var(--danger); }
.kpi-value.blue { color: var(--primary); }
.kpi-change { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.kpi-change.up { color: var(--accent); }
.kpi-change.down { color: var(--danger); }
.kpi-icon { font-size: 24px; float: right; opacity: 0.6; }

/* CHARTS */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-bottom: 24px; }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.chart-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--muted); }
.chart-canvas-wrap { position: relative; height: 220px; }

/* TABLE */
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.table-title { font-size: 14px; font-weight: 600; }
.table-actions { display: flex; gap: 8px; align-items: center; }
.search-input { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; color: var(--text); font-size: 13px; font-family: inherit; outline: none; width: 200px; }
.search-input:focus { border-color: var(--primary); }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* BADGES */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-green { background: rgba(52,211,153,0.12); color: var(--accent); }
.badge-yellow { background: rgba(251,191,36,0.12); color: var(--warn); }
.badge-red { background: rgba(248,113,113,0.12); color: var(--danger); }
.badge-blue { background: rgba(129,140,248,0.12); color: var(--primary); }
.badge-gray { background: var(--surface2); color: var(--muted); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-desc { font-size: 13px; margin-bottom: 20px; }

/* SYNC PAGE */
.sync-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.sync-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.sync-card-icon { font-size: 32px; margin-bottom: 12px; }
.sync-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.sync-card p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.sync-log { background: #000; border-radius: 8px; padding: 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; height: 140px; overflow-y: auto; color: var(--accent); }
.sync-log .log-err { color: var(--danger); }
.sync-log .log-info { color: var(--muted); }
.file-drop { border: 2px dashed var(--border); border-radius: 12px; padding: 32px; text-align: center; cursor: pointer; transition: all .2s; }
.file-drop:hover, .file-drop.drag-over { border-color: var(--primary); background: rgba(129,140,248,0.05); }
.file-drop input { display: none; }

/* CONCILIACION */
.conc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.conc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.conc-panel-header { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.conc-item { padding: 12px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.conc-item:hover { background: var(--surface2); }
.conc-item.selected { background: rgba(129,140,248,0.1); border-left: 3px solid var(--primary); }
.conc-item.matched { background: rgba(52,211,153,0.06); }
.conc-item.suggested { border-left: 3px dashed var(--accent); background: rgba(16, 185, 129, 0.02); }
.conc-item.suggested:hover { background: rgba(16, 185, 129, 0.06); }
.conc-item-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 3px; }
.conc-item-bot { font-size: 11px; color: var(--muted); }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; width: 90%; max-width: 600px; max-height: 80vh; display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.modal-body { padding: 22px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* TOAST */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 18px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); display: flex; align-items: center; gap: 10px; animation: slideIn .3s ease; min-width: 240px; }
.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* REPORT */
.report-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.report-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--muted); }
.report-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.report-row:last-child { border-bottom: none; }
.report-total { font-weight: 700; font-size: 15px; }
.filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-select { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-family: inherit; outline: none; }
.filter-select:focus { border-color: var(--primary); }

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -var(--sidebar-w); z-index: 50; height: 100vh; }
  .sidebar.mobile-open { left: 0; }
  .conc-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
}

/* LOADING SPINNER */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { text-align: center; padding: 40px; }

/* CONFIG */
.config-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.config-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.config-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.config-row:last-child { border-bottom: none; }
.config-label { font-size: 13px; font-weight: 500; }
.config-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.toggle { position: relative; width: 42px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--surface2); border-radius: 12px; cursor: pointer; transition: .3s; }
.toggle-slider:before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); left: 3px; top: 3px; transition: .3s; }
.toggle input:checked + .toggle-slider { background: var(--primary-dark); }
.toggle input:checked + .toggle-slider:before { transform: translateX(18px); background: #fff; }

/* DETAIL VIEW */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.detail-item label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; display: block; margin-bottom: 3px; }
.detail-item span { font-size: 14px; }
.xml-preview { background: #000; border-radius: 8px; padding: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; overflow-x: auto; max-height: 300px; overflow-y: auto; color: #7dd3fc; white-space: pre; }

/* TABS SYSTEM */
.tabs-wrapper {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  padding-bottom: 4px;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.tab-btn.active {
  color: var(--primary);
  background: var(--primary-glow);
}

/* TAX PLANNER CARD & INTERACTIVE elements */
.tax-planner-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .tax-planner-grid {
    grid-template-columns: 1fr;
  }
}
.planner-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.planner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: border-color 0.2s ease;
}
.planner-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
}
.planner-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.tax-glow-card {
  background: linear-gradient(145deg, var(--surface), rgba(16, 185, 129, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.tax-glow-card.payment {
  background: linear-gradient(145deg, var(--surface), rgba(245, 158, 11, 0.03));
}
.tax-glow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}
.tax-glow-card.payment::before {
  background: var(--warn);
}
.tax-result-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.tax-result-value {
  font-size: 38px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 20px var(--accent-glow);
}
.tax-glow-card.payment .tax-result-value {
  color: var(--warn);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}
.tax-bracket-meter {
  background: var(--surface2);
  border-radius: 8px;
  height: 10px;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 10px 0;
}
.tax-bracket-progress {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  height: 100%;
  border-radius: 8px;
  transition: width 0.4s ease;
}
.tax-bracket-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}
.tax-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.tax-detail-row:last-child {
  border-bottom: none;
}
.tax-detail-row.bold {
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.tax-table-small {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
  margin-top: 12px;
}
.tax-table-small th {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  padding: 4px 6px;
  border-bottom: 1px solid var(--border);
}
.tax-table-small td {
  padding: 5px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.tax-table-small tr.active td {
  background: rgba(99, 102, 241, 0.12);
  font-weight: 700;
  color: var(--primary);
}
