:root {
  --white: #ffffff;
  --off-white: #f9f8f6;
  --black: #111111;
  --gray: #6b7280;
  --light-gray: #e5e7eb;
  --green: #25D366;
  --pink: #FF3D9A;
  --red: #ef4444;
  --red-light: #fef2f2;
  --blue: #3b82f6;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--black);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
h1,h2,h3,h4 { font-family: 'Bricolage Grotesque', sans-serif; }

/* HEADER */
header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--light-gray);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 20px; color: var(--black);
  text-decoration: none; letter-spacing: -0.5px;
}
.logo span { color: var(--pink); }
.back-link {
  font-size: 14px; font-weight: 500; color: var(--gray);
  text-decoration: none; padding: 8px 14px;
  border-radius: 50px; transition: all .2s;
}
.back-link:hover { background: var(--light-gray); color: var(--black); }

/* MAIN */
main {
  flex: 1; display: flex; align-items: center;
  justify-content: center; padding: 40px 20px;
}

/* CARD */
.login-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px;
  padding: 48px 40px; position: relative; overflow: hidden;
}
@media (max-width: 480px) {
  .login-card { padding: 36px 24px; border-radius: var(--radius-md); }
}
.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--pink), #ff8cc8, var(--blue));
}

/* BRAND */
.card-brand { text-align: center; margin-bottom: 32px; }
.card-brand .name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 22px; letter-spacing: -0.5px;
}
.card-brand .name span { color: var(--pink); }
.card-brand .area {
  font-size: 13px; color: var(--gray); margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.area-dot {
  width: 6px; height: 6px; background: var(--green);
  border-radius: 50%; display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* STEP DOTS */
.step-dots { display: flex; align-items: center; gap: 6px; margin-bottom: 28px; }
.dot { height: 6px; border-radius: 3px; background: var(--light-gray); transition: all .35s ease; }
.dot.active { width: 24px; background: var(--black); }
.dot.idle   { width: 6px; }
.dot.done   { width: 6px; background: var(--green); }
.dot.err    { width: 6px; background: var(--red); }

/* VIEWS */
.view { display: none; }
.view.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* TYPOGRAPHY */
.v-title { font-size: 23px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 8px; }
.v-sub   { font-size: 14px; color: var(--gray); line-height: 1.65; margin-bottom: 24px; }

/* FORM */
.frow { margin-bottom: 16px; }
.frow label { display: block; font-size: 13px; font-weight: 600; color: var(--gray); margin-bottom: 6px; }
.frow input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  transition: border .2s, box-shadow .2s; outline: none;
}
.frow input:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(17,17,17,0.06); }
.frow input.err   { border-color: var(--red); }

/* ALERTS */
.alert {
  border-radius: var(--radius-sm); padding: 13px 15px;
  font-size: 13px; line-height: 1.55; margin-bottom: 18px;
  display: none; gap: 10px; align-items: flex-start;
}
.alert.show  { display: flex; }
.alert-icon  { font-size: 16px; flex-shrink: 0; }
.a-info  { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.a-error { background: var(--red-light); border: 1px solid #fca5a5; color: #b91c1c; }

/* BUTTONS */
.btn-main {
  width: 100%; padding: 15px; background: var(--black); color: white;
  border: none; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .25s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px;
}
.btn-main:hover:not(:disabled) { background: #222; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn-main:disabled { background: #d1d5db; cursor: not-allowed; }
.btn-ghost {
  width: 100%; padding: 13px; background: transparent; color: var(--gray);
  border: 1.5px solid var(--light-gray); border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s; margin-top: 10px;
  text-align: center; text-decoration: none; display: block;
}
.btn-ghost:hover { border-color: var(--gray); color: var(--black); }

/* SPINNER */
.spin {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* DIVIDER */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; font-size: 12px; color: #d1d5db;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--light-gray); }

/* NOT FOUND */
.nf-center { text-align: center; }
.nf-icon  { font-size: 52px; display: block; margin-bottom: 16px; }
.nf-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.nf-text  { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 20px; }
.nf-perks {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 16px; padding: 18px 20px;
  text-align: left; margin-bottom: 24px;
}
.nf-perks strong { font-size: 13px; color: #92400e; display: block; margin-bottom: 8px; }
.nf-perks span   { font-size: 13px; color: #78350f; line-height: 1.9; display: block; }
.btn-buy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--black); color: white;
  padding: 14px 28px; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all .25s; width: 100%;
}
.btn-buy:hover { background: #222; transform: translateY(-1px); }

/* MAGIC SENT */
.ms-center { text-align: center; }
.ms-icon  { font-size: 56px; display: block; margin-bottom: 18px; }
.ms-title { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.ms-text  { font-size: 14px; color: var(--gray); line-height: 1.7; }
.ms-email {
  display: inline-block; background: var(--off-white);
  border-radius: 8px; padding: 6px 14px;
  font-weight: 700; color: var(--black);
  font-size: 14px; margin: 10px 0 14px; word-break: break-all;
}
.ms-tips {
  background: var(--off-white); border-radius: 14px;
  padding: 18px 20px; margin: 20px 0; text-align: left;
}
.ms-tips strong { font-size: 13px; font-weight: 700; display: block; margin-bottom: 8px; }
.ms-tips span   { font-size: 13px; color: var(--gray); line-height: 1.9; display: block; }

/* REDIRECTING VIEW */
.rd-center { text-align: center; padding: 20px 0; }
.rd-icon   { font-size: 48px; display: block; margin-bottom: 20px; }
.rd-title  { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.rd-text   { font-size: 14px; color: var(--gray); line-height: 1.65; }
.rd-bar {
  height: 4px; background: var(--light-gray);
  border-radius: 2px; margin-top: 28px; overflow: hidden;
}
.rd-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  border-radius: 2px;
  animation: fillBar 1.6s ease forwards;
}
@keyframes fillBar { to { width: 100%; } }

/* FOOTER */
.card-footer-note {
  text-align: center; margin-top: 22px;
  font-size: 12px; color: #d1d5db;
}
.card-footer-note a { color: var(--gray); text-decoration: none; }
.card-footer-note a:hover { color: var(--black); }
.page-foot {
  text-align: center; padding: 18px;
  font-size: 12px; color: #9ca3af; flex-shrink: 0;
}
.page-foot a { color: inherit; text-decoration: none; }