/* ═══════════════════════════════════════════════════
   FONDRA — css/fondra.css
   Dark financial platform — Binance-inspired design
   Breakpoints: 1200 / 900 / 600 / 380
═══════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --bg0: #0b0e11;
  --bg1: #151a20;
  --bg2: #1e2329;
  --bg3: #252d37;
  --border:  #2b3139;
  --border2: #363d47;

  --t1: #eaecef;
  --t2: #848e9c;
  --t3: #474d57;

  --yl:     #f0b90b;
  --yl2:    #d4a017;
  --yl-dim: rgba(240,185,11,.12);
  --yl-bdr: rgba(240,185,11,.25);

  --green:     #03c887;
  --green-dim: rgba(3,200,135,.10);
  --red:       #f6465d;
  --red-dim:   rgba(246,70,93,.10);

  --radius:    6px;
  --radius-lg: 10px;
  --mono: 'DM Mono', monospace;

  --nav-h: 56px;
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg0);
  color: var(--t1);
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width:100%; display:block; }
a   { text-decoration:none; color:inherit; }
ul  { list-style:none; }
button { cursor:pointer; font-family:inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar        { width:6px; height:6px; }
::-webkit-scrollbar-track  { background:var(--bg1); }
::-webkit-scrollbar-thumb  { background:var(--border2); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--t3); }

/* ── LAYOUT WRAPPER ── */
.sec-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── KEYFRAMES ── */
@keyframes blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.35; transform:scale(1.4); }
}
@keyframes tickerScroll {
  from { transform:translateX(0); }
  to   { transform:translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}
@keyframes slideDown {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ════════════════════════════════════
   NAVBAR
════════════════════════════════════ */
#navbar {
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 500;
  transition: box-shadow .3s;
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--yl);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--t1); }

.nav-center {
  display: flex;
  gap: 2px;
  flex: 1;
}

.nl {
  color: var(--t2);
  font-size: 13.5px;
  padding: 6px 11px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nl:hover, .nl.active {
  color: var(--t1);
  background: var(--bg2);
}

.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.btn-lo {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--t1);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
}
.btn-lo:hover { border-color:var(--yl); color:var(--yl); }

.btn-reg {
  background: var(--yl);
  border: none;
  color: #000;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
}
.btn-reg:hover { background:var(--yl2); }

.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--t1);
  padding: 4px;
  line-height: 1;
}
.hamburger i { font-size:22px; display:block; }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 16px;
  flex-direction: column;
  gap: 4px;
  animation: slideDown .2s ease;
}
.mobile-menu.open { display:flex; }

.mm-link {
  color: var(--t2);
  font-size: 14.5px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.mm-link:hover { color:var(--t1); background:var(--bg2); }

.mm-btns {
  display: flex;
  gap: 8px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero-section { padding: 0 24px; }

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 0 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

/* Hero Left */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--yl-dim);
  color: var(--yl);
  font-size: 12px;
  padding: 5px 13px;
  border-radius: 3px;
  border: 1px solid var(--yl-bdr);
  margin-bottom: 22px;
  animation: fadeUp .5s ease both;
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--yl);
  border-radius: 50%;
  animation: blink 2s infinite;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  animation: fadeUp .5s .1s ease both;
}
.hero-title .yl { color:var(--yl); }

.hero-sub {
  font-size: 14.5px;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 460px;
  animation: fadeUp .5s .2s ease both;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  animation: fadeUp .5s .3s ease both;
}

.cta-p {
  display: inline-block;
  background: var(--yl);
  color: #000;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: background .15s, transform .1s;
  text-align: center;
}
.cta-p:hover { background:var(--yl2); transform:translateY(-1px); }
.cta-p:active { transform:translateY(0); }

