/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
  --color-primary: #2563eb;
  --color-secondary: #0ea5e9;
  --color-accent: #7c3aed;

  --color-bg: #0b1222;
  --color-surface: #0f172a;
  --color-surface-light: #111c34;

  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --border-color: rgba(148, 163, 184, 0.12);

  --radius: 18px;

  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 700ms;

  --lift-sm: translateY(-2px);
  --lift-md: translateY(-6px);
  --lift-lg: translateY(-10px);
  --editor-sticky-top: 72px;
  --desktop-actionbar-height: 68px;
  --desktop-actionbar-gap: 16px;
}

/* =========================================================
   BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
}

a,
button,
.button,
.hero-preview-tab,
.hero-card-actions span,
.hero-card-mini-links span,
.hero-card-service-strip span,
.outcome-card,
.feature-bucket,
.usecase-card,
.step-card,
.faq-card,
.cta-panel--strong,
.public-demo-card,
.hero-proof-card,
.dashboard-card,
.dashboard-copy-btn,
.public-btn,
.file-button {
  transition:
    transform var(--dur-med) var(--ease-premium),
    box-shadow var(--dur-med) var(--ease-premium),
    border-color var(--dur-med) var(--ease-premium),
    background-color var(--dur-med) var(--ease-premium),
    color var(--dur-med) var(--ease-premium),
    opacity var(--dur-med) var(--ease-premium);
}

/* =========================================================
   LAYOUT
========================================================= */

.container,
.site-header-inner,
.site-footer-inner,
.dashboard-wrap {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
}

.section {
  padding: 60px 0;
}

.section--compact {
  padding: 42px 0;
}

.section--alt {
  background: #0a1020;
}

.section-head {
  margin-bottom: 40px;
}

.section-head--center {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-head--center h2 {
  max-width: 11ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #f8fbff;
  text-wrap: balance;
}

.section-lead {
  max-width: 680px;
  margin: 0 auto;
}

/* =========================================================
   BUTTONS
========================================================= */

.button,
.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 14px 34px rgba(37, 99, 235, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.button::before,
.hero-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 255, 255, 0) 62%,
    transparent 100%
  );
  transform: translateX(-130%);
  transition: transform 800ms var(--ease-premium);
  pointer-events: none;
}

.button:hover,
.hero-primary:hover {
  transform: var(--lift-sm);
  box-shadow:
    0 18px 40px rgba(37, 99, 235, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.1) inset;
}

.button:hover::before,
.hero-primary:hover::before {
  transform: translateX(130%);
}

.button:active,
.hero-primary:active {
  transform: translateY(0);
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.button.secondary::before {
  display: none;
}

.button-lg {
  min-height: 48px;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(10, 16, 32, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.site-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  position: relative;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  transition: width 220ms ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-cta .button {
  height: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
}

/* =========================================================
   HOME PAGE / LANDING PAGE
========================================================= */

.hero--ultra-v2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 0 72px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 24%),
    linear-gradient(180deg, #0b1222 0%, #0f172a 100%);
}

.hero-bg,
.hero-grid-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid-noise {
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero-ultra-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

.hero-ultra-copy,
.hero-ultra-visual,
.demo-visual,
.demo-copy {
  min-width: 0;
}

.hero-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero--ultra-v2 h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #f8fbff;
  animation: fadeSlideUp 950ms var(--ease-premium) both;
  animation-delay: 90ms;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 44%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtext,
.lead {
  color: #94a3b8;
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-subtext {
  max-width: 620px;
  margin: 0 0 28px;
  color: #9fb0c9;
  animation: fadeSlideUp 950ms var(--ease-premium) both;
  animation-delay: 170ms;
}

.hero-cta,
.cta-row,
.cta-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-cta {
  animation: fadeSlideUp 950ms var(--ease-premium) both;
  animation-delay: 250ms;
}

.hero-secondary {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 700;
}

.hero-secondary:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  animation: fadeSlideUp 950ms var(--ease-premium) both;
  animation-delay: 330ms;
}

.hero-trust--strong span,
.trust-items span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.83rem;
  font-weight: 600;
}

.hero-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  max-width: 540px;
  animation: fadeSlideUp 1000ms var(--ease-premium) both;
  animation-delay: 410ms;
}

.hero-proof-card {
  position: relative;
  overflow: hidden;
  padding: 15px 14px 13px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.72), rgba(11, 18, 34, 0.56));
}

.hero-proof-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 900ms var(--ease-premium);
}

.hero-proof-card:hover {
  transform: var(--lift-md);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
}

.hero-proof-card:hover::after {
  transform: translateX(120%);
}

.hero-proof-card strong {
  display: block;
  color: #f8fbff;
  margin-bottom: 4px;
}

.hero-proof-card small {
  display: block;
  color: #94a3b8;
  line-height: 1.45;
}

.hero-preview-switcher {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 18px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
}

.hero-preview-tab {
  position: relative;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #94a3b8;
  font-weight: 700;
  cursor: pointer;
}

.hero-preview-tab:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.hero-preview-tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.95));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.hero-preview-tab.is-active::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.hero-card-shell {
  position: relative;
  width: min(100%, 520px);
  transform-style: preserve-3d;
  perspective: 1200px;
}

.hero-card-main {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.96), rgba(11, 18, 34, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 30px 80px rgba(2, 6, 23, 0.38),
    0 8px 28px rgba(2, 6, 23, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  animation: heroCardEnter 1s var(--ease-premium) both;
  will-change: transform, box-shadow;
}

.hero-card-main:hover {
  transform: translateY(-4px) rotateX(1.3deg) rotateY(-1.3deg);
  box-shadow:
    0 42px 100px rgba(2, 6, 23, 0.44),
    0 14px 34px rgba(2, 6, 23, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-card-main.hero-card-swap {
  animation: heroCardSwap 520ms var(--ease-premium);
}

.hero-card-cover {
  position: relative;
  height: 148px;
  overflow: hidden;
}

.hero-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  transform: translateX(-120%);
  animation: heroCoverSweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

.hero-card-theme-founder .hero-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #2563eb, #0ea5e9);
}

.hero-card-theme-consultant .hero-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #7c3aed, #c026d3);
}

.hero-card-theme-sales .hero-card-cover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #0f766e, #14b8a6);
}

.hero-card-cover-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow:
    0 10px 24px rgba(2, 6, 23, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-card-avatar-wrap {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  padding: 0 24px;
}

.hero-card-avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 18px 42px rgba(2, 6, 23, 0.22),
    0 0 0 6px rgba(255, 255, 255, 0.03);
}

.hero-card-main:hover .hero-card-avatar {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 22px 48px rgba(2, 6, 23, 0.28),
    0 0 0 8px rgba(255, 255, 255, 0.04);
}

.hero-card-avatar span {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-card-body {
  padding: 16px 24px 24px;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #cfe0ff;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-card-top h3 {
  margin: 0 0 6px;
  color: #f8fbff;
  font-size: 1.38rem;
  line-height: 1.2;
}

.hero-card-top > p {
  margin: 0;
  color: #cbd5e1;
}

.hero-card-tagline {
  margin-top: 12px !important;
  color: #94a3b8 !important;
  line-height: 1.7 !important;
}

.hero-card-actions,
.hero-card-mini-links,
.hero-card-service-strip,
.public-demo-actions,
.public-demo-links,
.trust-items,
.public-actions,
.public-quick-links,
.public-social-list,
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-card-actions {
  margin-top: 16px;
}

.hero-card-mini-links {
  margin-top: 14px;
}

.hero-card-service-strip {
  margin-top: 16px;
}

.hero-card-actions span,
.hero-card-mini-links span,
.hero-card-service-strip span,
.public-demo-actions span,
.public-demo-links span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-card-actions span:hover,
.hero-card-mini-links span:hover,
.hero-card-service-strip span:hover,
.public-demo-actions span:hover,
.public-demo-links span:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.28);
}

.hero-card-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-feature-pill {
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.hero-feature-pill strong {
  display: block;
  color: #f8fbff;
  margin-bottom: 4px;
}

.hero-feature-pill small {
  display: block;
  color: #94a3b8;
  line-height: 1.4;
}

.hero-card-footer-note {
  margin-top: 16px;
  color: #93c5fd;
  font-weight: 700;
  opacity: 0.86;
}

.hero-card-main:hover .hero-card-footer-note {
  opacity: 1;
}

.hero-float {
  position: absolute;
  z-index: 3;
  min-width: 126px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
  box-shadow:
    0 20px 44px rgba(2, 6, 23, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  will-change: transform;
}

.hero-float strong {
  display: block;
  color: #f8fbff;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.hero-float small {
  display: block;
  color: #94a3b8;
  line-height: 1.4;
}

.hero-float-qr {
  top: 86px;
  right: -26px;
  animation: heroTileFloat1 7.5s ease-in-out infinite;
}

.hero-float-stats {
  right: -36px;
  bottom: 26px;
  animation: heroTileFloat2 9s ease-in-out infinite;
}

.hero-float-proof {
  left: -24px;
  bottom: 92px;
  animation: heroTileFloat3 8.3s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  width: 220px;
  height: 220px;
  left: -30px;
  bottom: 60px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14), transparent 70%);
  animation: orbFloatC 13s ease-in-out infinite;
}

