/* DeepLectual — public registration theme */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #0a0a0f;
  --surface: #0f0f1a;
  --panel: #141424;
  --panel-bright: #1a1a2e;
  --border: rgba(100, 100, 200, 0.15);
  --border-active: rgba(120, 120, 255, 0.4);
  --accent: #6c63ff;
  --accent2: #00e5c0;
  --accent3: #ff6b9d;
  --text: #e8e8f8;
  --text-muted: #8888aa;
  --text-dim: #4a4a6a;
  --danger: #ff6b6b;
  --success: #00e5c0;
  --font-display: "Syne", sans-serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --glow: 0 0 40px rgba(108, 99, 255, 0.15);
  --grid-line: rgba(108, 99, 255, 0.04);
  --header-bg: rgba(10, 10, 20, 0.6);
  --hero-title-gradient: linear-gradient(135deg, #fff 30%, rgba(108, 99, 255, 0.8) 70%, #00e5c0 100%);
  --particle-color: rgba(108, 99, 255, 0.55);
  --modal-backdrop: rgba(6, 4, 18, 0.72);
  --modal-surface: linear-gradient(165deg, rgba(26, 26, 46, 0.96), rgba(15, 15, 26, 0.98));
  --modal-border-line: rgba(100, 100, 200, 0.2);
  --modal-header-fill: rgba(255, 255, 255, 0.03);
  --modal-footer-fill: rgba(0, 0, 0, 0.15);
  --modal-plan-fill: rgba(255, 255, 255, 0.03);
  --modal-plan-fill-soft: rgba(255, 255, 255, 0.02);
  --modal-muted-fill: rgba(255, 255, 255, 0.06);
  --modal-card-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(108, 99, 255, 0.12);
  --checkout-modal-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --terms-modal-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), var(--glow);
  --select-option-bg: var(--panel-bright);
  --select-option-color: var(--text);
  color-scheme: dark;
}

html[data-theme="light"] {
  --ink: #f8f8fc;
  --surface: #eef0f8;
  --panel: #ffffff;
  --panel-bright: #e8eaf5;
  --border: rgba(72, 72, 130, 0.14);
  --border-active: rgba(108, 99, 255, 0.42);
  --accent: #5548e8;
  --accent2: #009688;
  --accent3: #e84888;
  --text: #151528;
  --text-muted: #5a5a76;
  --text-dim: #8484a0;
  --danger: #d93636;
  --success: #009688;
  --glow: 0 0 48px rgba(108, 99, 255, 0.12);
  --grid-line: rgba(108, 99, 255, 0.065);
  --header-bg: rgba(255, 255, 255, 0.76);
  --hero-title-gradient: linear-gradient(135deg, #12122a 0%, rgba(85, 72, 232, 0.95) 52%, #00796b 100%);
  --particle-color: rgba(85, 72, 232, 0.38);
  --modal-backdrop: rgba(40, 45, 70, 0.42);
  --modal-surface: linear-gradient(165deg, #ffffff 0%, #eef1fb 100%);
  --modal-border-line: rgba(72, 72, 130, 0.16);
  --modal-header-fill: rgba(108, 99, 255, 0.06);
  --modal-footer-fill: rgba(108, 99, 255, 0.07);
  --modal-plan-fill: rgba(255, 255, 255, 0.98);
  --modal-plan-fill-soft: rgba(248, 249, 255, 0.95);
  --modal-muted-fill: rgba(108, 99, 255, 0.07);
  --modal-card-shadow: 0 24px 60px rgba(40, 50, 100, 0.14), 0 0 40px rgba(108, 99, 255, 0.08);
  --checkout-modal-shadow: 0 24px 50px rgba(40, 50, 100, 0.12);
  --terms-modal-shadow: 0 24px 60px rgba(40, 50, 100, 0.16), var(--glow);
  --select-option-bg: #ffffff;
  --select-option-color: var(--text);
  color-scheme: light;
}

html[data-theme="light"] body::before {
  opacity: 0.85;
}

html[data-theme="light"] .orb {
  opacity: 0.2;
}

html[data-theme="light"] .logo-mark {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .theme-switch {
  background: rgba(108, 99, 255, 0.07);
}

html[data-theme="light"] .status--success {
  background: rgba(0, 150, 136, 0.09);
  border-color: rgba(0, 150, 136, 0.22);
}

html[data-theme="light"] .status--error {
  color: #b71c1c;
  background: rgba(211, 47, 47, 0.08);
  border-color: rgba(211, 47, 47, 0.22);
}

html[data-theme="light"] .status-close:hover,
html[data-theme="light"] .status-close:focus-visible {
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .agent-search-wrap input {
  background: rgba(108, 99, 255, 0.06);
}

html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field select:focus,
html[data-theme="light"] .agent-search-wrap input:focus {
  background: rgba(108, 99, 255, 0.08);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body.terms-modal-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: orb-float 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6c63ff 0%, transparent 70%);
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #00e5c0 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation-delay: -4s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ff6b9d 0%, transparent 70%);
  top: 40%;
  left: 60%;
  animation-delay: -2s;
  opacity: 0.2;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -30px);
  }
}

/* Particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--particle-color);
  animation: particle-rise linear infinite;
}

@keyframes particle-rise {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  background: var(--header-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  gap: 2px;
}

.theme-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.theme-switch-btn:hover {
  color: var(--text);
}

.theme-switch-btn:focus-visible {
  outline: 2px solid var(--border-active);
  outline-offset: 2px;
}

.theme-switch-btn.is-active {
  background: linear-gradient(135deg, var(--accent), #8b85ff);
  color: #fff;
  box-shadow: 0 2px 12px rgba(108, 99, 255, 0.35);
}

.theme-switch-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

/* Light tray: supplied logo has a white backdrop — keeps contrast on dark header */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
}

.logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(230px, 52vw);
  object-fit: contain;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
}

.header-dot {
  width: 7px;
  height: 7px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 36px 24px 28px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  background: var(--hero-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Stepper */
.stepper-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  padding: 0 24px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s, box-shadow 0.3s, background 0.3s;
  white-space: nowrap;
}

.step.active {
  background: linear-gradient(135deg, var(--accent), #8b85ff);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.step.done {
  color: var(--accent2);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.step.active .step-num {
  background: rgba(255, 255, 255, 0.25);
}

.step.done .step-num {
  background: rgba(0, 229, 192, 0.2);
  color: var(--accent2);
}

.step-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

/* Main layout */
.main-layout {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 48px;
  align-items: start;
}

.main-primary {
  min-width: 0;
}

/* Form panels */
.form-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.form-panel-agents {
  margin-bottom: 20px;
}

.panel-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.form-panel,
.checkout-card,
.sidebar-card,
.sidebar-chat,
.agent-item,
.inline-plan,
.plan-agent-head,
.step-card-title,
.step-card-sub,
.panel-title,
.agent-name,
.cta-btn,
.btn-back,
.sidebar-title,
.inline-plan-name,
.inline-plan-amount,
.totals-row.final,
.pay-total {
  font-family: var(--font-body);
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.panel-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.form-body {
  padding: 20px 24px 24px;
}

.form-body-terms {
  padding-top: 24px;
}

/* Account type */
.type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  font-family: var(--font-body);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
}

.type-btn:hover {
  border-color: rgba(108, 99, 255, 0.4);
  color: var(--text);
}

.type-btn:has(input:checked) {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.1);
  color: var(--text);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
}

.type-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-section-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-label::before {
  content: "";
  width: 3px;
  height: 14px;
  background: linear-gradient(var(--accent), var(--accent2));
  border-radius: 2px;
  display: inline-block;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.field-full {
  grid-column: 1 / -1;
}

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

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.agent-search-wrap input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder,
.agent-search-wrap input::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.agent-search-wrap input:focus {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238888aa' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field select option {
  background: var(--select-option-bg);
  color: var(--select-option-color);
}

.field textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.45;
}

.password-field {
  position: relative;
  display: grid;
  width: 100%;
  align-items: center;
}

.password-field input,
.password-field .password-toggle {
  grid-area: 1 / 1;
}

.password-field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-right: 48px;
}

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.password-toggle {
  position: relative;
  z-index: 2;
  justify-self: end;
  align-self: center;
  width: 40px;
  height: 40px;
  margin-right: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--text);
  background: rgba(108, 99, 255, 0.1);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.block-after-names {
  margin-top: 8px;
}

.company-fields.hidden {
  display: none !important;
}

.conditionalFields.hidden {
  display: none !important;
}

.flow-hidden {
  display: none !important;
}

.flow-panel {
  animation: flowFade 0.22s ease-out;
}

@keyframes flowFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Agents */
.agent-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-width: 0;
  margin-bottom: 16px;
}

