@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --bg: #050a14;
  --surface: rgba(12, 20, 36, 0.72);
  --surface-2: rgba(14, 25, 45, 0.9);
  --surface-solid: #0e1a2f;
  --surface-soft: rgba(22, 36, 62, 0.72);
  --border: rgba(133, 162, 211, 0.24);
  --border-strong: rgba(133, 162, 211, 0.38);
  --text: #e6efff;
  --text-soft: #c3d4f2;
  --muted: #97aed2;
  --muted-dim: #6e85ad;
  --primary: #3d7dff;
  --primary-hover: #5d93ff;
  --primary-dim: rgba(61, 125, 255, 0.22);
  --green: #1ec58d;
  --green-dim: rgba(30, 197, 141, 0.15);
  --red: #ff7c90;
  --red-dim: rgba(255, 124, 144, 0.14);
  --amber: #ffc166;
  --amber-dim: rgba(255, 193, 102, 0.16);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 10px 22px rgba(3, 9, 20, 0.35);
  --shadow-md: 0 20px 42px rgba(3, 9, 20, 0.42);
  --shadow-lg: 0 28px 64px rgba(3, 9, 20, 0.55);
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', 'Manrope', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body.auth-root {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(820px 460px at 12% -10%, rgba(61, 125, 255, 0.28), transparent 70%),
    radial-gradient(720px 420px at 96% 4%, rgba(30, 197, 141, 0.16), transparent 68%),
    linear-gradient(180deg, #050a14 0%, #040812 100%);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.auth-bg-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(4px);
  opacity: 0.34;
  z-index: -1;
}

.auth-bg-orb--one {
  width: 420px;
  height: 420px;
  left: -110px;
  top: 90px;
  background: radial-gradient(circle, rgba(61, 125, 255, 0.38) 0%, transparent 72%);
}

.auth-bg-orb--two {
  width: 360px;
  height: 360px;
  right: -90px;
  bottom: 120px;
  background: radial-gradient(circle, rgba(30, 197, 141, 0.26) 0%, transparent 72%);
}

button,
input {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Login */
.login-layout {
  width: min(1240px, 100% - 48px);
  margin: 24px auto;
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(380px, 0.9fr);
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(7, 14, 27, 0.9), rgba(7, 13, 24, 0.78));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.story-panel {
  padding: 42px 44px;
  background:
    radial-gradient(540px 220px at 84% 8%, rgba(61, 125, 255, 0.34), transparent 66%),
    radial-gradient(300px 180px at 10% 90%, rgba(30, 197, 141, 0.2), transparent 70%),
    linear-gradient(145deg, rgba(8, 16, 31, 0.96), rgba(11, 20, 39, 0.92));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.story-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(133, 162, 211, 0.28);
  background: rgba(8, 18, 35, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.story-logo-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.story-eyebrow {
  margin: 28px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fb5ff;
  font-weight: 700;
}

.story-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 560px;
}

.story-title span {
  color: #a7c3ff;
}

.story-sub {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
  max-width: 520px;
}

.story-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.story-metric {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(8, 18, 35, 0.65);
  box-shadow: var(--shadow-sm);
}

.story-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.story-metric span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.story-flow {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.story-flow li {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(133, 162, 211, 0.2);
  background: rgba(8, 18, 35, 0.48);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.auth-form-shell {
  padding: 40px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.78), rgba(8, 13, 24, 0.62));
}

.auth-form-card {
  width: min(460px, 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(10, 19, 36, 0.92), rgba(10, 17, 31, 0.86));
  box-shadow: var(--shadow-md);
  padding: 30px;
}

.auth-card-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #8fb5ff;
}

.auth-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 33px);
  letter-spacing: -0.02em;
}

.auth-card-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.lb-error {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 124, 144, 0.3);
  background: var(--red-dim);
  padding: 11px 12px;
  color: #ff9bad;
  font-size: 13px;
  line-height: 1.45;
}

.lb-error.show {
  display: flex;
}

.lb-error svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: rgba(6, 13, 25, 0.84);
  color: var(--text);
  font-size: 14px;
  padding: 12px 44px 12px 12px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.auth-input::placeholder {
  color: var(--muted-dim);
}