.hero-glow-2 {
  width: 260px;
  height: 260px;
  right: -50px;
  bottom: 10px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 72%);
  animation: orbFloatD 15s ease-in-out infinite;
}

.trust-strip {
  padding: 18px 0;
  background: #0a1020;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
}

.section-kicker {
  margin: 0;
  color: #cbd5e1;
  font-weight: 600;
}

.trust-strip-inner,
.hero-trust {
  transition: transform var(--dur-med) var(--ease-premium);
}

.trust-items span:hover,
.hero-trust span:hover {
  transform: translateY(-2px);
  color: #e2e8f0;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 48px;
  align-items: center;
}

.demo-browser {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.96), rgba(11, 18, 34, 0.96));
  box-shadow: 0 26px 64px rgba(2, 6, 23, 0.3);
}

.demo-browser:hover,
.public-demo-card:hover {
  transform: translateY(-6px);
}

.demo-browser-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.demo-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.demo-browser-body,
.public-demo-body {
  padding: 20px 18px 18px;
}

.public-demo-card {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow:
    0 26px 64px rgba(2, 6, 23, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.public-demo-cover {
  height: 120px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.public-demo-avatar {
  width: 72px;
  height: 72px;
  margin-top: -36px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.24);
}

.public-demo-kicker {
  display: inline-block;
  margin: 12px 0 8px;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-demo-content h3 {
  margin: 0 0 4px;
  color: #fff;
}

.public-demo-content > p,
.demo-point p,
.cta-panel-copy p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

.public-demo-links {
  margin-top: 12px;
}

.public-demo-leadbox {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.public-demo-leadbox strong,
.demo-point strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}

.public-demo-leadbox small {
  display: block;
  color: #94a3b8;
  line-height: 1.6;
}

.demo-points {
  display: grid;
  gap: 14px;
  margin: 22px 0 26px;
}

.demo-point {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.outcome-grid,
.feature-buckets,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.outcome-card,
.feature-bucket,
.usecase-card,
.step-card,
.faq-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.78), rgba(11, 18, 34, 0.62));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 14px 34px rgba(2, 6, 23, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.faq-card::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 18px;
  color: #7fb8ff;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.7;
}

.outcome-card::before,
.feature-bucket::before,
.usecase-card::before,
.step-card::before,
.faq-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-premium);
  pointer-events: none;
}

.outcome-card:hover,
.feature-bucket:hover,
.usecase-card:hover,
.step-card:hover,
.faq-card:hover {
  transform: var(--lift-md);
  box-shadow:
    0 22px 56px rgba(2, 6, 23, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.outcome-card:hover::before,
.feature-bucket:hover::before,
.usecase-card:hover::before,
.step-card:hover::before,
.faq-card:hover::before {
  opacity: 1;
}

.outcome-icon,
.feature-icon {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.outcome-card h3,
.feature-bucket h3,
.usecase-card h3,
.step-card h3,
.faq-card h3 {
  margin: 0 0 10px;
  color: #fff;
  padding-right: 28px;
}

.outcome-card p,
.feature-bucket-list,
.usecase-card p,
.step-card p,
.faq-card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

.feature-bucket-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.feature-bucket-list {
  padding-left: 18px;
}

.feature-bucket-list li + li {
  margin-top: 8px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #dbeafe;
  font-weight: 800;
}

.comparison-table {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.78), rgba(11, 18, 34, 0.62));
  box-shadow:
    0 20px 50px rgba(2, 6, 23, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.1fr;
}

.comparison-row > div {
  padding: 18px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
}

.comparison-row--head > div {
  border-top: 0;
  background: rgba(255, 255, 255, 0.02);
  color: #f8fbff;
  font-weight: 800;
}

.comparison-row:hover > div {
  background: rgba(255, 255, 255, 0.018);
}

.comparison-row > div:last-child {
  color: #dbeafe;
  font-weight: 700;
}


.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.cta-panel--strong {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 50%, rgba(96, 165, 250, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(20, 34, 62, 0.96), rgba(11, 18, 34, 0.96));
  box-shadow:
    0 30px 72px rgba(2, 6, 23, 0.24),
    0 8px 28px rgba(37, 99, 235, 0.06);
}

.cta-panel--strong::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.07), transparent 28%);
  pointer-events: none;
}

.cta-panel-copy h2 {
  margin: 0 0 10px;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.cta-micro-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}


.cta-micro-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
}

/* =========================================================
   REVEAL ANIMATION SYSTEM
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 700ms var(--ease-premium),
    transform 700ms var(--ease-premium);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal--left {
  transform: translateX(-28px) translateY(8px);
}

.reveal--left.is-visible {
  transform: translateX(0) translateY(0);
}

.reveal--right {
  transform: translateX(28px) translateY(8px);
}

.reveal--right.is-visible {
  transform: translateX(0) translateY(0);
}

.reveal--zoom {
  transform: scale(0.94);
}

.reveal--zoom.is-visible {
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* =========================================================
   HERO BACKGROUND MOTION
========================================================= */

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.9;
  z-index: -1;
}

.hero-bg::before {
  width: 380px;
  height: 380px;
  top: -60px;
  left: -80px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
  animation: orbFloatA 11s ease-in-out infinite;
}

.hero-bg::after {
  width: 320px;
  height: 320px;
  right: -40px;
  top: 80px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 70%);
  animation: orbFloatB 14s ease-in-out infinite;
}

.hero-eyebrow,
.hero-subtext,
.hero-trust,
.hero-proof-row,
.hero-cta {
  will-change: transform, opacity;
}

.hero-eyebrow {
  animation: fadeSlideUp 800ms var(--ease-premium) both;
}

[data-parallax] {
  transition: transform 120ms linear;
  will-change: transform;
}

/* =========================================================
   KEYFRAMES
========================================================= */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroCardEnter {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97) rotateX(4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

@keyframes heroCardSwap {
  0% {
    opacity: 0.82;
    transform: translateY(6px) scale(0.988);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroCoverSweep {
  0%,
  70%,
  100% {
    transform: translateX(-120%);
  }
  84% {
    transform: translateX(120%);
  }
}

@keyframes heroTileFloat1 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(2px); }
}

@keyframes heroTileFloat2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(8px) translateX(-3px); }
}

@keyframes heroTileFloat3 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-8px) translateX(3px); }
}

@keyframes orbFloatA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(22px, 18px, 0) scale(1.04); }
}

@keyframes orbFloatB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, 20px, 0) scale(1.06); }
}

@keyframes orbFloatC {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(10px, -16px, 0); }
}

@keyframes orbFloatD {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, 12px, 0); }
}

/* =========================================================
   AUTH PAGES
========================================================= */

.auth-section {
  padding: 72px 0 96px;
}

.auth-wrap {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.auth-card {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.82), rgba(11, 18, 34, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.22);
}

.auth-card h1,
.auth-card h2 {
  margin: 0 0 22px;
  color: #f8fbff;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.auth-card p {
  color: #94a3b8;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form p {
  margin: 0;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fbff;
  outline: none;
  box-shadow: none;
}

.auth-form textarea {
  min-height: 120px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-form ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: #94a3b8;
}

.auth-form .helptext {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.6;
}

.auth-form .errorlist {
  margin: 8px 0 0;
  padding: 10px 12px;
  list-style: none;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #fecaca;
  font-size: 0.9rem;
}

.auth-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.auth-actions .button,
.auth-actions button,
.auth-form button[type="submit"] {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.auth-alt-link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.auth-alt-link:hover {
  color: #ffffff;
}

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #eaf2ff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-form .form-group input,
.auth-form .form-group select,
.auth-form .form-group textarea {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.78), rgba(24, 36, 61, 0.82));
  color: #f8fbff;
  font-size: 0.98rem;
  line-height: 1.4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 1px 0 rgba(255, 255, 255, 0.015);
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium),
    background-color var(--dur-fast) var(--ease-premium);
}

.auth-form .form-group input:hover,
.auth-form .form-group select:hover,
.auth-form .form-group textarea:hover {
  border-color: rgba(148, 163, 184, 0.22);
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus,
.auth-form .form-group textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.16),
    0 14px 30px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  background: linear-gradient(90deg, rgba(31, 44, 72, 0.92), rgba(26, 38, 66, 0.96));
}

.auth-form .has-error input,
.auth-form .has-error select,
.auth-form .has-error textarea {
  border-color: rgba(248, 113, 113, 0.72);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.auth-form .field-error {
  margin-top: 8px;
  color: #fca5a5;
  font-size: 0.85rem;
  line-height: 1.45;
}

.auth-form .form-hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.6);
}

