/* ═══════════════════════════════════════════════════════════════════
   ibaneasy.com — Dark Theme Design System
   Inspired by top-tier web design: dark glass-morphism, vibrant accents
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --bg-deep: #05070d;
  --bg-body: #080b14;
  --bg-elev-1: #0d1220;
  --bg-elev-2: #131a2c;
  --bg-card: #0f1524b8;
  --bg-glass: #0b0f1a99;
  --nav-bg: #080b14b8;

  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-deep: #1e40af;
  --accent-glow: #3b82f647;
  --accent-subtle: #3b82f61a;

  --gold: #ffc94a;
  --gold-light: #ffe9a8;
  --gold-glow: #ffc94a42;

  --green: #2ed573;
  --red: #ff4d6d;
  --orange: #ff6b35;
  --purple: #a855f7;

  --text: #f1f5f9;
  --text-secondary: #a9b5c9;
  --text-muted: #8695ad;

  --border: #ffffff12;
  --border-active: #3b82f659;

  /* Surfaces (for lights/darks on top of backgrounds) */
  --surface-1: #ffffff08;
  --surface-2: #ffffff0d;
  --surface-3: #ffffff14;
  --surface-4: #ffffff1a;
  --divider: #ffffff1c;
  --table-border: #ffffff08;
  --table-hover: #ffffff05;

  /* Semantic surface colors */
  --tag-green-bg: #2ed5731a;
  --tag-green-border: #2ed5733d;
  --tag-gold-bg: #ffc94a1a;
  --tag-gold-border: #ffc94a42;
  --valid-bg: #2ed57314;
  --valid-border: #2ed57333;
  --invalid-bg: #ff4d6d14;
  --invalid-border: #ff4d6d33;

  /* Component backgrounds */
  --hero-bg: linear-gradient(150deg, #070f1f 0%, #0a1628 42%, #070e1a 100%);
  --hero-glow-1: radial-gradient(52% 62% at 14% 24%, #3b82f626, #0000 64%);
  --hero-glow-2: radial-gradient(40% 50% at 88% 76%, #ff6b351a, #0000 66%);
  --hero-ring: #3b82f624;
  --hero-ring-shadow: 0 0 0 30px #3b82f606, 0 0 0 64px #3b82f604;
  --dial-bg: #04080e80;
  --dial-border: #3b82f629;
  --dial-glow: inset 0 0 60px -24px #3b82f666;
  --card-bg: linear-gradient(168deg, #131a2cb3, #090c15b3);
  --card-hover-border: #ffffff21;
  --marquee-bg: #0b0f1a80;
  --footer-bg: #05070d99;
  --cta-bg: linear-gradient(140deg, #1e40af59, #090c15d9 60%);
  --cta-border: #3b82f633;
  --cta-glow: radial-gradient(60% 100% at 50% 120%, #3b82f633, #0000 70%);
  --history-bg: linear-gradient(168deg, #131a2cb3, #090c15b3);
  --history-solid: linear-gradient(168deg, #131a2cd9, #090c15d9);
  --history-glow: radial-gradient(ellipse 70% 60% at 82% 8%, #3b82f624, transparent 68%);
  --history-item: #ffffff0d;
  --history-item-border: #ffffff1a;
  --search-bg: #ffffff06;
  --scrollbar-thumb: #ffffff24;

  --text-white: #fff;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 18px 50px -20px #000c;
  --shadow-lift: 0 28px 70px -28px #000000e6;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
  --duration-fast: .16s;
  --duration: .32s;

  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --max-width: 1320px;
  --nav-height: 62px;
}

/* ── Light Theme Overrides ──────────────────────────────────────── */
[data-theme="light"] {
  --bg-deep: #f0f4f8;
  --bg-body: #ffffff;
  --bg-elev-1: #f1f5f9;
  --bg-elev-2: #e2e8f0;
  --bg-card: #ffffffee;
  --bg-glass: #ffffffdd;
  --nav-bg: #ffffffee;

  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-deep: #1e40af;
  --accent-glow: #2563eb30;
  --accent-subtle: #2563eb12;

  --gold: #b8860b;
  --gold-light: #8b6914;
  --gold-glow: #b8860b30;

  --green: #16a34a;
  --red: #dc2626;
  --orange: #ea580c;
  --purple: #7c3aed;

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border: #00000014;
  --border-active: #2563eb40;

  /* Surfaces — reverse polarity for light bg */
  --surface-1: #00000008;
  --surface-2: #0000000d;
  --surface-3: #00000014;
  --surface-4: #0000001a;
  --divider: #00000014;
  --table-border: #00000008;
  --table-hover: #00000005;

  /* Semantic surfaces */
  --tag-green-bg: #16a34a1a;
  --tag-green-border: #16a34a3d;
  --tag-gold-bg: #b8860b1a;
  --tag-gold-border: #b8860b3d;
  --valid-bg: #16a34a14;
  --valid-border: #16a34a33;
  --invalid-bg: #dc262614;
  --invalid-border: #dc262633;

  /* Component backgrounds — warm paper-like tones */
  --hero-bg: linear-gradient(150deg, #f8fafc 0%, #f0f4f8 42%, #f8fafc 100%);
  --hero-glow-1: radial-gradient(52% 62% at 14% 24%, #2563eb1a, #0000 64%);
  --hero-glow-2: radial-gradient(40% 50% at 88% 76%, #ea580c0d, #0000 66%);
  --hero-ring: #2563eb1a;
  --hero-ring-shadow: 0 0 0 30px #2563eb04, 0 0 0 64px #2563eb02;
  --dial-bg: #ffffffb3;
  --dial-border: #2563eb33;
  --dial-glow: inset 0 0 60px -24px #2563eb33;
  --card-bg: linear-gradient(168deg, #f8fafce6, #f1f5f9e6);
  --card-hover-border: #00000021;
  --marquee-bg: #f1f5f980;
  --footer-bg: #f0f4f899;
  --cta-bg: linear-gradient(140deg, #2563eb26, #f1f5f9d9 60%);
  --cta-border: #2563eb33;
  --cta-glow: radial-gradient(60% 100% at 50% 120%, #2563eb1a, #0000 70%);
  --history-bg: linear-gradient(168deg, #f8fafce6, #f1f5f9e6);
  --history-solid: linear-gradient(168deg, #f8fafcf2, #f1f5f9f2);
  --history-glow: radial-gradient(ellipse 70% 60% at 82% 8%, #2563eb1a, transparent 68%);
  --history-item: #0000000d;
  --history-item-border: #0000001a;
  --search-bg: #00000006;
  --scrollbar-thumb: #00000024;

  --text-white: #fff;

  --shadow-card: 0 2px 16px -6px #00000015;
  --shadow-lift: 0 12px 40px -16px #00000020;
}

/* Disable aurora + grid in light mode for cleaner look */
[data-theme="light"] body::before { display: none; }
[data-theme="light"] body::after { opacity: 0.3; }

/* ── Language Switcher ──────────────────────────────────────────── */
.lang-switch {
  position: relative;
  margin-left: 0.5rem;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: 38px;
  padding: 0 0.6rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 1rem;
}
.lang-btn:hover {
  background: var(--accent-subtle);
  color: var(--accent-light);
  border-color: var(--border-active);
}
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 170px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px var(--shadow-card);
  padding: 0.4rem;
  z-index: 100;
}
.lang-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--accent-subtle); color: var(--accent-light); }

/* ── Theme Toggle Button ────────────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  margin-left: 0.5rem;
  font-size: 1rem;
}
.theme-toggle:hover {
  background: var(--accent-subtle);
  color: var(--accent-light);
  border-color: var(--border-active);
}
.theme-toggle svg { width: 18px; height: 18px; }
/* Show sun in dark mode, moon in light mode */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Aurora gradient */
body::before {
  content: "";
  pointer-events: none;
  z-index: 0;
  animation: aurora 24s var(--ease-out) infinite alternate;
  background:
    radial-gradient(44% 38% at 18% 12%, #3b82f629, #0000 62%),
    radial-gradient(38% 40% at 84% 78%, #ff6b3517, #0000 64%),
    radial-gradient(46% 30% at 52% 104%, #a855f712, #0000 66%);
  position: fixed;
  inset: -20%;
}

@keyframes aurora {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -2%) scale(1.08); }
}

/* Grid pattern overlay */
body::after {
  content: "";
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(#ffffff04 1px, #0000 1px),
    linear-gradient(90deg, #ffffff04 1px, #0000 1px);
  background-size: 72px 72px;
  position: fixed;
  inset: 0;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, #0000 82%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000, #0000 82%);
}

::selection { background: var(--accent-light); color: var(--bg-deep); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── App Container ─────────────────────────────────────────────── */
.app-container {
  z-index: 1;
  flex-direction: column;
  min-height: 100vh;
  display: flex;
  position: relative;
}

/* ── Navigation ────────────────────────────────────────────────── */
.main-nav {
  z-index: 120;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.nav-inner {
  max-width: var(--max-width);
  height: var(--nav-height);
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
}

.nav-logo {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
  align-items: baseline;
  gap: 1px;
  font-size: 1.16rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.nav-logo .lg-accent {
  color: var(--accent-light);
  text-shadow: 0 0 22px var(--accent-glow);
}

.nav-logo .lg-dim {
  color: var(--text-muted);
  font-weight: 500;
}

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

.nav-links a {
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast);
  padding: 0.45rem 0.85rem;
  font-size: 0.855rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links a.active {
  color: var(--accent-light);
  background: var(--accent-subtle);
}

/* ── Breadcrumbs ───────────────────────────────────────────────── */
.breadcrumbs {
  max-width: var(--max-width);
  color: var(--text-muted);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  font-size: 0.78rem;
  z-index: 1;
  position: relative;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.15s var(--ease-out);
  text-decoration: none;
}

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

.crumb-sep { opacity: 0.5; margin: 0 0.4rem; }

.crumb-current { color: var(--text-secondary); }

/* ── Main Content ──────────────────────────────────────────────── */
.main-content {
  max-width: var(--max-width);
  z-index: 1;
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
  position: relative;
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
}

h1 {
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
}

h2 {
  letter-spacing: -0.025em;
  font-size: 1.42rem;
  font-weight: 700;
}

h3 {
  letter-spacing: -0.015em;
  font-size: 1.08rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  line-height: 1.72;
}

.text-gradient {
  background: linear-gradient(105deg, var(--accent-light) 10%, #93c5fd 55%, var(--accent) 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.text-gold {
  background: linear-gradient(105deg, var(--gold-light), var(--gold) 60%, var(--orange));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
}

.eyebrow::before {
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent-light));
  width: 22px;
  height: 1px;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration) var(--ease-out), background var(--duration);
  border: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.35rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  width: 40%;
  height: 100%;
  transition: left var(--duration-slow, 0.6s) var(--ease-out);
  background: linear-gradient(100deg, #0000, #ffffff47, #0000);
  position: absolute;
  top: 0;
  left: -60%;
  transform: skew(-18deg);
}

.btn:hover::after { left: 120%; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.34; cursor: not-allowed; transform: none !important; }
.btn:disabled::after { display: none; }

.btn-primary {
  background: linear-gradient(125deg, var(--accent-light), var(--accent) 62%, var(--accent-deep));
  color: var(--text-white);
  box-shadow: 0 10px 30px -12px var(--accent-glow), inset 0 1px 0 #ffffff47;
}

.btn-primary:hover {
  box-shadow: 0 18px 40px -14px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: var(--surface-1);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-active);
  background: var(--surface-3);
}

.btn-lg {
  border-radius: var(--radius);
  padding: 0.92rem 2rem;
  font-size: 0.98rem;
}

.btn-sm {
  padding: 0.36rem 0.85rem;
  font-size: 0.78rem;
}

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

.btn-outline:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-light);
}

/* ── Section Headers ───────────────────────────────────────────── */
.section-header {
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  display: flex;
}

.section-header h2 {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.section-line {
  background: linear-gradient(90deg, var(--divider), #0000);
  flex: 1;
  height: 1px;
}

/* ── Tags & Badges ─────────────────────────────────────────────── */
.tag {
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.66rem;
  font-weight: 700;
  display: inline-flex;
}

.tag-accent {
  background: var(--accent-subtle);
  color: var(--accent-light);
  border-color: var(--accent-glow);
}

.tag-green { color: var(--green); background: var(--tag-green-bg); border-color: var(--tag-green-border); }
.tag-gold { color: var(--gold); background: var(--tag-gold-bg); border-color: var(--tag-gold-border); }

/* ── Hero Section ──────────────────────────────────────────────── */
.hero {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--hero-bg);
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  pointer-events: none;
  background:
    var(--hero-glow-1),
    var(--hero-glow-2);
  position: absolute;
  inset: 0;
}

.hero::after {
  content: "";
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid var(--hero-ring);
  border-radius: 50%;
  width: 66%;
  position: absolute;
  bottom: -62%;
  right: -16%;
  box-shadow: var(--hero-ring-shadow);
  -webkit-mask-image: radial-gradient(circle, #0000 52%, #000 62% 88%, #0000 96%);
  mask-image: radial-gradient(circle, #0000 52%, #000 62% 88%, #0000 96%);
}

.hero-copy { z-index: 2; position: relative; }

.hero-copy h1 { margin: 0.9rem 0 1.1rem; }

.hero-copy p {
  color: var(--text-secondary);
  max-width: 46ch;
  font-size: 1.03rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  display: flex;
}

.hero-trust {
  border-top: 1px solid var(--divider);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 46ch;
  margin-top: 1.9rem;
  padding-top: 1.5rem;
  display: grid;
}

.hero-trust div {
  flex-direction: column;
  gap: 0.15rem;
  display: flex;
}

.hero-trust .ht-v {
  font-family: var(--font-display);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 1.22rem;
  font-weight: 700;
}

.hero-trust .ht-l {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.63rem;
  font-weight: 600;
}

/* Hero dial — the IBAN display card */
.hero-dial {
  z-index: 2;
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: var(--dial-bg);
  border: 1px solid var(--dial-border);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) 1.5rem;
  display: flex;
  position: relative;
  box-shadow: var(--dial-glow);
}

.hero-dial .hd-caption {
  font-family: var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
  font-size: 0.66rem;
  font-weight: 700;
}

.hero-dial select {
  font-family: var(--font-display);
  background: var(--bg-elev-1);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 2rem 0.6rem 1rem;
  font-size: 0.92rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238695ad'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  min-width: 260px;
  transition: border-color var(--duration-fast);
}

.hero-dial select:hover { border-color: var(--border-active); }
.hero-dial select:focus { outline: none; border-color: var(--accent-light); }

.iban-output {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text-white) 20%, var(--accent-light) 96%);
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 26px var(--accent-glow));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  word-break: break-all;
  text-align: center;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iban-output .placeholder {
  -webkit-text-fill-color: var(--text-muted);
  background: none;
  filter: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-dial .hd-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  display: flex;
  margin-top: 0.5rem;
}

/* ── Searchable Country Selector ────────────────────────────────── */
.country-combobox {
  width: 100%;
  position: relative;
}

.country-button {
  font-family: var(--font-display);
  background: var(--bg-elev-1);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: border-color var(--duration-fast);
}

.country-button:hover { border-color: var(--border-active); }
.country-button:focus { outline: none; border-color: var(--accent-light); }

.country-button-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

#country-flag { font-size: 1.2rem; flex-shrink: 0; }
#country-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.co-chevron { flex-shrink: 0; color: var(--text-muted); }

.country-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  margin-top: 4px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.country-menu.open { display: block; }

.country-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.co-search-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.country-search {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
}

.country-search::placeholder { color: var(--text-muted); }

.country-options {
  max-height: 260px;
  overflow-y: auto;
}

.country-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}

.country-option:hover { background: var(--surface-2); }

.co-flag { font-size: 1.1rem; flex-shrink: 0; }
.co-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-code { color: var(--text-muted); font-family: var(--font-display); font-size: 0.8rem; flex-shrink: 0; }

.co-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.co-tag-sepa { background: var(--tag-green-bg); color: var(--green); border: 1px solid var(--tag-green-border); }

/* ── Quantity Slider ────────────────────────────────────────────── */
.quantity-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quantity-row label {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.quantity-control input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-elev-1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.quantity-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--bg-body);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

.quantity-num {
  font-family: var(--font-display);
  color: var(--accent-light);
  font-weight: 700;
  font-size: 1rem;
  min-width: 2.2ch;
  text-align: right;
}

/* ── Result Meta ────────────────────────────────────────────────── */
.result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-xs);
  margin-bottom: 0.5rem;
}

.rm-label {
  display: block;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.rm-value {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ── Format Legend ──────────────────────────────────────────────── */
.format-legend {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem 0.6rem;
  background: var(--search-bg);
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
  word-break: break-all;
  line-height: 1.5;
}

/* ── Full Data Set Toggle ───────────────────────────────────────── */
.dataset-toggle-row {
  margin-bottom: 0.85rem;
}
.dataset-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}
.dataset-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.dt-track {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.2s var(--ease-out);
  flex-shrink: 0;
}
.dt-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.dataset-toggle input:checked + .dt-track {
  background: var(--accent-subtle);
  border-color: var(--border-active);
}
.dataset-toggle input:checked + .dt-track .dt-thumb {
  transform: translateX(18px);
  background: var(--accent-light);
}
.dt-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}
.dt-icon { font-size: 1rem; }
.dt-hint {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
}

/* ── Data Set Panel ─────────────────────────────────────────────── */
.dataset-wrap {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}
.dataset-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 1.1rem;
  text-align: left;
}
.dataset-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.ds-quality {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.ds-quality b {
  color: var(--green);
  font-size: 0.9rem;
}
.ds-section {
  margin-bottom: 0.9rem;
}
.ds-sec-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  margin-bottom: 0.45rem;
}
.ds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.9rem;
}
.ds-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.32rem 0;
  border-bottom: 1px dashed var(--border);
  min-width: 0;
}
.ds-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.ds-value {
  color: var(--text);
  font-size: 0.8rem;
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ds-value.mono { font-family: var(--font-display); letter-spacing: 0.02em; }
.valid-tag { color: var(--green); font-size: 0.76rem; }
.ds-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.ds-note {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Bulk Results ───────────────────────────────────────────────── */
.bulk-section {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

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

.bulk-head h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1rem;
}

.bulk-export-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bulk-list {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev-1);
}

.bulk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--table-border);
}

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

.bulk-iban {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.bulk-copy-one {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: color 0.15s, background 0.15s;
}

.bulk-copy-one:hover { color: var(--accent-light); background: var(--accent-subtle); }

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.bulk-ds-btn {
  background: var(--accent-subtle);
  border: 1px solid var(--border-active);
  color: var(--accent-light);
  cursor: pointer;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
}

.bulk-ds-btn:hover { background: var(--accent-light); color: #fff; }

/* ── History Panel ──────────────────────────────────────────────── */
.history-wrap {
  max-width: var(--max-width);
  margin: 1.2rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.history-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-xs);
  transition: color 0.15s, background 0.15s;
}

.history-btn:hover { color: var(--accent-light); background: var(--accent-subtle); }

.hist-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--text-white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  padding: 0 0.3rem;
}

.hist-badge.hidden { display: none; }

.history-panel {
  display: none;
  position: absolute;
  right: 1.5rem;
  top: 100%;
  margin-top: 4px;
  width: 380px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  z-index: 200;
}

.history-panel.open { display: block; }

.hist-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.hist-clear {
  background: none;
  border: none;
  color: var(--red);
  font-size: 0.72rem;
  cursor: pointer;
  opacity: 0.8;
}

.hist-clear:hover { opacity: 1; }

.hist-item {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--table-border);
}

.hist-item:last-child { border-bottom: none; }

.hist-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.hist-flag { font-size: 1rem; }
.hist-country { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.hist-count { font-size: 0.7rem; color: var(--text-muted); }
.hist-time { font-size: 0.68rem; color: var(--text-muted); margin-left: auto; }

.hist-sample {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.hist-actions {
  display: flex;
  gap: 0.4rem;
}

.hist-actions button {
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.hist-actions button:hover { color: var(--accent-light); border-color: var(--border-active); }

.hist-empty {
  padding: 1.5rem 0.9rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── Marquee ───────────────────────────────────────────────────── */
.marquee {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--marquee-bg);
  margin-bottom: 2rem;
  padding: 0.6rem 0;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #0000, #000 8% 92%, #0000);
  mask-image: linear-gradient(90deg, #0000, #000 8% 92%, #0000);
}

.marquee-track {
  gap: 2.2rem;
  width: max-content;
  animation: 34s linear infinite marquee;
  display: flex;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  0% { transform: translate(0); }
  100% { transform: translate(-50%); }
}

.mq-item {
  color: var(--text-secondary);
  white-space: nowrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  display: inline-flex;
}

.mq-item b {
  font-family: var(--font-display);
  color: var(--accent-light);
  font-weight: 700;
}

.mq-dot {
  background: var(--accent);
  opacity: 0.6;
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

/* ── Card Grids ────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 0.9rem;
}

.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* Feature Cards */
.feature-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--duration) var(--ease-out), border-color var(--duration);
  background: var(--card-bg);
  padding: 1.4rem;
}

.feature-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
}

.fc-icon {
  background: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
  display: flex;
}

.fc-title {
  font-family: var(--font-display);
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.fc-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.65;
}

/* Country Cards */
.country-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--duration) var(--ease-out), border-color var(--duration), box-shadow var(--duration);
  background: var(--history-solid);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.country-card::before {
  content: "";
  background: var(--history-glow);
  opacity: 0.7;
  transition: opacity var(--duration);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.country-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-lift);
  transform: translateY(-5px);
  text-decoration: none;
}

.country-card:hover::before { opacity: 1; }

.country-card .cc-badge {
  background: var(--surface-2);
  border: 1px solid var(--surface-4);
  border-radius: 13px;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  z-index: 2;
  position: relative;
}

.country-card .cc-name {
  font-family: var(--font-display);
  z-index: 2;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
}

.country-card .cc-meta {
  color: var(--text-secondary);
  z-index: 2;
  font-size: 0.76rem;
  position: relative;
}

/* ── Tables ────────────────────────────────────────────────────── */
.tablewrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

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

th {
  text-align: left;
  background: var(--bg-elev-1);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--table-border);
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--table-hover); }

td a { color: var(--accent-light); text-decoration: none; }
td a:hover { text-decoration: underline; }

/* ── IBAN Structure Diagram ────────────────────────────────────── */
.iban-structure {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.iban-block {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid;
  flex: 1;
  min-width: 72px;
}

.iban-block .ib-label { font-weight: 600; font-size: 0.82rem; }
.iban-block .ib-count { font-size: 0.64rem; opacity: 0.7; margin-top: 0.15rem; }

.iban-block.country { background: var(--accent-subtle); border-color: var(--cta-border); color: var(--accent-light); }
.iban-block.check { background: var(--tag-green-bg); border-color: var(--tag-green-border); color: var(--green); }
.iban-block.bank { background: var(--tag-gold-bg); border-color: #ffc94a33; color: var(--gold); }
.iban-block.branch { background: #a855f71a; border-color: #a855f733; color: var(--purple); }
.iban-block.account { background: var(--surface-1); border-color: var(--surface-4); color: var(--text-secondary); }

.iban-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.iban-legend span { display: inline-flex; align-items: center; gap: 0.3rem; }

.iban-legend .swatch {
  width: 10px; height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ── FAQ (details/summary) ────────────────────────────────────── */
.faq-list {
  flex-direction: column;
  gap: 0.6rem;
  display: flex;
  margin: 1.5rem 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: border-color 0.2s var(--ease-out);
  overflow: hidden;
}

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

.faq-q {
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--text);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  user-select: none;
}

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

.faq-q::after {
  content: "+";
  color: var(--accent-light);
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 400;
}

.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-q:hover { color: var(--accent-light); }

.faq-a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  padding: 0 1.1rem 1.05rem;
}

.faq-a p { margin-bottom: 0.5rem; }
.faq-a p:last-child { margin-bottom: 0; }

/* ── Blog / Learn section ──────────────────────────────────────── */
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.blog-card:hover { border-color: var(--border-active); }

.blog-card h2 { margin: 0.35rem 0 0.5rem; font-size: 1.25rem; }
.blog-card h2 a { color: var(--text); text-decoration: none; }
.blog-card h2 a:hover { color: var(--accent-light); }
.blog-card p { margin-bottom: 0.6rem; }
.blog-card p:last-child { margin-bottom: 0; }

.blog-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.prose-content .blog-meta { margin-bottom: 0.4rem; }

/* ── CTA Band ──────────────────────────────────────────────────── */
.cta-band {
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  padding: 2.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  pointer-events: none;
  background: var(--cta-glow);
  position: absolute;
  inset: 0;
}

.cta-band > * { z-index: 2; position: relative; }

.cta-band h2 { margin: 0.85rem 0; }
.cta-band p { max-width: 48ch; margin: 0 auto 1.5rem; }

/* ── Search ────────────────────────────────────────────────────── */
.search-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  transition: border-color var(--duration-fast) var(--ease-out);
  outline: none;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.search-box:focus {
  border-color: var(--border-active);
}

.search-box::placeholder { color: var(--text-muted); }

/* ── Validator ─────────────────────────────────────────────────── */
.validator-input {
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 1rem 1.2rem;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.validator-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.validator-input.valid {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--tag-green-bg);
}

.validator-input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--invalid-bg);
}

.validator-result {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
  display: none;
}

.validator-result.valid {
  display: block;
  background: var(--valid-bg);
  color: var(--green);
  border: 1px solid var(--valid-border);
}

.validator-result.invalid {
  display: block;
  background: var(--invalid-bg);
  color: var(--red);
  border: 1px solid var(--invalid-border);
}

/* ── SWIFT/BIC Lookup ──────────────────────────────────────────── */
.swift-search-wrap {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
  flex-wrap: wrap;
}

.swift-search-input {
  flex: 1 1 300px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding: 0.7rem 1rem;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.swift-search-input::placeholder { color: var(--text-muted); }

.swift-search-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.swift-country-filter {
  flex: 0 0 auto;
  min-width: 180px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding: 0.7rem 2.2rem 0.7rem 1rem;
  background: var(--bg-elev-1);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238695ad'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  outline: none;
  transition: border-color var(--duration-fast);
}

.swift-country-filter:hover { border-color: var(--border-active); }
.swift-country-filter:focus { border-color: var(--accent-light); box-shadow: 0 0 0 3px var(--accent-subtle); }

.swift-result-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.4rem 0 0.8rem;
}

.swift-bic-code {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-light);
  background: var(--accent-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88rem;
}

/* ── Toast ─────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elev-2);
  border: 1px solid var(--border-active);
  color: var(--accent-light);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.toast.show { opacity: 1; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  z-index: 1;
  background: var(--footer-bg);
  padding: 2rem 1.5rem;
  position: relative;
}

.footer-inner {
  max-width: var(--max-width);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto;
  display: flex;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
}

.footer-brand .fb-accent { color: var(--accent-light); }
.footer-brand .fb-dim { color: var(--text-muted); font-weight: 500; }

.footer-note {
  color: var(--text-muted);
  max-width: 460px;
  font-size: 0.75rem;
  line-height: 1.65;
}

.footer-links {
  flex-wrap: wrap;
  gap: 1.1rem;
  display: flex;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-related {
  max-width: var(--max-width);
  margin: 1.15rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.footer-related-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-related a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-related a:hover { color: var(--accent-light); }

/* ── Prose ─────────────────────────────────────────────────────── */
.prose-content h2 {
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.prose-content h3 {
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.prose-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.78;
  margin-bottom: 0.9rem;
}

.prose-content ul, .prose-content ol {
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.78;
}

.prose-content ul li, .prose-content ol li { margin-bottom: 0.25rem; }

.prose-content pre {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-x: auto;
  margin: 1rem 0;
}

.prose-content code {
  font-family: var(--font-display);
  background: var(--bg-elev-1);
  color: var(--accent-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}

.prose-content a { color: var(--accent-light); text-decoration: none; }
.prose-content a:hover { text-decoration: underline; }

/* ── Glass Panel ───────────────────────────────────────────────── */
.glass-panel {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* ── Explore Links ─────────────────────────────────────────────── */
.explore-links {
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.4rem;
  margin-top: 2.1rem;
  padding-top: 1.5rem;
  display: flex;
}

.explore-links a {
  color: var(--text-muted);
  transition: color 0.18s var(--ease-out);
  font-size: 0.82rem;
  text-decoration: none;
}

.explore-links a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ── Utility Spacing ───────────────────────────────────────────── */
.gap-1 { gap: 0.6rem; }
.gap-2 { gap: 1.1rem; }
.flex-center { justify-content: center; align-items: center; display: flex; }
.flex-between { justify-content: space-between; align-items: center; display: flex; }
.flex-wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 0.85rem; }
.mt-2 { margin-top: 1.7rem; }
.mt-3 { margin-top: 2.6rem; }
.mb-1 { margin-bottom: 0.85rem; }
.mb-2 { margin-bottom: 1.7rem; }
.mb-3 { margin-bottom: 2.6rem; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-dial {
    order: -1;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .nav-inner {
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .nav-links { gap: 0; }
  .nav-links a { padding: 0.4rem 0.55rem; font-size: 0.78rem; }

  .main-content { padding: 1.5rem 1rem 3rem; }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-dial select { min-width: 200px; }
  .iban-structure { font-size: 0.75rem; }
  .iban-block { padding: 0.4rem 0.5rem; }
}

@media (max-width: 480px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-trust { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ── Reduced Motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Print ─────────────────────────────────────────────────────── */
@media print {
  .main-nav, .site-footer, .marquee, .hero::before, .hero::after,
  body::before, body::after { display: none; }
  body { background: #fff; color: #000; }
  .main-content { padding: 1rem; }
}
