/* ==========================================================================
   PorezCalc SRB — Phase 8 Warm Light-First European Consumer Fintech System
   Inspired by Wise, Apple Finance & Revolut Light (with Dark Mode toggle)
   Self-hosted SIL OFL Plus Jakarta Sans + JetBrains Mono (latin + latin-ext)
   Zero external CDN calls, strict CSP compatible.
   ========================================================================== */

/* ---------- Self-Hosted Studio Fonts (SIL OFL) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Light-First Consumer Fintech Theme Tokens ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e8eef6;
  --surface-hover: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --emerald: #059669;
  --emerald-bright: #047857;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;
  --blue: #2563eb;
  --blue-bright: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;
  --cyan: #0891b2;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;
  --coral: #e11d48;
  --coral-soft: #fff1f2;
  --coral-border: #fecdd3;
  --emerald-btn: #047857;
  --btn-grad: linear-gradient(135deg, #047857 0%, #0f766e 48%, #1d4ed8 100%);
  --accent-grad: linear-gradient(135deg, #059669 0%, #2563eb 100%);
  --shadow-card: 0 12px 32px -12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 20px 40px -16px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-hero: 0 24px 56px -18px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  --header-bg: rgba(246, 248, 251, 0.86);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1180px;
}

/* ---------- Optional Smooth Dark Mode (Preserved for Toggle) ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1120;
  --card: #111827;
  --surface: #111827;
  --surface-2: #1a2438;
  --surface-3: #233049;
  --surface-hover: #1e293b;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --emerald-border: rgba(16, 185, 129, 0.32);
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-soft: rgba(59, 130, 246, 0.15);
  --blue-border: rgba(59, 130, 246, 0.32);
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --amber-border: rgba(245, 158, 11, 0.32);
  --coral: #fb7185;
  --coral-soft: rgba(244, 63, 94, 0.15);
  --coral-border: rgba(244, 63, 94, 0.34);
  --emerald-btn: #047857;
  --btn-grad: linear-gradient(135deg, #047857 0%, #1d4ed8 100%);
  --accent-grad: linear-gradient(135deg, #34d399 0%, #60a5fa 100%);
  --shadow-card: 0 18px 42px -14px rgba(2, 6, 23, 0.52);
  --shadow-card-hover: 0 24px 52px -14px rgba(2, 6, 23, 0.68);
  --shadow-hero: 0 28px 64px -16px rgba(2, 6, 23, 0.65);
  --header-bg: rgba(11, 17, 32, 0.84);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Warm soft ambient mint/sky consumer backdrop (no developer wireframe grid!) */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 620px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(760px 420px at 14% -6%, rgba(16, 185, 129, 0.13), transparent 64%),
    radial-gradient(780px 440px at 86% -4%, rgba(37, 99, 235, 0.11), transparent 66%),
    radial-gradient(520px 300px at 52% 18%, rgba(14, 165, 233, 0.06), transparent 72%);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(760px 420px at 14% -6%, rgba(16, 185, 129, 0.18), transparent 64%),
    radial-gradient(780px 440px at 86% -4%, rgba(59, 130, 246, 0.18), transparent 66%);
}

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

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45); }
  60% { box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}

a:hover {
  color: var(--emerald);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--emerald-btn);
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* Tabular numerals for jitter-free consumer numbers (warm Plus Jakarta Sans, not terminal monospace!) */
.kpi-value,
.metric-box-value,
.bar-val,
.sim-amount-val,
.sim-kpi-val,
.donut-center-val,
.donut-leg-val,
.customs-big-val,
td {
  font-variant-numeric: tabular-nums;
}

.formula-code,
code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Crisp Elevated Consumer Card Surface ---------- */
.fintech-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s ease;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.025em;
  color: var(--text);
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--btn-grad);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.24);
}

.brand-year {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-bright);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.44rem 0.76rem;
  border-radius: 10px;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: var(--card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.42rem 0.78rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.nav-search-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  background: var(--emerald-soft);
  color: var(--emerald-bright);
  border: 1px solid var(--emerald-border);
  border-radius: 999px;
  padding: 0.4rem 0.88rem;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), background 0.16s ease, box-shadow 0.16s ease;
}

.support-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.16);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  background: var(--card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.42rem 0.78rem;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-2);
}

main {
  flex: 1;
  padding: 1.5rem 0 4.2rem;
}

/* ---------- Warm Consumer Eyebrow & Trust Pills ---------- */
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.34rem 0.88rem;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-bright);
  font-size: 0.8rem;
  font-weight: 700;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.36rem 0.86rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.81rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, transform 0.18s var(--ease-out);
}

