:root {
  --bg: #040713;
  --panel: rgba(11, 18, 32, 0.76);
  --panel-strong: rgba(15, 22, 43, 0.92);
  --line: rgba(124, 58, 237, 0.24);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #a7adca;
  --muted-soft: #7d87a6;
  --purple: #7c3aed;
  --purple-two: #9333ea;
  --blue: #2f6bff;
  --green: #38d987;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(124, 58, 237, 0.2), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(47, 107, 255, 0.14), transparent 26%),
    #040713;
}

body.auth-pending {
  opacity: 0;
}

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

button,
input,
select {
  font: inherit;
}

button.action-card {
  width: 100%;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line-soft);
}

.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.auth-back-link {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--text);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.auth-back-link:hover {
  border-color: var(--line);
}

.auth-card {
  width: min(100%, 460px);
  padding: 34px;
  background: linear-gradient(180deg, rgba(15, 22, 43, 0.96), rgba(8, 12, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(75, 36, 180, 0.28);
}

.auth-card.has-clerk {
  width: min(100%, 520px);
}

.brand-text {
  margin: 0 0 26px;
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
}

.auth-card.has-clerk > h1,
.auth-card.has-clerk > [data-auth-description] {
  display: none;
}

.auth-card h1,
.dashboard-hero h1,
.section-head h2 {
  margin: 0;
  letter-spacing: -0.02em;
}

.auth-card h1 {
  font-size: 2.4rem;
}

.auth-card p,
.dashboard-hero p,
.section-head p,
.empty-state p {
  color: var(--muted);
  line-height: 1.65;
}

.auth-form,
.settings-grid,
.wizard-card,
.dashboard-main {
  display: grid;
  gap: 18px;
}

.auth-form {
  margin-top: 24px;
}

.auth-form .btn {
  width: 100%;
  margin-top: 6px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}

.auth-tab {
  min-height: 44px;
  color: var(--muted);
  font-weight: 900;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.auth-tab.is-active {
  color: white;
  background: rgba(124, 58, 237, 0.2);
}

.clerk-panel {
  min-height: 420px;
}

.velora-clerk-card {
  width: 100% !important;
  color: #ffffff !important;
  background: #0b1220 !important;
  border: 1px solid rgba(124, 58, 237, 0.2) !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 90px rgba(75, 36, 180, 0.24) !important;
}

.velora-clerk-title {
  color: #ffffff !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
}

.velora-clerk-subtitle {
  color: #a7b0d0 !important;
}

.velora-clerk-input {
  min-height: 52px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(124, 58, 237, 0.2) !important;
  border-radius: 14px !important;
}

.velora-clerk-primary {
  min-height: 52px !important;
  color: white !important;
  font-weight: 900 !important;
  background: linear-gradient(90deg, #7c3aed, #9333ea) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.32) !important;
}

.velora-clerk-link {
  color: #c4b5fd !important;
  font-weight: 800 !important;
}

.velora-clerk-social {
  min-height: 52px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(124, 58, 237, 0.2) !important;
  border-radius: 14px !important;
}

.clerk-slot[hidden],
.clerk-slot.is-hidden {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

[data-clerk-status] {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
}

textarea {
  min-height: 150px;
  padding: 15px;
  resize: vertical;
  line-height: 1.5;
}

select option {
  color: #080a16;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  color: white;
  font-weight: 900;
  background: linear-gradient(90deg, var(--purple), var(--purple-two));
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 66px rgba(124, 58, 237, 0.42);
}

.btn.secondary,
.btn.danger {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  box-shadow: none;
}

.btn.danger {
  color: #ffb3c4;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100vh;
  padding: 28px 20px;
  background: rgba(5, 8, 22, 0.78);
  border-right: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  padding: 13px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 850;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: white;
  background: rgba(124, 58, 237, 0.16);
  transform: translateX(2px);
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}

.dashboard-area {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 78px;
  padding: 18px clamp(22px, 4vw, 46px);
  background: rgba(4, 7, 19, 0.62);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.language-switcher select {
  width: auto;
  min-height: auto;
  padding: 0 18px 0 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher select option {
  color: #080a16;
}

.dashboard-language {
  margin-right: auto;
}

.clerk-user-button:empty {
  display: none;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--purple-two));
  border-radius: 50%;
}

.profile span:last-child {
  max-width: 180px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-main {
  padding: clamp(24px, 4vw, 46px);
  animation: fadeIn 0.45s ease both;
}

.dashboard-hero,
.panel,
.metric-card,
.action-card,
.empty-state,
.wizard-card,
.settings-card {
  background: linear-gradient(180deg, rgba(15, 22, 43, 0.82), rgba(9, 13, 28, 0.78));
  border: 1px solid var(--line-soft);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 28px;
}

.dashboard-hero h1 {
  font-size: clamp(2rem, 3.4vw, 3.6rem);
}

.beta-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  color: #d8ccff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.36);
  border-radius: 999px;
}

.estimate-time {
  letter-spacing: 0;
  text-transform: none;
}

.success-pill {
  color: #b9ffd6;
  background: rgba(56, 217, 135, 0.14);
  border-color: rgba(56, 217, 135, 0.34);
}

.metrics-grid,
.quick-actions,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.demo-runway {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(18, 27, 54, 0.9), rgba(9, 13, 28, 0.84));
  border: 1px solid rgba(56, 217, 135, 0.24);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.demo-runway h2,
.demo-runway p {
  margin: 0;
}

.demo-runway h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.demo-runway p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.onboarding-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(18, 27, 54, 0.9), rgba(9, 13, 28, 0.84)),
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.18), transparent 34%);
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(70, 36, 180, 0.2);
}

.onboarding-card h2 {
  margin: 16px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
}

.onboarding-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.onboarding-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: onboarding;
}

