@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ── Backgrounds ── */
  --bg:       #04020a;   /* was #04080f  — near-black with red undertone */
  --bg2:      #0d0404;   /* was #080f1a */
  --bg3:      #150606;   /* was #0c1525 */

  /* ── Accents ── */
  --accent:   #ff2020;   /* was #00d4ff  — primary red */
  --accent2:  #8b0000;   /* was #7c3aed  — deep red (replaces purple) */
  --accent3:  #ff6a00;   /* was #10b981  — orange-red (replaces green) */

  /* ── Text ── */
  --text:     #f0e0e0;   /* was #e2e8f0  — warm white */
  --muted:    #7a5858;   /* was #64748b  — muted red-brown */

  /* ── Borders ── */
  --border:   rgba(255,32,32,0.15);   /* was rgba(0,212,255,0.15) */
  --border2:  rgba(255,32,32,0.28);   /* was rgba(0,212,255,0.25) */

  /* ── Semantic ── */
  --gold:     #f59e0b;   /* unchanged */
  --danger:   #f87171;   /* unchanged */

  /* ── Inputs ── */
  --input-bg:     #120404;
  --input-border: rgba(255,255,255,0.07);
  --input-focus:  rgba(255,32,32,0.35);  /* was rgba(0,212,255,0.35) */

  /* ── Card bg (used in fp-modal) ── */
  --card-bg: #0f0304;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  width: 100%;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1rem 3rem;
}

/* ── TOP BAR ── */
.topbar {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 13px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Orbitron', monospace;
  font-size: .8rem; font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.back-link {
  font-size: .8rem;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }

/* ── BONUS PILL ── */
.bonus-pill {
  width: 100%; max-width: 480px;
  background: linear-gradient(135deg, rgba(255,32,32,0.07), rgba(139,0,0,0.07));
  border: 1px solid rgba(255,32,32,0.2);
  border-radius: 12px;
  padding: .75rem 1rem;
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
}

.coin-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #d97706);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: .6rem; font-weight: 900; color: #fff;
  flex-shrink: 0;
}

.bonus-pill-text { flex: 1; }
.bonus-pill-text strong { font-size: .85rem; font-weight: 500; display: block; }
.bonus-pill-text span  { font-size: .72rem; color: var(--muted); }

.bonus-pill-amount {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem; font-weight: 700;
  color: var(--gold); white-space: nowrap;
}

/* ── CARD ── */
.card {
  width: 100%; max-width: 480px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

/* ── TABS ── */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: .9rem;
  text-align: center;
  font-size: .9rem; font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all .25s;
  position: relative;
  background: transparent;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.tab.active { color: var(--accent); }

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

/* ── FORM BODY ── */
.form-body { padding: 1.75rem 1.5rem; }

/* ── WALLET BUTTONS ── */
.wallet-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.wallet-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: .65rem;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--bg3);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.wallet-btn:hover { border-color: var(--accent); color: var(--accent); }

.wallet-icon {
  width: 20px; height: 20px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.wi-mm { background: #f6851b; color: #fff; }
.wi-wc { background: #3b99fc; color: #fff; }

/* ── OR DIVIDER ── */
.or-divider {
  display: flex; align-items: center;
  gap: .75rem; margin-bottom: 1.25rem;
}
.or-line { flex: 1; height: 1px; background: var(--border); }
.or-text  { font-size: .75rem; color: var(--muted); white-space: nowrap; }

/* ── FORM FIELDS ── */
.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: .78rem; color: var(--muted);
  margin-bottom: .4rem; font-weight: 500;
}

.field-wrap { position: relative; }

.field input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: .7rem 2.5rem .7rem .9rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  transition: border-color .2s;
  outline: none;
}
.field input:focus   { border-color: rgba(255,32,32,0.45); }
.field input::placeholder { color: var(--muted); font-size: .82rem; }

.field-icon {
  position: absolute; right: .75rem; top: 50%;
  transform: translateY(-50%);
  cursor: pointer; color: var(--muted);
  font-size: 14px; user-select: none; line-height: 1;
}

.field-note { font-size: .7rem; color: var(--muted); margin-top: .35rem; }

/* ── REFERRAL ROW ── */
.ref-row {
  display: flex; gap: .5rem;
  margin-bottom: 1.1rem;
}

.ref-row input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: .7rem .9rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  outline: none;
  transition: border-color .2s;
}
.ref-row input:focus       { border-color: rgba(255,32,32,0.45); }
.ref-row input::placeholder{ color: var(--muted); font-size: .78rem; }

