/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080814;
  --bg2:      #0d0d1f;
  --bg3:      #12122a;
  --surface:  #161630;
  --surface2: #1e1e40;
  --border:   rgba(255,255,255,0.08);
  --accent:   #f5a623;
  --accent2:  #e8870e;
  --green:    #22c55e;
  --blue:     #60a5fa;
  --purple:   #a855f7;
  --text:     #e2e8f0;
  --text2:    #94a3b8;
  --text3:    #64748b;
  --radius:   12px;
  --radius-lg:20px;
  --shadow:   0 4px 24px rgba(0,0,0,0.4);
  --glow-acc: 0 0 40px rgba(245,166,35,0.15);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, button { font-family: inherit; }

/* Mobile-first container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.accent { color: var(--accent); }
.gain { color: var(--green); }
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b35 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s ease;
  white-space: nowrap; min-height: 48px; /* Touch target */
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
  box-shadow: 0 4px 20px rgba(245,166,35,0.3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,166,35,0.5); }
.btn--ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn--outline:hover { background: rgba(245,166,35,0.1); }
.btn--outline.btn--blue { color: var(--blue); border-color: var(--blue); }
.btn--outline.btn--blue:hover { background: rgba(96,165,250,0.1); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }
@media (min-width: 768px) { .btn--lg { padding: 16px 36px; } }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.header.scrolled {
  background: rgba(8,8,20,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; gap: 16px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; }
.logo__icon { font-size: 22px; }
@media (min-width: 768px) { .logo { font-size: 22px; } .logo__icon { font-size: 24px; } }

/* Desktop nav — hidden on mobile */
.nav { display: none; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 8px 14px; border-radius: 8px; color: var(--text2); font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
@media (min-width: 900px) { .nav { display: flex; } }

/* Desktop actions */
.header__actions { display: none; gap: 10px; }
@media (min-width: 900px) { .header__actions { display: flex; } }

/* Hamburger button */
.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
  margin-left: auto; padding: 8px; border-radius: 8px;
  transition: background 0.2s;
}
.burger:hover { background: rgba(255,255,255,0.06); }
.burger__line {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open .burger__line:nth-child(2) { opacity: 0; }
.burger.open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 64px; z-index: 99;
  background: rgba(8,8,20,0.98); backdrop-filter: blur(20px);
  padding: 24px 16px; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu__link {
  display: block; padding: 16px 20px; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; color: var(--text2);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.mobile-menu__link:hover { background: var(--surface); color: var(--text); border-color: var(--border); }
.mobile-menu__divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* ===== HERO ===== */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 88px 0 60px; /* 88 = header height */
}
@media (min-width: 768px) { .hero { padding: 100px 0 80px; } }

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
}
.hero__glow--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,166,35,0.4), transparent 70%);
  top: -60px; left: -60px;
}
.hero__glow--2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(168,85,247,0.3), transparent 70%);
  bottom: -60px; right: 0;
}
@media (min-width: 768px) {
  .hero__glow--1 { width: 500px; height: 500px; top: -100px; left: -100px; }
  .hero__glow--2 { width: 450px; height: 450px; bottom: -100px; right: 100px; }
}

.hero__inner { position: relative; z-index: 1; width: 100%; max-width: 720px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.3);
  padding: 7px 14px; border-radius: 100px; font-size: 12px; font-weight: 500;
  color: var(--accent); margin-bottom: 20px;
}
@media (min-width: 768px) { .hero__badge { padding: 8px 16px; font-size: 13px; margin-bottom: 24px; } }

.badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(32px, 8vw, 72px); font-weight: 900; line-height: 1.1;
  margin-bottom: 16px; letter-spacing: -1px;
}
@media (min-width: 768px) { .hero__title { margin-bottom: 24px; } }

.hero__desc {
  font-size: 15px; color: var(--text2); margin-bottom: 28px; max-width: 560px;
  line-height: 1.7;
}
@media (min-width: 768px) { .hero__desc { font-size: 18px; margin-bottom: 40px; } }

.hero__actions {
  display: flex; gap: 12px; flex-direction: column; margin-bottom: 40px;
}
@media (min-width: 480px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; margin-bottom: 48px; }
}
@media (min-width: 768px) { .hero__actions { margin-bottom: 56px; } }

