/* ════════════════════════════════════
   PILLARMINDS — main.css
   Design system + all page styles
════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #0A1628;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── ARABIC MODE ── */
html[lang="ar"] body {
  font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}

/* ── TOKENS ── */
:root {
  --blue-50:   #EEF4FF;
  --blue-100:  #DBEAFE;
  --blue-200:  #BFDBFE;
  --blue-400:  #60A5FA;
  --blue-500:  #3B82F6;
  --blue-600:  #1D6AF2;
  --blue-700:  #1A56DB;
  --blue-800:  #1E40AF;
  --blue-900:  #1E3A8A;
  --navy:      #0A1628;
  --navy-2:    #112240;
  --navy-3:    #1A3260;
  --white:     #FFFFFF;
  --gray-50:   #F8FAFC;
  --gray-100:  #F1F5F9;
  --gray-200:  #E2E8F0;
  --gray-300:  #CBD5E1;
  --gray-400:  #94A3B8;
  --gray-500:  #64748B;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1E293B;
  --green:     #059669;
  --green-bg:  #ECFDF5;
  --amber:     #D97706;
  --amber-bg:  #FFFBEB;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ── LAYOUT ── */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 780px;  margin: 0 auto; padding: 0 2rem; }

/* ════════════════════════════════════
   NAVIGATION
════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  height: 72px;
  transition: box-shadow 0.3s ease;
}
nav.scrolled { box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  max-height: 72px;
  overflow: hidden;
}
.nav-logo img {
  display: block;
  width: auto;
  height: 42px;
  max-height: 42px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.nav-logo:hover img { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 0 14px;
  height: 72px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 8px;
  position: relative;
}
.nav-links a:hover {
  color: var(--navy);
  background: var(--gray-50);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--blue-600);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-links a:hover::after { width: 24px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.nav-mobile-toggle:hover { background: var(--gray-50); }
.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── BUTTONS ── */
.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.btn-primary {
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--blue-600);
  padding: 9px 20px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 106, 242, 0.3);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.lang-toggle:hover {
  border-color: var(--blue-400);
  color: var(--navy);
  background: var(--gray-50);
}

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  padding-top: 72px;
  background: linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 60%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0 5rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--blue-200);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue-600);
  border-radius: 50%;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
h1 em { font-style: normal; color: var(--blue-600); }

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.15;
}
h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  background: var(--blue-600);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
}
.btn-hero-primary:hover  { background: var(--blue-700); }
.btn-hero-primary:active { transform: scale(0.98); }

