/* =========================================================
   Fallahi Exchange — White & Gold Luxury Theme
   Moonshot-inspired structure, minimal & clean
   ========================================================= */

@font-face {
  font-family: 'Myriad Pro';
  src: url('../fonts/myriad-pro-light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Myriad Pro';
  src: url('../fonts/myriad-pro-regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Myriad Pro';
  src: url('../fonts/myriad-pro-semibold.woff') format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Myriad Pro';
  src: url('../fonts/myriad-pro-bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/yekan-bakh-light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/yekan-bakh-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/yekan-bakh-semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/yekan-bakh-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --gold: #eab308;
  --gold-light: #fbbf24;
  --gold-dark: #ca8a04;
  --gold-grad: linear-gradient(135deg, #fbbf24 0%, #eab308 50%, #ca8a04 100%);
  --bg: #ffffff;
  --bg-2: #faf8f5;
  --cream: #faf8f5;
  --cream-2: #f2f0eb;
  --ink: #1c1a17;
  --ink-soft: #6b6660;
  --white: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.10);
  --radius: 14px;
  --font-head: 'Myriad Pro', 'YekanBakh', sans-serif;
  --font-body: 'Myriad Pro', 'YekanBakh', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; transition: opacity 0.22s ease; }
html.lang-switching { opacity: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Single unified page backdrop — all sections share this */
.page-bottom-clip {
  position: relative;
  overflow: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 55% at 75% 100%, rgba(234, 179, 8, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 70% 45% at 15% 30%, rgba(234, 179, 8, 0.035) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, var(--bg) 100%);
}

/* Persian font stack override */
html[lang="fa"] body { font-family: 'YekanBakh', 'Myriad Pro', sans-serif; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 { font-family: 'YekanBakh', 'Myriad Pro', sans-serif; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--ink); }
a { text-decoration: none; color: inherit; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 110px 0; }

/* =========================================================
   Preloader
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.preloader-logo { height: 190px; width: auto; animation: prePulse 1.8s ease-in-out infinite; }
@keyframes prePulse {
  0%, 100% { opacity: 0.55; transform: scale(0.985); }
  50% { opacity: 1; transform: scale(1); }
}
.preloader-line {
  width: 140px;
  height: 2px;
  background: rgba(28, 26, 23, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-line span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold-grad);
  border-radius: 2px;
  animation: preSlide 1.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes preSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
body.preloading { overflow: hidden; }
body.preloading .nav,
body.preloading .hero-content { opacity: 0; }
.nav, .hero-content { transition: opacity 0.8s ease 0.1s; }

/* =========================================================
   Scroll progress
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold-grad);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
  z-index: 200;
  pointer-events: none;
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled, .nav.solid {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  padding: 10px 0;
}
.nav-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; transition: color 0.3s; }
.nav.scrolled .brand, .nav.solid .brand { color: var(--ink); }
.brand-logo { height: 192px; width: auto; display: block; margin: -48px 0; transition: height 0.3s ease, margin 0.3s ease; }
.nav.scrolled .brand-logo, .nav.solid .brand-logo { height: 60px; margin: 0; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.85); position: relative; transition: color 0.25s; }
.nav.scrolled .nav-links a, .nav.solid .nav-links a { color: var(--ink-soft); }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold-grad);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold-light); }
.nav.scrolled .nav-links a:hover, .nav.solid .nav-links a:hover { color: var(--gold-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.3s; border-radius: 2px; }
.nav.scrolled .nav-toggle span, .nav.solid .nav-toggle span { background: var(--ink); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.nav-login { font-size: 0.88rem; font-weight: 600; color: #fff; padding: 8px 12px; transition: color 0.25s; white-space: nowrap; }
.nav.scrolled .nav-login, .nav.solid .nav-login { color: var(--gold-dark); }
.nav-login:hover { color: var(--gold-light); }
.nav-logout {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.nav-logout:hover { background: var(--gold-grad); color: #fff; border-color: transparent; }
.lang-toggle {
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex; gap: 8px; align-items: center;
  white-space: nowrap;
}
.nav.scrolled .lang-toggle, .nav.solid .lang-toggle { color: var(--gold-dark); border-color: var(--gold); }
.lang-toggle:hover { background: var(--gold-grad); color: #fff; border-color: transparent; }
.lang-divider { opacity: 0.4; }
.lang-en.active, .lang-fa.active { color: inherit; font-weight: 700; }

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.theme-toggle .theme-icon { font-size: 0.85rem; line-height: 1; width: 30px; text-align: center; transition: opacity 0.3s ease; color: #fff; opacity: 0.85; }
.theme-toggle .theme-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle .theme-icon.sun { color: #0a0a0a; opacity: 0; }
.theme-toggle .theme-icon.moon { color: #fff; opacity: 0.95; }
html[data-theme="dark"] .theme-toggle .theme-knob { transform: translateX(30px); }
html[data-theme="dark"] .theme-toggle .theme-icon.sun { color: #0a0a0a; opacity: 0.95; }
html[data-theme="dark"] .theme-toggle .theme-icon.moon { color: #fff; opacity: 0.4; }
.nav.scrolled .theme-toggle, .nav.solid .theme-toggle { border-color: var(--gold); background: rgba(234, 179, 8, 0.06); }
.nav.scrolled .theme-toggle .theme-icon.moon, .nav.solid .theme-toggle .theme-icon.moon { color: var(--gold-dark); }
.nav.scrolled .theme-toggle .theme-icon.sun, .nav.solid .theme-toggle .theme-icon.sun { color: var(--gold-dark); }
html[data-theme="dark"] .nav.scrolled .theme-toggle .theme-icon.sun,
html[data-theme="dark"] .nav.solid .theme-toggle .theme-icon.sun { color: var(--gold-light); }
html[data-theme="dark"] .nav.scrolled .theme-toggle .theme-icon.moon,
html[data-theme="dark"] .nav.solid .theme-toggle .theme-icon.moon { color: rgba(255,255,255,0.6); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #0a0a0a;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/back1.jpg') center center / cover no-repeat;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.3) 45%, rgba(10,10,10,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; width: min(920px, 92%); padding: 110px 0 70px; }
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 20px;
  color: #ffffff;
}
.hero-title .line { display: block; opacity: 0; animation: fadeUp 0.9s ease forwards; }
.hero-title .line:nth-child(1) { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) { animation-delay: 0.45s; }
.hero-title .gold {
  background: linear-gradient(135deg, #fbbf24 0%, #eab308 25%, #fbbf24 50%, #eab308 75%, #fbbf24 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: fadeUp 0.9s ease 0.45s forwards, shimmer 5s linear 1.4s infinite;
}
.hero-subtitle {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
}
.hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.9s ease 0.75s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease, background 0.3s ease;
}
.btn:hover { transform: translateY(-4px); }
.btn-gold { background: var(--gold-grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-gold:hover { box-shadow: 0 12px 40px rgba(234, 179, 8, 0.35); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-ghost.light { color: #fff; }
.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 44px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}
.scroll-hint span {
  display: block;
  width: 4px; height: 10px;
  background: #fff;
  border-radius: 3px;
  margin: 7px auto 0;
  animation: scrollDot 1.6s ease infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(18px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================
   Trust strip
   ========================================================= */
.trust-strip {
  background: transparent;
  padding: 34px 0;
}
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.trust-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  direction: ltr;
}
.trust-label { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.trust-sep { width: 1px; height: 40px; background: rgba(0,0,0,0.08); }

/* =========================================================
   Section headers (Moonshot split style)
   ========================================================= */
.ms-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.ms-head-group { max-width: 560px; }
.ms-head-group .eyebrow { margin-bottom: 14px; }
.ms-head-group h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.ms-head-group p { color: var(--ink-soft); font-size: 1.02rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}
.ms-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.ms-cta .arrow { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ms-cta:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(234, 179, 8, 0.25); }
.ms-cta:hover .arrow { transform: translateX(4px); }
.ms-cta.light { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); color: #fff; }
.ms-cta.light:hover { background: var(--gold); color: var(--ink); border-color: transparent; }

/* Card sheen */
.ms-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease, border-color 0.4s ease;
}
.ms-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(234, 179, 8, 0.07), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ms-card:hover::after { opacity: 1; }
.js-sheen { --mx: 50%; --my: 50%; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }

/* Material ripple */
.btn, .ms-cta, .toggle-btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleGrow 0.65s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleGrow { to { transform: scale(3.2); opacity: 0; } }
.toggle-btn .ripple { background: rgba(234, 179, 8, 0.35); }

/* =========================================================
   Live Rates + Converter
   ========================================================= */
.rates-section { background: var(--bg); }
.rates-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 24px; align-items: stretch; }
.rate-box {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.rate-box:hover { border-color: rgba(234, 179, 8, 0.35); }
.rate-box-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  overflow: hidden;
}
.rate-box-icon img { width: 34px; height: 34px; object-fit: contain; }
.rate-box-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}
.rate-list { display: grid; gap: 8px; }
.rate-row { text-align: center; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.rate-row:last-of-type { border-bottom: none; }
.price-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 8px;
}
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.price-value {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  direction: ltr;
}
.price-unit { font-size: 0.92rem; color: var(--ink-soft); }
.price-trend {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex; justify-content: center; align-items: center; gap: 6px;
}
.trend-arrow { font-weight: 700; }
.trend-up { color: #2e7d32; }
.trend-down { color: #c62828; }
.rate-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}

/* Calculator */
.conv-toggle {
  display: flex;
  background: var(--cream-2);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 20px;
}
.toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 100px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.3s;
}
.toggle-btn.active { background: var(--gold-grad); color: #fff; box-shadow: var(--shadow-sm); }
.conv-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.conv-field { min-width: 0; }
.conv-field label { display: block; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 9px; font-weight: 600; }
.conv-input {
  display: flex; align-items: center;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 13px 16px;
  background: var(--bg-2);
  transition: border 0.25s, box-shadow 0.25s;
}
.conv-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.13); }
.conv-input input {
  flex: 1;
  border: none; background: transparent;
  font-size: 1.35rem; font-weight: 600;
  color: var(--ink);
  outline: none;
  min-width: 0;
  font-family: var(--font-body);
}
.conv-input input[readonly] { color: var(--gold-dark); }
.conv-currency { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }

