/* ═══ MOMENTERA — Minimal, centered, exchange-first ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6; color: #1E1B4B; background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.container { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* ─── HEADER ─── */
.header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #EDE9FE; }
.header .container { display: flex; align-items: center; height: 56px; gap: 12px; max-width: 900px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: #1E1B4B; }
.logo-icon { width: 32px; height: 32px; background: #7C3AED; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo strong { color: #7C3AED; font-weight: 800; }
.nav { display: none; }
.nav-cta { display: none; }
.burger { display: flex; flex-direction: column; gap: 4px; margin-left: auto; padding: 6px; }
.burger span { display: block; width: 20px; height: 2px; background: #1E1B4B; border-radius: 2px; }
@media (min-width: 640px) {
  .nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .nav a { padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #4C4F6B; transition: all .2s; }
  .nav a:hover { background: #EDE9FE; color: #7C3AED; }
  .nav-cta { display: inline-flex; align-items: center; background: #7C3AED; color: #fff; padding: 7px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; margin-left: 4px; }
  .burger { display: none; }
}
.nav.open { display: flex; flex-direction: column; position: fixed; top: 56px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #EDE9FE; padding: 12px 16px; z-index: 199; }
.nav.open a { padding: 12px 0; font-size: 15px; font-weight: 500; color: #1E1B4B; border-bottom: 1px solid #F3F0FF; }

/* ─── HERO ─── */
.hero { padding: 48px 0 40px; background: linear-gradient(180deg, #F5F0FF 0%, #fff 100%); text-align: center; }
.hero .container { max-width: 680px; }
.hero-tag { display: inline-block; background: #EDE9FE; color: #7C3AED; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; letter-spacing: .03em; }
.hero h1 { font-size: 28px; font-weight: 900; line-height: 1.15; letter-spacing: -.03em; color: #1E1B4B; margin-bottom: 12px; }
.hero h1 em { color: #7C3AED; font-style: normal; }
.hero-sub { font-size: 15px; color: #5B5B80; margin-bottom: 32px; }
@media (min-width: 600px) {
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 17px; }
}

/* ─── EXCHANGE WIDGET ─── */
.exchange-widget { background: #fff; border: 1.5px solid #DDD6FE; border-radius: 20px; padding: 20px 16px 16px; box-shadow: 0 8px 40px rgba(124,58,237,.10); max-width: 520px; margin: 0 auto 0; text-align: left; }
.widget-row label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #9CA3AF; margin-bottom: 8px; }
.input-wrap { display: flex; border: 1.5px solid #E5E7EB; border-radius: 10px; overflow: visible; transition: border-color .2s; margin-bottom: 8px; }
.input-wrap:focus-within { border-color: #7C3AED; box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.cur-select { position: relative; flex-shrink: 0; }
.cur-btn { display: flex; align-items: center; gap: 6px; padding: 12px 10px 12px 12px; background: #F9FAFB; border-right: 1.5px solid #E5E7EB; border-radius: 0; min-width: 100px; white-space: nowrap; transition: background .15s; }
.cur-btn:hover { background: #EDE9FE; }
.cur-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; background: #E5E7EB; }
.cur-label { font-size: 14px; font-weight: 700; color: #1E1B4B; }
.cur-drop { position: absolute; top: calc(100% + 6px); left: 0; width: 240px; background: #fff; border: 1.5px solid #E5E7EB; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.12); z-index: 500; display: none; }
.cur-drop.open { display: block; }
.cur-drop.drop-up { top: auto; bottom: calc(100% + 6px); }
.currency-search { width: 100%; padding: 10px 12px; border: none; border-bottom: 1px solid #E5E7EB; outline: none; font-size: 13px; border-radius: 10px 10px 0 0; }
.currency-list { list-style: none; max-height: 200px; overflow-y: auto; padding: 4px 0; }
.currency-list li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; font-weight: 500; }
.currency-list li:hover, .currency-list li.selected { background: #EDE9FE; color: #7C3AED; }
.currency-list .c-name { flex: 1; }
.currency-list .c-full { font-size: 11px; color: #9CA3AF; }
.num-input { flex: 1; border: none; outline: none; padding: 12px 12px; font-size: 20px; font-weight: 700; color: #1E1B4B; background: transparent; min-width: 0; max-width: 100%; }
.num-input[readonly] { color: #6B7280; }
.widget-mid { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.swap-btn { width: 36px; height: 36px; border-radius: 50%; background: #EDE9FE; color: #7C3AED; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.swap-btn:hover { background: #7C3AED; color: #fff; transform: rotate(180deg); }
.rate-text { font-size: 13px; color: #9CA3AF; }
.exchange-btn { width: 100%; padding: 14px; background: #7C3AED; color: #fff; border-radius: 10px; font-size: 16px; font-weight: 700; margin-top: 12px; transition: background .2s, transform .15s; }
.exchange-btn:hover { background: #6D28D9; transform: translateY(-1px); }
.widget-note { font-size: 11px; color: #9CA3AF; text-align: center; margin-top: 10px; }

/* Mobile dropdown wider */
@media (max-width: 480px) {
  .cur-drop { width: calc(100vw - 40px); max-width: 280px; }
  .cur-btn { min-width: 86px; }
}

/* ─── TRUST STRIP ─── */
.trust-strip { background: #7C3AED; color: #fff; padding: 16px 0; }
.trust-strip .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; max-width: 900px; }
.trust-item { display: flex; flex-direction: column; align-items: center; padding: 4px 20px; }
.trust-item strong { font-size: 20px; font-weight: 900; }
.trust-item span { font-size: 12px; opacity: .8; }
.trust-sep { width: 1px; height: 36px; background: rgba(255,255,255,.3); }
@media (max-width: 400px) {
  .trust-sep { display: none; }
  .trust-item { padding: 6px 14px; }
}

/* ─── RATES (card grid) ─── */
.rates { padding: 56px 0; background: #FAF5FF; }
.rates .container { max-width: 900px; }
.rates h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6B7280; margin: 0 auto 20px; display: flex; justify-content: center; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; animation: pulse 2s infinite; }
.live-dot.error { background: #EF4444; animation: none; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.rates-filter { display: flex; gap: 6px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.rf-btn { padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; border: 1.5px solid #DDD6FE; color: #7C3AED; background: #fff; cursor: pointer; transition: all .2s; }
.rf-btn.active, .rf-btn:hover { background: #7C3AED; color: #fff; border-color: #7C3AED; }
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rate-card { background: #fff; border: 1.5px solid #EDE9FE; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; transition: all .2s; }
.rate-card:hover { border-color: #7C3AED; box-shadow: 0 4px 16px rgba(124,58,237,.1); }
.rate-pair { display: flex; align-items: center; gap: 6px; }
.rc-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.rc-arrow { color: #9CA3AF; font-size: 14px; }
.rate-price { font-size: 13px; font-weight: 700; color: #1E1B4B; }
.rate-min-label { font-size: 11px; color: #9CA3AF; }
.rate-action-btn { padding: 7px 0; border-radius: 7px; background: #EDE9FE; color: #7C3AED; font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; border: none; transition: all .2s; }
.rate-action-btn:hover { background: #7C3AED; color: #fff; }
@media (min-width: 640px) {
  .rates-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .rates h2 { font-size: 30px; }
}

/* ─── HOW IT WORKS (vertical steps) ─── */
.how { padding: 56px 0; background: #fff; }
.how .container { max-width: 600px; }
.how h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.section-sub { color: #5B5B80; margin-bottom: 32px; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step-item { display: flex; gap: 16px; padding-bottom: 28px; position: relative; }
.step-item:not(:last-child)::before { content:''; position:absolute; left: 18px; top: 40px; bottom: 0; width: 2px; background: #EDE9FE; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: #7C3AED; color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: #1E1B4B; }
.step-body p { font-size: 14px; color: #5B5B80; line-height: 1.6; }
@media (min-width: 600px) {
  .how h2 { font-size: 30px; }
  .step-body h3 { font-size: 16px; }
}

/* ─── FAQ ─── */
.faq { padding: 56px 0; background: #F5F0FF; }
.faq .container { max-width: 640px; }
.faq h2 { font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border: 1.5px solid #EDE9FE; border-radius: 10px; overflow: hidden; }
.faq-item.open { border-color: #7C3AED; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-size: 14px; font-weight: 600; text-align: left; gap: 12px; color: #1E1B4B; }
.faq-q:hover { background: #F5F0FF; }
.faq-ic { font-size: 20px; font-weight: 400; color: #7C3AED; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-ic { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 18px 16px; font-size: 14px; color: #5B5B80; line-height: 1.7; }
@media (min-width: 600px) { .faq h2 { font-size: 30px; } }

/* ─── CTA SECTION ─── */
.cta-section { padding: 56px 0; background: #fff; }
.cta-card { background: #7C3AED; border-radius: 20px; padding: 36px 24px; text-align: center; color: #fff; }
.cta-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.cta-card p { font-size: 15px; opacity: .85; margin-bottom: 24px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #7C3AED; padding: 13px 28px; border-radius: 10px; font-weight: 700; font-size: 15px; transition: all .2s; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
@media (min-width: 600px) { .cta-card h2 { font-size: 30px; } }

/* ─── FOOTER ─── */
.footer { background: #1E1B4B; color: #A5B4FC; padding: 32px 0 24px; }
.footer .container { max-width: 900px; }
.footer-top { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { font-size: 14px; color: #A5B4FC; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { font-size: 12px; color: #6B7280; }
@media (min-width: 600px) {
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 16px; padding: 32px 24px; max-width: 380px; width: 100%; text-align: center; position: relative; animation: popIn .25s ease; }
@keyframes popIn { from{opacity:0;transform:scale(.9)} to{opacity:1;transform:scale(1)} }
.modal-close { position: absolute; top: 12px; right: 14px; font-size: 22px; color: #6B7280; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.modal-close:hover { background: #F3F4F6; }
.modal-check { width: 52px; height: 52px; border-radius: 50%; background: #EDE9FE; color: #7C3AED; font-size: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.modal-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.modal-box p { font-size: 14px; color: #5B5B80; line-height: 1.6; margin-bottom: 20px; }

/* TG float */
#tg-float-btn { position: fixed; bottom: 20px; right: 16px; width: 50px; height: 50px; background: #7C3AED; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(124,58,237,.4); z-index: 999; transition: transform .2s; }
#tg-float-btn:hover { transform: scale(1.1); }
