/* ========== RESET / BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #eef3fb 0%, #e9eef7 40%, #dde7f6 100%);
  color: #111;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.45;
}
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
strong { font-weight: 700; }

/* ========== PAGE LAYOUT (mobile-first, centered) ========== */
.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ========== SCREEN ========== */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  inset: 0;
  z-index: 1;
}
.screen.is-active { display: flex; z-index: 2; }

/* Modal overlay screen (stacks over another active screen) */
.screen.is-modal {
  position: absolute;
  background: rgba(40, 44, 52, .55);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.screen.is-modal .card {
  margin: 0;
  width: 100%;
}

/* ========== TOPBAR ========== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 24px 18px;
}
.topbar__logo img {
  height: 20px;
  width: auto;
}
.topbar__online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  color: #111;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.topbar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f80ed;
  display: inline-block;
}
.topbar__count { font-weight: 700; }
.topbar__label { color: #555; }

.topbar__user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.topbar__name { font-weight: 700; font-size: 16px; color: #1877f2; }
.topbar--logged .topbar__logo img { height: 20px; }

/* ========== CARD ========== */
.card {
  margin: 8px 16px 16px;
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 10px 40px rgba(20, 40, 90, .06);
}
.card__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 6px 0 16px;
  color: #111;
  line-height: 1.25;
  text-align: center;
}
.card__title--center { text-align: center; }
.card__lead {
  font-size: 14.5px;
  color: #6b7280;
  margin: 0 0 22px;
  text-align: center;
}
.card__lead--center { text-align: center; }
.card__lead--left { text-align: left; }

/* ========== BUTTONS ========== */
.btn {
  display: block;
  width: 100%;
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  color: #fff;
}
.btn--primary {
  background: #1877f2;
  color: #fff;
  box-shadow: 0 6px 18px rgba(24, 119, 242, .35);
}
.btn--primary:active { transform: scale(.99); }
.btn--ghost {
  background: #fff;
  color: #1877f2;
  border: 1.5px solid #e3e8ef;
}
.btn--ghost:active { transform: scale(.99); }

/* ========== FEATURES LIST (screen 1) ========== */
.features__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 26px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f4f7fb;
  border-radius: 16px;
  padding: 16px 18px;
}
.feature__icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.feature__icon svg {
  width: 24px;
  height: 24px;
}
.feature__text strong { display: block; font-size: 15.5px; }
.feature__text span { display: block; font-size: 13px; color: #6b7280; margin-top: 2px; }

/* ========== LOADER ========== */
.screen--loader {
  align-items: center;
  justify-content: center;
  background: #fff;
}
.loader {
  text-align: center;
  width: 100%;
  padding: 0 24px;
}
.loader__logo {
  width: 230px;
  height: auto;
  margin: 0 auto 32px;
}
.loader__bar {
  width: 240px;
  height: 4px;
  margin: 0 auto 18px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: #111;
  border-radius: 4px;
  transition: width .25s linear;
}
.loader__text {
  color: #6b7280;
  font-size: 15px;
  margin: 0;
}

/* ========== SLOTBOX (screen 3) ========== */
.slotbox {
  background: #f4f7fb;
  border-radius: 16px;
  padding: 22px 18px 24px;
  text-align: center;
  margin-bottom: 24px;
}
.slotbox__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f0fd;
  color: #1877f2;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.slotbox__check {
  width: 14px;
  height: 14px;
  fill: #1877f2;
}
.slotbox__code {
  font-size: 26px;
  font-weight: 800;
  color: #1877f2;
  letter-spacing: 1px;
}

/* ========== FORM ========== */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.form__input {
  width: 100%;
  border: 1.5px solid #9ca3af;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 16px;
  background: #fff;
  color: #111;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__input:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.form__input::placeholder { color: #9ca3af; }
.form--stack { gap: 12px; margin-bottom: 8px; }

/* ========== SECURITY (screen 3) ========== */
.security {
  border-top: 1px solid #eef0f4;
  padding-top: 18px;
  text-align: center;
}
.security__text {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 14px;
}
.security__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #9ca3af;
}
.security__icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; filter: grayscale(100%); }

.security__icon img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  object-fit: contain;
  filter: grayscale(100%);
}