.btn-hero-secondary {
  background: white;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.btn-hero-secondary:hover { border-color: var(--gray-300); background: var(--gray-50); }

.hero-trust {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
}
.hero-trust-item svg { color: var(--green); }

.dashboard-preview {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(10,22,40,0.12), 0 4px 16px rgba(10,22,40,0.06);
}
.dash-header {
  background: var(--navy);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
}
html[lang="ar"] .dash-label { margin-left: 0; margin-right: auto; }

.dash-body { padding: 20px; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.dash-stat {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--gray-100);
}
.dash-stat-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.dash-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-family: 'IBM Plex Mono', monospace;
}
.dash-stat-val.green { color: var(--green); }
.dash-stat-val.blue  { color: var(--blue-600); }
.dash-stat-val.red   { color: #DC2626; }

.dash-entities {
  background: var(--gray-50);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.dash-entity-head, .dash-entity-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 8px 12px;
}
.dash-entity-head {
  background: var(--gray-100);
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash-entity-row {
  border-top: 1px solid var(--gray-100);
  font-size: 11px;
  align-items: center;
}
.dash-entity-name    { font-weight: 500; color: var(--navy); }
.dash-entity-country { color: var(--gray-500); }

.etr-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
}
.etr-ok   { background: var(--green-bg); color: var(--green); }
.etr-warn { background: #FEF3C7; color: var(--amber); }
.etr-bad  { background: #FEE2E2; color: #DC2626; }

.topup { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; }
.topup.zero { color: var(--green); }
.topup.due  { color: #DC2626; }

/* ════════════════════════════════════
   TICKER
════════════════════════════════════ */
.ticker-bar { background: var(--navy); padding: 10px 0; overflow: hidden; }
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2.5rem;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ticker-item strong { color: rgba(255,255,255,0.9); }
.ticker-dot { width: 4px; height: 4px; background: var(--blue-400); border-radius: 50%; flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ════════════════════════════════════
   SECTION COMMON
════════════════════════════════════ */
section { padding: 5rem 0; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 560px;
}
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }
.section-alt { background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }

/* ════════════════════════════════════
   FEATURES
════════════════════════════════════ */
.features-bg {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5px;
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
}
.feature-cell {
  background: white;
  padding: 2rem;
  transition: background 0.15s;
}
.feature-cell:hover { background: var(--blue-50); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--blue-600); }
.feature-title { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.feature-desc  { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background 0.15s;
  border: 1.5px solid transparent;
}
.step:hover  { background: var(--blue-50); }
.step.active { background: var(--blue-50); border-color: var(--blue-200); }
.step-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--blue-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}
.step.active .step-num { box-shadow: 0 0 0 4px var(--blue-100); }
.step-text p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

.how-visual {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.how-visual-header {
  background: var(--navy);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ════════════════════════════════════
   CALC SECTION
════════════════════════════════════ */
.calc-section { background: var(--navy); }
.calc-section h2 { color: white; }
.calc-section .section-eyebrow { color: var(--blue-400); }
.calc-section .section-sub { color: rgba(255,255,255,0.55); }

.calc-cards {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
}
.calc-card { background: var(--navy-2); padding: 2rem 1.5rem; }
.calc-card-icon  { font-size: 28px; margin-bottom: 1rem; }
.calc-card-title { font-size: 15px; font-weight: 600; color: white; margin-bottom: 8px; }
.calc-card-desc  { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; }
.calc-card-formula {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--blue-400);
  background: rgba(61,131,246,0.1);
  border: 1px solid rgba(61,131,246,0.2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ════════════════════════════════════
   COMPLIANCE
════════════════════════════════════ */
.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.compliance-list { display: flex; flex-direction: column; gap: 10px; }
.compliance-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: white;
  border: 1.5px solid var(--gray-200);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: border-color 0.15s;
}
.compliance-item:hover { border-color: var(--blue-300); }
.compliance-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-green { background: var(--green-bg); }
.check-green svg { color: var(--green); }
.check-blue  { background: var(--blue-50); }
.check-blue  svg { color: var(--blue-600); }

/* ════════════════════════════════════
   TRUST
════════════════════════════════════ */
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.trust-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.15s;
}
.trust-card:hover { border-color: var(--blue-200); }
.trust-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 24px;
}
.trust-title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.trust-desc  { font-size: 13px; color: var(--gray-500); line-height: 1.55; }

/* ════════════════════════════════════
   PRICING
════════════════════════════════════ */
.pricing-bg { background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
  align-items: start;
}
.plan-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.plan-card:hover { border-color: var(--gray-300); box-shadow: 0 8px 32px rgba(10,22,40,0.08); }
.plan-card.featured { border: 2px solid var(--blue-600); box-shadow: 0 0 0 4px var(--blue-50); }

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-name    { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.plan-tagline { font-size: 13px; color: var(--gray-500); margin-bottom: 1.5rem; line-height: 1.5; }

.plan-price-main {
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: -0.03em;
}
.plan-price-period { font-size: 14px; color: var(--gray-400); margin-top: 4px; }
.plan-price-note   { font-size: 12px; color: var(--green); font-weight: 500; margin-top: 4px; }
.plan-price { margin-bottom: 1.5rem; }

.plan-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.cta-blue    { background: var(--blue-600); color: white; }
.cta-blue:hover { background: var(--blue-700); }
.cta-outline { background: white; color: var(--navy); border: 1.5px solid var(--gray-200); }
.cta-outline:hover { border-color: var(--gray-300); background: var(--gray-50); }
.cta-navy    { background: var(--navy); color: white; }
.cta-navy:hover { background: var(--navy-2); }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.45;
}
.plan-feature-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.pfc-g { background: var(--green-bg); }
.pfc-g svg { color: var(--green); }
.pfc-b { background: var(--blue-50); }
.pfc-b svg { color: var(--blue-600); }
.pfc-x { background: var(--gray-100); }
.pfc-x svg { color: var(--gray-300); }

/* ════════════════════════════════════
   FAQ
════════════════════════════════════ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--gray-200); }
.faq-item:last-child { border-bottom: 1px solid var(--gray-200); }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 12px;
  text-align: left;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
}
html[lang="ar"] .faq-btn { text-align: right; }
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.faq-icon svg { color: var(--blue-600); transition: transform 0.2s; }
.faq-item.open .faq-icon { background: var(--blue-600); }
.faq-item.open .faq-icon svg { color: white; transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 20px; font-size: 14px; color: var(--gray-500); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ════════════════════════════════════
   CONTACT
════════════════════════════════════ */
.contact-bg { background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: border-color 0.15s;
  margin-bottom: 12px;
}
.contact-link:hover { border-color: var(--blue-300); }
.contact-link-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-form-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.contact-form-card h3 { font-size: 18px; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 12px; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}
.form-input, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s;
  background: white;
  appearance: none;
}
.form-input:focus, .form-select:focus { border-color: var(--blue-400); }
.form-submit {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: var(--blue-600);
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}
.form-submit:hover { background: var(--blue-700); }

/* ════════════════════════════════════
   FINAL CTA
════════════════════════════════════ */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  overflow: hidden;
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(29,106,242,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta-inner { text-align: center; padding: 6rem 0; position: relative; }
.final-cta h2 { color: white; font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.final-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.final-cta-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--blue-400); border-radius: 50%; }
.final-cta-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-white {
  background: white;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
}
.btn-white:hover { opacity: 0.92; }
.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.25);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.5); color: white; }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
  margin-top: 8px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-badges { display: flex; gap: 8px; }