.cta-s {
  display: inline-block;
  background: transparent;
  color: var(--t1);
  border: 1px solid var(--border2);
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color .15s, color .15s;
  text-align: center;
}
.cta-s:hover { border-color:var(--yl); color:var(--yl); }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeUp .5s .4s ease both;
}
.hs .val {
  font-size: 21px;
  font-weight: 600;
  color: var(--t1);
  font-family: var(--mono);
}
.hs .lbl {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
}

/* Market Panel */
.mkt-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: fadeIn .6s .2s ease both;
}

.mkt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 11px;
  border-bottom: 1px solid var(--border);
}

.mkt-tabs { display:flex; gap:2px; }

.mt {
  font-size: 13px;
  color: var(--t2);
  padding: 5px 11px;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  transition: background .15s, color .15s;
}
.mt.active, .mt:hover { background:var(--bg3); color:var(--t1); }

.live-ind {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--green);
}
.live-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mkt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}
.mkt-table th {
  font-size: 11.5px;
  color: var(--t3);
  padding: 8px 14px;
  text-align: left;
  font-weight: 400;
  letter-spacing: .3px;
  white-space: nowrap;
}
.mkt-table th:last-child,
.mkt-table td:last-child { text-align:right; }
.mkt-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}

.coin-cell { display:flex; align-items:center; gap:9px; }