.auth-form .errorlist {
  display: none;
}

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #eaf2ff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-form .form-group input,
.auth-form .form-group select,
.auth-form .form-group textarea {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.78), rgba(24, 36, 61, 0.82));
  color: #f8fbff;
  font-size: 0.98rem;
  line-height: 1.4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 1px 0 rgba(255, 255, 255, 0.015);
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium),
    background-color var(--dur-fast) var(--ease-premium);
}

.auth-form .form-group input:hover,
.auth-form .form-group select:hover,
.auth-form .form-group textarea:hover {
  border-color: rgba(148, 163, 184, 0.22);
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus,
.auth-form .form-group textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.16),
    0 14px 30px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  background: linear-gradient(90deg, rgba(31, 44, 72, 0.92), rgba(26, 38, 66, 0.96));
}

.auth-form .has-error input,
.auth-form .has-error select,
.auth-form .has-error textarea {
  border-color: rgba(248, 113, 113, 0.72);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.auth-form .field-error {
  margin-top: 8px;
  color: #fca5a5;
  font-size: 0.85rem;
  line-height: 1.45;
}

.auth-form .form-hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.6);
}

.auth-form .errorlist {
  display: none;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: transparent;
}

.site-footer-brand {
  max-width: 420px;
}

.site-footer-logo {
  display: inline-block;
  margin-bottom: 10px;
  color: #f8fbff;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer-brand p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

.site-footer a,
.site-footer-nav a {
  color: #94a3b8;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer-nav a:hover {
  color: #ffffff;
}

.site-footer a:visited,
.site-footer-nav a:visited {
  color: #94a3b8;
}

.site-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.site-footer-nav a {
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer-nav a:hover {
  transform: translateY(-1px);
}

/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-section {
  padding: 72px 0 96px;
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-head-copy {
  min-width: 0;
}

.dashboard-head h1 {
  margin: 0 0 10px;
  color: #f8fbff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.dashboard-head p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

.dashboard-head-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  justify-content: flex-end;
}

.dashboard-mvp-note {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 360px;
  padding: 0.875rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.dashboard-mvp-note strong {
  font-size: 0.95rem;
  line-height: 1.35;
  color: #fff;
}

.dashboard-mvp-note span {
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}


.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-card {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.82), rgba(11, 18, 34, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 20px 56px rgba(2, 6, 23, 0.16);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.22);
  border-color: rgba(96, 165, 250, 0.18);
}

.dashboard-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dashboard-card-top > div {
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-card-top h3 {
  margin: 0 0 8px;
  color: #f8fbff;
  font-size: 1.35rem;
  line-height: 1.2;
  word-break: break-word;
}

.dashboard-card-top p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
  word-break: break-word;
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #dbeafe;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard-stat {
  min-width: 0;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.dashboard-stat strong {
  display: block;
  color: #f8fbff;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dashboard-stat span {
  display: block;
  color: #94a3b8;
  font-size: 0.82rem;
}

.dashboard-linkbox {
  margin-bottom: 20px;
}


.dashboard-linkbox label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.92rem;
}


.dashboard-linkrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.dashboard-linkrow input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fbff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-copy-btn {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fbff;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.dashboard-copy-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(96, 165, 250, 0.18);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-actions .button {
  min-width: 88px;
  justify-content: center;
}

.dashboard-empty {
  padding: 40px 28px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.82), rgba(11, 18, 34, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.dashboard-empty h2 {
  margin: 0 0 10px;
  color: #f8fbff;
}

.dashboard-empty p {
  margin: 0 0 20px;
  color: #94a3b8;
}


/* =========================================================
   PUBLIC CARD PAGE
========================================================= */

.public-wrap {
  padding: 2px 0 96px;
}

.public-container,
.narrow-card {
  width: min(560px, calc(100% - 24px));
  margin: 0 auto;
}

.public-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.98), rgba(11, 18, 34, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 34px 80px rgba(2, 6, 23, 0.34),
    0 8px 28px rgba(2, 6, 23, 0.18);
  transition:
    transform var(--dur-med) var(--ease-premium),
    box-shadow var(--dur-med) var(--ease-premium);
}

.public-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.24), transparent 35%),
    linear-gradient(135deg, rgba(15, 23, 42, 1), rgba(30, 41, 59, 1));
}

.public-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-cover-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 24px rgba(2, 6, 23, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.public-avatar-wrap {
  position: relative;
  z-index: 3;
  padding: 0 24px;
  margin-top: -42px;
  margin-bottom: 10px;
}

.public-avatar,
.public-avatar--placeholder,
#preview-avatar-image,
#preview-avatar {
  width: 84px;
  height: 84px;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 18px 42px rgba(2, 6, 23, 0.22),
    0 0 0 4px #ffffff;
}

.public-avatar,
#preview-avatar-image {
  object-fit: cover;
  object-position: center;
}

.public-avatar--placeholder,
#preview-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
}

.public-avatar--placeholder span {
  line-height: 1;
}

.public-body {
  position: relative;
  z-index: 2;
  padding: 0 24px 24px;
}

.public-head {
  margin-top: 0;
}

.public-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #dbeafe;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.public-name {
  margin: 0 0 8px;
  color: #f8fbff;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.public-meta {
  color: #d3dfef;
  font-size: 1rem;
  line-height: 1.5;
}

.public-tagline {
  margin: 14px 0 8px;
  color: #c9d7ea;
  font-size: 1rem;
  line-height: 1.6;
}

.public-bio {
  margin: 0 0 18px;
  color: #9fb0c9;
  font-size: 0.98rem;
  line-height: 1.72;
}

.public-actions,
.public-quick-links,
.public-social-list {
  display: flex;
  flex-wrap: wrap;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
}

.public-btn:hover {
  transform: translateY(-2px);
}

.public-btn--primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.public-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
}

.public-quick-links {
  gap: 14px;
  margin: 12px 0 20px;
}

.public-quick-links a,
.public-social-list a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.public-quick-links a:hover,
.public-social-list a:hover {
  color: #fff;
}

.public-section {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.public-section-title {
  margin-bottom: 10px;
  color: #f8fbff;
  font-size: 1.02rem;
  font-weight: 800;
}

.public-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #dbe7f7;
  font-size: 0.88rem;
  font-weight: 600;
}

.preview-empty {
  color: #9fb0c9;
  font-size: 0.92rem;
  line-height: 1.6;
}

.public-contact-list {
  display: grid;
  gap: 10px;
}

.public-contact-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.public-contact-item span {
  display: block;
  color: #94a3b8;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.public-contact-item strong {
  display: block;
  color: #f8fbff;
  line-height: 1.6;
  word-break: break-word;
}

/* =========================================================
   CARD EDITOR / CARD FORM
========================================================= */

#card-form {
  position: relative;
}

.page-head {
  margin-bottom: 28px;
}

.page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #f8fbff;
  text-wrap: balance;
}

.page-head .helptext {
  max-width: 720px;
  margin: 0;
  color: #9fb0c9;
  font-size: 1.02rem;
  line-height: 1.75;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-errors-global,
.form-errors {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.12);
}

.form-errors-global strong {
  color: #fff1f2;
}

.grid.form-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.card.form-section,
.form-section {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.94), rgba(11, 18, 34, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.13);
  box-shadow:
    0 24px 60px rgba(2, 6, 23, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}


.edit-card-section {
  padding: 56px 0 28px;
}

.editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.editor-main {
  min-width: 0;
  align-self: start;
  max-height: none;
  overflow: visible;
  padding-right: 0;
  scrollbar-gutter: auto;
}

.editor-preview {
  min-width: 0;
  align-self: start;
  scroll-behavior: smooth;
}

.editor-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}


.live-preview-card {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.card.form-section::before,
.form-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.75));
  opacity: 0.72;
}

.live-preview-card::before {
  display: none;
}

.card.form-section:hover,
.form-section:hover,
.live-preview-card:hover {
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow:
    0 30px 72px rgba(2, 6, 23, 0.3),
    0 8px 24px rgba(37, 99, 235, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card.form-section > h3,
.form-section > h3,
.live-preview-head h3 {
  position: relative;
  margin: 0 0 8px;
  padding-left: 2px;
  color: #f8fbff;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.card.form-section > h3::after,
.form-section > h3::after,
.live-preview-head h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.card.form-section > .helptext:first-of-type,
.form-section > .helptext:first-of-type,
.live-preview-head .helptext {
  margin: 0 0 18px;
  color: #9fb0c9;
  font-size: 0.96rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: inline-block;
  margin-bottom: 8px;
  color: #eaf2ff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.helptext {
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.55;
  transition: opacity var(--dur-fast) var(--ease-premium), color var(--dur-fast) var(--ease-premium);
}

.form-group:focus-within .helptext {
  color: rgba(219, 234, 254, 0.96);
}

.form-group input:not([type="checkbox"]):not([type="file"]),
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.78), rgba(24, 36, 61, 0.82));
  color: #f8fbff;
  font-size: 0.98rem;
  line-height: 1.4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 1px 0 rgba(255, 255, 255, 0.015);
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium),
    background-color var(--dur-fast) var(--ease-premium);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:not([type="checkbox"]):not([type="file"])::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.form-group input:not([type="checkbox"]):not([type="file"]):hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: rgba(148, 163, 184, 0.22);
}

