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

:root {
  --bg: #030305;
  --bg-card: #0a0a0e;
  --fg: #f0f0f5;
  --fg-muted: #7a7a8a;
  --fg-dim: #4a4a5a;
  --primary: hsl(24, 90%, 52%);
  --primary-hover: hsl(24, 90%, 46%);
  --primary-glow: hsla(24, 90%, 52%, 0.35);
  --accent: hsl(220, 90%, 62%);
  --accent-glow: hsla(220, 90%, 62%, 0.3);
  --green: hsl(142, 70%, 48%);
  --green-dim: hsla(142, 70%, 48%, 0.12);
  --red: hsl(0, 72%, 55%);
  --red-dim: hsla(0, 72%, 55%, 0.12);
  --yellow: hsl(44, 90%, 55%);
  --yellow-dim: hsla(44, 90%, 55%, 0.12);
  --purple: hsl(268, 80%, 65%);
  --border: hsla(0, 0%, 100%, 0.07);
  --border-strong: hsla(0, 0%, 100%, 0.13);
  --surface: hsla(0, 0%, 100%, 0.03);
  --panel-bg: hsla(240, 6%, 9%, 0.75);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px var(--primary-glow);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 40% at 10% 60%, hsla(24, 90%, 52%, 0.04), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, hsla(220, 90%, 62%, 0.04), transparent),
    radial-gradient(ellipse 50% 60% at 50% 100%, hsla(268, 80%, 65%, 0.03), transparent);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fg-dim);
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  width: 100%;
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-primary {
  color: var(--primary);
}

.text-green {
  color: var(--green);
}

.text-red {
  color: var(--red);
}

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