.trust-pill:hover {
  border-color: var(--emerald-border);
  color: var(--text);
  transform: translateY(-1px);
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
  animation: pulseDot 2.8s infinite;
}

/* ---------- Flagship 2-Column Split Hero (Light-First Wise/Apple Style) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 2.2rem;
  align-items: center;
  padding: 1.35rem 0 2.6rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.15rem, 3.85vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
}

.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.64;
  color: var(--text-secondary);
  max-width: 50ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  width: 100%;
  margin-top: 0.55rem;
}

.hero-benefit {
  padding: 0.82rem 0.92rem;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.06);
}

.hero-benefit strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.015em;
}

.hero-benefit span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.16rem;
  line-height: 1.38;
}

/* ---------- 3-in-1 Live Interactive Tabbed Hero Simulator Card ---------- */
.hero-sim-card {
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hero);
}

/* 3-Tab Switcher inside Hero Card */
.hero-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  isolation: isolate;
}

.hero-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(33.333% - 4px);
  height: calc(100% - 8px);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 0.24s var(--ease-out), width 0.24s var(--ease-out);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hero-tab-indicator {
  background: var(--surface-3);
}

.hero-tab-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.56rem 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.hero-tab-btn:hover {
  color: var(--text);
}

.hero-tab-btn.is-active {
  color: var(--text);
}

.hero-tab-panel {
  display: none;
  flex-direction: column;
  gap: 0.92rem;
}

.hero-tab-panel.is-active {
  display: flex;
  animation: fadeSlideUp 0.24s var(--ease-out) both;
}

.sim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.sim-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sim-slider-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.sim-slider-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.sim-slider-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.sim-amount-val {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
}

.sim-amount-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.42rem;
  font-weight: 600;
}

.sim-range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.38rem;
}

.sim-body {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.sim-donut-slot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sim-stats-col {
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.sim-kpi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.58rem 0.8rem;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.sim-kpi-row.is-net {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
}

.sim-kpi-row.is-coral {
  background: var(--coral-soft);
  border-color: var(--coral-border);
}

.sim-kpi-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.sim-kpi-val {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
}

.sim-kpi-row.is-net .sim-kpi-val {
  color: var(--emerald-bright);
}

.sim-kpi-row.is-coral .sim-kpi-val {
  color: var(--coral);
}

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

.sim-hint-box {
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--text-secondary);
  padding: 0.62rem 0.84rem;
  border-radius: 11px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
}

.sim-hint-box strong {
  color: var(--text);
}

/* ---------- Animated 50 EUR Customs Threshold Visualizer (Hero Tab 2) ---------- */
.customs-hero-box {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.customs-hero-box.is-warn {
  background: var(--amber-soft);
  border-color: var(--amber-border);
}

.customs-hero-box.is-over {
  background: var(--coral-soft);
  border-color: var(--coral-border);
}

.customs-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.customs-hero-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.customs-big-val {
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--emerald-bright);
  letter-spacing: -0.025em;
}

.customs-hero-box.is-warn .customs-big-val {
  color: var(--amber);
}

.customs-hero-box.is-over .customs-big-val {
  color: var(--coral);
}

.customs-threshold-wrap {
  position: relative;
  margin: 0.78rem 0 0.4rem;
}

.customs-threshold-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.09);
  overflow: hidden;
}

[data-theme="dark"] .customs-threshold-track {
  background: rgba(255, 255, 255, 0.1);
}

.customs-threshold-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.26s var(--ease-out), background 0.26s ease;
}

.customs-hero-box.is-warn .customs-threshold-fill {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.customs-hero-box.is-over .customs-threshold-fill {
  background: linear-gradient(90deg, #f43f5e, #e11d48);
}

.customs-pin {
  position: absolute;
  left: 20%;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: var(--text);
  opacity: 0.75;
}

.customs-pin-label {
  position: absolute;
  left: 20%;
  top: 16px;
  transform: translateX(-50%);
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--text-secondary);
  white-space: nowrap;
}

.customs-hero-sub {
  margin-top: 1.35rem;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.customs-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.customs-mini-tile {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.customs-mini-tile span {
  display: block;
  font-size: 0.71rem;
  color: var(--text-muted);
  font-weight: 600;
}

.customs-mini-tile strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 0.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.66rem 1.12rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), border-color 0.16s ease, background 0.16s ease, box-shadow 0.2s ease;
}

.btn:hover {
  border-color: var(--emerald);
  background: var(--surface-hover);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.btn-primary {
  background: var(--btn-grad);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 24px -6px rgba(5, 150, 105, 0.38);
}

.btn-primary:hover {
  color: #ffffff;
  filter: brightness(1.05);
  box-shadow: 0 14px 28px -6px rgba(5, 150, 105, 0.46);
}

.btn-emerald {
  background: var(--emerald-btn);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(4, 120, 87, 0.36);
}

.btn-emerald:hover {
  background: #065f46;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.sim-cta {
  width: 100%;
  padding: 0.76rem 1.05rem;
  font-size: 0.91rem;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.24rem 0.64rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-bright);
  border: 1px solid var(--blue-border);
  white-space: nowrap;
}

.badge-muted {
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--border);
}