.form-group input:not([type="checkbox"]):not([type="file"]):focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.16),
    0 14px 30px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  background: linear-gradient(90deg, rgba(31, 44, 72, 0.92), rgba(26, 38, 66, 0.96));
}

.has-error input:not([type="checkbox"]):not([type="file"]),
.has-error textarea,
.has-error select {
  border-color: rgba(248, 113, 113, 0.72);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.field-error {
  margin-top: 8px;
  color: #fca5a5;
  font-size: 0.85rem;
  line-height: 1.45;
}

.slug-status {
  min-height: 20px;
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.slug-status.checking {
  color: #93c5fd;
  opacity: 0.82;
}

.slug-status.available,
.slug-status.is-valid {
  color: #34d399;
}

.slug-status.taken,
.slug-status.error,
.slug-status.is-invalid {
  color: #f87171;
}

.current-file {
  margin-bottom: 10px;
  color: #9fb0c9;
  font-size: 0.88rem;
}

.current-file-label {
  color: #dce8f8;
  font-weight: 700;
}

.current-file-name {
  color: #b8c7dd;
  word-break: break-all;
}

.file-input-group {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.26);
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.5), rgba(11, 18, 34, 0.42));
  transition:
    border-color var(--dur-med) var(--ease-premium),
    background-color var(--dur-med) var(--ease-premium),
    box-shadow var(--dur-med) var(--ease-premium),
    transform var(--dur-med) var(--ease-premium);
}

.file-input-group:hover,
.form-group:focus-within .file-input-group {
  border-color: rgba(59, 130, 246, 0.55);
  background: linear-gradient(180deg, rgba(24, 38, 68, 0.64), rgba(11, 18, 34, 0.5));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.file-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.14));
  color: #f8fbff;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 22px rgba(2, 6, 23, 0.14);
}

.file-button:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(37, 99, 235, 0.14);
}