.cdot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.cbtc { background:rgba(247,147,26,.15); color:#f7931a; }
.ceth { background:rgba(98,126,234,.15);  color:#627eea; }
.cbnb { background:rgba(240,185,11,.15);  color:var(--yl); }
.csol { background:rgba(153,69,255,.15);  color:#9945ff; }
.cxrp { background:rgba(52,106,169,.15);  color:#346aa9; }

.cn p    { font-size:13px; font-weight:500; color:var(--t1); margin:0; }
.cn span { font-size:11px; color:var(--t3); }

.price-cell {
  font-weight: 500;
  color: var(--t1);
  font-family: var(--mono);
  font-size: 13px;
}

.up  { color:var(--green); }
.dn  { color:var(--red); }

.sparkline { width:64px; height:26px; display:block; overflow:visible; }

.trade-btn {
  background: var(--yl-dim);
  color: var(--yl);
  border: 1px solid var(--yl-bdr);
  padding: 4px 11px;
  border-radius: 3px;
  font-size: 12px;
  transition: background .15s;
  white-space: nowrap;
}
.trade-btn:hover { background:rgba(240,185,11,.22); }

.mkt-footer {
  padding: 10px 14px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.mkt-footer a { font-size:12.5px; color:var(--t2); transition:color .15s; }
.mkt-footer a:hover { color:var(--yl); }

/* ════════════════════════════════════
   TICKER BAR
════════════════════════════════════ */
.ticker-bar {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: tickerScroll 35s linear infinite;
}
.ticker-bar:hover .ticker-track { animation-play-state:paused; }

.tick {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  white-space: nowrap;
}
.tick-sym { font-weight:500; color:var(--t1); }
.tick-px  { color:var(--t2); font-family:var(--mono); }
.tick-sep { color:var(--border2); font-size:14px; user-select:none; }

/* ════════════════════════════════════
   SECTION SHARED
════════════════════════════════════ */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--yl);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-h {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  line-height: 1.25;
}
.sec-p {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 44px;
}

/* ════════════════════════════════════
   FEATURES
════════════════════════════════════ */
.features-section { padding: 72px 24px; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feat-card {
  background: var(--bg1);
  padding: 28px 24px;
  transition: background .2s;
}
.feat-card:hover { background:var(--bg2); }

.feat-icon {
  width: 42px; height: 42px;
  background: var(--yl-dim);
  border-radius: var(--radius);
  display: flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
  color: var(--yl);
  font-size: 19px;
}
.feat-card h3 { font-size:14px; font-weight:600; color:var(--t1); margin-bottom:8px; }
.feat-card p  { font-size:13px; color:var(--t2); line-height:1.65; }

/* ════════════════════════════════════
   ABOUT
════════════════════════════════════ */
.about-section { padding: 72px 24px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-left p {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.astat .aval {
  font-size: 22px;
  font-weight: 700;
  color: var(--yl);
  font-family: var(--mono);
}
.astat .albl { font-size:12px; color:var(--t3); margin-top:2px; }

.about-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.value-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color .2s;
}
.value-card:hover { border-color:var(--border2); }
.value-card i   { font-size:22px; color:var(--yl); margin-bottom:12px; display:block; }
.value-card h4  { font-size:14px; font-weight:600; color:var(--t1); margin-bottom:6px; }
.value-card p   { font-size:12.5px; color:var(--t2); line-height:1.65; }

/* ════════════════════════════════════
   PLANS
════════════════════════════════════ */
.plans-section {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.plan-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.plan-card:hover { transform:translateY(-2px); }
.plan-card.popular { border-color:var(--yl); }

.pop-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--yl);
  color: #000;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: .5px;
}

.plan-tier {
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 10px;
}

.plan-apy {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  color: var(--yl);
  letter-spacing: -1px;
  line-height: 1;
  font-family: var(--mono);
}
.plan-apy sub {
  font-size: 14px;
  color: var(--t2);
  font-weight: 400;
  vertical-align: baseline;
  letter-spacing: 0;
  font-family: 'DM Sans', sans-serif;
}

.plan-min { font-size:12.5px; color:var(--t3); margin:8px 0 20px; }

.plan-divider { height:1px; background:var(--border); margin-bottom:18px; }

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--t2);
  margin-bottom: 9px;
}
.plan-features li i { color:var(--green); font-size:15px; flex-shrink:0; }

.plan-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding: 11px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  transition: all .15s;
  border: none;
}
.plan-btn.yellow { background:var(--yl); color:#000; }
.plan-btn.yellow:hover { background:var(--yl2); }
.plan-btn.outline {
  background: transparent;
  color: var(--t1);
  border: 1px solid var(--border2);
}
.plan-btn.outline:hover { border-color:var(--yl); color:var(--yl); }

/* ════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════ */
.testi-section { padding:72px 24px; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.testi-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color .2s;
}
.testi-card:hover { border-color:var(--border2); }

.testi-top { display:flex; align-items:center; gap:10px; margin-bottom:12px; }

.tava {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  display: flex; align-items:center; justify-content:center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--yl);
  flex-shrink: 0;
}

.tname { font-size:13.5px; font-weight:500; color:var(--t1); }
.tloc  { font-size:11.5px; color:var(--t3); }
.tstars{ color:var(--yl); font-size:13px; margin-bottom:10px; letter-spacing:1px; }
.tquote{ font-size:13px; color:var(--t2); line-height:1.7; margin-bottom:16px; }

.tbot {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--t3);
}
.tprofit { color:var(--green); font-weight:500; }

/* ════════════════════════════════════
   PAYMENTS
════════════════════════════════════ */
.pay-strip {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.pay-lbl {
  font-size: 11px;
  color: var(--t3);
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.pay-coins {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}

.pcoin {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  transition: color .15s;
}
.pcoin:hover { color:var(--t1); }

.pdot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.pdot.btc  { background:rgba(247,147,26,.15); color:#f7931a; }
.pdot.eth  { background:rgba(98,126,234,.15);  color:#627eea; }
.pdot.usdt { background:rgba(38,161,123,.15);  color:#26a17b; }
.pdot.doge { background:rgba(195,161,105,.15); color:#c3a169; }
.pdot.ltc  { background:rgba(191,162,34,.15);  color:#bfa222; }
.pdot.xrp  { background:rgba(52,106,169,.15);  color:#346aa9; }

/* ════════════════════════════════════
   CONTACT
════════════════════════════════════ */
.contact-section {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  margin-top: 44px;
}

.contact-left h3 { font-size:16px; font-weight:600; color:var(--t1); margin-bottom:20px; }

.team-row { display:flex; gap:24px; flex-wrap:wrap; }

.tm { display:flex; flex-direction:column; align-items:center; gap:8px; }

.tm-ava {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border2);
  display: flex; align-items:center; justify-content:center;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  color: var(--yl);
  transition: border-color .2s;
}
.tm-ava:hover { border-color:var(--yl); }
.tm-ava img { width:100%; height:100%; object-fit:cover; }

.tm span { font-size:13px; color:var(--t2); }

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 3px;
  border: 1px solid rgba(3,200,135,.2);
}
.online-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s infinite;
  flex-shrink: 0;
}

.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.ci-icon {
  width: 38px; height: 38px;
  background: var(--yl-dim);
  border-radius: var(--radius);
  display: flex; align-items:center; justify-content:center;
  color: var(--yl);
  font-size: 17px;
  flex-shrink: 0;
}
.ci-item h4 { font-size:13px; font-weight:600; color:var(--t1); margin-bottom:4px; }
.ci-item p  { font-size:13px; color:var(--t2); line-height:1.6; }
.ci-item a  { color:var(--t2); transition:color .15s; }
.ci-item a:hover { color:var(--yl); }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
footer {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  padding: 52px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 40px;
}

.fbrand p {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.75;
  max-width: 300px;
  margin: 10px 0 14px;
}

.femail {
  font-size: 12.5px;
  color: var(--t2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.femail i { font-size:14px; }
.femail a { color:var(--t2); transition:color .15s; }
.femail a:hover { color:var(--yl); }

.fcol h4 {
  font-size: 11px;
  color: var(--t3);
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.fcol a {
  display: block;
  font-size: 13px;
  color: var(--t2);
  margin-bottom: 10px;
  transition: color .15s;
}
.fcol a:hover { color:var(--t1); }

.foot-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--t3);
}

/* ════════════════════════════════════
   BACK TO TOP
════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 40px; height: 40px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 50%;
  color: var(--t2);
  font-size: 18px;
  display: flex; align-items:center; justify-content:center;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
  z-index: 400;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--bg3);
  color: var(--yl);
  border-color: var(--yl);
  transform: translateY(-2px);
}

/* ════════════════════════════════════
   TOAST
════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 80px;
  right: 28px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--t1);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s;
  z-index: 600;
  max-width: 300px;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE SYSTEM
   Desktop  : > 1200px  (default styles above)
   Large Tab : ≤ 1200px
   iPad/Tab  : ≤ 1024px
   Small Tab : ≤ 900px  (iPad mini, Surface)
   Mobile L  : ≤ 600px
   Mobile S  : ≤ 380px  (small iPhones, Galaxy S)
════════════════════════════════════════════════════ */

/* ── ≤ 1200px : Large tablets in landscape ── */
@media (max-width: 1200px) {
  .hero-inner    { gap: 40px; }
  .hero-title    { font-size: clamp(28px, 3.5vw, 42px); }
  .plans-grid    { gap: 12px; }
  .feat-grid     { gap: 1px; }
}

/* ── ≤ 1024px : iPad Pro / landscape tablets ── */
@media (max-width: 1024px) {
  .hero-inner          { gap: 32px; padding: 52px 0 44px; }
  .hero-title          { font-size: clamp(26px, 3.2vw, 38px); }

  /* Testimonials: 2 columns */
  .testi-grid          { grid-template-columns: repeat(2, 1fr); }

  /* Footer: 2×2 */
  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* About: keep 2 cols but tighten */
  .about-grid          { gap: 40px; }

  /* Features: still 3 cols but tighter */
  .feat-grid           { gap: 1px; }

  /* Plans: still 3 cols */
  .plans-grid          { gap: 12px; }
}

/* ── ≤ 900px : iPad portrait / small tablets ── */
@media (max-width: 900px) {
  /* NAV: hide links, show hamburger */
  .nav-center          { display: none; }
  .btn-lo              { display: none; }
  .hamburger           { display: block; }

  /* HERO: stack vertically */
  .hero-section        { padding: 0 20px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 0 36px;
  }
  .hero-sub            { max-width: 100%; font-size: 14px; }
  .hero-title          { font-size: clamp(28px, 5vw, 38px); }

  /* Market table: hide 7d column */
  .mkt-table .hide-sm  { display: none; }

  /* Features: 2 columns */
  .feat-grid           { grid-template-columns: repeat(2, 1fr); }

  /* About: stack */
  .about-grid          { grid-template-columns: 1fr; gap: 32px; }
  .about-right         { grid-template-columns: repeat(2, 1fr); }
  .about-stats         { gap: 24px; }

  /* Plans: centered single column */
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
  .plan-card.popular   { order: -1; } /* popular first on tablet */

  /* Testimonials: 2 columns (already set at 1024, keep) */

  /* Contact: stack */
  .contact-grid        { grid-template-columns: 1fr; gap: 32px; }
  .contact-left        { order: 2; }
  .contact-right       { order: 1; }

  /* Ticker: slightly smaller */
  .tick                { font-size: 12px; }
}

/* ── ≤ 768px : iPad mini / most tablets portrait ── */
@media (max-width: 768px) {
  .hero-title          { font-size: clamp(26px, 5.5vw, 34px); }
  .hero-stats          { gap: 24px; }
  .hs .val             { font-size: 19px; }

  /* Plans back to single col at this size */
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .plan-card.popular   { order: 0; }

  /* Testimonials: 1 col */
  .testi-grid          { grid-template-columns: 1fr; }

  /* Footer: 2 cols still fine */
  .feat-grid           { grid-template-columns: repeat(2, 1fr); }

  /* About values: 2 cols */
  .about-right         { grid-template-columns: repeat(2, 1fr); }

  .sec-h               { font-size: clamp(20px, 4vw, 26px); }
}

/* ── ≤ 600px : Mobile landscape / large phones ── */
@media (max-width: 600px) {
  /* NAV */
  #navbar              { padding: 0 16px; height: 50px; }
  .nav-logo            { font-size: 18px; }
  .btn-reg             { display: none; }
  .mobile-menu         { padding: 10px 16px 14px; }

  /* HERO */
  .hero-section        { padding: 0 16px; }
  .hero-inner          { padding: 32px 0 28px; gap: 28px; }
  .hero-title          { font-size: 26px; letter-spacing: -0.5px; }
  .hero-sub            { font-size: 13.5px; line-height: 1.7; }
  .hero-tag            { font-size: 11.5px; padding: 4px 10px; }

  .hero-cta            { gap: 8px; }
  .cta-p, .cta-s {
    flex: 1;
    text-align: center;
    padding: 11px 10px;
    font-size: 13.5px;
  }

  .hero-stats          { gap: 16px; }
  .hs .val             { font-size: 17px; }
  .hs .lbl             { font-size: 11.5px; }

  /* SECTIONS padding */
  .features-section    { padding: 48px 16px; }
  .about-section       { padding: 48px 16px; }
  .plans-section       { padding: 48px 16px; }
  .testi-section       { padding: 48px 16px; }
  .contact-section     { padding: 48px 16px; }
  footer               { padding: 44px 16px 20px; }
  .pay-strip           { padding: 32px 16px; }
  .sec-wrap            { padding: 0 16px; }

  /* FEATURES: 1 col */
  .feat-grid           { grid-template-columns: 1fr; }
  .feat-card           { padding: 22px 18px; }

  /* ABOUT */
  .about-right         { grid-template-columns: 1fr; }
  .about-stats         { gap: 18px; flex-wrap: wrap; }
  .aval                { font-size: 20px !important; }

  /* PLANS */
  .plans-grid          { max-width: 100%; margin-top: 36px; }
  .plan-apy            { font-size: 34px; }
  .plan-card           { padding: 24px 20px; }

  /* TESTI */
  .testi-grid          { grid-template-columns: 1fr; }

  /* PAYMENTS */
  .pay-coins           { gap: 14px; }

  /* CONTACT */
  .ci-item             { gap: 12px; }
  .ci-icon             { width: 34px; height: 34px; font-size: 15px; }
  .tm-ava              { width: 60px; height: 60px; }
  .team-row            { gap: 16px; }

  /* FOOTER */
  .footer-grid         { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom         { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .fbrand p            { max-width: 100%; }

  /* MARKET TABLE: hide 24h % on very small */
  .sec-p               { margin-bottom: 28px; }
  .sec-h               { font-size: clamp(20px, 5vw, 24px); }

  /* UTILITY */
  .back-to-top         { bottom: 18px; right: 14px; width: 36px; height: 36px; font-size: 16px; }
  .toast               { right: 14px; bottom: 68px; max-width: calc(100vw - 28px); }
}

/* ── ≤ 480px : Most common phones (iPhone, Galaxy) ── */
@media (max-width: 480px) {
  .hero-title          { font-size: 24px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }
  .hs                  { text-align: center; }
  .hs .val             { font-size: 16px; }
  .hs .lbl             { font-size: 10.5px; }

  .hero-cta            { flex-direction: column; }
  .cta-p, .cta-s       { width: 100%; padding: 12px; }

  /* Plans stack clean */
  .plans-grid          { gap: 12px; }

  /* Ticker smaller */
  .tick                { font-size: 11.5px; }
  .ticker-track        { gap: 20px; }

  /* Pay coins: hide text, show icons only */
  .pay-coins           { gap: 16px; }
  .pcoin span          { display: none; }
  .pdot                { width: 32px; height: 32px; font-size: 14px; }
}

/* ── ≤ 380px : Small phones (iPhone SE, Galaxy A) ── */
@media (max-width: 380px) {
  #navbar              { height: 48px; }
  .nav-logo            { font-size: 17px; }

  .hero-title          { font-size: 22px; letter-spacing: -0.3px; }
  .hero-sub            { font-size: 13px; }
  .hero-tag            { font-size: 11px; }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .hs .val             { font-size: 15px; }

  .feat-card           { padding: 18px 16px; }
  .feat-icon           { width: 36px; height: 36px; font-size: 16px; }

  .plan-card           { padding: 20px 16px; }
  .plan-apy            { font-size: 30px; }

  .testi-card          { padding: 16px; }

  .about-right         { gap: 10px; }
  .value-card          { padding: 16px; }

  .tm-ava              { width: 52px; height: 52px; font-size: 14px; }

  .footer-grid         { gap: 20px; }
  .fcol h4             { margin-bottom: 12px; }

  .back-to-top         { width: 34px; height: 34px; bottom: 14px; right: 12px; }
}

/* ── Landscape phones (height < 500px) ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-inner          { padding: 24px 0 20px; }
  .hero-title          { font-size: 22px; }
  .hero-tag            { margin-bottom: 12px; }
  .hero-sub            { display: none; } /* hide on very short landscape */
  .hero-cta            { margin-bottom: 20px; }
  .hero-stats          { gap: 16px; }
}

/* ── High DPI / Retina screens ── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .sparkline           { image-rendering: crisp-edges; }
}

/* ── Reduced motion (accessibility) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track        { animation: none; }
  .tag-dot, .live-dot, .online-dot { animation: none; }
}

/* ── Dark mode forced (system) ── */
@media (prefers-color-scheme: light) {
  /* Keep dark theme regardless — financial platform stays dark */
  :root { color-scheme: dark; }
}

@media (max-width: 900px) {
    
    .nav-right .btn-lo, 
    .nav-right .btn-reg {
        display: inline-block !important; 
        padding: 8px 14px !important; 
        font-size: 13px !important;
    }
    
  
    .nav-right {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
}

@media (max-width: 480px) {

    .nav-right .btn-lo, 
    .nav-right .btn-reg {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}