.apply-btn {
  padding: .7rem 1rem;
  background: rgba(255,32,32,0.08);
  border: 1px solid rgba(255,32,32,0.22);
  border-radius: 10px;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  cursor: pointer; white-space: nowrap;
  transition: all .2s;
}
.apply-btn:hover { background: rgba(255,32,32,0.16); }

/* ── STRENGTH BAR ── */
.strength-wrap {
  display: flex; align-items: center;
  gap: .5rem; margin-top: .4rem;
}
.strength-bars { display: flex; gap: 4px; }

.sbar {
  width: 32px; height: 4px;
  border-radius: 3px;
  background: var(--bg3);
  transition: background .3s;
}

.strength-label { font-size: .68rem; color: var(--muted); }

/* ── CHECKBOX ── */
.check-row {
  display: flex; align-items: flex-start;
  gap: .65rem; margin-bottom: 1.25rem;
}
.check-row input[type=checkbox] {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0; cursor: pointer;
}
.check-row label {
  font-size: .75rem; color: var(--muted);
  line-height: 1.5; cursor: pointer;
}
.check-row label a { color: var(--accent); text-decoration: none; }

/* ── SUBMIT BUTTON ── */
.submit-btn {
  width: 100%; padding: .85rem;
  border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem; font-weight: 500;
  cursor: pointer;
  transition: opacity .2s;
  margin-bottom: 1.25rem;
}
.submit-btn:hover    { opacity: .88; }
.submit-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── FORGOT LINK ── */
.forgot-row {
  display: flex; justify-content: flex-end;
  margin-top: -.6rem; margin-bottom: 1.1rem;
}
.forgot-link {
  font-size: .75rem; color: var(--accent);
  cursor: pointer; text-decoration: none;
}

/* ── SOCIAL LOGIN ── */
.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem; margin-bottom: 1.25rem;
}

.social-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; padding: .65rem;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--bg3);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  cursor: pointer; transition: all .2s;
}
.social-btn:hover { border-color: rgba(255,80,80,.25); }

.g-icon {
  width: 16px; height: 16px;
  border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #4285f4;
  flex-shrink: 0;
}

.tw-icon {
  width: 16px; height: 16px;
  border-radius: 4px; background: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

/* ── SWITCH TEXT ── */
.switch-text { text-align: center; font-size: .78rem; color: var(--muted); }
.switch-text a { color: var(--accent); cursor: pointer; text-decoration: none; font-weight: 500; }

/* ── SUCCESS STATE ── */
.success-state {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem; text-align: center;
}

.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,106,0,0.12);
  border: 2px solid rgba(255,106,0,0.35);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 26px; color: var(--accent3);
}

.success-state h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1rem; margin-bottom: .5rem;
  color: var(--text);
}

.success-state p {
  font-size: .82rem; color: var(--muted);
  line-height: 1.6; margin-bottom: 1.5rem;
}

.success-coin {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem; font-weight: 900;
  color: var(--gold); margin-bottom: .25rem;
}

.success-sub { font-size: .72rem; color: var(--muted); margin-bottom: 1.5rem; }

.dashboard-btn {
  width: 100%; padding: .8rem;
  border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem; font-weight: 500;
  cursor: pointer;
}

/* ── FORM PANELS ── */
.form-panel        { display: none; }
.form-panel.active { display: block; }

/* ── SECURITY BADGES ── */
.sec-badges {
  display: flex; justify-content: center;
  gap: .75rem; flex-wrap: wrap;
  padding: .9rem 1.5rem;
  border-top: 1px solid var(--border);
}
.sec-badge {
  display: flex; align-items: center;
  gap: 4px; font-size: .68rem; color: var(--muted);
}
.sec-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent3);   /* orange-red instead of green */
  flex-shrink: 0;
}

/* ── STEP INDICATOR ── */
.steps-bar {
  display: flex; align-items: center;
  gap: .4rem; margin-bottom: 1.5rem;
}
.step-dot {
  width: 24px; height: 4px;
  border-radius: 2px; transition: background .3s;
}
.step-dot.done   { background: var(--accent3); }   /* orange-red */
.step-dot.active { background: var(--accent); }    /* bright red */
.step-dot.idle   { background: var(--border); }

.steps-label { font-size: .72rem; color: var(--muted); margin-left: auto; }