.hero__stats {
  display: flex; align-items: center;
  padding: 16px 12px; gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  backdrop-filter: blur(10px); overflow: hidden;
}
.stat { flex: 1; padding: 0 12px; text-align: center; }
.stat:first-child { padding-left: 4px; }
.stat__divider { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }
.stat__value { font-size: 16px; font-weight: 800; color: var(--accent); }
.stat__label { font-size: 10px; color: var(--text3); font-weight: 500; margin-top: 2px; }

@media (min-width: 600px) {
  .hero__stats { padding: 20px 24px; }
  .stat { padding: 0 24px; text-align: left; }
  .stat:first-child { padding-left: 0; }
  .stat__divider { height: 36px; }
  .stat__value { font-size: 22px; }
  .stat__label { font-size: 12px; }
}
@media (min-width: 768px) {
  .hero__stats { padding: 24px 32px; }
  .stat__value { font-size: 24px; }
}

/* Floating cards — desktop only */
.floating-cards { display: none; }
@media (min-width: 1100px) {
  .floating-cards { display: block; position: absolute; right: 5%; top: 20%; }
  .fcard {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 18px;
    margin-bottom: 12px; backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow); min-width: 200px;
  }
  .fcard--1 { animation-delay: 0s; }
  .fcard--2 { animation-delay: 2s; }
  .fcard--3 { animation-delay: 4s; }
  @keyframes float {
    0%,100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
  }
  .fcard__img { font-size: 28px; }
  .fcard__name { font-size: 13px; font-weight: 600; }
  .fcard__profit { font-size: 15px; font-weight: 700; }
}

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 100px 0; } }
.section--dark { background: var(--bg2); }

.section__header { text-align: center; margin-bottom: 40px; }
@media (min-width: 768px) { .section__header { margin-bottom: 64px; } }

.section__tag {
  display: inline-block; background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3); color: var(--accent);
  padding: 6px 14px; border-radius: 100px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.section__title { font-size: clamp(24px, 5vw, 44px); font-weight: 800; margin-bottom: 12px; }
.section__desc { color: var(--text2); font-size: 15px; max-width: 560px; margin: 0 auto; }
@media (min-width: 768px) { .section__desc { font-size: 16px; } }

/* ===== STEPS ===== */
.steps {
  display: flex; flex-direction: column;
  gap: 16px; margin-bottom: 48px; align-items: center;
}
.step {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px; text-align: center;
  position: relative; transition: transform 0.2s, border-color 0.2s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(245,166,35,0.4); }
.step__num {
  position: absolute; top: 14px; right: 16px;
  font-size: 30px; font-weight: 900; color: rgba(245,166,35,0.1); line-height: 1;
}
.step__icon { font-size: 32px; margin-bottom: 12px; }
.step__title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step__text { font-size: 13px; color: var(--text2); }
.step__arrow { font-size: 20px; color: var(--accent); transform: rotate(90deg); }

@media (min-width: 900px) {
  .steps { flex-direction: row; align-items: center; justify-content: center; gap: 8px; }
  .step { flex: 1; min-width: 0; max-width: 240px; padding: 28px 24px; }
  .step__arrow { transform: none; flex-shrink: 0; }
  .step__num { font-size: 36px; }
  .step__icon { font-size: 36px; }
  .step__title { font-size: 16px; }
}

/* ===== PRINCIPLES ===== */
.principles {
  display: grid; grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.principle {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px;
  transition: transform 0.2s, border-color 0.2s;
}
.principle:hover { transform: translateY(-3px); border-color: rgba(245,166,35,0.3); }
.principle__icon { font-size: 28px; margin-bottom: 10px; }
.principle h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.principle p { font-size: 13px; color: var(--text2); line-height: 1.6; }
@media (min-width: 768px) {
  .principle { padding: 28px 24px; }
  .principle__icon { font-size: 32px; }
}

/* ===== PLANS ===== */
.plans-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; align-items: start;
}
@media (min-width: 600px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .plans-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; } }