.agent-category {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agent-category-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.agent-category-chevron {
  width: 14px;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
  color: var(--accent, #6c63ff);
}

.agent-category-title {
  margin: 0;
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #6c63ff);
}

.agent-category-count {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.15);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #6c63ff);
  text-align: center;
}

.agent-category.is-collapsed .agents {
  display: none;
}

.agent-categories .agents {
  margin-bottom: 0;
}

.agent-search-wrap {
  margin-bottom: 14px;
}

.agent-search-wrap input {
  border-radius: 100px;
}

.agents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  margin-bottom: 16px;
}

.agent-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  height: 100%;
  min-height: 228px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 34px 14px 14px;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  text-align: left;
  box-sizing: border-box;
}

.agent-item-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 44px;
}

.agent-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.agent-item:hover {
  border-color: rgba(108, 99, 255, 0.4);
  transform: translateY(-2px);
}

.agent-item:hover::before {
  opacity: 1;
}

.agent-item.checked {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.08);
  box-shadow: 0 0 24px rgba(108, 99, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.agent-item.checked::before {
  opacity: 1;
}

.agent-preselected {
  outline: 2px dashed rgba(108, 99, 255, 0.5);
  outline-offset: 2px;
}

.agent-badge {
  margin-top: 0;
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.agent-badge-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: block;
  margin-left: 0;
  margin-right: 0;
}

.agent-name {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  min-height: 2.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-align: left;
  text-transform: none;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-item-top,
.agent-name,
.plan-badge {
  flex-shrink: 0;
}

.agent-select-btn {
  margin-top: auto;
  flex-shrink: 0;
  align-self: stretch;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.agent-select-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.25);
}

.agent-item.checked .agent-select-btn {
  background: linear-gradient(135deg, var(--accent), #8b85ff);
  color: #fff;
  border-color: transparent;
}

.plan-badge {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.2);
  color: var(--text);
  border: 1px solid rgba(108, 99, 255, 0.35);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.plan-badge[hidden] {
  display: none !important;
}

/* Terms row */
.terms-row {
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s;
}

.terms-row:hover {
  border-color: rgba(108, 99, 255, 0.3);
}

.terms-native-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.terms-check-visual {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  margin-top: 1px;
  color: transparent;
}

.terms-row:has(.terms-native-input:checked) .terms-check-visual {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.4);
  color: #fff;
}

.terms-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.terms-inline-btn {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-inline-btn:hover {
  color: #9b94ff;
}

/* CTA */
.cta-btn {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #8b85ff);
  color: #fff;
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.5);
}

.cta-btn:hover::before {
  opacity: 1;
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.cta-btn svg {
  width: 18px;
  height: 18px;
}

.cta-btn-inline {
  width: auto;
  flex: 2;
  margin-top: 0;
}

/* Payment step */
.pay-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.pay-order-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-order-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.pay-order-line strong {
  color: var(--text);
  white-space: nowrap;
}

.pay-order-meta {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 2px;
}

.pay-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.pay-row strong {
  color: var(--text);
}

.pay-total {
  border-top: 1px solid rgba(108, 99, 255, 0.25);
  margin-top: 8px;
  padding-top: 12px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.pay-total strong {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pay-email-note {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 16px;
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius);
  line-height: 1.45;
}

.pay-method-intro {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.pay-method-intro p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pay-method-intro strong {
  color: var(--text);
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pay-badge {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.pay-method {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pay-method:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pay-method:has(input:checked) {
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(108, 99, 255, 0.25);
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), transparent);
}

.pay-method--info {
  cursor: default;
  background: rgba(255, 255, 255, 0.02);
}

.pay-method--info:hover {
  border-color: var(--border);
  box-shadow: none;
}

.pay-method input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.pay-method-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pay-method-title {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.pay-method-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.pay-method-icon {
  font-size: 20px;
  margin-top: 2px;
}

.pay-security-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 12px 16px;
  background: rgba(0, 229, 192, 0.05);
  border: 1px solid rgba(0, 229, 192, 0.15);
  border-radius: var(--radius);
  line-height: 1.45;
}

.payment-actions-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.btn-back-payment {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-back-payment:hover {
  border-color: rgba(108, 99, 255, 0.4);
  background: rgba(108, 99, 255, 0.06);
}

.pay-foot {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.sidebar-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sidebar-card-summary {
  padding-bottom: 20px;
}

.sidebar-card-compact {
  padding: 20px 24px;
}

.sidebar-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(108, 99, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.subscription-summary {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.subscription-summary h3 {
  display: none;
}

.order-empty {
  text-align: center;
  padding: 16px 0 8px;
  color: var(--text-dim);
  font-size: 13px;
}

.order-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
  opacity: 0.4;
}

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

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  background: transparent;
  border-radius: 0;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-agent {
  font-weight: 600;
  color: var(--text);
}

.summary-plan {
  font-size: 12px;
  color: var(--text-muted);
}

.summary-price {
  font-weight: 600;
  color: var(--accent2);
  white-space: nowrap;
}

.totals {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(108, 99, 255, 0.2);
  display: grid;
  gap: 8px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.totals-row strong {
  color: var(--text);
}

.totals-row.final {
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 700;
}

.totals-row.final strong {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.trust-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trust-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.trust-icon-green {
  background: rgba(0, 229, 192, 0.1);
}

.trust-icon-purple {
  background: rgba(108, 99, 255, 0.1);
}

.trust-icon-pink {
  background: rgba(255, 107, 157, 0.1);
}

.trust-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.trust-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

.sidebar-pay-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sidebar-pay-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-pay-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* Status */
.status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  width: 100%;
  max-width: none;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 12px 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-align: left;
  box-sizing: border-box;
  scroll-margin-top: 16px;
}

.status.page-banner {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
  padding: 12px 12px 12px 14px;
  text-align: left;
  box-shadow: none;
}

.status[hidden],
.status:empty {
  display: none !important;
}

.status-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.status--success .status-icon {
  background: rgba(0, 229, 192, 0.18);
}

.status--success .status-icon::before {
  content: "✓";
}

.status--error .status-icon {
  background: rgba(255, 107, 107, 0.18);
}

.status--error .status-icon::before {
  content: "!";
}

.status-text {
  flex: 1;
  min-width: 0;
}

.status-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.status-close:hover,
.status-close:focus-visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.status a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status a:hover {
  opacity: 0.85;
}

.status--success {
  color: var(--accent2);
  background: rgba(0, 229, 192, 0.08);
  border-color: rgba(0, 229, 192, 0.2);
}

.status--error {
  color: #ff9e9e;
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.25);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 5;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  background: transparent;
  backdrop-filter: none;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.footer-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(300px, 88vw);
  object-fit: contain;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.social-btn:hover {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.1);
  color: var(--text);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.footer-links li a:hover {
  background: rgba(108, 99, 255, 0.07);
  border-color: rgba(108, 99, 255, 0.15);
  color: var(--text);
  transform: translateX(4px);
}

.link-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 1px solid var(--border);
}

.footer-links li a span:not(.link-icon) {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-links li a strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.footer-links li a em {
  font-size: 11px;
  font-style: normal;
  color: var(--text-dim);
}

.footer-contact-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon-wrap {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 9px;
  background: rgba(0, 229, 192, 0.08);
  border: 1px solid rgba(0, 229, 192, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
  margin-top: 1px;
}

.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

a.contact-value:hover {
  color: var(--accent2);
}

.contact-value--plain {
  display: block;
  cursor: default;
}

.contact-value--plain:hover {
  color: var(--text-muted);
}

.footer-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-sizing: border-box;
}

a.footer-cta-btn {
  text-decoration: none;
}

.footer-get-in-touch {
  background: linear-gradient(135deg, rgba(61, 54, 140, 0.85), rgba(108, 99, 255, 0.45));
  border-color: rgba(139, 133, 255, 0.45);
  color: var(--text);
}

.footer-cta-btn--ghost {
  background: transparent;
  border-color: rgba(108, 99, 255, 0.22);
  color: var(--text-muted);
}

.footer-cta-btn:hover {
  background: rgba(108, 99, 255, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.2);
}

.footer-get-in-touch:hover {
  background: linear-gradient(135deg, rgba(78, 70, 168, 0.95), rgba(120, 112, 255, 0.55));
  border-color: rgba(180, 174, 255, 0.55);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(61, 54, 140, 0.35);
}

.footer-cta-btn--ghost:hover {
  background: rgba(108, 99, 255, 0.08);
  border-color: rgba(108, 99, 255, 0.35);
  color: var(--accent);
  box-shadow: none;
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: none;
  background: transparent;
}

.footer-bottom-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 40px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

.footer-link-btn {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: none;
}

.footer-link-btn:hover {
  color: var(--accent);
}

/* Light theme: footer had fixed dark gradient while tokens switched to dark text */
html[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(240, 242, 250, 0.97) 25%, #e4e9f4 100%);
  border-top-color: var(--border);
}

html[data-theme="light"] .footer-glow {
  background: radial-gradient(ellipse, rgba(108, 99, 255, 0.12) 0%, transparent 72%);
}

html[data-theme="light"] .footer-logo-mark {
  box-shadow: 0 8px 28px rgba(40, 55, 120, 0.12);
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .social-btn {
  background: rgba(108, 99, 255, 0.09);
}

html[data-theme="light"] .social-btn:hover {
  background: rgba(108, 99, 255, 0.16);
}

html[data-theme="light"] .link-icon {
  background: rgba(108, 99, 255, 0.1);
}

html[data-theme="light"] .footer-links li a:hover {
  background: rgba(108, 99, 255, 0.12);
}

html[data-theme="light"] .contact-icon-wrap {
  background: rgba(0, 150, 136, 0.1);
  border-color: rgba(0, 150, 136, 0.22);
}

html[data-theme="light"] .footer-bottom {
  background: rgba(108, 99, 255, 0.06);
  border-top-color: var(--border);
}

html[data-theme="light"] .footer-get-in-touch {
  color: #fff;
}

html[data-theme="light"] .footer-get-in-touch:hover {
  color: #fff;
}

html[data-theme="light"] .footer-cta-btn--ghost {
  border-color: rgba(108, 99, 255, 0.22);
}

/* Terms modal */
.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.terms-modal[hidden] {
  display: none !important;
}

.terms-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.terms-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(640px, calc(100vw - 32px));
  max-height: min(85dvh, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--modal-surface);
  box-shadow: var(--terms-modal-shadow);
  overflow: hidden;
  animation: terms-pop 0.22s ease-out;
}

@keyframes terms-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.terms-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--modal-header-fill);
}

.terms-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.terms-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.terms-modal-close:hover {
  color: var(--text);
  border-color: rgba(108, 99, 255, 0.4);
  background: rgba(108, 99, 255, 0.12);
}

.terms-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 22px 28px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.terms-modal-lead {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 107, 157, 0.25);
  background: rgba(255, 107, 157, 0.06);
  font-size: 13px;
}

.terms-section {
  margin-bottom: 22px;
}

.terms-section:last-child {
  margin-bottom: 0;
}

.terms-section h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.terms-doc-heading {
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.terms-doc-heading:first-of-type {
  margin-top: 8px;
}

.terms-section p {
  margin: 0 0 10px;
}

.terms-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.terms-section li {
  margin-bottom: 6px;
}

.terms-section a {
  color: var(--accent);
  text-decoration: none;
}

.terms-section a:hover {
  text-decoration: underline;
}

/* Checkout placeholder modal */
.checkout-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  z-index: 10000;
  animation: flowFade 0.15s ease-out;
}

.checkout-modal {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--checkout-modal-shadow);
  overflow: hidden;
}

.checkout-modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--modal-header-fill);
}

.checkout-modal-header h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--text);
}

.checkout-modal-header .checkout-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.checkout-modal-body {
  padding: 18px 20px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkout-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.checkout-modal-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  background: var(--modal-footer-fill);
}

/* Responsive */
@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 1fr;
    padding: 0 20px 48px;
  }

  .sidebar {
    order: -1;
    position: static;
  }

  .site-header {
    padding: 16px 20px;
  }

  .hero {
    padding: 24px 20px 16px;
  }

  .form-body {
    padding: 20px;
  }

  .panel-header {
    padding: 20px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px 40px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px 28px;
  }

  .step-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-card-head-plans {
    gap: 16px;
  }

  .agent-carousel {
    padding: 0;
  }

  .agent-nav-btn {
    display: none;
  }
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .agents {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .agents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-stats {
    gap: 24px;
  }

  .agents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .agent-item {
    min-height: 200px;
    padding: 12px 30px 12px 12px;
  }

  .agent-name {
    font-size: 11px;
    line-height: 1.25;
  }

  .plan-badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  .agent-select-btn {
    font-size: 11px;
    padding: 7px 10px;
  }

  .type-toggle {
    grid-template-columns: 1fr;
  }

  .stepper {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
  }

  .payment-actions-row {
    flex-direction: column;
  }

  .cta-btn-inline {
    flex: none;
    width: 100%;
  }

  .logo-img {
    height: 28px;
    max-width: min(200px, 62vw);
  }

  .logo-mark {
    padding: 5px 10px;
  }

  .footer-logo-img {
    height: 38px;
  }

  .footer-logo-mark {
    padding: 6px 12px;
  }
}