.security__icon--visa {
  font-style: italic;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1px;
  color: #4b5563;
  line-height: 1;
}
.security__icon--mc {
  width: 32px;
  height: 32px;
  position: relative;
}
.mc-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  top: 6px;
}
.mc-dot--red { background: #eb001b; left: 0; }
.mc-dot--yellow { background: #f79e1b; left: 10px; mix-blend-mode: multiply; }
.security__icon--fb svg, .security__icon--shield svg { width: 32px; height: 32px; fill: #9ca3af; }

/* ========== SCREEN 5 (bot connected) ========== */
.screen--bot { background: rgba(60,60,60,.55); }
.screen--bot .card { background: #fff; }
.bot__icon {
  width: 80px;
  height: 80px;
  background: #1877f2;
  border-radius: 50%;
  margin: 8px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bot__icon svg { width: 44px; height: 44px; fill: #fff; }
.bot__checks {
  background: #f4f7fb;
  border-radius: 16px;
  padding: 18px 22px;
  margin: 8px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bot__checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.bot__check {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: #1877f2;
  fill: #fff;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* ========== LIVE TRADING (screens 6/7) ========== */
.card--live .badge { margin-top: 4px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef0f4;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 999px;
  margin: 0 auto 18px;
}
.badge--live {
  background: #f3f6fd;
  color: #1877f2;
  align-self: center;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1877f2;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}

.chart {
  background: #f4f7fb;
  border-radius: 16px;
  padding: 18px;
  margin: 8px 0 18px;
}
.chart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}
.chart__pair { color: #111; }
.chart__sep { color: #cbd5e1; margin: 0 6px; }
.chart__percent {
  background: #dcfce7;
  color: #15803d;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.chart__canvas {
  margin-top: 14px;
  background: transparent;
}
.chart__canvas canvas { width: 100%; height: 160px; display: block; }
.chart__divider {
  height: 1px;
  background: #e5e7eb;
  margin: 14px 0 12px;
}
.chart__total { text-align: center; }
.chart__total-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #6b7280;
  margin-bottom: 8px;
}
.chart__total-value {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: #1877f2;
  letter-spacing: -0.5px;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0;
  font-size: 14px;
}
.status__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-top-color: #1877f2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.status--done .status__spinner { display: none; }
.status--done .status__text { color: #15803d; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer-note {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin: 18px 0 0;
}
.footer-note--bold { font-weight: 700; color: #6b7280; margin-top: 14px; }

.live__fb {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.live__fb svg { width: 28px; height: 28px; fill: #9ca3af; }

/* ========== PLANS (screen 8) ========== */
.plan {
  position: relative;
  border-radius: 18px;
  padding: 20px 10px;
  margin-top: 16px;
  border: 1.5px solid #e3e8ef;
}
.plan--featured {
  background: #eaf2fe;
  border-color: #1877f2;
  box-shadow: 0 4px 18px rgba(24, 119, 242, .12);
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #1877f2;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 6px;
}
.plan__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.plan__icon {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan__icon img {
  max-width: 24px;
}

.plan__icon--featured {
  border: 2px solid #22c55e;
}
.plan__icon svg { width: 24px; height: 24px; fill: #1877f2; }
.plan__icon--featured svg { fill: #fff; }
.plan__title { flex: 1; }
.plan__title strong { display: block; font-size: 16px; color: #1877f2; }
.plan__sub { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
.plan__sub--red { color: #dc2626; font-weight: 500; }
.plan__sub--gray { color: #aaaaaa; font-weight: 500; }
.plan__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #9ca3af;
}
.plan .btn { padding: 14px 20px; }

/* ========== REGISTER (screen 10) ========== */
.card--register { padding: 26px 24px 24px; }
.reg__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.reg__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: #1877f2;
  line-height: 1.15;
}
.reg__time {
  background: #eef0f4;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
}
.reg__divider {
  height: 1px;
  background: #eef0f4;
  margin: 14px 0 18px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 0;
  cursor: pointer;
}
.checkbox input { display: none; }
.checkbox__box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #1877f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.checkbox__box svg { width: 16px; height: 16px; fill: #fff; }
.checkbox input:not(:checked) ~ .checkbox__box { background: #fff; border: 1.5px solid #d1d5db; }
.checkbox input:not(:checked) ~ .checkbox__box svg { display: none; }
.checkbox__text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.35;
  padding-top: 2px;
}

.phone {
  display: flex;
  align-items: center;
  border-radius: 12px;
  gap: 10px;
  margin-bottom: 16px;
}
.phone__flag {
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
}
.phone__caret { color: #6b7280; font-size: 12px; }
.phone__input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: #111;
}

/* ========== INCOME (screen 11) ========== */
.card--income { padding-top: 26px; }
.income {
  background: #f4f7fb;
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  margin-top: 8px;
}
.income__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #9ca3af;
  margin-bottom: 12px;
}
.income__value {
  display: block;
  font-size: 44px;
  font-weight: 800;
  color: #1877f2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.income__wait {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1877f2;
  font-weight: 600;
  font-size: 14px;
}
.income__wait-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1877f2;
}
.income__divider {
  height: 1px;
  background: #eef0f4;
  margin: 22px 0 18px;
}
.transactions__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #9ca3af;
  margin: 0 0 14px;
}
.tx__list {
  position: relative;
  overflow: hidden;
  height: 168px;
}
.tx__track {
  display: flex;
  flex-direction: column;
}
.tx {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .55s ease;
  will-change: transform, opacity;
}
.tx--enter {
  transform: translateY(100%);
  opacity: 0;
}
.tx--enter.tx--enter-active {
  transform: translateY(0);
  opacity: 1;
}
.tx--exit {
  transform: translateY(0);
  opacity: 1;
  transition: opacity .35s ease;
}
.tx--exit.tx--exit-active {
  opacity: 0;
}
.tx__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef0f4;
  color: #6b7280;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tx__body { flex: 1; }
.tx__body strong { display: block; color: #1877f2; font-size: 15px; }
.tx__body span { display: block; font-size: 13px; color: #6b7280; }
.tx__amount { color: #15803d; font-weight: 800; font-size: 16px; }

/* ========== TABLET / DESKTOP ========== */
@media (min-width: 600px) {
  .page { box-shadow: 0 0 60px rgba(20,40,90,.08); }
}