.onboarding-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 850;
  counter-increment: onboarding;
}

.onboarding-steps li::before {
  content: counter(onboarding);
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #d8ccff;
  font-size: 0.8rem;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.34);
  border-radius: 50%;
}

.onboarding-progress {
  display: grid;
  min-width: 190px;
  gap: 12px;
}

.onboarding-progress > span {
  color: white;
  font-size: 1.6rem;
  font-weight: 950;
}

.metric-card,
.action-card,
.settings-card {
  min-width: 0;
  padding: 22px;
  border-radius: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.metric-card:hover,
.settings-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.34);
  background: linear-gradient(180deg, rgba(18, 27, 54, 0.94), rgba(9, 13, 28, 0.84));
}

.metric-card span,
.action-card span,
.settings-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1;
}

.metric-card strong[data-hubspot-status],
.metric-card strong[data-billing-plan] {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.12;
}

.panel {
  padding: 26px;
  border-radius: 26px;
}

.billing-overview {
  border-color: rgba(56, 217, 135, 0.2);
}

.billing-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.billing-summary div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}

.billing-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.billing-summary strong {
  display: block;
  margin-top: 10px;
  color: white;
  font-size: 1.35rem;
}

.notifications-panel {
  border-color: rgba(124, 58, 237, 0.22);
}

.notifications-list {
  display: grid;
  gap: 12px;
}

.notifications-list article {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}

.notifications-list span {
  color: var(--muted);
  line-height: 1.5;
}

.billing-page-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.billing-actions-panel {
  border-color: rgba(124, 58, 237, 0.22);
}

.billing-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.support-grid .settings-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.support-grid .btn {
  margin-top: 8px;
}

.velora-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  gap: 6px;
  width: min(360px, calc(100vw - 44px));
  padding: 16px 18px;
  color: white;
  background: linear-gradient(180deg, rgba(18, 27, 54, 0.98), rgba(9, 13, 28, 0.98));
  border: 1px solid rgba(124, 58, 237, 0.34);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.velora-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.velora-toast span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 1.7rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-two));
  border-radius: inherit;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.checklist li::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(124, 58, 237, 0.62);
  border-radius: 50%;
}

.action-card {
  position: relative;
  min-height: 150px;
  cursor: pointer;
}

.action-card strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 1.1rem;
}

.action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.34);
  background: linear-gradient(180deg, rgba(18, 27, 54, 0.94), rgba(9, 13, 28, 0.84));
}

.action-card:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.empty-state {
  display: grid;
  min-height: 230px;
  place-items: center;
  padding: 32px;
  text-align: center;
  border-radius: 26px;
}

.empty-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  place-items: center;
  color: #d8ccff;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.34);
  border-radius: 18px;
}

.empty-illustration {
  position: relative;
  width: 150px;
  height: 96px;
  margin: 0 auto 20px;
}

.empty-illustration span {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(47, 107, 255, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(124, 58, 237, 0.14);
}

.empty-illustration span:nth-child(1) {
  top: 8px;
  left: 8px;
  width: 110px;
  height: 48px;
}

.empty-illustration span:nth-child(2) {
  right: 8px;
  bottom: 8px;
  width: 118px;
  height: 50px;
}

.empty-illustration span:nth-child(3) {
  left: 42px;
  top: 36px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--purple), var(--purple-two));
  border-radius: 16px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wizard-step {
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}

.wizard-step.is-active {
  color: white;
  border-color: rgba(124, 58, 237, 0.48);
  background: rgba(124, 58, 237, 0.16);
}

.wizard-step:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.wizard-card {
  padding: 30px;
  border-radius: 26px;
}

.wizard-fields {
  display: grid;
  gap: 18px;
}

[data-step-panel] {
  display: none;
}

[data-step-panel].is-active {
  display: grid;
}

.activation-panel {
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}

.activation-panel h3,
.activation-panel p {
  margin: 0;
}

.activation-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.activation-checklist {
  display: grid;
  gap: 10px;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

.activation-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.activation-checklist li::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(56, 217, 135, 0.42);
}

.activation-panel .btn {
  width: max-content;
}

.integration-status {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.demo-form-card,
.demo-result-card {
  padding: 26px;
  background: linear-gradient(180deg, rgba(15, 22, 43, 0.82), rgba(9, 13, 28, 0.78));
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.demo-form,
.demo-result-card {
  display: grid;
  gap: 18px;
}

.demo-form .settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-form label {
  min-width: 0;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 750;
}

.demo-result-card h2,
.demo-result-card p {
  margin: 0;
}

.demo-result-card h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.15;
}

.demo-result-card p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
}