/* =========================================================
   Chart
   ========================================================= */
.chart-section { background: transparent; }
.chart-container {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 28px;
  margin-bottom: 24px;
  height: 380px;
}
.chart-legend { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); }
.legend-color { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* =========================================================
   Showcase
   ========================================================= */
.showcase-section {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: transparent;
  text-align: center;
}
.showcase-head { max-width: 640px; margin: 0 auto 48px; }
.showcase-head .eyebrow { color: var(--gold-dark); }
.showcase-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.showcase-head p { color: var(--ink-soft); font-size: 1.02rem; }
.showcase-stage { position: relative; max-width: 880px; margin: 0 auto; }
.showcase-panel { position: relative; min-height: 380px; }
.showcase-item {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.showcase-item.active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.showcase-copy { flex: 1; max-width: 480px; }
.showcase-copy h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 12px; }
.showcase-copy p { color: var(--ink-soft); margin-bottom: 24px; font-size: 1.02rem; line-height: 1.65; }
.showcase-icon {
  flex: 0 0 300px;
  width: 300px; height: 300px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
/* Gold glow halo behind icon */
.showcase-icon::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.14) 0%, rgba(234, 179, 8, 0.05) 45%, transparent 70%);
  animation: haloPulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
/* Slow floating motion */
.showcase-icon img {
  max-width: 88%; max-height: 88%; object-fit: contain;
  position: relative;
  filter: drop-shadow(0 14px 26px rgba(28, 26, 23, 0.16)) drop-shadow(0 0 22px rgba(234, 179, 8, 0.18));
  animation: iconFloat 5s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.showcase-item.active .showcase-icon img { animation: iconFloat 5s ease-in-out infinite, iconEnter 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes iconEnter {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.showcase-item h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 10px; }
.showcase-item p { color: var(--ink-soft); max-width: 500px; margin: 0 auto 24px; font-size: 1rem; }
.showcase-indicators {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}
.sh-bar {
  width: 56px;
  height: 4px;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.sh-fill { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.sh-bar.active .sh-fill { animation: shFill 6s linear forwards; }
@keyframes shFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html[data-theme="dark"] .sh-bar { background: rgba(255, 255, 255, 0.12); }

/* =========================================================
   Contact
   ========================================================= */
.contact-section { background: transparent; position: relative; }
.contact-section .container { position: relative; z-index: 1; }

/* Golden Earth — rotating wireframe globe, bottom right */
.earth-deco {
  position: absolute;
  right: -360px;
  bottom: -360px;
  width: 1440px;
  height: 1440px;
  z-index: 0;
  pointer-events: none;
  perspective: 1100px;
}
.earth-glow {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.09) 0%, rgba(234, 179, 8, 0.03) 48%, transparent 72%);
  animation: earthGlow 7s ease-in-out infinite;
}
@keyframes earthGlow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.earth-float {
  position: absolute; inset: 0;
  animation: earthFloat 7s ease-in-out infinite;
}
@keyframes earthFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.earth-globe {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  animation: earthSpin 24s linear infinite;
}
@keyframes earthSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
.earth-globe span {
  position: absolute; inset: 0;
  border: 1.5px solid rgba(202, 138, 4, 0.42);
  border-radius: 50%;
}
.earth-globe span:nth-child(1) { transform: rotateY(0deg); }
.earth-globe span:nth-child(2) { transform: rotateY(36deg); }
.earth-globe span:nth-child(3) { transform: rotateY(72deg); }
.earth-globe span:nth-child(4) { transform: rotateY(108deg); }
.earth-globe span:nth-child(5) { transform: rotateY(144deg); }
.earth-parallel {
  position: absolute;
  border: 1.5px solid rgba(202, 138, 4, 0.26);
  border-radius: 50%;
}
.earth-parallel.p1 { left: 0; right: 0; top: 35%; height: 30%; }
.earth-parallel.p2 { left: 8%; right: 8%; top: 21%; height: 22%; }
.earth-parallel.p3 { left: 11%; right: 11%; top: 58%; height: 22%; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.35s ease;
}
.contact-item:hover { transform: translateY(-3px); border-color: rgba(234, 179, 8, 0.35); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.18);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.contact-item h3 { font-size: 0.98rem; margin-bottom: 2px; }
.contact-item a, .contact-item p { color: var(--ink-soft); font-size: 0.93rem; }
.contact-item a:hover { color: var(--gold-dark); }
.contact-form {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-2);
  outline: none;
  transition: border 0.25s, box-shadow 0.25s;
}
.contact-form textarea { resize: vertical; margin-bottom: 16px; }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.13);
}
.form-status { margin-top: 12px; font-size: 0.9rem; color: #2e7d32; min-height: 1.4em; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: #14120e;
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0 40px;
  text-align: center;
}
.footer::before {
  content: '';
  position: absolute;
  left: 50%; top: -140px;
  transform: translateX(-50%);
  width: 900px; height: 280px;
  background: radial-gradient(ellipse at center, rgba(234, 179, 8, 0.16) 0%, rgba(234, 179, 8, 0.05) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.footer .brand { color: #fff; justify-content: center; margin-bottom: 14px; }
.footer-tagline { font-size: 0.94rem; margin-bottom: 18px; color: rgba(255,255,255,0.75); }
.footer-rights { font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }

/* =========================================================
   Dark mode
   ========================================================= */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) {
  animation: vtCurtains 0.75s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes vtCurtains {
  from { clip-path: polygon(50% 0%, 50% 0%, 50% 100%, 50% 100%); }
  to   { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #101014;
  --cream: #0f0f14;
  --cream-2: #16161d;
  --ink: #ece9e4;
  --ink-soft: #a8a29a;
  --white: #14141a;
  --card-border: rgba(255, 255, 255, 0.09);
  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3 { color: #f5f2ec; }
html[data-theme="dark"] .eyebrow { color: var(--gold-light); }
html[data-theme="dark"] .ms-head-group h2,
html[data-theme="dark"] .showcase-head h2,
html[data-theme="dark"] .contact-item h3 { color: #f5f2ec; }
html[data-theme="dark"] .ms-head-group p,
html[data-theme="dark"] .showcase-head p { color: var(--ink-soft); }
html[data-theme="dark"] .ms-cta { background: rgba(234, 179, 8, 0.12); border: 1px solid rgba(234, 179, 8, 0.35); color: var(--gold-light); }
html[data-theme="dark"] .ms-cta:hover { background: var(--gold); color: #0a0a0a; }
html[data-theme="dark"] .rate-box,
html[data-theme="dark"] .chart-container,
html[data-theme="dark"] .contact-item,
html[data-theme="dark"] .contact-form { background: var(--white); border-color: rgba(234, 179, 8, 0.2); }
html[data-theme="dark"] .rate-box-title { color: var(--gold-light); }
html[data-theme="dark"] .rate-row { border-bottom-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .price-trend { border-top-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .price-label,
html[data-theme="dark"] .price-unit,
html[data-theme="dark"] .conv-currency,
html[data-theme="dark"] .rate-note,
html[data-theme="dark"] .legend-item,
html[data-theme="dark"] .trust-label { color: var(--ink-soft); }
html[data-theme="dark"] .conv-input { border-color: rgba(255, 255, 255, 0.12); background: var(--cream-2); }
html[data-theme="dark"] .conv-input input { color: var(--ink); }
html[data-theme="dark"] .conv-input input[readonly] { color: var(--gold-light); }
html[data-theme="dark"] .conv-toggle { background: var(--cream-2); }
html[data-theme="dark"] .toggle-btn { color: var(--ink-soft); }
html[data-theme="dark"] .toggle-btn.active { color: #0a0a0a; }
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
  background: var(--cream-2);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}
html[data-theme="dark"] .contact-item a,
html[data-theme="dark"] .contact-item p { color: var(--ink-soft); }
html[data-theme="dark"] .contact-item a:hover { color: var(--gold-light); }
html[data-theme="dark"] .contact-icon { background: rgba(234, 179, 8, 0.12); border-color: rgba(234, 179, 8, 0.25); color: var(--gold-light); }
html[data-theme="dark"] .form-status { color: #66bb6a; }
html[data-theme="dark"] .trend-up { color: #66bb6a; }
html[data-theme="dark"] .trend-down { color: #ef5350; }
html[data-theme="dark"] .trust-strip { background: transparent; }
html[data-theme="dark"] .trust-sep { background: rgba(255,255,255,0.1); }
html[data-theme="dark"] .showcase-head .eyebrow { color: var(--gold-light); }
html[data-theme="dark"] .showcase-icon::before { background: radial-gradient(circle, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.07) 45%, transparent 70%); }
html[data-theme="dark"] .showcase-icon img { filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 26px rgba(234, 179, 8, 0.3)); }
html[data-theme="dark"] .showcase-item h3 { color: #f5f2ec; }
html[data-theme="dark"] .showcase-item p { color: var(--ink-soft); }
html[data-theme="dark"] .footer { background: #0b0b0e; }
html[data-theme="dark"] .footer-tagline { color: rgba(255, 255, 255, 0.75); }
html[data-theme="dark"] .earth-glow { background: radial-gradient(circle, rgba(234, 179, 8, 0.12) 0%, rgba(234, 179, 8, 0.04) 48%, transparent 72%); }
html[data-theme="dark"] .earth-globe span { border-color: rgba(234, 179, 8, 0.4); }
html[data-theme="dark"] .earth-parallel { border-color: rgba(234, 179, 8, 0.26); }
html[data-theme="dark"] .preloader { background: #0a0a0a; }
html[data-theme="dark"] .preloader-line { background: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .nav { background: transparent; box-shadow: none; }
html[data-theme="dark"] .nav.scrolled, html[data-theme="dark"] .nav.solid {
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
}
html[data-theme="dark"] .nav.scrolled .brand, html[data-theme="dark"] .nav.solid .brand { color: #fff; }
html[data-theme="dark"] .nav.scrolled .nav-links a, html[data-theme="dark"] .nav.solid .nav-links a { color: rgba(255, 255, 255, 0.75); }
html[data-theme="dark"] .nav.scrolled .nav-links a:hover, html[data-theme="dark"] .nav.solid .nav-links a:hover { color: var(--gold-light); }
html[data-theme="dark"] .nav.scrolled .nav-login, html[data-theme="dark"] .nav.solid .nav-login { color: var(--gold-light); }
html[data-theme="dark"] .nav.scrolled .nav-toggle span, html[data-theme="dark"] .nav.solid .nav-toggle span { background: #fff; }
html[data-theme="dark"] .nav.scrolled .lang-toggle, html[data-theme="dark"] .nav.solid .lang-toggle { color: var(--gold-light); border-color: rgba(234, 179, 8, 0.5); }
html[data-theme="dark"] .nav.solid .nav-logout { color: var(--gold-light); border-color: rgba(234, 179, 8, 0.5); }
@media (max-width: 860px) {
  html[data-theme="dark"] .nav-links { background: rgba(10, 10, 12, 0.98); }
  html[data-theme="dark"] .nav-links a { border-bottom-color: rgba(255, 255, 255, 0.08); color: var(--ink) !important; }
}

/* =========================================================
   RTL
   ========================================================= */
html[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
html[dir="rtl"] .ms-cta .arrow { transform: scaleX(-1); }
html[dir="rtl"] .ms-cta:hover .arrow { transform: scaleX(-1) translateX(4px); }
html[dir="rtl"] .ms-head { flex-direction: row-reverse; }
@media (max-width: 860px) {
  html[dir="rtl"] .ms-head { flex-direction: column; }
}
html[dir="rtl"] .price-unit, html[dir="rtl"] .price-eq { direction: rtl; }
html[dir="rtl"] .conv-input input { text-align: right; }
html[dir="rtl"] .contact-item a { direction: ltr; }
html[dir="rtl"] .showcase-item { flex-direction: row-reverse; }
@media (max-width: 860px) {
  html[dir="rtl"] .showcase-item { flex-direction: column-reverse; }
}
html[dir="rtl"] .showcase-item .ms-cta .arrow { transform: scaleX(-1); }
html[dir="rtl"] .trust-inner { direction: rtl; }

/* =========================================================
   About page
   ========================================================= */
:root { --texture: none; --texture-size: 0; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.about-section { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 70px; align-items: center; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; }
.about-features { list-style: none; margin-top: 26px; display: grid; gap: 22px; }
.about-features li { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700;
}
.about-features h3 { font-size: 1.08rem; margin-bottom: 4px; }
.about-features p { margin: 0; font-size: 0.92rem; }
.about-stats { display: grid; gap: 20px; }
.stat {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.35s ease;
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(234, 179, 8, 0.35); }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  direction: ltr;
  display: inline-block;
}
.stat-plus { font-family: var(--font-head); font-size: 1.8rem; color: var(--gold-dark); font-weight: 700; }
.stat-label { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 0.92rem; }
html[data-theme="dark"] .stat { background: var(--white); border-color: rgba(234, 179, 8, 0.2); }
html[data-theme="dark"] .stat-label { color: var(--ink-soft); }
html[data-theme="dark"] .about-text p { color: var(--ink-soft); }
html[data-theme="dark"] .feature-icon { background: rgba(234, 179, 8, 0.12); border-color: rgba(234, 179, 8, 0.25); color: var(--gold-light); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .ms-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .rates-grid { grid-template-columns: 1fr; }
  .rate-box { padding: 24px 20px; }
  .chart-container { height: 300px; padding: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .earth-deco { width: 800px; height: 800px; right: -220px; bottom: -220px; opacity: 0.85; }
  .showcase-section { padding: 80px 0; }
  .showcase-panel { min-height: 360px; }
  .showcase-item { flex-direction: column-reverse; text-align: center; gap: 18px; }
  .showcase-copy { max-width: 100%; }
  .showcase-icon { flex: 0 0 170px; width: 170px; height: 170px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06); color: var(--ink); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: none; }
  .nav.scrolled .nav-links a, .nav.solid .nav-links a { color: var(--ink); }
  .nav-toggle { display: flex; }
  .container { width: 94%; }
  .nav { padding: 10px 0; }
  .nav-inner { width: 94%; gap: 10px; }
  .brand-logo { height: 100px; margin: -20px 0; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .nav-actions { gap: 6px; }
  .nav-login { font-size: 0.82rem; padding: 8px 8px; }
  .nav-logout { font-size: 0.76rem; padding: 7px 11px; }
  .lang-toggle { padding: 7px 12px; font-size: 0.8rem; }
  .theme-toggle { width: 50px; height: 30px; }
  .theme-toggle .theme-knob { width: 22px; height: 22px; }
  .theme-toggle .theme-icon { width: 24px; font-size: 0.75rem; }
  html[data-theme="dark"] .theme-toggle .theme-knob { transform: translateX(22px); }
  .hero-content { padding: 100px 0 60px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-subtitle { font-size: 0.95rem; }
  .btn { padding: 13px 26px; font-size: 0.92rem; }
  .trust-inner { gap: 24px; }
  .trust-num { font-size: 1.5rem; }
  .trust-sep { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .ms-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .rates-grid { gap: 16px; }
  .price-value { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .conv-input { padding: 11px 14px; }
  .conv-input input { font-size: 1.15rem; }
  .chart-container { height: 250px; padding: 16px; }
  .chart-legend { flex-direction: column; align-items: center; gap: 10px; gap: 12px; }
  .contact-form input, .contact-form textarea { padding: 12px 14px; font-size: 0.95rem; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .trust-strip { padding: 26px 0; }
  .trust-item { flex: 1 1 30%; }
  .nav-actions { gap: 5px; }
  .lang-toggle { padding: 6px 10px; font-size: 0.76rem; }
  .nav-login { font-size: 0.78rem; padding: 7px 6px; }
}