/* ===== 4-step checkout layout ===== */
.checkout-card {
  margin-bottom: 0;
  box-shadow: 0 12px 40px rgba(20, 16, 50, 0.08);
}

.step-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.step-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.step-card-title {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  color: var(--text);
}

.step-card-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 520px;
}

.selected-count-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: 100px;
  padding: 6px 12px;
}

.step1-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .step1-head-actions {
    align-items: stretch;
    width: 100%;
  }
}

.agent-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-nav-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-bright);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.agent-nav-btn svg {
  width: 18px;
  height: 18px;
}

.agent-nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.2);
}

.agent-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.agent-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 4px;
}

.agent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
}

.agent-dot.is-active {
  background: var(--accent);
  width: 18px;
  border-radius: 100px;
}

.agent-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}

.agent-item.checked .agent-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.agent-blurb {
  margin: 0;
  flex: 1;
  min-height: 2.7em;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-select-btn {
  display: block;
}

.type-toggle-compact {
  margin-bottom: 0;
  min-width: 260px;
}

.step1-head-actions .type-btn {
  padding: 8px 12px;
  font-size: 13px;
}

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  gap: 2px;
  flex-shrink: 0;
}

.billing-toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.billing-toggle-btn.is-active {
  background: linear-gradient(135deg, var(--accent), #8b85ff);
  color: #fff;
}

.billing-save {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(0, 229, 192, 0.18);
  color: var(--accent2);
}

.billing-toggle-btn.is-active .billing-save {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.plans-by-agent {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.plan-agent-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-agent-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
}

.plan-agent-head img,
.plan-agent-head .plan-agent-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
}

.plan-agent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.12);
  font-size: 16px;
}