.file-name {
  color: #c9d7ea;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-inline-row,
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label {
  margin-top: 12px;
  color: #dbe7f7;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"],
.checkbox-inline-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.formset-item {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(18, 28, 50, 0.72), rgba(11, 18, 34, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 12px 24px rgba(2, 6, 23, 0.12);
}

.formset-item:hover {
  border-color: rgba(96, 165, 250, 0.22);
}

.formset-item-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #dbeafe;
  cursor: grab;
}

.drag-handle:hover {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(37, 99, 235, 0.08);
}

#add-social-link,
#add-service,
.js-remove-formset-item,
.button.small {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
}

.form-footer {
  position: sticky;
  bottom: 14px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.9), rgba(11, 18, 34, 0.88));
  backdrop-filter: blur(14px);
  box-shadow:
    0 18px 42px rgba(2, 6, 23, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.form-footer .helptext {
  margin: 0;
}

.form-footer .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.form-footer-copy .helptext {
  margin: 0;
}


.editor-preview .public-card {
  transform: scale(0.92);
  transform-origin: top center;
}


.form-footer .button,
.form-footer button {
  min-height: 46px;
}

.live-preview-head {
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.live-preview-panel {
  width: 100%;
}

.live-preview-body {
  padding: 18px;
  overflow: visible;
}


.live-preview-card .narrow-card,
.live-preview-panel.narrow-card,
.container.narrow-card.live-preview-panel {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

#open-public-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #f8fbff;
  text-decoration: none;
  font-weight: 700;
}

#open-public-preview:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(37, 99, 235, 0.08);
}

#open-public-preview.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1080px) {
  .form-grid,
  .grid.form-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .editor-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .editor-main {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .editor-preview {
    position: static;
  }

  .live-preview-card {
    max-height: none;
  }

  .live-preview-body {
    overflow: visible;
    padding: 18px;
  }

  .form-footer {
      /* position: static; */
      display: none;
  }

}

@media (max-width: 768px) {
  .section {
    padding: 42px 0 64px;
  }

  .page-head {
    margin-bottom: 22px;
  }

  .page-head h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .card.form-section,
  .form-section,
  .live-preview-card {
    padding: 20px 18px 18px;
    border-radius: 18px;
  }

  .card.form-section::before,
  .form-section::before {
    top: 14px;
    bottom: 14px;
  }

  .form-group input:not([type="checkbox"]):not([type="file"]),
  .form-group textarea,
  .form-group select {
    min-height: 52px;
    border-radius: 14px;
  }

  .form-footer {
    bottom: 10px;
    padding: 14px;
  }

  .public-avatar-wrap {
    padding: 0 18px;
    margin-top: -38px;
  }

  .public-avatar,
  .public-avatar--placeholder,
  #preview-avatar-image,
  #preview-avatar {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }

  .public-body {
    padding: 0 18px 18px;
  }

  .row-between,
  .live-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-cropper-modal {
    padding: 12px;
  }

  .image-cropper-dialog {
    width: 100%;
    height: 96vh;
    max-height: 96vh;
    padding: 16px;
    border-radius: 18px;
  }

  .cropper-dialog--cover .image-cropper-stage--cover {
    max-height: calc(96vh - 210px);
  }

  .cropper-zoom-control {
    flex-wrap: wrap;
  }

  .cropper-zoom-control input[type="range"] {
    width: 100%;
  }

  .image-cropper-actions .button,
  .cropper-actions .button {
    width: 100%;
  }

  .nav-user-name {
    display: none;
  }

  .nav-user-trigger {
    padding-right: 8px;
  }

  .nav-user-dropdown {
    right: 0;
    min-width: 180px;
  }

  .dashboard-section {
    padding: 40px 0 68px;
  }

  .dashboard-head {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
  }

  .dashboard-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-mvp-note {
    max-width: 100%;
  }

  .dashboard-head-actions .button {
    width: 100%;
    min-height: 48px;
  }

  .dashboard-head h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .dashboard-card {
    padding: 18px;
    border-radius: 18px;
  }

  .dashboard-card-top {
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-card-top h3 {
    font-size: 1.18rem;
    line-height: 1.2;
  }

  .dashboard-card-top p {
    font-size: 0.96rem;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-stat {
    padding: 13px 12px;
    border-radius: 14px;
  }

  .dashboard-linkrow {
    grid-template-columns: 1fr;
  }

  .dashboard-linkrow input,
  .dashboard-copy-btn {
    width: 100%;
  }

  .dashboard-actions {
    flex-direction: column;
  }

  .dashboard-actions .button {
    width: 100%;
    min-width: 0;
  }

  .editor-shell {
  grid-template-columns: 1fr;
  gap: 18px;
}

.editor-preview {
  position: static;
  max-height: none;
  width: 100%;
}

.live-preview-card {
  max-height: none;
  overflow: hidden;
}

.live-preview-body {
  padding: 14px;
  overflow: hidden;
}

.live-preview-card .narrow-card,
.live-preview-panel.narrow-card,
.container.narrow-card.live-preview-panel {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.site-footer {
  position: relative;
  z-index: 1;
}

}

@media (max-width: 640px) {
  .dashboard-section {
    padding: 48px 0 72px;
  }

  .dashboard-card {
    padding: 18px;
  }

  .dashboard-stats,
  .dashboard-linkrow {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    flex-direction: column;
  }

  .dashboard-actions .button,
  .public-btn {
    width: 100%;
    justify-content: center;
  }

  .public-wrap {
    padding: 2px 0 72px;
  }

  .public-body {
    padding: 14px 18px 22px;
  }

  .public-avatar-wrap {
    padding: 0 18px;
  }

  .public-avatar,
  .public-avatar--placeholder {
    width: 82px;
    height: 82px;
    border-radius: 22px;
  }

  .public-actions {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container,
  .site-header-inner,
  .site-footer-inner,
  .dashboard-wrap {
    width: min(100%, calc(100% - 16px));
  }

  .form-grid {
    gap: 18px;
  }

  .file-input-group {
    align-items: flex-start;
  }

  .public-actions {
    gap: 8px;
  }

  .public-btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .public-quick-links {
    gap: 12px;
  }

  .auth-section {
    padding: 48px 0 72px;
  }

  .auth-card {
    padding: 22px;
    border-radius: 20px;
  }

  .site-footer {
    padding: 32px 0 44px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-nav {
    gap: 14px;
  }

  .hero-proof-card:hover,
  .outcome-card:hover,
  .feature-bucket:hover,
  .usecase-card:hover,
  .step-card:hover,
  .faq-card:hover {
    transform: translateY(-3px);
  }
}

/* =========================================================
   IMAGE CROPPER MODAL
========================================================= */

.image-cropper-modal {
  position: fixed;
  isolation: isolate;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-cropper-modal.is-open {
  display: flex;
  pointer-events: auto;
}

.image-cropper-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
  z-index: 9998;
}

.image-cropper-dialog {
  position: relative;
  z-index: 9999;
  width: min(92vw, 920px);
  height: min(92vh, 860px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.98), rgba(11, 18, 34, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.34);
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.image-cropper-dialog::-webkit-scrollbar {
  width: 10px;
}

.image-cropper-dialog::-webkit-scrollbar-track {
  background: transparent;
}

.image-cropper-dialog::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.image-cropper-dialog::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.55);
}

.image-cropper-dialog-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cropper-subtitle,
.cropper-hint {
  color: #94a3b8;
}

.cropper-stage-wrap,
.image-cropper-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.cropper-stage {
  min-height: 360px;
  height: 100%;
}

.image-cropper-stage--cover {
  min-height: 0;
  height: 100%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cropper-image,
#cover-cropper-preview,
.image-cropper-stage--cover img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.cropper-toolbar,
.image-cropper-actions,
.cropper-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.image-cropper-actions,
.cropper-actions {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.92), rgba(11, 18, 34, 0.96));
}

.cropper-actions .button,
.image-cropper-actions .button {
  min-height: 44px;
}

.cropper-dialog--cover .image-cropper-stage--cover {
  max-height: calc(92vh - 220px);
}

.cropper-zoom-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cropper-zoom-control input[type="range"] {
  width: min(240px, 42vw);
}

.cropper-container,
.cropper-canvas,
.cropper-view-box {
  max-width: 100%;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {


  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--zoom {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-parallax] {
    transform: none !important;
  }
}


/* =========================================================
   NAV BUTTON (Logout - styled like link)
========================================================= */

.nav-link-button {
  background: none;
  border: none;
  outline: none;

  color: rgba(226, 232, 240, 0.85); /* same as nav links */
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;
  padding: 0;
  margin: 0;

  display: inline-flex;
  align-items: center;

  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

.nav-link-button:hover {
  color: #ffffff;
  opacity: 1;
}

.nav-link-button:active {
  opacity: 0.7;
}


.nav-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}



/* =========================================================
   HEADER USER MENU
========================================================= */

.nav-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-user-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 14px;
}

.nav-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px 0 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    background-color var(--dur-fast) var(--ease-premium),
    transform var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.nav-user-trigger:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.14);
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.nav-user-name {
  color: #e2e8f0;
  line-height: 1;
}

.nav-user-caret {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.96), rgba(11, 18, 34, 0.96));
  box-shadow:
    0 24px 60px rgba(2, 6, 23, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  z-index: 1200;
  transition:
    opacity var(--dur-fast) var(--ease-premium),
    transform var(--dur-fast) var(--ease-premium),
    visibility var(--dur-fast) var(--ease-premium);
}

.nav-user-menu:hover .nav-user-dropdown,
.nav-user-menu:focus-within .nav-user-dropdown,
.nav-user-menu.is-open .nav-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-user-menu.is-open .nav-user-trigger {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.22);
}

.nav-user-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    background-color var(--dur-fast) var(--ease-premium),
    color var(--dur-fast) var(--ease-premium),
    transform var(--dur-fast) var(--ease-premium);
}

.nav-user-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-user-logout-form {
  margin: 0;
}

.nav-user-item--button {
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}



/* =========================================================
   DASHBOARD RESPONSIVE
========================================================= */

@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 480px) {


  .dashboard-wrap {
    width: min(100%, calc(100% - 16px));
  }

  .dashboard-section {
    padding: 32px 0 56px;
  }

  .dashboard-head {
    gap: 16px;
  }

  .dashboard-card {
    padding: 16px;
  }

  .dashboard-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-badge {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .dashboard-card-top h3 {
    font-size: 1.12rem;
  }

  .dashboard-card-top p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .dashboard-stat strong {
    font-size: 0.98rem;
  }

  .dashboard-linkbox label {
    font-size: 0.9rem;
  }

  .dashboard-linkrow input {
    min-height: 44px;
    font-size: 0.92rem;
  }

  .dashboard-copy-btn,
  .dashboard-actions .button {
    min-height: 44px;
  }

  .card-onboarding-checklist__item {
    width: calc(50% - 0.25rem);
    justify-content: center;
  }

}





/* =========================================================
   HOME PAGE MOBILE / TABLET FIXES
   Add near end of style.css
========================================================= */

/* -------------------------
   <= 1100px
------------------------- */
@media (max-width: 1100px) {
  .hero-ultra-grid {
    gap: 34px;
    align-items: start;
  }

  .demo-grid {
    gap: 32px;
  }

  .hero-card-shell {
    width: min(100%, 440px);
  }

  .hero-float-qr {
    right: -10px;
  }

  .hero-float-stats {
    right: -14px;
  }

  .hero-float-proof {
    left: -12px;
  }
}

/* -------------------------
   <= 900px
------------------------- */
@media (max-width: 900px) {
  .hero-ultra-grid,
  .demo-grid,
  .outcome-grid,
  .feature-buckets,
  .usecase-grid,
  .steps-grid,
  .faq-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .comparison-row {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .hero-ultra-copy,
  .hero-ultra-visual,
  .demo-copy,
  .demo-visual {
    width: 100%;
    max-width: 100%;
  }

  .hero-ultra-visual,
  .demo-visual {
    display: flex;
    justify-content: center;
  }

  .hero-card-shell {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .hero-proof-row {
    max-width: 100%;
  }

  .trust-strip-inner {
    justify-content: flex-start;
  }

  .cta-panel {
    gap: 22px;
  }

  .cta-panel-actions {
    justify-content: flex-start;
  }
}

/* -------------------------
   <= 768px
------------------------- */
@media (max-width: 768px) {
  .hero--ultra-v2 {
    padding: 32px 0 40px;
  }

  .hero-ultra-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .hero-ultra-copy {
    order: 1;
  }

  .hero-ultra-visual {
    order: 2;
    display: flex;
    justify-content: center;
  }

  .hero--ultra-v2 h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .hero-subtext,
  .lead {
    font-size: 0.97rem;
    line-height: 1.68;
  }

  .hero-subtext {
    margin-bottom: 18px;
    max-width: 100%;
  }

  .hero-cta,
  .cta-row,
  .cta-panel-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-cta .button,
  .hero-cta .hero-primary,
  .hero-cta .hero-secondary,
  .cta-row .button,
  .cta-panel-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
  }

  .hero-trust {
    gap: 8px;
    margin-top: 14px;
  }

  .hero-trust--strong span,
  .trust-items span {
    min-height: 30px;
    padding: 4px 9px;
    font-size: 0.76rem;
  }

  .hero-proof-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .hero-proof-card {
    padding: 14px 13px 12px;
    border-radius: 16px;
  }

  .hero-preview-switcher {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    margin-bottom: 14px;
  }

  .hero-preview-tab {
    flex: 1 1 100px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .hero-card-shell {
    width: min(100%, 340px);
  }

  .hero-card-main {
    transform: none !important;
  }

  .hero-card-cover {
    height: 118px;
  }

  .hero-card-avatar-wrap {
    margin-top: -34px;
    padding: 0 18px;
  }

  .hero-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .hero-card-body {
    padding: 14px 18px 18px;
  }

  .hero-card-top h3 {
    font-size: 1.14rem;
    line-height: 1.14;
  }

  .hero-card-top > p,
  .hero-card-tagline {
    font-size: 0.9rem;
    line-height: 1.55 !important;
  }

  .hero-card-actions,
  .hero-card-mini-links,
  .hero-card-service-strip,
  .public-demo-actions,
  .public-demo-links {
    gap: 6px;
  }

  .hero-card-actions span,
  .hero-card-mini-links span,
  .hero-card-service-strip span,
  .public-demo-actions span,
  .public-demo-links span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.74rem;
    border-radius: 10px;
  }

  .hero-card-features {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .hero-feature-pill {
    text-align: left;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .hero-card-footer-note {
    margin-top: 14px;
    font-size: 0.85rem;
  }

  .hero-float-qr,
  .hero-float-stats,
  .hero-float-proof,
  .hero-glow-1,
  .hero-glow-2 {
    display: none !important;
  }

  .trust-strip {
    padding: 16px 0;
  }

  .trust-strip-inner {
    gap: 12px;
    justify-content: flex-start;
  }

  .section-kicker {
    width: 100%;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .demo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .demo-browser {
    border-radius: 20px;
  }

  .demo-browser-body,
  .public-demo-body {
    padding: 16px 14px 14px;
  }

  .public-demo-cover {
    height: 104px;
  }

  .public-demo-avatar {
    width: 64px;
    height: 64px;
    margin-top: -32px;
    border-radius: 18px;
  }

  .public-demo-content h3 {
    font-size: 1.08rem;
    line-height: 1.18;
  }

  .demo-point + .demo-point {
    margin-top: 14px;
  }

  .outcome-grid,
  .feature-buckets,
  .usecase-grid,
  .steps-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .outcome-card,
  .feature-bucket,
  .usecase-card,
  .step-card,
  .faq-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .feature-bucket-list {
    padding-left: 18px;
  }

  .comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
  }

  .comparison-row {
    min-width: 640px;
  }

  .comparison-row > div {
    padding: 14px 14px;
    font-size: 0.92rem;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .cta-micro-trust {
    gap: 6px;
  }

  .cta-micro-trust span {
    min-height: 30px;
    padding: 4px 9px;
    font-size: 0.75rem;
  }
}

/* -------------------------
   <= 520px
------------------------- */
@media (max-width: 520px) {
  .hero--ultra-v2 {
    padding: 24px 0 32px;
  }

  .hero-eyebrow,
  .eyebrow {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.72rem;
    margin-bottom: 14px;
  }

  .hero--ultra-v2 h1 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
    line-height: 0.97;
  }

  .hero-subtext,
  .lead {
    font-size: 0.93rem;
    line-height: 1.62;
  }

  .hero-preview-switcher {
    margin-bottom: 12px;
  }

  .hero-preview-tab {
    flex: 1 1 calc(50% - 6px);
    font-size: 0.78rem;
  }

  .hero-card-shell {
    width: min(100%, 300px);
  }

  .hero-card-cover {
    height: 98px;
  }

  .hero-card-avatar-wrap {
    margin-top: -30px;
    padding: 0 14px;
  }

  .hero-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .hero-card-avatar span {
    font-size: 1rem;
  }

  .hero-card-body {
    padding: 12px 14px 16px;
  }

  .hero-card-badge {
    margin-bottom: 10px;
    font-size: 0.7rem;
  }

  .hero-card-top h3 {
    font-size: 1rem;
  }

  .hero-card-top > p,
  .hero-card-tagline {
    font-size: 0.84rem;
    line-height: 1.5 !important;
  }

  .hero-card-actions span,
  .hero-card-mini-links span,
  .hero-card-service-strip span,
  .public-demo-actions span,
  .public-demo-links span {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  .hero-feature-pill strong {
    font-size: 0.88rem;
  }

  .hero-feature-pill small {
    font-size: 0.74rem;
  }

  .trust-strip {
    padding: 14px 0;
  }

  .section-kicker {
    font-size: 0.86rem;
  }

  .trust-items {
    gap: 6px;
  }

  .trust-items span {
    font-size: 0.72rem;
  }

  .demo-browser {
    border-radius: 18px;
  }

  .demo-browser-bar {
    padding: 12px 14px;
  }

  .demo-browser-body,
  .public-demo-body {
    padding: 14px 12px 12px;
  }

  .public-demo-cover {
    height: 92px;
  }

  .public-demo-avatar {
    width: 56px;
    height: 56px;
    margin-top: -28px;
    border-radius: 16px;
  }

  .public-demo-kicker {
    font-size: 0.72rem;
    margin: 10px 0 8px;
  }

  .public-demo-content h3 {
    font-size: 1rem;
  }

  .section-head--center h2,
  .demo-copy h2,
  .cta-panel-copy h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
    line-height: 1.08;
  }

  .outcome-card,
  .feature-bucket,
  .usecase-card,
  .step-card,
  .faq-card {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .outcome-icon,
  .feature-icon {
    font-size: 1.15rem;
  }

  .comparison-row {
    min-width: 580px;
  }

  .comparison-row > div {
    padding: 12px 12px;
    font-size: 0.86rem;
  }

  .cta-panel {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .cta-micro-trust span {
    font-size: 0.72rem;
  }
}

/* -------------------------
   <= 380px
------------------------- */
@media (max-width: 380px) {
  .hero--ultra-v2 h1 {
    font-size: clamp(1.7rem, 10.6vw, 2.2rem);
  }

  .hero-preview-tab {
    flex: 1 1 100%;
  }

  .hero-card-shell {
    width: 100%;
    max-width: 280px;
  }

  .comparison-row {
    min-width: 540px;
  }

  .section-head--center h2,
  .demo-copy h2,
  .cta-panel-copy h2 {
    font-size: 1.38rem;
  }
}





/* =========================================================
   HOME HERO MOBILE FIX — EXACT PATCH
========================================================= */


/* extra-small devices */
@media (max-width: 420px) {
  .hero-preview-tab {
    flex: 1 1 100%;
  }

  .hero-card-shell {
    max-width: 292px;
  }

  .hero--ultra-v2 h1 {
    font-size: clamp(1.78rem, 10.2vw, 2.35rem);
  }

  .mobile-editor-actionbar__actions {
    gap: 6px;
  }

  .mobile-editor-actionbar .button,
  .mobile-editor-actionbar a.button,
  .mobile-editor-actionbar button {
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.78rem;
  }
}




.mobile-preview-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-preview-toggle {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 1400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
    cursor: pointer;
  }

  .mobile-preview-toggle:active {
    transform: translateY(1px);
  }
}



html {
  scroll-behavior: smooth;
}



.mobile-editor-actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.28);
}

.mobile-editor-actionbar.card-tour-target {
  border-radius: 18px;
}

.mobile-editor-actionbar.card-tour-target--elevated {
  z-index: 3003;
}



.mobile-editor-actionbar__inner {
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.mobile-editor-actionbar__status {
  font-size: 0.85rem;
  line-height: 1.2;
  color: #fbbf24;
  font-weight: 600;
}

.mobile-editor-actionbar__status.is-saved {
  color: #34d399;
}

.mobile-editor-actionbar__status.is-saving {
  color: #60a5fa;
}

.mobile-editor-actionbar__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-editor-actionbar .button {
  width: 100%;
  justify-content: center;
}

@media (min-width: 992px) {
  .mobile-editor-actionbar {
    display: none;
  }
  body.card-editor-page .form-footer {
    display: none;
  }

  .form-footer {
    display: none !important;
  }
}


.highlight {
  animation: previewHighlight 1s ease;
}

@keyframes previewHighlight {
  0% {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35);
  }
  100% {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
}


.desktop-editor-actionbar {
  position: relative;
  top: auto;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--desktop-actionbar-height);
  padding: 12px 14px;
  margin: 0 0 var(--desktop-actionbar-gap);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.desktop-editor-actionbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-sticky-stack {
  position: sticky;
  top: var(--editor-sticky-top);
  z-index: 80;
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 2px;
  background: var(--color-bg);
}

@media (max-width: 991.98px) {

  body.card-editor-page .edit-card-section {
    padding-bottom: 88px;
  }

  .editor-sticky-stack {
    position: static;
    display: block;
    margin-bottom: 0;
    background: transparent;
  }

    .page-head--editor {
      display: grid;
      gap: 0.75rem;
    }

  .desktop-editor-actionbar {
    display: none;
  }

  .mobile-editor-actionbar__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-editor-actionbar .button,
  .mobile-editor-actionbar a.button,
  .mobile-editor-actionbar button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.84rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
  }
}



.desktop-editor-actionbar__status,
.mobile-editor-actionbar__status {
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 600;
  color: #cbd5e1;
}

.desktop-editor-actionbar__status.is-saving,
.mobile-editor-actionbar__status.is-saving {
  color: #fbbf24;
}

.desktop-editor-actionbar__status.is-saved,
.mobile-editor-actionbar__status.is-saved {
  color: #34d399;
}

.desktop-editor-actionbar__status.is-error,
.mobile-editor-actionbar__status.is-error {
  color: #f87171;
}


@media (min-width: 1024px) {
  .editor-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 28px;
    align-items: start;
  }

  .editor-main,
  .editor-preview,
  #edit-card-section {
    min-width: 0;
    overflow: visible;
  }

  #card-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .editor-preview {
    position: sticky;
    top: calc(
    var(--editor-sticky-top) +
    var(--desktop-actionbar-height) +
    var(--desktop-actionbar-gap)
    );
    padding-top: 0;
  }

  .live-preview-card {
      max-height: calc(100vh - 220px);
      overflow-y: auto;
    }
}



