:root {
  --bg-dark: #0b0f17;
  --bg-card: #111827;
  --bg-surface: #1e293b;
  --bg-surface-hover: #263449;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.18);
  --blue: #3b82f6;
  --amber: #f59e0b;
  --red: #ef4444;
  --border: #1f2937;
  --border-light: #334155;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Top Privacy Banner */
.privacy-bar {
  background: linear-gradient(90deg, #064e3b 0%, #0f172a 50%, #064e3b 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 16px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: #a7f3d0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.privacy-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
  display: inline-block;
}

/* Navigation */
.navbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald), #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #022c22;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px var(--emerald-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text-main);
}

.founder-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.plan-badge.pro {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

/* Hero Section */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 28px;
  text-align: center;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, #34d399, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.subtitle {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 720px;
  margin: 0 auto 28px;
}

/* Bank Selector Pills */
.bank-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.bank-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.bank-pill:hover, .bank-pill.active {
  border-color: var(--emerald);
  color: var(--text-main);
  background: rgba(16, 185, 129, 0.12);
}

/* Dropzone Card */
.converter-shell {
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.dropzone-card {
  background: radial-gradient(circle at top, rgba(16, 185, 129, 0.08), transparent 65%), var(--bg-card);
  border: 2px dashed var(--border-light);
  border-radius: 20px;
  padding: 44px 28px;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  position: relative;
}

.dropzone-card.dragover {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  transform: scale(1.005);
}

.drop-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}

.dropzone-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dropzone-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.drop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--emerald);
  color: #022c22;
  font-weight: 700;
  box-shadow: 0 8px 24px var(--emerald-glow);
}

.btn-primary:hover {
  background: #34d399;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.83rem;
  border-radius: 8px;
}

.security-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 8px;
}

.security-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Results Workspace */
.workspace {
  display: none;
  margin-top: 28px;
  animation: fadeIn 0.25s ease;
}

.workspace.visible {
  display: block;
}

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

/* KPI Summary Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.kpi-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kpi-value.positive { color: #34d399; }
.kpi-value.negative { color: #f87171; }
.kpi-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Export Toolbar */
.export-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.file-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.export-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Table Container */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

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

table.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.tx-table th {
  background: #0f172a;
  color: var(--text-muted);
  text-align: left;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-light);
}

table.tx-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

table.tx-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.amount-out {
  color: #fca5a5;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.amount-in {
  color: #6ee7b7;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.amount-bal {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.cat-select {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* Blurred Locked Rows & Paywall Overlay */
tr.locked-row td {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.55;
}

.paywall-banner {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.4) 0%, rgba(17, 24, 39, 0.96) 28%, #0f172a 100%);
  padding: 36px 24px 32px;
  text-align: center;
  border-top: 1px solid rgba(16, 185, 129, 0.35);
}

.paywall-banner h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.paywall-banner p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 20px;
  font-size: 0.95rem;
}

/* Pricing Section */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 42px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--emerald);
  box-shadow: 0 18px 45px rgba(16, 185, 129, 0.14);
}

.popular-tag {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--emerald);
  color: #022c22;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.price-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 20px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 850;
  margin-bottom: 20px;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
}

.price-features li {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 900;
}

/* Programmatic SEO Bank Directory Grid */
.bank-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.bank-dir-link {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s;
}

.bank-dir-link:hover {
  border-color: var(--emerald);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