.demo-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.demo-result-grid div {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}

.demo-result-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.demo-result-grid strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.demo-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demo-proof > div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}

.demo-proof span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-proof ul,
.demo-proof p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.55;
}

.demo-proof ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
  background: rgba(11, 18, 32, 0.76);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
}

.leads-list {
  display: grid;
  gap: 14px;
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.2fr) 90px minmax(220px, 1.5fr) 110px auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(11, 18, 32, 0.76);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.lead-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-card-score span,
.lead-card-summary span,
.lead-card-date span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-card-score strong,
.lead-card-date strong {
  display: block;
  margin-top: 7px;
  color: white;
  font-size: 1.05rem;
}

.lead-card-summary p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lead-card-action {
  justify-self: end;
}

.leads-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(15, 22, 43, 0.82), rgba(9, 13, 28, 0.78));
  border: 1px solid var(--line-soft);
  border-radius: 24px;
}

.leads-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.leads-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.leads-summary p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody td {
  color: var(--muted);
}

[data-lead-row] {
  cursor: pointer;
  transition: background 0.18s ease;
}

[data-lead-row]:hover {
  background: rgba(124, 58, 237, 0.06);
}

.lead-name {
  color: white;
  font-weight: 900;
}

.lead-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted-soft);
  font-size: 0.82rem;
}

.lead-summary {
  display: block;
  max-width: 320px;
  color: var(--muted);
  line-height: 1.45;
}

.detail-link {
  min-height: 34px;
  padding: 0 12px;
  color: #d8ccff;
  font-weight: 900;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 999px;
  cursor: pointer;
}

.lead-detail-panel {
  padding: 26px;
  background: linear-gradient(180deg, rgba(15, 22, 43, 0.82), rgba(9, 13, 28, 0.78));
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.lead-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lead-detail-grid article {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}

.lead-detail-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-detail-grid p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

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

.lead-detail-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
}

.badge-instagram {
  color: #ffd0f4;
  background: rgba(255, 79, 216, 0.12);
  border: 1px solid rgba(255, 79, 216, 0.24);
}

.badge-tiktok {
  color: #c9efff;
  background: rgba(47, 107, 255, 0.12);
  border: 1px solid rgba(47, 107, 255, 0.24);
}

.badge-hot {
  color: #ffd3b8;
  background: rgba(255, 120, 75, 0.12);
  border: 1px solid rgba(255, 120, 75, 0.24);
}

.badge-qualified {
  color: #a7f7c7;
  background: rgba(56, 217, 135, 0.12);
  border: 1px solid rgba(56, 217, 135, 0.24);
}

.badge-new {
  color: #d8ccff;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.24);
}

.score-pill {
  color: white;
  font-weight: 950;
}

.empty-leads-cell {
  padding: 42px 18px;
  text-align: center;
}

.empty-leads {
  display: grid;
  min-height: 170px;
  gap: 8px;
  place-items: center;
  padding: 34px;
  text-align: center;
  background: rgba(11, 18, 32, 0.76);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
}

.empty-leads strong {
  color: white;
  font-size: 1.1rem;
}

.empty-leads span {
  color: var(--muted);
}

.settings-card h3 {
  margin: 10px 0 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.15;
}

.breakable-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.settings-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.settings-card-wide {
  grid-column: span 2;
}

.settings-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.settings-form .btn {
  width: max-content;
}

.settings-card .btn + .btn {
  margin-top: 10px;
}

.subtle-danger {
  color: #ff8fa8;
  border-color: rgba(255, 143, 168, 0.28);
}

.settings-status {
  min-height: 20px;
  font-size: 0.92rem;
  font-weight: 800;
}

.settings-status[data-state="success"] {
  color: #8df0b8;
}

.settings-status[data-state="error"] {
  color: #ff9a9a;
}

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

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-nav {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  }

  .sidebar-note {
    display: none;
  }

  .metrics-grid,
  .quick-actions,
  .settings-grid,
  .billing-page-grid,
  .support-grid,
  .onboarding-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .auth-card,
  .dashboard-hero,
  .panel,
  .wizard-card {
    padding: 24px;
  }

  .dashboard-hero,
  .section-head,
  .leads-summary,
  .demo-runway {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar-nav,
  .metrics-grid,
  .quick-actions,
  .settings-grid,
  .billing-page-grid,
  .support-grid,
  .wizard-steps,
  .onboarding-card,
  .demo-flow,
  .demo-result-grid,
  .demo-proof,
  .lead-detail-grid {
    grid-template-columns: 1fr;
  }

  .settings-card-wide {
    grid-column: span 1;
  }

  .topbar {
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
  }

  .dashboard-language {
    margin-right: 0;
  }

  .profile span:last-child {
    max-width: 128px;
  }
}

@media (max-width: 1180px) {
  .lead-card {
    grid-template-columns: 1fr 1fr;
  }

  .lead-card-action {
    justify-self: start;
  }
}