@media (max-width: 768px) {
  /* overall hero layout */
  .hero--ultra-v2 {
    padding: 26px 0 34px;
  }

  .hero-ultra-grid {
    grid-template-columns: 1fr !important;
    gap: 22px;
    align-items: start;
  }

  .hero-ultra-copy,
  .hero-ultra-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-ultra-copy {
    order: 1;
  }

  .hero-ultra-visual {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* heading / copy */
  .hero--ultra-v2 h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
    line-height: 0.98;
    margin-bottom: 14px;
  }

  .hero-subtext,
  .lead {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  /* CTA buttons stack */
  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-cta .button,
  .hero-cta .hero-primary,
  .hero-cta .hero-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 14px;
  }

  /* proof row becomes 1 column */
  .hero-proof-row {
    grid-template-columns: 1fr !important;
    max-width: 100%;
    gap: 10px;
    margin-top: 16px;
  }

  .hero-proof-card {
    padding: 13px 12px;
    border-radius: 16px;
  }

  /* preview switcher wraps properly */
  .hero-preview-switcher {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px;
    margin-bottom: 14px;
  }

  .hero-preview-tab {
    flex: 1 1 calc(50% - 6px);
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  /* card width control */
  .hero-card-shell {
    width: 100% !important;
    max-width: 320px;
    margin: 0 auto;
    perspective: none;
  }

  .hero-card-main {
    width: 100%;
    border-radius: 22px;
    transform: none !important;
  }

  .hero-card-main:hover {
    transform: none !important;
  }

  /* IMPORTANT: force normal vertical card flow on mobile */
  .hero-card-main,
  .hero-card-main > * {
    float: none !important;
  }

  .hero-card-cover,
  .hero-card-avatar-wrap,
  .hero-card-body {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    inset: auto !important;
    width: 100% !important;
    display: block !important;
  }

  .hero-card-cover {
    height: 104px;
  }

  .hero-card-avatar-wrap {
    margin-top: -30px;
    padding: 0 14px;
  }

  .hero-card-avatar {
    width: 62px;
    height: 62px;
    border-radius: 17px;
  }

  .hero-card-avatar span {
    font-size: 1.02rem;
  }

  .hero-card-body {
    padding: 12px 14px 16px;
  }

  .hero-card-badge {
    margin-bottom: 10px;
    font-size: 0.7rem;
  }

  .hero-card-top h3 {
    font-size: 1rem;
    line-height: 1.16;
    margin-bottom: 6px;
  }

  .hero-card-top > p,
  .hero-card-tagline {
    font-size: 0.84rem;
    line-height: 1.5 !important;
  }

  /* chips tighter */
  .hero-card-actions,
  .hero-card-mini-links,
  .hero-card-service-strip {
    gap: 6px;
  }

  .hero-card-actions span,
  .hero-card-mini-links span,
  .hero-card-service-strip span {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.7rem;
    border-radius: 10px;
  }

  /* features stack instead of 3 columns */
  .hero-card-features {
    grid-template-columns: 1fr !important;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-feature-pill {
    text-align: left;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .hero-feature-pill strong {
    font-size: 0.86rem;
  }

  .hero-feature-pill small {
    font-size: 0.74rem;
  }

  .hero-card-footer-note {
    margin-top: 12px;
    font-size: 0.82rem;
  }

  /* remove desktop floating overlays on mobile */
  .hero-float-qr,
  .hero-float-stats,
  .hero-float-proof,
  .hero-glow-1,
  .hero-glow-2 {
    display: none !important;
  }

  /* trust chips */
  .hero-trust {
    gap: 8px;
    margin-top: 14px;
  }

  .hero-trust span {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.74rem;
  }

  /* trust strip below hero */
  .trust-strip {
    padding: 14px 0;
  }

  .trust-strip-inner {
    gap: 12px;
    justify-content: flex-start;
  }

  .section-kicker {
    width: 100%;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .trust-items {
    gap: 6px;
  }

  .trust-items span {
    font-size: 0.72rem;
  }
}


.focus-highlight {
  outline: 2px solid #3b82f6;
  transition: outline 0.3s ease;
}

html.is-soft-reloading body {
  opacity: 0.7;
  transition: opacity 120ms ease;
}

.focus-restored {
  outline: 2px solid rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
  transition: outline 0.2s ease, box-shadow 0.2s ease;
}

.public-contact-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-copy-btn {
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.public-copy-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
}

.public-copy-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.9);
  outline-offset: 2px;
}

.public-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(6px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.public-copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.preview-highlight {
  animation: previewPulse 1s ease;
}

@keyframes previewPulse {
  0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.7); }
  100% { box-shadow: 0 0 0 10px rgba(59,130,246,0); }
}


#preview-services,
#preview-social-links,
#preview-contact-details,
#preview-contact-address-item,
#preview-call,
#preview-whatsapp,
#preview-email,
#preview-website,
#preview-address-link-block {
  scroll-margin-top: 110px;
}



