/* ═══════════════════════════════════════════════════════════════════
   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;

  --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;
}

/* ── 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: #05070d; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ffffff24; 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: #ffffff0d;
}

.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: #fff;
  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: #ffffff0a;
}

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

.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, #ffffff1f, #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: #3b82f642;
}

.tag-green { color: var(--green); background: #2ed5731a; border-color: #2ed5733d; }
.tag-gold { color: var(--gold); background: #ffc94a1a; border-color: #ffc94a42; }

/* ── Hero Section ──────────────────────────────────────────────── */
.hero {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: linear-gradient(150deg, #070f1f 0%, #0a1628 42%, #070e1a 100%);
  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:
    radial-gradient(52% 62% at 14% 24%, #3b82f626, #0000 64%),
    radial-gradient(40% 50% at 88% 76%, #ff6b351a, #0000 66%);
  position: absolute;
  inset: 0;
}

.hero::after {
  content: "";
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid #3b82f624;
  border-radius: 50%;
  width: 66%;
  position: absolute;
  bottom: -62%;
  right: -16%;
  box-shadow: 0 0 0 30px #3b82f606, 0 0 0 64px #3b82f604;
  -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 #ffffff1c;
  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: #04080e80;
  border: 1px solid #3b82f629;
  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: inset 0 0 60px -24px #3b82f666;
}

.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, #fff 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;
}

/* ── Marquee ───────────────────────────────────────────────────── */
.marquee {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0b0f1a80;
  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: linear-gradient(168deg, #131a2cb3, #090c15b3);
  padding: 1.4rem;
}

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

.fc-icon {
  background: var(--accent-subtle);
  border: 1px solid #3b82f638;
  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: linear-gradient(168deg, #131a2cd9, #090c15d9);
  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: radial-gradient(ellipse 70% 60% at 82% 8%, #3b82f624, transparent 68%);
  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: #ffffff0d;
  border: 1px solid #ffffff1a;
  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 #ffffff08;
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #ffffff05; }

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: #3b82f61a; border-color: #3b82f633; color: var(--accent-light); }
.iban-block.check { background: #2ed5731a; border-color: #2ed57333; color: var(--green); }
.iban-block.bank { background: #ffc94a1a; border-color: #ffc94a33; color: var(--gold); }
.iban-block.branch { background: #a855f71a; border-color: #a855f733; color: var(--purple); }
.iban-block.account { background: #ffffff0a; border-color: #ffffff1a; 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; }

/* ── CTA Band ──────────────────────────────────────────────────── */
.cta-band {
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #1e40af59, #090c15d9 60%);
  border: 1px solid #3b82f633;
  padding: 2.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  pointer-events: none;
  background: radial-gradient(60% 100% at 50% 120%, #3b82f633, #0000 70%);
  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 #2ed5731a;
}

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

.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: #2ed57314;
  color: var(--green);
  border: 1px solid #2ed57333;
}

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

/* ── 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: #05070d99;
  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); }

/* ── 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; }
}
