/* ============================================================
   Dark cinematic fintech theme — scoped to the public landing page
   only. Built around the hero background video (glowing gold/amber
   global currency network). The staff dashboard keeps its own dark
   terminal theme defined in style.css.
   ============================================================ */

.flag-icon {
  width: 1.1em;
  height: 0.75em;
  vertical-align: -0.05em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.landing {
  --bg: #0b0a08;
  --panel: rgba(38, 33, 24, 0.68);
  --panel-solid: #211c14;
  --border: rgba(245, 178, 66, 0.24);
  --text: #f7f3ea;
  --muted: #beb8a8;
  --accent: #f5b942;
  --accent-dim: rgba(245, 178, 66, 0.16);
  --accent-2: #22d3ee;
  --accent-3: #34d399;
  --danger: #f87171;
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.5);

  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  .landing { scroll-behavior: auto; }
}

/* ---------- scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(245, 178, 66, 0.6);
}

/* ---------- ambient background (below the hero) ---------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}

.bg-glow {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.26;
  animation: drift 26s ease-in-out infinite alternate;
}

.bg-glow-1 {
  top: -15%;
  left: -12%;
  background: radial-gradient(circle at center, #f5b942, transparent 65%);
}

.bg-glow-2 {
  top: 20%;
  right: -18%;
  background: radial-gradient(circle at center, #22d3ee, transparent 65%);
  animation-delay: -9s;
}

.bg-glow-3 {
  bottom: -20%;
  left: 25%;
  width: 45vmax;
  height: 45vmax;
  background: radial-gradient(circle at center, #34d399, transparent 65%);
  animation-delay: -17s;
  opacity: 0.12;
}

.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 178, 66, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 20%, transparent 100%);
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6%, 8%) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow { animation: none; }
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent), #ffd98a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 178, 66, 0.12);
  border: 1px solid rgba(245, 178, 66, 0.35);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge { animation: none; }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(245, 178, 66, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 178, 66, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(245, 178, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 178, 66, 0); }
}

.btn.glow {
  background: linear-gradient(90deg, var(--accent), #ffd98a);
  color: #1a1305;
  border: none;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(245, 178, 66, 0.35);
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.btn.glow:hover {
  box-shadow: 0 14px 36px rgba(245, 178, 66, 0.5);
  transform: translateY(-2px);
}

/* ---------- scroll-triggered cue ---------- */

.scroll-cue {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(245, 241, 232, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}

.scroll-cue-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--accent), transparent);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

/* ---------- scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.brand-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid transparent;
  background: rgba(5, 6, 10, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 8, 12, 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-solid);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; position: relative; }

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 8, 12, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .site-nav a.btn {
    margin-top: 12px;
    text-align: center;
    border-bottom: none;
  }
}

.btn.small { padding: 6px 14px; font-size: 0.85rem; }
.btn.large { padding: 13px 26px; font-size: 1rem; text-decoration: none; display: inline-block; border-radius: 10px; }
.btn.secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn.secondary:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lift); }

main { position: relative; z-index: 1; }

/* ---------- hero with animated CSS/SVG network background ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, rgba(245, 178, 66, 0.1), rgba(5, 6, 10, 0) 65%);
}

.network-glow {
  position: absolute;
  width: min(75vw, 700px);
  height: min(75vw, 700px);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245, 178, 66, 0.55), rgba(245, 178, 66, 0.12) 45%, transparent 70%);
  filter: blur(16px);
  animation: network-breathe 6s ease-in-out infinite;
}

@keyframes network-breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.network-rings {
  position: absolute;
  width: min(70vw, 620px);
  height: min(70vw, 620px);
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 178, 66, 0.55);
  box-shadow: 0 0 24px rgba(245, 178, 66, 0.12);
}

.ring-1 { inset: 8%; animation: ring-spin 70s linear infinite; }
.ring-2 { inset: 20%; border-style: dashed; border-color: rgba(34, 211, 238, 0.45); animation: ring-spin-reverse 90s linear infinite; }
.ring-3 { inset: 34%; animation: ring-spin 50s linear infinite; }

@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes ring-spin-reverse { to { transform: rotate(-360deg); } }

.network-orbit {
  position: absolute;
  width: min(72vw, 640px);
  height: min(72vw, 640px);
  animation: ring-spin 100s linear infinite;
}

.spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1.5px;
  transform-origin: 0 50%;
  transform: rotate(var(--angle));
  background: linear-gradient(90deg, rgba(245, 178, 66, 0.8), transparent 75%);
}

.node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--angle)) translateX(min(32vw, 280px));
}

.node > .node-dot,
.node > .node-label {
  animation: ring-spin-reverse 100s linear infinite;
}

.node-dot {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px 4px rgba(245, 178, 66, 0.85);
}

.node-label {
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(245, 241, 232, 0.85);
  background: rgba(10, 9, 7, 0.55);
  border: 1px solid rgba(245, 178, 66, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.network-pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(245, 178, 66, 0.5);
  animation: network-ping 3.2s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}

@keyframes network-ping {
  0%   { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .network-glow,
  .ring-1, .ring-2, .ring-3,
  .network-orbit,
  .node > .node-dot,
  .node > .node-label,
  .network-pulse {
    animation: none;
  }
}

@media (max-width: 640px) {
  .node-label { display: none; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Only darken behind the text block and fade the bottom edge into the next
     section — the network animation itself should stay bright and visible,
     not get washed out by an overlay meant for a much busier video. */
  background:
    radial-gradient(ellipse 55% 40% at 50% 62%, rgba(5, 6, 10, 0.55), transparent 70%),
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(5, 6, 10, 0.65) 85%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  color: rgba(245, 241, 232, 0.78);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 28px;
}