.formset-item.is-newly-added {
  animation: newItemPulse 1.2s ease;
}

.formset-item.card-tour-target--elevated {
  position: relative;
  z-index: 3003;
}

.formset-item.card-tour-target--elevated .button,
.formset-item.card-tour-target--elevated input,
.formset-item.card-tour-target--elevated textarea,
.formset-item.card-tour-target--elevated select,
.formset-item.card-tour-target--elevated label {
  position: relative;
  z-index: 3004;
}

@keyframes newItemPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    border-color: rgba(148, 163, 184, 0.12);
  }
  30% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    border-color: rgba(148, 163, 184, 0.12);
  }
}



.flash-stack {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}

.flash-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.flash-content {
  min-width: 0;
}

.flash-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.flash-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

.flash-success {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.flash-success .flash-icon {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.flash-success .flash-title {
  color: #dcfce7;
}

.flash-error {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
}

.flash-error .flash-icon {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

.flash-error .flash-title {
  color: #fee2e2;
}

.flash-warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.flash-warning .flash-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.flash-warning .flash-title {
  color: #fef3c7;
}

.flash-info {
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.08);
}

.flash-info .flash-icon {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

.flash-info .flash-title {
  color: #dbeafe;
}



.live-field-status {
  margin-top: 8px;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.58);
}

.live-field-status.is-checking {
  color: #93c5fd;
}

.live-field-status.is-success {
  color: #4ade80;
}

.live-field-status.is-error {
  color: #f87171;
}

.live-field-status.is-warning {
  color: #fbbf24;
}

.form-hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.6);
}

.auth-actions button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}



@media (max-width: 991.98px) {
  .mobile-editor-actionbar__inner {
    display: grid;
    gap: 8px;
  }

  .mobile-editor-actionbar__status {
    margin: 0;
  }

  .mobile-editor-actionbar__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-editor-actionbar .button,
  .mobile-editor-actionbar a.button,
  .mobile-editor-actionbar button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.84rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
  }

  .mobile-preview-toggle {
    display: none !important;
  }

  .card-onboarding-checklist {
    display: none;
  }
}


.public-enquiry-alert {
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid transparent;
  position: relative;
  z-index: 2;
}

.public-enquiry-alert.is-success {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.public-enquiry-alert.is-error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}

.public-enquiry-form .field-error {
  display: block;
  margin-top: 0.45rem;
  min-height: 1.2em;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #ffb4b4;
}

.public-enquiry-form .is-invalid {
  border-color: rgba(239, 68, 68, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.public-enquiry-submit[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}


.public-enquiry-section {
  scroll-margin-top: 190px;
}

.public-enquiry-form {
  display: grid;
  gap: 14px;
}


.social-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  margin: 0 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.social-auth-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}

.social-auth-button__icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #f3f4f6;
  color: #111827;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 0 0 16px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  transform: translateY(-50%);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: #ffffff;
  color: #6b7280;
  font-size: 0.9rem;
}


.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  height: 48px;
  padding: 0 16px;

  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);

  background: #ffffff;
  color: #111827;

  font-size: 15px;
  font-weight: 600;
  text-decoration: none;

  transition: all 0.18s ease;
}

.google-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}

.google-btn:active {
  transform: scale(0.98);
}

.google-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-btn__text {
  display: inline-block;
}


.dark .google-btn {
  background: #ffffff;
  color: #111827;
}


.auth-subtitle {
  margin: 10px 0 22px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

.social-auth-button.google-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  margin: 0 0 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.social-auth-button.google-auth-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  border-color: rgba(37, 99, 235, 0.28);
}

.social-auth-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0),
    rgba(148, 163, 184, 0.16) 18%,
    rgba(148, 163, 184, 0.16) 82%,
    rgba(148, 163, 184, 0)
  );
  transform: translateY(-50%);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 18, 43, 0.92);
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(2, 8, 23, 0.22);
}


.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO FIX */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-logo img {
    height: 90px;     /* 🔥 increase for visibility */
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(56, 189, 248, 0.25));
}

/* optional text (if used) */
.site-logo span {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}


.site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-footer-logo img {
    height: 28px;   /* smaller than header */
    width: auto;
    opacity: 0.9;
}

.site-footer-logo span {
    font-weight: 600;
    font-size: 1rem;
    color: #cbd5e1;  /* softer than header */
}