.plan-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px;
  position: relative; transition: transform 0.2s;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card--popular {
  border-color: var(--accent);
  background: linear-gradient(to bottom, rgba(245,166,35,0.08), var(--surface));
  box-shadow: 0 0 40px rgba(245,166,35,0.1);
}
.plan-card__hot {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #000;
  padding: 4px 16px; border-radius: 100px; font-size: 12px; font-weight: 700;
}
.plan-card__badge { font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; }
.plan-card__percent { font-size: 42px; font-weight: 900; color: var(--accent); line-height: 1; }
.plan-card__period { font-size: 14px; color: var(--text2); margin-bottom: 14px; }
.plan-card__range {
  background: rgba(255,255,255,0.05); border-radius: 8px;
  padding: 8px 12px; font-size: 14px; font-weight: 600; margin-bottom: 18px; text-align: center;
}
.plan-card__features { list-style: none; margin-bottom: 18px; }
.plan-card__features li { font-size: 13px; color: var(--text2); padding: 6px 0; border-bottom: 1px solid var(--border); }
.plan-card__features li:last-child { border: none; }
.plan-card__total { font-size: 13px; color: var(--text2); margin-bottom: 18px; }
.plan-card__total strong { color: var(--green); }

/* ===== CALCULATOR ===== */
.calculator {
  display: flex; flex-direction: column;
  gap: 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px;
}
@media (min-width: 768px) {
  .calculator {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; padding: 40px;
  }
}

.calc__field { margin-bottom: 24px; }
.calc__field label { display: block; font-size: 14px; font-weight: 600; color: var(--text2); margin-bottom: 10px; }
.calc__input-wrap {
  display: flex; align-items: center;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.calc__currency { padding: 14px 16px; color: var(--text3); font-size: 16px; font-weight: 600; border-right: 1px solid var(--border); }
.calc__input-wrap input {
  flex: 1; padding: 14px 16px; background: none; border: none;
  color: var(--text); font-size: 20px; font-weight: 700; outline: none;
  min-width: 0;
}
.calc__slider {
  width: 100%; margin-top: 12px;
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--val, 5%), var(--surface2) var(--val, 5%));
  outline: none; cursor: pointer;
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent);
  cursor: pointer; box-shadow: 0 0 10px rgba(245,166,35,0.5);
}
.calc__slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); margin-top: 4px; }

.calc__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__plan-btn {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid var(--border);
  cursor: pointer; text-align: left; transition: all 0.2s; color: var(--text);
  min-height: 48px;
}
.calc__plan-btn:hover { border-color: rgba(245,166,35,0.4); }
.calc__plan-btn--active { border-color: var(--accent); background: rgba(245,166,35,0.08); }
.cpb__name { font-size: 13px; font-weight: 600; }
.cpb__rate { font-size: 12px; color: var(--accent); font-weight: 500; }

.calc__result-header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.calc__result-header h3 { font-size: 17px; font-weight: 700; }
.calc__plan-name { font-size: 12px; color: var(--accent); font-weight: 500; }
@media (min-width: 480px) {
  .calc__result-header { flex-direction: row; justify-content: space-between; align-items: center; }
}

.calc__result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.calc__result-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.calc__result-item--big { grid-column: span 2; background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.2); }
.cri__label { font-size: 11px; color: var(--text3); margin-bottom: 4px; }
.cri__value { font-size: 20px; font-weight: 800; }
.calc__result-item--big .cri__value { font-size: 28px; }
@media (min-width: 480px) {
  .cri__value { font-size: 22px; }
  .calc__result-item--big .cri__value { font-size: 32px; }
}

.calc__invest-return {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--text2); margin-bottom: 16px;
  padding: 14px; background: var(--bg3); border-radius: var(--radius);
}
.calc__invest-return span { font-weight: 600; color: var(--text); }
@media (min-width: 480px) {
  .calc__invest-return { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
}

.calc__chart-wrap { margin-bottom: 16px; }

/* ===== LIVE FEED ===== */
.live-feed { display: flex; flex-direction: column; gap: 8px; }
.feed-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  animation: slideIn 0.4s ease;
}
@media (min-width: 768px) { .feed-item { gap: 16px; padding: 14px 20px; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
.feed-item__avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
@media (min-width: 768px) { .feed-item__avatar { width: 40px; height: 40px; font-size: 20px; } }
.feed-item__text { flex: 1; font-size: 13px; min-width: 0; }
.feed-item__text b { font-weight: 700; }
.feed-item__time { font-size: 11px; color: var(--text3); white-space: nowrap; }
.feed-item__amount { font-size: 15px; font-weight: 700; color: var(--green); white-space: nowrap; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item__q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 14px;
  transition: color 0.2s; gap: 12px;
}
@media (min-width: 768px) { .faq-item__q { padding: 20px 24px; font-size: 15px; } }
.faq-item__q:hover { color: var(--accent); }
.faq-item__icon { font-size: 20px; color: var(--accent); transition: transform 0.3s; flex-shrink: 0; }
.faq-item__a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  font-size: 14px; color: var(--text2); line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s;
}
@media (min-width: 768px) { .faq-item__a { padding: 0 24px; } }
.faq-item.open .faq-item__a { max-height: 300px; padding: 0 20px 20px; }
@media (min-width: 768px) { .faq-item.open .faq-item__a { padding: 0 24px 20px; } }
.faq-item.open .faq-item__icon { transform: rotate(45deg); }

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 0 28px; }
@media (min-width: 768px) { .footer { padding: 60px 0 32px; } }