.auth-input:focus {
  outline: none;
  border-color: rgba(107, 154, 255, 0.95);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.pw-toggle:hover {
  color: var(--text);
  border-color: rgba(133, 162, 211, 0.28);
  background: rgba(16, 29, 51, 0.78);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.auth-remember input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.auth-link {
  color: #9cc2ff;
  font-size: 13px;
  font-weight: 600;
}

.auth-link:hover {
  color: #c0d8ff;
}

.auth-submit,
.onb-btn--primary {
  width: 100%;
  border: 1px solid rgba(120, 162, 255, 0.48);
  border-radius: 12px;
  padding: 13px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: #eff5ff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(61, 125, 255, 0.28);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
}

.auth-submit:hover,
.onb-btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(61, 125, 255, 0.33);
}

.auth-submit:disabled,
.onb-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.auth-submit svg,
.onb-btn--primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.auth-alt {
  margin: 4px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-alt a {
  color: #9cc2ff;
  font-weight: 700;
}

.auth-alt a:hover {
  color: #c0d8ff;
}

.spin {
  animation: spin 0.65s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Onboarding */
.onb-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(5, 10, 20, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.onb-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.onb-nav-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(133, 162, 211, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 35, 0.88);
}

.onb-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.onb-shell {
  width: min(1080px, 100% - 34px);
  margin: 22px auto 48px;
}

.onb-hero {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px 24px 22px;
  background:
    radial-gradient(420px 170px at 86% 4%, rgba(61, 125, 255, 0.32), transparent 70%),
    linear-gradient(145deg, rgba(8, 16, 31, 0.96), rgba(11, 20, 39, 0.92));
  box-shadow: var(--shadow-md);
}

.onb-hero-eyebrow {
  margin: 0;
  color: #93b7ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.onb-hero h1 {
  margin: 9px 0 0;
  font-family: var(--font-display);
  font-size: clamp(29px, 3.2vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.onb-hero p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.72;
}

.progress-wrap {
  margin-top: 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(9, 17, 32, 0.92), rgba(10, 18, 34, 0.88));
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}

.progress-bar {
  display: flex;
  align-items: center;
  gap: 0;
}

.prog-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prog-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(133, 162, 211, 0.4);
  background: rgba(9, 17, 32, 0.85);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.prog-dot.active {
  border-color: rgba(120, 162, 255, 0.85);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.prog-dot.done {
  border-color: rgba(30, 197, 141, 0.74);
  background: linear-gradient(135deg, #1fbf8a, #31d9a0);
  color: #022316;
}

.prog-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.prog-label.active {
  color: #bad3ff;
}

.prog-label.done {
  color: #87e3c1;
}

.prog-line {
  flex: 1;
  height: 2px;
  margin: 0 10px;
  border-radius: 99px;
  background: rgba(133, 162, 211, 0.35);
}

.prog-line.done {
  background: rgba(30, 197, 141, 0.72);
}

.stage {
  margin-top: 16px;
  display: none;
}

.stage.active {
  display: block;
  animation: fade-in 0.34s var(--ease) both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onb-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgba(9, 17, 33, 0.94), rgba(11, 19, 35, 0.9));
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.onb-card--center {
  text-align: center;
  padding: 48px 22px;
}

.onb-card--center h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 36px);
}

.onb-card--center p {
  margin: 0 auto 24px;
  color: var(--text-soft);
  max-width: 520px;
  line-height: 1.7;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.02em;
}

.card-sub {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.64;
}

.type-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.type-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  background: rgba(8, 15, 29, 0.82);
  color: var(--text);
  transition: transform 170ms var(--ease), border-color 170ms var(--ease), box-shadow 170ms var(--ease);
  min-height: 184px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.type-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 162, 255, 0.66);
  box-shadow: var(--shadow-sm);
}

.type-card.selected {
  border-color: rgba(120, 162, 255, 0.9);
  box-shadow: 0 0 0 3px var(--primary-dim), var(--shadow-sm);
  background: linear-gradient(170deg, rgba(15, 31, 60, 0.95), rgba(9, 20, 38, 0.9));
}

.type-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.card-icon.type-icon,
.card-icon.img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(17, 32, 57, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ec3ff;
  flex-shrink: 0;
}

.card-icon.type-icon svg {
  width: 22px;
  height: 22px;
}

.type-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.type-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.whatsapp {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.type-tag {
  margin-top: auto;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(133, 162, 211, 0.32);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.selected-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 162, 255, 0.46);
  background: rgba(61, 125, 255, 0.14);
  color: #b8d1ff;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

.form-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
}

.field input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: rgba(5, 12, 24, 0.78);
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.field input:focus {
  outline: none;
  border-color: rgba(120, 162, 255, 0.95);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.field input.invalid {
  border-color: rgba(255, 124, 144, 0.75);
}

.field input::placeholder {
  color: var(--muted-dim);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.field-err,
.error-msg,
.form-global-err {
  display: none;
  color: #ff95a7;
  font-size: 12px;
}

.field-err.show,
.error-msg.show,
.form-global-err.show {
  display: block;
}

.pw-strength {
  margin-top: 6px;
  display: flex;
  gap: 5px;
}

.pw-bar {
  height: 3px;
  flex: 1;
  border-radius: 99px;
  background: rgba(133, 162, 211, 0.33);
}

.pw-bar.weak {
  background: rgba(255, 124, 144, 0.88);
}

.pw-bar.medium {
  background: rgba(255, 193, 102, 0.92);
}

.pw-bar.strong {
  background: rgba(30, 197, 141, 0.92);
}

.stage-nav {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.back-btn,
.onb-btn {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 28, 50, 0.7);
  color: var(--text-soft);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 170ms var(--ease), color 170ms var(--ease), border-color 170ms var(--ease), transform 170ms var(--ease);
}

.back-btn:hover,
.onb-btn--ghost:hover {
  color: #eaf2ff;
  border-color: rgba(120, 162, 255, 0.56);
  background: rgba(20, 36, 63, 0.84);
}

.onb-btn--ghost {
  background: rgba(15, 28, 50, 0.65);
}

.billing-switch-wrap {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.billing-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  background: rgba(7, 13, 25, 0.72);
}

.billing-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.billing-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 8px 16px rgba(61, 125, 255, 0.26);
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-soft);
  border-radius: 999px;
  border: 1px solid rgba(133, 162, 211, 0.3);
  background: rgba(15, 29, 52, 0.72);
  padding: 7px 12px;
}

.discount-badge strong {
  color: #b8d1ff;
}

.plan-grid-onb {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 15, 29, 0.82);
  color: var(--text);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 170ms var(--ease), border-color 170ms var(--ease), box-shadow 170ms var(--ease);
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 162, 255, 0.66);
  box-shadow: var(--shadow-sm);
}