.public-cta-banner {
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(18, 30, 58, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.public-cta-banner p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.public-cta-banner strong {
  color: #ffffff;
  font-weight: 700;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-cta .button {
  height: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.header-cta-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  animation: fadeSlide 1.2s ease forwards;
  white-space: nowrap;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .header-cta-text {
    display: none; /* keep header clean on mobile */
  }
}


.auth-extra-links {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: flex-end;
}

.auth-forgot-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #8fc2ff;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-forgot-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.auth-password-help {
  margin-top: -0.4rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: rgba(214, 228, 255, 0.72);
}



/* =========================================================
   ERROR PAGES
========================================================= */

.ndi-error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 24%),
    linear-gradient(180deg, #0b1222 0%, #0f172a 100%);
}

.ndi-error-card {
  position: relative;
  overflow: hidden;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 36px 28px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(17, 28, 52, 0.9), rgba(11, 18, 34, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.24);
}

.ndi-error-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(37, 99, 235, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.10), transparent 26%);
  pointer-events: none;
}

.ndi-error-visual {
  position: relative;
  margin-bottom: 18px;
}

.ndi-error-code {
  display: block;
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.08);
}

.ndi-error-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.ndi-error-content {
  position: relative;
  z-index: 1;
}

.ndi-error-content h1 {
  margin: 0 0 12px;
  color: #f8fbff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.ndi-error-content p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: #9fb0c9;
  font-size: 1rem;
  line-height: 1.7;
}


.ndi-error-content p strong {
  color: #f8fbff;
}

.ndi-error-content .error-meta,
.ndi-error-content p:last-of-type {
  margin-top: -6px;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-size: 0.95rem;
}


.ndi-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 640px) {
  .ndi-error-page {
    padding: 40px 0;
  }

  .ndi-error-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .ndi-error-actions {
    flex-direction: column;
  }

  .ndi-error-actions .button {
    width: 100%;
  }
}


/* =========================================================
   CARD ONBOARDING / CONVERSION TOUR
========================================================= */

.card-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
}

.card-tour-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card-tour-highlight {
  position: absolute;
  border-radius: 18px;
  box-shadow:
    0 0 0 9999px rgba(10, 18, 30, 0.30),
    0 0 0 3px rgba(59, 130, 246, 0.85),
    0 24px 60px rgba(0, 0, 0, 0.22);
  transition:
    top 240ms var(--ease-premium),
    left 240ms var(--ease-premium),
    width 240ms var(--ease-premium),
    height 240ms var(--ease-premium);
}

.card-tour-popover {
  position: absolute;
  z-index: 3002;
  width: min(340px, calc(100vw - 24px));
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  color: #0f172a;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.25),
    0 4px 14px rgba(0, 0, 0, 0.1);
  animation: cardTourFadeIn 220ms var(--ease-premium);
}

.card-tour-popover::after {
  content: "";
  position: absolute;
  left: var(--card-tour-arrow-left);
  width: 14px;
  height: 14px;
  background: inherit;
  border-left: 1px solid rgba(148, 163, 184, 0.14);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}

.card-tour-popover:not(.is-above)::after {
  top: -7px;
}

.card-tour-popover.is-above::after {
  bottom: -7px;
  transform: translateX(-50%) rotate(225deg);
}

.card-tour-progress-bar {
  height: 4px;
  margin-bottom: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.card-tour-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  transition: width 240ms var(--ease-premium);
}

.card-tour-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-tour-popover__meta {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-tour-popover__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

.card-tour-popover__close:hover {
  background: #dbeafe;
}

.card-tour-popover__title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
}

.card-tour-popover__body {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.card-tour-popover__footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.card-tour-popover__footer .button {
  min-height: 42px;
}

.card-tour-target {
  position: relative;
  isolation: isolate;
  animation: cardTourPulseGlow 1.5s infinite;
}

/* only exact interactive targets should rise above overlay */
.card-tour-target--elevated {
  z-index: 3003;
}

.card-tour-target--elevated > * {
  position: relative;
  z-index: 2003;
}

.card-tour-target--elevated input,
.card-tour-target--elevated textarea,
.card-tour-target--elevated select,
.card-tour-target--elevated button,
.card-tour-target--elevated a {
  position: relative;
  z-index: 2003;
}


.is-primary-pulse {
  animation: primaryCtaPulse 1.9s infinite;
}

@keyframes cardTourFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardTourPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

@keyframes primaryCtaPulse {
  0%, 100% {
    box-shadow:
      0 14px 34px rgba(37, 99, 235, 0.22),
      0 2px 0 rgba(255, 255, 255, 0.08) inset;
  }
  50% {
    box-shadow:
      0 18px 40px rgba(37, 99, 235, 0.32),
      0 0 0 5px rgba(37, 99, 235, 0.10);
  }
}

@media (max-width: 768px) {
  .card-tour-popover {
    width: min(calc(100vw - 20px), 320px);
    max-width: calc(100vw - 20px);
  }

  .card-tour-popover__footer {
    flex-direction: column;
  }

  .card-tour-popover__footer .button {
    width: 100%;
    justify-content: center;
  }
}

.page-head__main {
  display: grid;
  gap: 0.35rem;
}


.page-head--editor .helptext {
  max-width: 680px;
}


.card-onboarding-checklist[hidden] {
  display: none !important;
}


.card-onboarding-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.15rem;
}


.card-onboarding-checklist__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-premium),
    border-color var(--dur-fast) var(--ease-premium),
    color var(--dur-fast) var(--ease-premium);
}


.card-onboarding-checklist__dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
  flex: 0 0 auto;
}


.card-onboarding-checklist__item.is-active {
  color: #f8fbff;
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(59, 130, 246, 0.28);
}


.card-onboarding-checklist__item.is-active .card-onboarding-checklist__dot {
  background: #60a5fa;
}


.card-onboarding-checklist__item.is-complete {
  color: #f8fbff;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.24);
}

.card-onboarding-checklist__item.is-complete .card-onboarding-checklist__dot {
  background: #34d399;
}

.card-onboarding-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 1rem;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(17, 28, 52, 0.88), rgba(11, 18, 34, 0.84));
  box-shadow:
    0 14px 34px rgba(2, 6, 23, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card-onboarding-banner__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.18));
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: #dbeafe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.card-onboarding-banner__content {
  min-width: 0;
}

.card-onboarding-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-onboarding-banner__content strong {
  display: block;
  margin: 0 0 4px;
  color: #f8fbff;
  font-size: 1rem;
  line-height: 1.35;
}

.card-onboarding-banner__content p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.55;
}

.card-onboarding-banner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.card-onboarding-banner__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #dbeafe;
  font-size: 0.8rem;
  font-weight: 700;
}


.card-onboarding-banner__copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  color: #dbe7f7;
}

.card-onboarding-banner__copy strong {
  color: #f8fbff;
}


.card-post-save-upsell {
  margin-top: 1rem;
  margin-bottom: 1rem;
}



.card-tour-target#live-preview-card,
.card-tour-target.live-preview-card {
  isolation: auto;
  animation: none;
}

.card-tour-target #preview-avatar-image,
.card-tour-target #preview-avatar,
.card-tour-target .public-avatar-wrap {
  position: relative;
  z-index: 4;
}

@media (max-width: 768px) {

  .card-onboarding-banner {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px;
  }

  .card-onboarding-banner__chips {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .card-onboarding-banner__content strong {
    font-size: 0.95rem;
  }

  .card-onboarding-banner__content p {
    font-size: 0.88rem;
  }


  .card-onboarding-checklist {
    gap: 0.5rem;
  }

  .card-onboarding-checklist__item {
    font-size: 0.84rem;
    padding: 0.5rem 0.72rem;
  }

  .card-tour-target.live-preview-card,
  #live-preview-card.card-tour-target {
    isolation: auto;
    animation: none;
  }


  #card-onboarding-banner {
    display: none !important;
  }

}

.onboarding-step,
.step-tooltip,
[data-onboarding] {
  z-index: 1000 !important;
}



/* =========================================================
   OFFLINE BANNER — FINAL FIX (NDI STYLE)
========================================================= */

#offline-status-banner {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);

  z-index: 999999;

  max-width: 720px;
  width: calc(100vw - 24px);

  padding: 12px 18px;

  border-radius: 12px;

  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;

  text-align: center;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.25),
    0 2px 8px rgba(0,0,0,0.15);

  backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

/* visible state */
#offline-status-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* hidden state */
#offline-status-banner.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
}

/* optional variants */
#offline-status-banner.online {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #052e16;
}

#offline-status-banner.offline {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

/* mobile */
@media (max-width: 640px) {
  #offline-status-banner {
    top: 76px;
    width: calc(100vw - 16px);
    padding: 10px 14px;
    font-size: 13px;
  }
}

.pwa-install-btn[hidden] {
  display: none !important;
}


[data-pwa-install][hidden],
#ios-install-help[hidden] {
  display: none !important;
}