.badge-success {
  background: var(--emerald-soft);
  color: var(--emerald-bright);
  border-color: var(--emerald-border);
}

.badge-warning {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: var(--amber-border);
}

.badge-danger {
  background: var(--coral-soft);
  color: var(--coral);
  border-color: var(--coral-border);
}

.badge-info {
  background: var(--blue-soft);
  color: var(--blue-bright);
  border-color: var(--blue-border);
}

/* ---------- Tactile Smooth Gradient Range Sliders ---------- */
input[type="range"].fintech-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--emerald) 0%,
    var(--blue) var(--pct, 50%),
    rgba(100, 116, 139, 0.2) var(--pct, 50%)
  );
  outline: none;
  cursor: pointer;
}

input[type="range"].fintech-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--emerald);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2), 0 0 0 3px rgba(5, 150, 105, 0.14);
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s ease;
}

input[type="range"].fintech-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.24), 0 0 0 5px rgba(5, 150, 105, 0.22);
}

input[type="range"].fintech-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--emerald);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
}

/* ---------- Animated Sliding Segmented Pill Controls ---------- */
.seg-control {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  isolation: isolate;
}

.seg-control[data-cols="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seg-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 5px);
  height: calc(100% - 8px);
  border-radius: 9px;
  background: var(--card);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s var(--ease-out), width 0.22s var(--ease-out), height 0.22s var(--ease-out);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .seg-indicator {
  background: var(--btn-grad);
}

.seg-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.52rem 0.6rem;
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  transition: color 0.18s ease;
}

.seg-btn:hover {
  color: var(--text);
}

.seg-btn.is-active {
  color: var(--emerald-bright);
}

[data-theme="dark"] .seg-btn.is-active {
  color: #ffffff;
}

/* ---------- Animated SVG Donut Ring Chart ---------- */
.donut-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.1rem;
  margin-bottom: 1rem;
}

.donut-card-title {
  font-size: 0.77rem;
  font-weight: 800;
  color: var(--text-muted);
  margin: 0 0 0.78rem;
}

.donut-layout {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
}

.donut-svg-wrap {
  position: relative;
  width: 146px;
  height: 146px;
  margin: 0 auto;
  flex-shrink: 0;
}

.donut-svg-wrap.is-compact {
  width: 146px;
  height: 146px;
}

.donut-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.donut-track {
  fill: none;
  stroke: rgba(100, 116, 139, 0.15);
  stroke-width: 16;
}

.donut-seg {
  fill: none;
  stroke-width: 16;
  stroke-linecap: butt;
  transform: rotate(-90deg);
  transform-origin: 90px 90px;
  transition: stroke-dasharray 0.45s var(--ease-out), stroke-dashoffset 0.45s var(--ease-out), stroke-width 0.2s ease, opacity 0.2s ease;
}

.donut-seg.is-dimmed {
  opacity: 0.28;
}

.donut-seg.is-highlighted {
  stroke-width: 19;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.15rem;
  pointer-events: none;
}

.donut-center-val {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.donut-center-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0.16rem;
  line-height: 1.2;
  max-width: 92px;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.donut-leg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.44rem 0.68rem;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.16s ease, transform 0.16s var(--ease-out);
  cursor: default;
}

.donut-leg-item:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
}

.donut-leg-left {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  min-width: 0;
}

.donut-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}

.donut-leg-name {
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donut-leg-right {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-shrink: 0;
}

.donut-leg-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}

.donut-leg-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ---------- Hub Search & Category Filter ---------- */
.hub-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.hub-section-head h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hub-controls {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: inline-flex;
  pointer-events: none;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 0.84rem 1.05rem 0.84rem 2.85rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  box-shadow: 0 4px 16px -6px rgba(15, 23, 42, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.14);
}