.footer__top { display: flex; flex-direction: column; gap: 32px; margin-bottom: 36px; }
@media (min-width: 768px) {
  .footer__top { flex-direction: row; justify-content: space-between; gap: 60px; margin-bottom: 48px; }
}

.footer__brand .logo { margin-bottom: 12px; display: inline-flex; }
.footer__brand p { font-size: 14px; color: var(--text3); max-width: 280px; }

.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (min-width: 768px) { .footer__links { display: flex; gap: 48px; } }
@media (min-width: 1024px) { .footer__links { gap: 60px; } }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: var(--text2); transition: color 0.2s; padding: 2px 0; }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; gap: 16px; flex-wrap: wrap; } }
.footer__bottom p { font-size: 13px; color: var(--text3); }
.footer__disclaimer { font-size: 12px; color: var(--text3); opacity: 0.6; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  display: none; align-items: flex-end; justify-content: center; padding: 0;
}
@media (min-width: 600px) { .modal-overlay { align-items: center; padding: 20px; } }
.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 32px 24px 40px; /* extra bottom for iOS home indicator */
  width: 100%; max-width: 420px; position: relative;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  animation: modalUp 0.3s ease;
}
@media (min-width: 600px) {
  .modal {
    border-radius: var(--radius-lg);
    padding: 40px;
    animation: modalIn 0.3s ease;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  }
}
@keyframes modalUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes modalIn { from { opacity:0; transform: translateY(20px) scale(0.97); } to { opacity:1; transform: none; } }

.modal__close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.06); border: none; color: var(--text2);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal__close:hover { background: rgba(255,255,255,0.12); }
.modal__logo { font-size: 20px; font-weight: 800; color: var(--accent); margin-bottom: 20px; }
.modal__title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
@media (min-width: 600px) { .modal__title { font-size: 24px; } }
.modal__sub { font-size: 14px; color: var(--text2); margin-bottom: 24px; }
.modal__switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text2); }
.modal__switch a { color: var(--accent); font-weight: 600; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--text3); }
.form-group input {
  width: 100%; padding: 14px 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 16px; /* 16px prevents zoom on iOS */
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--accent); }
.form-error { color: #f87171; font-size: 13px; margin-bottom: 12px; min-height: 16px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 20px; left: 16px; right: 16px; z-index: 9999;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow); transform: translateY(120px);
  transition: transform 0.3s ease;
}
.toast.show { transform: translateY(0); }
.toast.success { border-color: var(--green); }
.toast.error { border-color: #f87171; }
@media (min-width: 600px) {
  .toast {
    left: auto; right: 32px; bottom: 32px;
    max-width: 320px; transform: translateX(150%);
  }
  .toast.show { transform: none; }
}

/* ===== ACCOUNT MODEL INFO ===== */
.account-model-info {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 16px; margin-top: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
@media (min-width: 600px) {
  .account-model-info {
    flex-direction: row; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 20px; padding: 28px 36px; margin-top: 40px;
  }
}
.ami__item { display: flex; align-items: center; gap: 14px; }
.ami__icon { font-size: 28px; }
@media (min-width: 768px) { .ami__icon { font-size: 32px; } }
.ami__text { display: flex; flex-direction: column; }
.ami__text strong { font-size: 15px; font-weight: 700; }
@media (min-width: 768px) { .ami__text strong { font-size: 17px; } }
.ami__text span { font-size: 12px; color: var(--text2); margin-top: 2px; }
.ami__divider { display: none; }
@media (min-width: 600px) {
  .ami__divider { display: block; font-size: 22px; color: var(--accent); font-weight: 700; }
}

/* ===== ACCOUNT TABLE ===== */
.account-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  position: relative;
}
.account-table-wrap::after {
  content: '← прокрути →';
  display: block; text-align: center;
  font-size: 11px; color: var(--text3);
  padding: 8px 0 0;
}
@media (min-width: 700px) { .account-table-wrap::after { display: none; } }
.account-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  min-width: 400px;
}
.account-table th {
  background: var(--surface2); color: var(--text2);
  font-weight: 600; font-size: 13px; padding: 14px 18px; text-align: left; white-space: nowrap;
}
.account-table td {
  padding: 14px 18px; border-top: 1px solid var(--border);
  font-weight: 500; white-space: nowrap;
}
.account-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.account-table td:first-child { font-size: 15px; font-weight: 700; color: var(--accent); }
.at-row--bonus { background: rgba(34,197,94,0.03); }
.at-row--vip   { background: rgba(96,165,250,0.05); }
.at-tier { font-size: 11px; font-weight: 600; vertical-align: middle; margin-left: 4px; }