.footer-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
}

/* ════════════════════════════════════
   DASHBOARD & WORKSPACE
════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.06);
  border-color: var(--gray-300);
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card .stat-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.stat-card .stat-icon.red { background: #FEE2E2; color: #DC2626; }
.stat-card .stat-icon.green { background: var(--green-bg); color: var(--green); }
.stat-card .stat-icon.amber { background: var(--amber-bg); color: var(--amber); }
.stat-card .stat-content { flex: 1; min-width: 0; }
.stat-card .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Inter', monospace;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--navy);
}
.stat-card .stat-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
}

.chart-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.chart-card .chart-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.safe-harbour-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.safe-harbour-card .sh-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}
.safe-harbour-card .sh-desc {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.safe-harbour-card .sh-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.safe-harbour-card .sh-item:last-child { border-bottom: none; }
.safe-harbour-card .sh-item-label { font-size: 13px; color: var(--gray-600); }
.safe-harbour-card .sh-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 100px;
}
.sh-status.safe { background: var(--green-bg); color: var(--green); }
.sh-status.review { background: var(--amber-bg); color: var(--amber); }
.sh-status.risk { background: #FEE2E2; color: #DC2626; }
.sh-status.complete { background: var(--green-bg); color: var(--green); }
.safe-harbour-card .sh-footer {
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
  margin-top: 1rem;
  text-align: center;
}
.safe-harbour-card .sh-footer-label {
  font-size: 11px;
  color: var(--gray-400);
  display: block;
}
.safe-harbour-card .sh-footer-value {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.upload-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.upload-card .upload-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.upload-card .upload-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.upload-card .upload-header p {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}
.upload-card .upload-header .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 6px 16px;
  border-radius: var(--radius);
  border: 1px solid #FDE68A;
  transition: all 0.2s ease;
}
.upload-card .upload-header .btn-download:hover { background: #FEF3C7; }

.upload-area {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--gray-50);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  text-align: center;
}
.upload-area:hover {
  border-color: var(--gray-300);
  background: #F1F5F9;
}
.upload-area.dragover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-area .upload-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-400);
}
.upload-area .upload-icon svg { width: 32px; height: 32px; }
.upload-area .upload-label { font-size: 14px; color: var(--gray-500); }
.upload-area .upload-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

.upload-card .btn-submit {
  width: 100%;
  margin-top: 1rem;
  background: var(--navy);
  color: white;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.upload-card .btn-submit:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.15);
}

.table-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.table-card .table-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.table-card .table-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.table-card .table-header .count { font-size: 12px; color: var(--gray-400); }

table {
  width: 100%;
  border-collapse: collapse;
}
table thead {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
table thead th {
  padding: 0.6rem 1.25rem;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table tbody td {
  padding: 0.6rem 1.25rem;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-50);
}
table tbody tr:hover { background: var(--gray-50); }
table tbody tr:last-child td { border-bottom: none; }

.jurisdiction-tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
}

.etr-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  font-family: 'Inter', monospace;
}
.etr-badge.high { background: var(--green-bg); color: var(--green); }
.etr-badge.medium { background: var(--amber-bg); color: var(--amber); }
.etr-badge.low { background: #FEE2E2; color: #DC2626; }

.empty-row td {
  padding: 3rem 1.25rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 14px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.workspace-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.workspace-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
  border-color: var(--blue-400);
}
.workspace-card .card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid var(--blue-200);
}
.workspace-card .card-badge svg { width: 14px; height: 14px; color: var(--blue-600); }
.workspace-card .card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.75rem 0 0.25rem;
}
.workspace-card .card-meta {
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
}
.workspace-card .card-meta svg { width: 16px; height: 16px; color: var(--gray-400); }
.workspace-card .card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}
.workspace-card .btn-dash {
  flex: 1;
  background: var(--navy);
  color: white;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.workspace-card .btn-dash:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.2);
}
.workspace-card .btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--gray-500);
}
.workspace-card .btn-icon:hover {
  background: var(--gray-100);
  color: var(--navy);
}
.workspace-card .btn-icon.delete:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.page-header .header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.page-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.page-header .subtitle {
  color: var(--gray-500);
  font-size: 15px;
}
.page-header .btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-family: inherit;
}
.page-header .btn-add:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.15);
}
.page-header .btn-add svg { width: 18px; height: 18px; }

.dashboard-page .page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.dashboard-page .page-subtitle {
  font-size: 14px;
  color: var(--gray-500);
}
.dashboard-page .page-subtitle .highlight {
  color: var(--amber);
  font-weight: 600;
}
.dashboard-page .back-link {
  font-size: 14px;
  color: var(--blue-600);
  font-weight: 500;
  transition: color 0.2s ease;
}
.dashboard-page .back-link:hover { color: var(--blue-700); }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 2px dashed var(--gray-200);
  grid-column: 1 / -1;
}
.empty-state svg {
  margin: 0 auto 1.25rem;
  color: var(--gray-300);
}
.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.empty-state p {
  color: var(--gray-400);
  font-size: 14px;
}
.empty-state .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-600);
  color: white;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-family: inherit;
  margin-top: 1rem;
}
.empty-state .btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 106, 242, 0.3);
}

/* ── Alert Messages ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  font-size: 14px;
  font-weight: 500;
}
.alert-success {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #A7F3D0;
}
.alert-error {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}
.alert-info {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
}

/* ════════════════════════════════════
   ENTITY MANAGEMENT
════════════════════════════════════ */
.entity-row td { border-bottom: 2px solid #e2e8f0; }

.expand-btn {
  cursor: pointer;
  transition: transform 0.2s;
  background: none;
  border: none;
  font: inherit;
  color: #1a2a4a;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.expand-btn:hover { color: #2563eb; }
.expand-btn svg {
  transition: transform 0.2s;
  width: 1rem;
  height: 1rem;
}
.expand-btn.expanded svg { transform: rotate(90deg); }

.financial-details {
  display: none;
  background: #f8fafc;
}
.financial-details.show { display: table-row; }
.financial-details td { padding: 0.5rem 1.5rem 0.5rem 3rem !important; }
.financial-details .financial-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.financial-details .financial-info .label { color: #94a3b8; }
.financial-details .financial-info .value {
  font-family: monospace;
  font-weight: 600;
  color: #1e293b;
}
.financial-details .financial-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.financial-details .financial-actions a {
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  color: #94a3b8;
}
.financial-details .financial-actions a:hover { background: #f1f5f9; }
.financial-details .financial-actions a.edit:hover {
  color: #2563eb;
  background: #dbeafe;
}
.financial-details .financial-actions a.delete:hover {
  color: #dc2626;
  background: #fee2e2;
}

.empty-financial {
  color: #94a3b8;
  font-size: 0.875rem;
}
.empty-financial a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.empty-financial a:hover { text-decoration: underline; }

.action-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  color: #94a3b8;
}
.action-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.action-btn-edit:hover {
  color: #2563eb;
  background: #dbeafe;
}
.action-btn-delete:hover {
  color: #dc2626;
  background: #fee2e2;
}
.action-btn svg { width: 1.125rem; height: 1.125rem; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-purple { background: #ede9fe; color: #5b21b6; }

/* ── Form Styles ── */
.form-container {
  max-width: 600px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.form-container .page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: #dbeafe;
  border-radius: 0.75rem;
  color: #2563eb;
  margin-bottom: 1rem;
}
.form-container .page-icon svg { width: 1.5rem; height: 1.5rem; }

.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.form-label .required { color: #dc2626; margin-right: 0.25rem; }

.form-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.form-input:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
}

select.form-input {
  appearance: auto;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
select.form-input option { padding: 0.5rem; color: #1e293b; }
select.form-input option:disabled,
select.form-input option:first-child { color: #94a3b8; }

.form-help {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}
.form-error {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.25rem;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 0.5rem;
}

.entity-info {
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.entity-info .label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.entity-info .value { font-weight: 600; color: #1a2a4a; }
.entity-info .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #dbeafe;
  color: #1d4ed8;
}

.tips-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.tips-box h4 { color: #1e40af; font-weight: 600; margin-bottom: 0.5rem; }
.tips-box ul { list-style: none; padding: 0; margin: 0; }
.tips-box ul li {
  color: #1e40af;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}
.tips-box ul li::before { content: "• "; font-weight: bold; }

.financial-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e2e8f0;
}
.financial-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 0.5rem;
}
.financial-section-sub {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.financial-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.financial-card:hover { background: #f1f5f9; }
.financial-card .year {
  font-weight: 700;
  color: #1a2a4a;
  min-width: 80px;
}
.financial-card .detail {
  font-size: 0.875rem;
  color: #64748b;
}
.financial-card .detail span {
  font-family: monospace;
  font-weight: 600;
  color: #1e293b;
}
.financial-card .actions { display: flex; gap: 0.5rem; }

/* ── Delete Confirmation ── */
.delete-container {
  max-width: 450px;
  width: 100%;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.warning-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  background: #fee2e2;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.warning-icon svg { width: 2rem; height: 2rem; color: #dc2626; }
.delete-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.delete-message {
  color: #64748b;
  margin-bottom: 1.5rem;
}
.delete-message strong { color: #dc2626; }
.delete-warning {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}
.delete-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.entity-details {
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.entity-details .label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.entity-details .value {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
  .calc-cards { grid-template-columns: repeat(2,1fr); }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: 0 10px; font-size: 13px; }
  .nav-actions .btn-ghost { padding: 6px 12px; font-size: 13px; }
  .nav-actions .btn-primary { padding: 7px 16px; font-size: 13px; }
}

@media (max-width: 860px) {
  nav { height: 64px; }
  .nav-inner { height: 64px; padding: 0 1rem; }
  .nav-logo img { height: 34px; max-height: 34px; }
  .hero { padding-top: 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0 3rem; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    padding: 0.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    height: auto;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--gray-700);
    justify-content: flex-start;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover {
    background: var(--gray-50);
    color: var(--navy);
  }
  .nav-mobile-toggle { display: flex; }
  .nav-actions .btn-ghost { padding: 6px 10px; font-size: 12px; }
  .nav-actions .btn-primary { padding: 6px 12px; font-size: 12px; }
  .lang-toggle span { display: none; }
  .lang-toggle { padding: 6px 10px; }
}

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .features-grid { grid-template-columns: 1fr; }
  .calc-cards { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .container, .container-sm { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }
  .final-cta-btns { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .stat-card .stat-value { font-size: 1.5rem; }
  .workspace-card .card-actions { flex-wrap: wrap; }
  .workspace-card .btn-dash { width: 100%; flex: none; }
  .page-header .header-top { flex-direction: column; align-items: stretch; }
  .page-header .btn-add { justify-content: center; }
  .upload-card .upload-header { flex-direction: column; align-items: stretch; }
  table thead th, table tbody td { padding: 0.5rem 0.75rem; font-size: 12px; }
  
  .form-container { padding: 1.5rem; margin: 1rem; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn-primary,
  .form-actions .btn-secondary { width: 100%; justify-content: center; }
  .delete-container { padding: 1.5rem; margin: 1rem; }
  .delete-actions { flex-direction: column-reverse; }
  .delete-actions .btn-danger,
  .delete-actions .btn-secondary { width: 100%; justify-content: center; }
  .financial-card { flex-direction: column; align-items: stretch; text-align: center; }
  .financial-card .actions { justify-content: center; }
  .financial-details td { padding: 0.5rem 1rem 0.5rem 1.5rem !important; }
  .financial-details .financial-info { gap: 0.75rem; font-size: 0.75rem; }
  .financial-details .financial-info .value { font-size: 0.75rem; }
  .action-group { gap: 0.125rem; }
  .action-btn { width: 1.75rem; height: 1.75rem; }
  .action-btn svg { width: 1rem; height: 1rem; }
  .table-container { font-size: 0.75rem; }
  .badge { font-size: 0.65rem; padding: 0.15rem 0.5rem; }
  .entity-info { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  nav, .nav-links a, .btn-primary, .btn-ghost, .lang-toggle,
  .nav-mobile-toggle span, .nav-links a::after, .stat-card,
  .workspace-card { transition: none !important; }
}

/* ── Utilities ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.card-hover { transition: box-shadow 0.2s; }
.card-hover:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

.stat-card .value { font-size: 1.75rem; font-weight: 700; color: #1a2a4a; }
.stat-card .value-sm { font-size: 1.25rem; }

/* Input number arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { opacity: 1; }
input[type=number] { -moz-appearance: textfield; }