.results-count {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.filter-pill {
  background: var(--card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.46rem 0.96rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.filter-pill.is-active {
  background: var(--text);
  border-color: transparent;
  color: var(--bg);
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.25);
}

[data-theme="dark"] .filter-pill.is-active {
  background: var(--btn-grad);
  color: #ffffff;
}

/* ---------- Hub Tool Cards ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.1rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  color: var(--text);
  animation: fadeSlideUp 0.42s var(--ease-out) both;
  animation-delay: calc(var(--stagger, 0) * 34ms);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-border);
  box-shadow: var(--shadow-card-hover);
  color: var(--text);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.82rem;
}

.tool-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
  flex-shrink: 0;
}

.tool-card-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tool-card h2,
.tool-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.tool-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.56;
  color: var(--text-muted);
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.82rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--emerald);
}

.tool-card-arrow {
  transition: transform 0.2s var(--ease-out);
}

.tool-card:hover .tool-card-arrow {
  transform: translateX(4px);
}

.empty-state {
  display: none;
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--card);
  color: var(--text-muted);
}

/* ---------- Calculator Page Header & Workbench ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.breadcrumbs a:hover {
  color: var(--emerald);
}

.calc-header {
  margin-bottom: 1.45rem;
}

.calc-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.78rem;
}

.calc-header-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.calc-header h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.62rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.calc-header .lead {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 72ch;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: 1.4rem;
  align-items: start;
  margin-bottom: 1.65rem;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 1.45rem;
}

.panel-sticky {
  position: sticky;
  top: 82px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1.05rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.presets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.preset-btn {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s var(--ease-out);
}

.preset-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald-bright);
  background: var(--emerald-soft);
  transform: translateY(-1px);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.field label {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text);
}

.field-unit {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--emerald-bright);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  padding: 0.1rem 0.48rem;
  border-radius: 6px;
}

.field-help {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.48;
}

.input-control,
.select-control {
  width: 100%;
  padding: 0.68rem 0.88rem;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-control:focus,
.select-control:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.range-pair {
  display: grid;
  grid-template-columns: 1fr 122px;
  gap: 0.8rem;
  align-items: center;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.actions-row .btn {
  padding: 0.58rem 0.86rem;
  font-size: 0.83rem;
}

/* ---------- Primary KPI + Metrics + Bars ---------- */
.primary-kpi {
  position: relative;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--emerald-soft) 0%, var(--blue-soft) 100%);
  border: 1px solid var(--emerald-border);
  margin-bottom: 1rem;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.kpi-value {
  margin-top: 0.25rem;
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: var(--text);
}

.kpi-sub {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.metric-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem;
}

.metric-box-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.22rem;
}

.metric-box-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
}

.bars-section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
}

.bars-section h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
}

.bar-row {
  margin-bottom: 0.68rem;
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.81rem;
  margin-bottom: 0.3rem;
}

.bar-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.bar-val {
  font-weight: 800;
  color: var(--text);
}

.bar-track {
  width: 100%;
  height: 9px;
  background: rgba(100, 116, 139, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--btn-grad);
  transition: width 0.38s var(--ease-out);
}