/* ===== PLANS MOBILE / DESKTOP SWITCH ===== */
.plans-mobile  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
.plans-desktop { display: none; }
@media (min-width: 700px) {
  .plans-mobile  { display: none; }
  .plans-desktop { display: block; }
}

/* Mobile plan cards */
.plans-mobile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 12px;
}
.pmc--bonus { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.04); }
.pmc--vip   { border-color: rgba(96,165,250,0.4); background: rgba(96,165,250,0.06); }
.pmc__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pmc__accounts { font-size: 15px; font-weight: 800; color: var(--accent); }
.pmc__badge { font-size: 10px; font-weight: 700; color: var(--green); }
.pmc__row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); margin-bottom: 5px; }
.pmc__row strong { font-weight: 700; color: var(--text); font-size: 13px; }
.pmc__row strong.gain { color: var(--green); }

/* ===== TIERS INFO ===== */
.tiers-info {
  display: flex; flex-direction: column; gap: 10px; margin-top: 16px;
}
@media (min-width: 600px) { .tiers-info { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; } }

.tier-badge {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
@media (min-width: 600px) {
  .tier-badge { flex-direction: column; align-items: center; gap: 4px; min-width: 160px; }
}
.tier-badge--bonus { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.05); }
.tier-badge--vip   { border-color: rgba(96,165,250,0.4); background: rgba(96,165,250,0.07); }
.tb__label { font-size: 12px; color: var(--text2); }
.tb__rate  { font-size: 20px; font-weight: 800; color: var(--text); }
@media (min-width: 600px) { .tb__rate { font-size: 22px; } }
.tb__tag   { font-size: 12px; font-weight: 600; color: var(--text2); }
.tier-badge--bonus .tb__rate { color: var(--green); }
.tier-badge--vip   .tb__rate { color: var(--blue); }

/* ===== CALC TIER BADGE ===== */
.calc__tier-badge {
  margin-top: 10px; padding: 8px 14px; border-radius: var(--radius);
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: var(--green); font-size: 13px; font-weight: 600;
  text-align: center; animation: tierIn 0.3s ease;
}
@keyframes tierIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ===== CALC ACCOUNTS HINT ===== */
.calc__accounts-hint { margin-top: 0; }
.calc__hint-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius); padding: 16px;
  margin-top: 4px;
}
@media (min-width: 480px) { .calc__hint-box { gap: 16px; padding: 18px 20px; flex-wrap: nowrap; } }
.chb__icon { font-size: 24px; }
@media (min-width: 480px) { .chb__icon { font-size: 28px; } }
.chb__title { font-size: 12px; color: var(--text2); margin-bottom: 2px; }
.chb__count { font-size: 24px; font-weight: 800; line-height: 1; }
@media (min-width: 480px) { .chb__count { font-size: 28px; } }
.chb__sub { font-size: 12px; color: var(--text2); }
.chb__sep { display: none; }
@media (min-width: 480px) { .chb__sep { display: block; width: 1px; height: 40px; background: var(--border); margin: 0 4px; } }

/* ===== LANG SWITCHER ===== */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  background: none; border: 1px solid var(--border); color: var(--text2);
  padding: 4px 10px; border-radius: var(--radius); cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; transition: .2s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn--active { border-color: var(--accent); color: var(--accent); background: rgba(245,166,35,0.12); }