.plan-card.selected {
  border-color: rgba(120, 162, 255, 0.9);
  box-shadow: 0 0 0 3px var(--primary-dim), var(--shadow-sm);
}

.plan-card.featured {
  background: linear-gradient(140deg, rgba(13, 24, 44, 0.98), rgba(17, 33, 58, 0.92));
}

.plan-chip,
.plan-save {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-chip {
  color: #b8d1ff;
  border: 1px solid rgba(120, 162, 255, 0.46);
  background: rgba(61, 125, 255, 0.14);
}

.plan-save {
  display: none;
  margin-top: 8px;
  color: #9ff0d2;
  border: 1px solid rgba(30, 197, 141, 0.46);
  background: var(--green-dim);
}

.plan-price {
  margin: 10px 0 3px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan-price span {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}

.plan-price-strike {
  min-height: 17px;
  font-size: 12px;
  color: var(--muted-dim);
  text-decoration: line-through;
}

.plan-note {
  min-height: 16px;
  color: #8ce8c4;
  font-size: 12px;
  font-weight: 700;
}

.plan-cap {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.plan-card ul {
  margin: 9px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.plan-card ul li::before {
  content: '• ';
  color: #9cc2ff;
}

.coupon-status {
  min-height: 16px;
  font-size: 12px;
  color: var(--muted);
}

.coupon-status.ok {
  color: #8ce8c4;
}

.coupon-status.err {
  color: #ff95a7;
}

.staff-box {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(13, 24, 43, 0.82);
  padding: 14px;
}

.staff-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.staff-title {
  font-size: 14px;
  font-weight: 700;
}

.staff-grid {
  display: grid;
  gap: 10px;
}

.staff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.staff-label {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 4px;
}

.staff-row input {
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: rgba(5, 12, 24, 0.78);
  color: var(--text);
  padding: 10px 12px;
}

.staff-row input:focus {
  outline: none;
  border-color: rgba(120, 162, 255, 0.95);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.loading-row {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.loading-row.show {
  display: flex;
}

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid rgba(133, 162, 211, 0.45);
  border-top-color: #9cc2ff;
  animation: spin 0.7s linear infinite;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #9cf1d2;
  border: 1px solid rgba(30, 197, 141, 0.46);
  background: var(--green-dim);
}

@media (max-width: 1100px) {
  .login-layout {
    width: min(980px, 100% - 36px);
    grid-template-columns: minmax(360px, 1fr) minmax(340px, 0.9fr);
  }

  .story-title {
    font-size: clamp(29px, 2.9vw, 38px);
  }

  .story-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .login-layout {
    width: min(700px, 100% - 24px);
    margin: 16px auto;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .story-panel {
    border-bottom: 1px solid var(--border);
    padding: 30px 24px;
  }

  .auth-form-shell {
    padding: 24px 16px;
  }

  .auth-form-card {
    width: 100%;
    padding: 24px;
  }

  .onb-shell {
    width: min(860px, 100% - 20px);
    margin-top: 16px;
  }

  .plan-grid-onb,
  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .onb-nav {
    padding: 12px 14px;
  }

  .onb-nav-actions span {
    display: none;
  }

  .onb-card,
  .onb-hero {
    padding: 18px;
  }

  .prog-label {
    display: none;
  }

  .progress-wrap {
    padding: 12px;
  }

  .plan-grid-onb,
  .type-grid {
    grid-template-columns: 1fr;
  }

  .staff-row {
    grid-template-columns: 1fr;
  }

  .stage-nav {
    flex-wrap: wrap;
  }

  .back-btn,
  .onb-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