.text-yellow {
  color: var(--yellow);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.badge-green {
  background: var(--green-dim);
  color: var(--green);
}

.badge-red {
  background: var(--red-dim);
  color: var(--red);
}

.badge-blue {
  background: hsla(220, 90%, 62%, 0.14);
  color: var(--accent);
}

.badge-yellow {
  background: var(--yellow-dim);
  color: var(--yellow);
}

.badge-purple {
  background: hsla(268, 80%, 65%, 0.14);
  color: var(--purple);
}

/* ── Panels ─────────────────────────────────────────────────── */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.glass-panel-strong {
  background: linear-gradient(145deg, hsla(240, 6%, 13%, 0.9) 0%, hsla(240, 6%, 7%, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 13px;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 28px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: hsla(0, 0%, 100%, 0.22);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: hsla(0, 0%, 2%, 0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 0 14px var(--primary-glow);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

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

/* ── SPA Views ──────────────────────────────────────────────── */
.view {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.35s ease;
}

/* ── Account Dropdown ───────────────────────────────────────── */
#accountDropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: hsla(240, 6%, 11%, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 120;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: clamp(140px, 16vw, 190px) 0 clamp(64px, 8vw, 100px);
  position: relative;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(16px, 2.3vw, 19px);
  color: var(--fg-muted);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hero-stat {
  text-align: center;
  padding: 0 32px;
}

.hero-stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
}

.hero-stat-label {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Upload Section ─────────────────────────────────────────── */
.upload-section {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--fg-muted);
  font-size: clamp(14px, 2.5vw, 17px);
  max-width: 560px;
  margin: 0 auto;
}

.upload-card {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
}

.upload-state {
  display: none;
}

.upload-state.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

.upload-box {
  border: 2px dashed hsla(24, 90%, 52%, 0.28);
  background: hsla(24, 90%, 52%, 0.02);
  padding: clamp(32px, 5vw, 64px) 32px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.upload-box:hover {
  border-color: var(--primary);
  background: hsla(24, 90%, 52%, 0.06);
  box-shadow: var(--shadow-glow);
}

.upload-box h3 {
  font-size: 20px;
  margin: 12px 0 8px;
}

.upload-box p {
  color: var(--fg-muted);
  font-size: 14px;
}

.upload-icon-wrap {
  width: 64px;
  height: 64px;
  background: hsla(24, 90%, 52%, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.upload-icon {
  font-size: 28px;
}

.processing-wrap {
  text-align: center;
  padding: 24px 0;
}

.processing-ring {
  width: 56px;
  height: 56px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.processing-hint {
  font-size: 13px;
  margin-top: 8px;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  margin: 20px 0 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}

/* ── Dashboard ──────────────────────────────────────────────── */
.dashboard-wrap {
  padding-top: 72px;
  padding-bottom: 60px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 0 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-header h1 {
  font-size: clamp(24px, 3.5vw, 36px);
}

/* Profile Card */
.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.profile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.profile-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.profile-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.pmeta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pmeta-label {
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pmeta-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, currentColor, transparent);
  transition: opacity 0.3s;
}

.kpi-icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.kpi-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.kpi-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1;
}

.kpi-sub {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 6px;
}

.kpi-income .kpi-val {
  color: var(--green);
}

.kpi-expense .kpi-val {
  color: var(--red);
}

.kpi-savings .kpi-val {
  color: var(--primary);
}

.kpi-invest .kpi-val {
  color: var(--accent);
}

.kpi-emi .kpi-val {
  color: var(--yellow);
}

/* AI Summary */
.ai-summary-card {
  padding: 24px 28px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent);
}

.ai-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.ai-summary-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg);
  font-style: italic;
}

/* Charts */
.charts-main-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.charts-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-card {
  padding: 24px;
}

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

.chart-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.chart-trend-wrap .chart-body {
  position: relative;
  height: clamp(220px, 22vw, 300px);
}

.chart-body {
  position: relative;
  height: 200px;
}

.donut-wrap {
  position: relative;
  height: clamp(190px, 20vw, 260px);
}

/* Chart Legend (custom) */
.chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Merchant List */
.merchant-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  max-height: 220px;
}

.merchant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.merchant-row:last-child {
  border-bottom: none;
}

.merchant-name {
  font-size: 13px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.merchant-bar-wrap {
  width: 80px;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}

.merchant-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.merchant-amt {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Insights Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.insight-panel {
  padding: 24px;
}

.insight-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.insight-panel-icon {
  font-size: 20px;
}

.insight-panel h3 {
  font-size: 15px;
  font-weight: 700;
}

.leak-card,
.suggestion-card,
.recurring-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: hsla(0, 0%, 0%, 0.25);
  border-radius: var(--radius);
  margin-bottom: 8px;
  border-left: 3px solid transparent;
}

.leak-card.high {
  border-left-color: var(--red);
}

.leak-card.medium {
  border-left-color: var(--yellow);
}

.leak-card.low {
  border-left-color: var(--fg-dim);
}

.leak-severity {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.leak-body {
  flex: 1;
}

.leak-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.leak-detail {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.leak-impact {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  margin-top: 4px;
}

.suggestion-card {
  border-left-color: var(--accent);
}

.suggestion-bucket {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 2px;
}

.suggestion-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.suggestion-detail {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.suggestion-impact {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-top: 4px;
}

.recurring-card {
  border-left-color: var(--purple);
}

.recurring-merchant {
  font-size: 13px;
  font-weight: 700;
}

.recurring-meta {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.recurring-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 4px;
  display: inline-block;
}

/* Behavioral Panel */
.behavioral-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.beh-item {
  background: hsla(0, 0%, 0%, 0.25);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.beh-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fg-dim);
  margin-bottom: 4px;
}

.beh-val {
  font-size: 14px;
  font-weight: 700;
}

/* Transaction Table */
.tx-table-wrap {
  padding: 0;
  overflow: hidden;
  margin-bottom: 0;
}

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

.tx-table-header h3 {
  font-size: 16px;
}

.tx-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.select-control {
  background: hsla(0, 0%, 0%, 0.35);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 8px 12px;
  border-radius: var(--radius);
  outline: none;
  font-size: 13px;
  cursor: pointer;
}

.select-control:focus {
  border-color: var(--primary);
}

.tx-table-scroll {
  overflow-x: auto;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tx-table thead th {
  padding: 10px 20px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: hsla(0, 0%, 0%, 0.2);
}

.tx-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.tx-table tbody tr:hover {
  background: hsla(255, 255%, 255%, 0.02);
}

.tx-table tbody tr:last-child {
  border-bottom: none;
}

.tx-table tbody td {
  padding: 11px 20px;
  white-space: nowrap;
}

.tx-merchant {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-amount-credit {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--green);
}

.tx-amount-debit {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--red);
}

.tx-flag {
  display: inline-block;
  font-size: 12px;
  margin-right: 3px;
}

.tx-cat-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.tx-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.page-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Settings */
.settings-box {
  max-width: 600px;
  margin: 0 auto;
}

.input-control {
  width: 100%;
  background: hsla(0, 0%, 0%, 0.35);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 14px 16px;
  border-radius: var(--radius);
  outline: none;
  font-size: 15px;
  font-family: monospace;
  transition: border-color 0.2s;
}

.input-control:focus {
  border-color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.5
  }
}

.animate-pulse {
  animation: pulse 2s ease infinite;
}

/* Responsive */
@media(max-width:1100px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width:900px) {
  .nav-links {
    display: none;
  }

  .charts-main-row,
  .charts-secondary-row,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-meta {
    gap: 16px;
  }
}

@media(max-width:600px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .tx-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    border-radius: var(--radius-lg);
  }

  .nav-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    justify-content: center;
    z-index: 100;
  }

  .navbar {
    border-bottom: none;
  }
}

/* ── Reconciliation Card ────────────────────────────────────── */
.recon-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  flex-wrap: wrap;
}

.recon-card.verified {
  background: hsla(142, 70%, 48%, 0.06);
  border-color: hsla(142, 70%, 48%, 0.25);
}

.recon-card.mismatch {
  background: hsla(0, 72%, 55%, 0.06);
  border-color: hsla(0, 72%, 55%, 0.25);
}

.recon-card.neutral {
  background: var(--panel-bg);
  border-color: var(--border-strong);
}

.recon-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.recon-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.recon-status {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.recon-detail {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 500px;
}

.recon-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.recon-confidence {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
}

.recon-checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.recon-check-item {
  font-size: 11px;
  color: var(--fg-muted);
  display: flex;
  gap: 6px;
  align-items: center;
}

.recon-check-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Currency Value Badge ────────────────────────────────────── */
.currency-val {
  color: var(--accent) !important;
  font-weight: 700;
}

/* ── Valorant-style chart height ────────────────────────────── */
.chart-trend-wrap .chart-body {
  position: relative;
  height: clamp(260px, 26vw, 360px) !important;
}