:root {
  --bg: #07080c;
  --panel: rgba(255, 255, 255, .065);
  --panel-strong: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .13);
  --text: #f8fbff;
  --muted: #98a1b3;
  --muted-2: #687083;
  --blue: #5e84ff;
  --blue-2: #7b61ff;
  --green: #5df0a8;
  --danger: #ff7070;
  --radius: 28px;
  --display: 'Space Grotesk', sans-serif;
  --body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--body);
  background:
    radial-gradient(circle at 18% 5%, rgba(94, 132, 255, .18), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(123, 97, 255, .18), transparent 30%),
    radial-gradient(circle at 50% 105%, rgba(94, 132, 255, .12), transparent 32%),
    var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.client-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.client-shell::before,
.client-shell::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(34px);
  opacity: .85;
  pointer-events: none;
}

.client-shell::before {
  width: 340px;
  height: 340px;
  left: -140px;
  top: 90px;
  background: rgba(94, 132, 255, .14);
}

.client-shell::after {
  width: 420px;
  height: 420px;
  right: -170px;
  bottom: -140px;
  background: rgba(123, 97, 255, .16);
}

.brand-panel {
  width: min(1120px, 100%);
  min-height: auto;
  padding: 0;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  overflow: visible;
}

.brand-panel::before { display: none; }

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.brand-copy {
  width: min(760px, 100%);
  margin: 18px auto 0;
  text-align: center;
}

.brand-copy p, .card-head p, .portal-header p {
  color: var(--blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 14px;
}

.brand-copy h1 {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: .94;
  letter-spacing: -4px;
}

.brand-copy > span {
  display: none;
}

.card-head span, .portal-header small {
  display: block;
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.steps-preview {
  display: none !important;
}

.main-panel {
  width: min(1120px, 100%);
  padding: 24px 0 22px;
  position: relative;
  z-index: 2;
}

.auth-view {
  min-height: auto;
  display: grid;
  place-items: center;
}

.auth-card, .panel-card {
  width: min(100%, 520px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
  backdrop-filter: blur(18px);
}

.auth-card {
  margin: 0 auto;
}

.card-head h2, .card-head h3, .portal-header h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 12px;
}

.card-head h3 { font-size: 31px; }
.portal-header h2 span { color: var(--blue); }

.form-stack, .budget-form { display: grid; gap: 16px; margin-top: 28px; }
label { display: grid; gap: 9px; color: #dce3f3; font-size: 13px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(4, 5, 10, .55);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
  transition: .2s;
}
textarea { resize: vertical; min-height: 150px; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(94,132,255,.8);
  box-shadow: 0 0 0 4px rgba(94,132,255,.12);
}
select option { background: #10121a; color: var(--text); }

.primary-btn, .ghost-btn, .switch-btn {
  border: 0;
  border-radius: 999px;
  padding: 15px 20px;
  font-weight: 800;
}
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 16px 38px rgba(94,132,255,.28);
}
.ghost-btn, .switch-btn {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.switch-btn { width: 100%; margin-top: 14px; color: var(--muted); }
.ghost-btn.full { width: 100%; margin-top: 14px; }

.portal-view { max-width: 1180px; margin: 0 auto; }
.portal-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
}

.portal-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr); gap: 20px; }
.panel-card { width: 100%; box-shadow: none; }
.big-card { min-height: 600px; }
.inline-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.soft-badge {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--green) !important;
  background: rgba(93,240,168,.1);
  border: 1px solid rgba(93,240,168,.2);
  font-size: 11px;
  font-weight: 800;
}
.form-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.progress-list { display: grid; gap: 13px; margin-top: 24px; }
.progress-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.progress-item strong { display: block; margin-bottom: 7px; }
.progress-item span { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
.status-pill {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(94,132,255,.12);
  color: #cfd8ff !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px !important;
}
.pay-link {
  display: inline-flex;
  margin-top: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.whatsapp-help-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 999px;
  border: 1px solid rgba(93, 240, 168, .28);
  background: linear-gradient(135deg, rgba(93, 240, 168, .2), rgba(37, 211, 102, .12));
  color: #dcffef;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(37, 211, 102, .12);
  transition: .2s ease;
}
.whatsapp-help-btn::before {
  content: "✆";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(93, 240, 168, .16);
  color: var(--green);
  font-size: 14px;
}
.whatsapp-help-btn:hover,
.whatsapp-help-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(93, 240, 168, .5);
  background: linear-gradient(135deg, rgba(93, 240, 168, .26), rgba(37, 211, 102, .16));
  outline: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  width: min(420px, calc(100vw - 48px));
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 12, 20, .94);
  box-shadow: 0 22px 70px rgba(0,0,0,.32);
  color: #fff;
}
.toast.error { border-color: rgba(255,112,112,.35); color: #ffd6d6; }
.toast.success { border-color: rgba(93,240,168,.35); color: #d8ffe9; }

body.portal-active .brand-panel {
  display: none;
}

body.portal-active .main-panel {
  padding-top: 0;
}

@media (max-width: 980px) {
  .client-shell { padding: 22px; }
  .brand-copy { margin-top: 10px; }
  .portal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .client-shell { padding: 18px; justify-content: flex-start; }
  .brand { margin: 0 auto; }
  .brand-copy h1 { font-size: 40px; letter-spacing: -2px; }
  .main-panel { padding: 22px 0 18px; }
  .auth-card, .panel-card { padding: 22px; border-radius: 22px; }
  .auth-view { place-items: start center; }
  .portal-header, .inline-head { display: grid; }
  .form-grid.two { grid-template-columns: 1fr; }
  .toast { right: 16px; bottom: 16px; width: calc(100vw - 32px); }
}