.inline-plans-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inline-plan {
  position: relative;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 12px 14px;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.inline-plan:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 99, 255, 0.4);
}

.inline-plan.selected {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(108, 99, 255, 0.18);
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.inline-plan-popular {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--surface);
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

html[data-theme="light"] .inline-plan-popular {
  background: #151528;
  color: #fff;
}

.inline-plan-radio {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
}

.inline-plan.selected .inline-plan-radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--panel);
}

.inline-plan-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 8px;
  padding-right: 22px;
}

.inline-plan-amount {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 8px;
}

.inline-plan-amount span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.inline-plan-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.inline-plans-empty {
  margin: 0;
  padding: 16px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.step-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.btn-back {
  flex: 0 0 auto;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.step-actions .cta-btn,
.step-actions .cta-btn-inline {
  flex: 1;
  margin-top: 0;
}

.sidebar-billing-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(108, 99, 255, 0.12);
  border-radius: 100px;
  padding: 4px 8px;
}

.sidebar-billed-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}

.trust-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.trust-compact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.sidebar-chat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(108, 99, 255, 0.22);
  background: rgba(108, 99, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.sidebar-chat strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.sidebar-chat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(108, 99, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-chat span:last-child {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}

html[data-theme="light"] .site-footer {
  background: transparent;
}

html[data-theme="light"] .footer-bottom {
  background: transparent;
}

@media (max-width: 900px) {
  .inline-plans-row {
    grid-template-columns: 1fr;
  }

  .type-toggle-compact {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .inline-plans-row {
    grid-template-columns: 1fr;
  }

  .step-actions {
    flex-direction: column;
  }

  .btn-back,
  .step-actions .cta-btn-inline {
    width: 100%;
  }
}