/* ── ALERT BANNER ── */
.alert {
  padding: .75rem 1.1rem;
  border-radius: 10px;
  font-size: .8rem; font-weight: 500;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
  animation: fadeDown .35s ease;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alert.error {
  background: rgba(255,32,32,0.12);
  border: 1px solid rgba(255,32,32,0.35);
  color: #fca5a5;
}
.alert.success {
  background: rgba(255,106,0,0.12);   /* orange-red tint */
  border: 1px solid rgba(255,106,0,0.35);
  color: #ffb680;
}
.alert-icon { font-size: 1rem; flex-shrink: 0; }

/* ── OTP HINT ── */
.otp-hint { font-size: .72rem; color: var(--muted); margin-top: .3rem; }

/* ── PRIVATE KEY BOX ── */
.privkey-box {
  background: rgba(255,60,0,0.06);
  border: 1.5px solid rgba(255,60,0,0.32);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  animation: fadeDown .4s ease;
}

.privkey-box .pk-title {
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: .5rem;
}

.privkey-box .pk-warn {
  font-size: .68rem; color: #f87171;
  margin-top: .55rem;
  display: flex; gap: .4rem; align-items: flex-start;
}

.pk-code-row { display: flex; align-items: center; gap: .5rem; }

.pk-code {
  flex: 1;
  font-family: monospace; font-size: .82rem;
  color: #ff6a4d;          /* red-orange instead of #1fff88 */
  word-break: break-all; line-height: 1.5;
  background: rgba(0,0,0,.25);
  border-radius: 7px; padding: .45rem .7rem;
  border: 1px solid rgba(255,60,0,0.18);
}

.pk-copy {
  flex-shrink: 0;
  background: rgba(255,60,0,0.1);
  border: 1px solid rgba(255,60,0,0.28);
  color: #ff6a4d;
  border-radius: 7px; padding: .42rem .75rem;
  font-size: .72rem; cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
.pk-copy:hover  { background: rgba(255,60,0,0.22); }
.pk-copy.copied { color: #fff; background: rgba(255,60,0,0.35); }

/* ── STRENGTH BARS ── */
.strength-wrap  { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.strength-bars  { display: flex; gap: 4px; }
.sbar           { width: 32px; height: 4px; border-radius: 3px; background: var(--bg3); transition: background .25s; }
.strength-label { font-size: .7rem; color: var(--muted); }

/* ════════════════════════════════════════
   FORGOT PASSWORD MODAL
════════════════════════════════════════ */
.fp-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.fp-modal {
  background: var(--card-bg);
  border: 1px solid rgba(255,32,32,0.12);
  border-radius: 18px;
  width: 100%; max-width: 420px;
  padding: 2rem 1.75rem 1.5rem;
  position: relative;
  animation: slideUp .3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,.65);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fp-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--muted);
  border-radius: 7px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .85rem;
  transition: background .2s; line-height: 1;
}
.fp-close:hover { background: rgba(255,255,255,.12); color: #fff; }

.fp-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255,32,32,0.1);
  border: 1px solid rgba(255,32,32,0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}

.fp-title {
  font-family: 'Orbitron', monospace;
  font-size: .95rem; font-weight: 700;
  margin-bottom: .3rem;
}

.fp-sub {
  font-size: .76rem; color: var(--muted);
  margin-bottom: 1.25rem; line-height: 1.5;
}

/* step progress inside modal */
.fp-steps  { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.fp-step   { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); transition: background .3s; }
.fp-step.done   { background: var(--accent3); }   /* orange-red */
.fp-step.active { background: rgba(255,32,32,.45); }

/* modal fields */
.fp-field          { margin-bottom: 1rem; }
.fp-field label    { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); margin-bottom: .4rem; letter-spacing: .03em; }
.fp-field-wrap     { position: relative; }

.fp-field-wrap input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .72rem 2.4rem .72rem .9rem;
  color: #fff; font-size: .82rem; outline: none;
  transition: border-color .2s;
}
.fp-field-wrap input:focus { border-color: rgba(255,32,32,.5); }

.fp-field-wrap .fi {
  position: absolute; right: .75rem; top: 50%;
  transform: translateY(-50%);
  font-size: .85rem; cursor: pointer;
  user-select: none; color: var(--muted);
}

.fp-hint {
  font-size: .68rem; color: var(--muted);
  margin-top: .3rem;
  display: flex; align-items: flex-start; gap: .3rem; line-height: 1.45;
}

.fp-btn {
  width: 100%; padding: .82rem;
  border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: .83rem;
  cursor: pointer; margin-top: .25rem; transition: opacity .2s;
}
.fp-btn:hover { opacity: .88; }

.fp-back {
  display: block; text-align: center;
  margin-top: .85rem;
  font-size: .72rem; color: var(--muted); cursor: pointer;
}
.fp-back:hover { color: #fff; }

/* strength bars inside modal */
.fp-strength-wrap   { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.fp-strength-bars   { display: flex; gap: 4px; }
.fp-sbar            { width: 28px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); transition: background .25s; }
.fp-strength-label  { font-size: .68rem; color: var(--muted); }