.bar-fill.status-success { background: linear-gradient(90deg, #059669, #10b981); }
.bar-fill.status-info { background: linear-gradient(90deg, #2563eb, #0891b2); }
.bar-fill.status-warning { background: linear-gradient(90deg, #d97706, #f59e0b); }
.bar-fill.status-danger { background: linear-gradient(90deg, #e11d48, #f43f5e); }

.note-box {
  margin-top: 0.9rem;
  padding: 0.82rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  font-size: 0.83rem;
  line-height: 1.52;
  color: var(--text-secondary);
}

/* ---------- "Prostim rečima" Everyday Consumer Explanation Card ---------- */
.plain-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.4rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--emerald-soft) 0%, var(--card) 72%);
  border: 1px solid var(--emerald-border);
  box-shadow: var(--shadow-card);
}

.plain-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--emerald-border);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.plain-card h2 {
  margin: 0 0 0.38rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.plain-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

/* ---------- Sponsor Card ---------- */
.sponsor-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.4rem;
  margin: 1.7rem 0;
  border-radius: var(--radius-lg);
}

.sponsor-slot-copy {
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  max-width: 68ch;
}

.sponsor-slot-copy strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.sponsor-slot-copy p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ---------- Content Sections, Tables & FAQ Accordion ---------- */
.content-section {
  border-radius: var(--radius-xl);
  padding: 1.55rem 1.65rem;
  margin-bottom: 1.35rem;
}

.content-section h2 {
  margin: 0 0 0.72rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.content-section h3 {
  margin: 1.15rem 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.content-section p,
.content-section li {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

th, td {
  text-align: left;
  padding: 0.76rem 0.95rem;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 0.81rem;
}

td {
  color: var(--text-secondary);
}

.formula-code {
  display: block;
  margin: 0.8rem 0;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--emerald-bright);
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.65;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
  border-color: var(--emerald-border);
  background: var(--card);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 700;
  color: var(--emerald);
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-out), background 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--emerald-soft);
}

.faq-answer {
  padding: 0 1.15rem 1.05rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.64;
  animation: fadeSlideUp 0.22s var(--ease-out) both;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.95rem;
}

/* ---------- Legal / Prose Card ---------- */
.prose-card {
  max-width: 860px;
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.prose-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.prose-card h2 {
  margin: 1.45rem 0 0.55rem;
  font-size: 1.14rem;
  font-weight: 800;
}

.prose-card p,
.prose-card li {
  color: var(--text-secondary);
}

/* ---------- Modals (Support & Quick Search) ---------- */
.support-modal,
.cmd-dialog {
  width: min(560px, calc(100vw - 2rem));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--card);
  color: var(--text);
  padding: 1.5rem;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.support-modal::backdrop,
.cmd-dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(5px);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 800;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.05rem;
}

.cmd-dialog {
  padding: 0;
  overflow: hidden;
  width: min(580px, calc(100vw - 1.5rem));
}

.cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.92rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.cmd-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  outline: none;
}

.cmd-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.88rem;
  border-radius: 10px;
  color: var(--text);
  transition: background 0.14s ease;
}

.cmd-item:hover,
.cmd-item.is-selected {
  background: var(--emerald-soft);
  color: var(--text);
}

.cmd-item-title {
  font-size: 0.91rem;
  font-weight: 700;
}

.cmd-item-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Floating Toast Notification ---------- */
.toast {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.76rem 1.1rem;
  border-radius: 13px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 2.1rem 0 2.4rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) auto;
  gap: 1.5rem;
  align-items: start;
}

.footer-official-note {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.52;
}

.footer-official-note strong {
  color: var(--text-secondary);
}

.footer-featured {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.05rem;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---------- Long-Tail Serbian Guides (/vodic/<slug>/) ---------- */
.vodic-section {
  margin-top: 2rem;
}

.vodic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.vodic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
  color: var(--text);
}

.vodic-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald-border);
  box-shadow: var(--shadow-card-hover);
  color: var(--text);
}

.vodic-card h3 {
  margin: 0.25rem 0 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.32;
}

.vodic-card-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--emerald-bright);
  font-variant-numeric: tabular-nums;
}

.vodic-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.44;
  margin: 0;
}

.vodic-hero-card {
  border-radius: var(--radius-xl);
  padding: 1.55rem 1.65rem;
  margin-bottom: 1.4rem;
}

.vodic-answer-box {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--emerald-soft) 0%, var(--blue-soft) 100%);
  border: 1px solid var(--emerald-border);
  margin: 1rem 0 1.2rem;
}

.vodic-answer-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.vodic-answer-val {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.vodic-answer-sub {
  margin-top: 0.38rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.vodic-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.vodic-bullets {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vodic-bullets li {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.58;
}

/* ---------- Cross-App 5-Site Network Footer Strip ---------- */
.network-strip {
  margin-top: 1.55rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.network-heading {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  margin: 0 0 0.78rem;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.network-card {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.74rem 0.82rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  min-width: 0;
  transition: border-color 0.16s ease, transform 0.16s var(--ease-out);
}

.network-card:hover {
  border-color: var(--emerald-border);
  transform: translateY(-2px);
  color: var(--text);
}

.network-card.is-current {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
}

.network-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--text);
}

.network-cur-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.1rem 0.44rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-bright);
  white-space: nowrap;
}

.network-card p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.42;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .panel-sticky {
    position: static;
  }
  .network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    position: static;
  }
  .header-inner {
    min-height: auto;
    padding: 0.5rem 0;
    flex-wrap: wrap;
    gap: 0.42rem;
  }
  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0.38rem;
    padding-bottom: 0.08rem;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links > a,
  .nav-links > button {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.79rem;
    padding: 0.34rem 0.62rem;
  }
}

@media (max-width: 680px) {
  .hero-benefits,
  .customs-mini-grid {
    grid-template-columns: 1fr;
  }
  .hero-tab-btn {
    font-size: 0.76rem;
    padding: 0.5rem 0.3rem;
  }
  .sim-body,
  .donut-layout,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .range-pair {
    grid-template-columns: 1fr 98px;
  }
  .plain-card {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .network-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Reduced Motion Respect ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .trust-dot,
  .tool-card,
  .faq-answer,
  .hero-tab-panel {
    animation: none !important;
  }
  .donut-seg,
  .seg-indicator,
  .hero-tab-indicator,
  .bar-fill,
  .customs-threshold-fill,
  .tool-card,
  .toast,
  .btn {
    transition: none !important;
  }
}