.hero-rate {
  display: inline-block;
  background: rgba(20, 18, 14, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 28px;
  transition: box-shadow 0.3s ease;
}

.hero-rate.flash {
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22), var(--shadow-soft);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
}

/* ---------- currency ticker ---------- */

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel-solid);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 14px;
  white-space: nowrap;
  animation: ticker-scroll 48s linear infinite;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ticker-track .dot { color: var(--accent); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

.steps li {
  display: flex;
  gap: 16px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.steps li:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 178, 66, 0.4);
  box-shadow: var(--shadow-lift);
}

[data-reveal].in-view .steps li,
[data-reveal].in-view .faq details {
  animation: stagger-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.steps li:nth-child(1), .faq details:nth-child(1) { animation-delay: 0ms; }
.steps li:nth-child(2), .faq details:nth-child(2) { animation-delay: 90ms; }
.steps li:nth-child(3), .faq details:nth-child(3) { animation-delay: 180ms; }
.steps li:nth-child(4), .faq details:nth-child(4) { animation-delay: 270ms; }

@keyframes stagger-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal].in-view .steps li,
  [data-reveal].in-view .faq details {
    animation: none;
  }
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffd98a);
  color: #1a1305;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(245, 178, 66, 0.4);
}

.steps h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.steps p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.rates-section { text-align: center; }

.section-sub {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 0.95rem;
}

.converter {
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 10px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: var(--shadow-lift);
}

.converter-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.converter-card:focus-within {
  border-color: rgba(245, 178, 66, 0.5);
  box-shadow: 0 0 0 3px rgba(245, 178, 66, 0.14);
}

.converter-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

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

.chip-row {
  display: flex;
  gap: 6px;
}

.chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.converter-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.converter-input-group input,
.converter-input-group output {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.converter-input-group output {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.converter-input-group output.flash { color: var(--accent-3); }

.converter-input-group input:focus { outline: none; }
.converter-input-group input::placeholder { color: rgba(245, 241, 232, 0.25); }

.currency-select-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
}

.currency-select-wrap select {
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 92px;
}

.currency-select-wrap select:focus { outline: none; }

/* The <select> itself can pick up the dark background from its wrapper,
   but the native dropdown popup renders independently of that context —
   without this, browsers fall back to a white popup with our light text
   color still applied, making every option unreadable. */
.currency-select-wrap select option {
  background: var(--panel-solid);
  color: var(--text);
}

.converter-swap-wrap {
  position: relative;
  height: 0;
  display: flex;
  justify-content: center;
}

.converter-swap-line {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--border);
}

.swap-btn {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-solid);
  color: var(--accent);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.swap-btn:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 20px rgba(245, 178, 66, 0.35), var(--shadow-lift);
}

.swap-btn.spin { transform: rotate(180deg); }

.converter-rate-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 6px 6px;
  padding: 10px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 178, 66, 0.2);
  border-radius: 12px;
}

.converter-rate {
  margin: 0;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .converter-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.rate-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 18px;
}

/* ---------- rates board ---------- */

.board-section { text-align: center; }

.board-base-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.board-base-picker .currency-select-wrap {
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.board-wrap {
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: var(--shadow-lift);
  overflow-x: auto;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.board-table th {
  text-align: right;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
}

.board-table th:first-child { text-align: left; }

.board-table td {
  padding: 11px 16px;
  text-align: right;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.board-table tr:hover td { background: rgba(245, 178, 66, 0.05); }

.board-currency {
  text-align: left !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.board-currency .flag-icon {
  margin-right: 6px;
}

.board-loading,
.board-unavailable {
  text-align: center !important;
  color: var(--muted);
  font-weight: 400 !important;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.faq details {
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq details:hover { box-shadow: var(--shadow-lift); }

.faq details[open] {
  border-color: rgba(245, 178, 66, 0.4);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}

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

.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.55;
}

.contact-section { text-align: center; }

.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.contact-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-note code {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 24px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--muted);
}
