:root {
  --bg: #212121;
  --bg2: #1e1e1e;
  --panel: rgba(48, 48, 48, 0.94);
  --panel-soft: rgba(60, 60, 60, 0.88);
  --rail: rgba(27, 27, 27, 0.94);
  --text: #ececec;
  --muted: #9a9a9a;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.12);
  --border-3: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
  --sidebar-collapsed: 64px;
  --sidebar-expanded: 246px;
  --topbar-h: 56px;
  --content-w: 790px;
  --composer-w: min(880px, calc(100vw - 108px));
  --mx: 50vw;
  --my: 38vh;
  /* ── Earth palette tokens ── */
  --earth-core: #0d0625;
  --earth-mid: #1e0f5c;
  --earth-hi: rgba(120, 80, 255, 0.72);
  --earth-glow: rgba(80, 40, 220, 0.48);
  --earth-node: rgba(180, 140, 255, 0.92);
  --earth-ring: rgba(150, 100, 255, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 18%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.02), transparent 16%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
  overflow-x: hidden;
}

body.chat-started {
  padding-bottom: 138px;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .sidebar,
body.modal-open .topbar,
body.modal-open .app-shell {
  filter: blur(9px) saturate(0.92);
  transform: translateZ(0);
  pointer-events: none;
  user-select: none;
}

/* ── ambient ─────────────────────────────────────────────────── */

.cursor-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(380px circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.035) 20%,
      rgba(255, 255, 255, 0.01) 38%,
      transparent 62%);
  transition: background 0.12s linear;
}

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.42;
}

.ambient-a {
  top: 96px;
  left: calc(50% - 140px);
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 48%, transparent 72%);
  animation: ambientFloatA 16s ease-in-out infinite;
}

.ambient-b {
  top: 240px;
  right: 10vw;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(146, 182, 255, 0.09) 0%, rgba(146, 182, 255, 0.018) 45%, transparent 72%);
  animation: ambientFloatB 18s ease-in-out infinite;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 75%);
}

.ambient-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 65%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px);
  background-size: 180px 180px, 210px 210px, 240px 240px;
  mix-blend-mode: soft-light;
}

@keyframes ambientFloatA {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -10px, 0) scale(1.05);
  }
}

@keyframes ambientFloatB {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-14px, 14px, 0) scale(1.04);
  }
}

/* ── sidebar ─────────────────────────────────────────────────── */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-collapsed);
  background: var(--rail);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  transition: width 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 120;
  overflow: hidden;
}

.sidebar:hover {
  width: var(--sidebar-expanded);
}

.sidebar-inner {
  height: 100%;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}

.sidebar-item {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.20s ease, border-color 0.20s ease, transform 0.20s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.sidebar-button {
  font: inherit;
}

.sidebar-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: grid;
  place-items: center;
  color: #e5e5e5;
  opacity: 0.96;
  transition: color 0.3s ease;
}

.sidebar-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-icon.copy-active {
  color: #00ffff !important;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.55));
}

.sidebar-label {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  color: #d7d7d7;
  font-size: 0.93rem;
  font-weight: 500;
}

.sidebar:hover .sidebar-label {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-section-label {
  margin: 14px 12px 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6f6f6f;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
  transform: translateX(-8px);
}

.sidebar:hover .sidebar-section-label {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-recents {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.sidebar-recents-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  color: #8a8a8a;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.sidebar:hover .sidebar-recents-empty {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-recents-empty-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.sidebar-recents-empty-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.84rem;
}

.sidebar-account {
  margin-top: auto;
}

/* ── topbar ──────────────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 88px;
  background: rgba(26, 26, 26, 0.78);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 110;
}

/* ══════════════════════════════════════════════════════════════════════
   BRAND ANCHOR — Pure CSS Volumetric Earth + Metallic Logotype
   ──────────────────────────────────────────────────────────────────────
   Earth: deep-pool indigo/purple sphere, specular sheen, orbital rings,
   glowing network nodes. Liquid levitation physics on the whole anchor.
   Logotype: Cormorant Garamond with extruded metallic gradient, mirror-
   polished silver-to-violet spectral sweep.
══════════════════════════════════════════════════════════════════════ */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: transparent;
  /* Levitation spring — liquid physics */
  transition:
    transform 0.46s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
}

.brand:visited {
  color: transparent !important;
  text-decoration: none !important;
}

.brand:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 24px rgba(90, 40, 240, 0.28));
}

/* ── CSS Volumetric 3D Earth ─────────────────────────────────── */

.brand-earth {
  position: relative;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  /* Deep-pool sphere — layered radial gradients simulate volumetric depth */
  background:
    radial-gradient(circle at 36% 30%, var(--earth-hi) 0%, transparent 40%),
    radial-gradient(circle at 70% 68%, rgba(60, 20, 180, 0.52) 0%, transparent 36%),
    radial-gradient(circle at 22% 70%, rgba(80, 30, 200, 0.28) 0%, transparent 32%),
    radial-gradient(circle at 50% 50%, var(--earth-mid) 0%, var(--earth-core) 65%, #050210 100%);
  /* Volumetric shadow stack — concave depth + external corona */
  box-shadow:
    inset -5px -6px 16px rgba(0, 0, 0, 0.95),
    inset 3px 3px 12px rgba(100, 60, 255, 0.32),
    inset 0 0 28px rgba(30, 10, 80, 0.60),
    0 0 28px var(--earth-glow),
    0 0 60px rgba(60, 20, 180, 0.22),
    0 4px 18px rgba(0, 0, 0, 0.62);
  overflow: hidden;
  transition:
    box-shadow 0.44s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.46s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: box-shadow, transform;
}

.brand:hover .brand-earth {
  box-shadow:
    inset -5px -6px 16px rgba(0, 0, 0, 0.95),
    inset 3px 3px 12px rgba(140, 90, 255, 0.50),
    inset 0 0 30px rgba(40, 10, 90, 0.65),
    0 0 42px rgba(100, 60, 255, 0.72),
    0 0 80px rgba(80, 40, 220, 0.34),
    0 6px 24px rgba(0, 0, 0, 0.70);
  transform: scale(1.08);
}

/* Specular highlight — point-light sheen on upper-left face of sphere */
.earth-specular {
  position: absolute;
  width: 52%;
  height: 44%;
  top: 9%;
  left: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 38%,
      rgba(255, 255, 255, 0.60) 0%,
      rgba(200, 180, 255, 0.22) 38%,
      transparent 68%);
  pointer-events: none;
  z-index: 5;
}

/* Orbital ring 1 — primary equatorial orbit — perspective tilt */
.earth-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.earth-orbit-1 {
  width: 134%;
  height: 58%;
  top: 21%;
  left: -17%;
  border: 1px solid rgba(160, 110, 255, 0.38);
  box-shadow: 0 0 8px rgba(130, 80, 255, 0.14), inset 0 0 4px rgba(130, 80, 255, 0.08);
  transform: rotateX(72deg);
  animation: orbitRotate1 22s linear infinite;
}

/* Orbital ring 2 — secondary polar orbit */
.earth-orbit-2 {
  width: 82%;
  height: 138%;
  top: -19%;
  left: 9%;
  border: 1px solid rgba(120, 80, 255, 0.20);
  box-shadow: 0 0 5px rgba(110, 70, 255, 0.10);
  transform: rotateY(58deg);
  animation: orbitRotate2 30s linear infinite reverse;
}

@keyframes orbitRotate1 {
  from {
    transform: rotateX(72deg) rotateZ(0deg);
  }

  to {
    transform: rotateX(72deg) rotateZ(360deg);
  }
}

@keyframes orbitRotate2 {
  from {
    transform: rotateY(58deg) rotateZ(0deg);
  }

  to {
    transform: rotateY(58deg) rotateZ(360deg);
  }
}

/* Latitude seam — equatorial grid line */
.earth-grid-h {
  position: absolute;
  width: 90%;
  height: 1px;
  top: 50%;
  left: 5%;
  background: linear-gradient(90deg, transparent, rgba(130, 80, 255, 0.22), transparent);
  pointer-events: none;
  z-index: 4;
}

/* Meridian seam — prime longitude grid line */
.earth-grid-v {
  position: absolute;
  width: 1px;
  height: 90%;
  top: 5%;
  left: 50%;
  background: linear-gradient(180deg, transparent, rgba(120, 80, 255, 0.16), transparent);
  pointer-events: none;
  z-index: 4;
}

/* Glowing network nodes — dark-pool intercept markers */
.earth-node {
  position: absolute;
  border-radius: 50%;
  background: var(--earth-node);
  pointer-events: none;
  z-index: 6;
}

.earth-node-1 {
  width: 4.5px;
  height: 4.5px;
  top: 27%;
  left: 36%;
  box-shadow: 0 0 7px rgba(160, 110, 255, 0.90), 0 0 14px rgba(130, 80, 255, 0.45);
  animation: nodePulse 3.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.earth-node-2 {
  width: 3.2px;
  height: 3.2px;
  top: 57%;
  left: 64%;
  box-shadow: 0 0 6px rgba(160, 110, 255, 0.85), 0 0 12px rgba(130, 80, 255, 0.40);
  animation: nodePulse 2.9s cubic-bezier(0.4, 0, 0.6, 1) infinite 0.75s;
}

.earth-node-3 {
  width: 2.6px;
  height: 2.6px;
  top: 72%;
  left: 26%;
  box-shadow: 0 0 5px rgba(150, 100, 255, 0.80), 0 0 10px rgba(120, 70, 255, 0.36);
  animation: nodePulse 3.8s cubic-bezier(0.4, 0, 0.6, 1) infinite 1.4s;
}

/* Sub-pixel connector arc between nodes 1 and 2 */
.earth-connector {
  position: absolute;
  width: 36%;
  height: 1px;
  top: 41%;
  left: 36%;
  background: linear-gradient(90deg, rgba(160, 110, 255, 0.52), rgba(160, 110, 255, 0.18));
  transform: rotate(28deg);
  transform-origin: left center;
  pointer-events: none;
  z-index: 5;
}

@keyframes nodePulse {

  0%,
  100% {
    opacity: 0.48;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.8);
    box-shadow: 0 0 12px rgba(170, 120, 255, 1), 0 0 22px rgba(140, 90, 255, 0.55);
  }
}

/* ── Metallic extruded logotype ──────────────────────────────── */
/* Cormorant Garamond + spectral silver-violet gradient = institutional apex */

.brand-text {
  display: inline-block;
  transform: translateY(-0.5px);
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  /* Extruded metallic gradient — mirror polish */
  background: linear-gradient(138deg,
      rgba(255, 255, 255, 1.00) 0%,
      rgba(218, 210, 255, 0.96) 18%,
      rgba(255, 255, 255, 1.00) 36%,
      rgba(190, 175, 255, 0.92) 54%,
      rgba(255, 255, 255, 0.98) 72%,
      rgba(210, 200, 255, 0.94) 88%,
      rgba(255, 255, 255, 1.00) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  /* Subtle corona drop-shadow for extrusion illusion */
  filter: drop-shadow(0 1px 0 rgba(80, 40, 200, 0.30)) drop-shadow(0 0 10px rgba(100, 60, 255, 0.22));
  transition:
    filter 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    background-position 0.44s ease;
  will-change: filter, background-position;
}

.brand:hover .brand-text {
  background-position: 100% 0;
  filter: drop-shadow(0 1px 0 rgba(100, 60, 255, 0.50)) drop-shadow(0 0 18px rgba(120, 80, 255, 0.45));
}

/* ── Top action buttons ──────────────────────────────────────── */

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-action {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #d8d8d8;
  cursor: pointer;
  transition: background 0.20s ease, transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.20s ease, box-shadow 0.24s ease;
}

.top-action svg {
  width: 16px;
  height: 16px;
}

.top-action:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

/* ── main ─────────────────────────────────────────────────────── */

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding-top: calc(var(--topbar-h) + 6px);
}

.hero {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-6.5vh);
  animation: heroLift 320ms ease;
}

body.chat-started .hero {
  min-height: auto;
  justify-content: flex-start;
  transform: none;
  padding-top: 8px;
  animation: none;
}

.headline {
  margin: 0 0 22px 0;
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.66rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

body.chat-started .headline {
  display: none;
}

@keyframes heroLift {
  from {
    opacity: 0;
    transform: translateY(-4.8vh);
  }

  to {
    opacity: 1;
    transform: translateY(-6.5vh);
  }
}

.messages {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.composer-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.composer-wrap-top {
  margin-top: 2px;
}

body.chat-started .composer-wrap-top {
  display: none;
}

.composer-wrap-bottom {
  display: none;
}

body.chat-started .composer-wrap-bottom {
  display: flex;
  position: fixed;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  width: var(--composer-w);
  z-index: 115;
}

.composer {
  position: relative;
  width: var(--composer-w);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 28px;
  border: 1px solid var(--border-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 16%, transparent 28%),
    linear-gradient(180deg, rgba(54, 54, 54, 0.97) 0%, rgba(42, 42, 42, 0.97) 100%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(0, 0, 0, 0.40);
  overflow: visible;
}

.composer::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background:
    radial-gradient(240px circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.08),
      transparent 62%);
  opacity: 0.75;
  pointer-events: none;
}

.composer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.03) 49%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.60s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.composer:hover::after,
.composer:focus-within::after {
  transform: translateX(120%);
}

.composer:focus-within {
  border-color: var(--border-3);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ── Input pulse animation ── */
@keyframes inputPulse {
  0% {
    border-color: var(--border-3);
    box-shadow: var(--shadow), 0 0 0 0 rgba(255, 255, 255, 0.0);
  }

  30% {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: var(--shadow), 0 0 0 5px rgba(255, 255, 255, 0.06);
  }

  60% {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: var(--shadow), 0 0 0 9px rgba(255, 255, 255, 0.03);
  }

  100% {
    border-color: var(--border-3);
    box-shadow: var(--shadow), 0 0 0 0 rgba(255, 255, 255, 0.0);
  }
}

.composer.search-pulse {
  animation: inputPulse 0.78s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.composer-shine {
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
  opacity: 0.8;
}

.mode-cluster {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  z-index: 20;
}

.mode-button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px 0 12px;
  margin-left: 3px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #b5b5b5;
  font: inherit;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.mode-button:hover,
.mode-button.is-open {
  background: rgba(255, 255, 255, 0.055);
  color: #dedede;
}

.mode-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: translateY(-0.5px);
}

.mode-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.72;
  font-size: 0.84rem;
  transform: translateY(0.5px);
}

.mode-menu {
  position: absolute;
  left: 0;
  bottom: 56px;
  width: 194px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(36, 36, 36, 0.98);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.48),
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  animation: menuLift 160ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 500;
  pointer-events: auto;
}

.mode-menu.hidden {
  display: none;
}

@keyframes menuLift {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

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

.mode-menu button {
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mode-menu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.prompt-input {
  flex: 1 1 auto;
  min-height: 42px;
  max-height: 220px;
  resize: none;
  padding: 10px 2px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.5;
  z-index: 2;
}

.prompt-input::placeholder {
  color: #8b8b8b;
}

.send-button {
  position: relative;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86) 35%, rgba(227, 227, 227, 1) 100%);
  color: #171717;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, filter 0.22s ease;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
  z-index: 6;
}

.send-button::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 180deg, transparent, rgba(255, 255, 255, 0.48), transparent 28%, transparent 100%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.send-button:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.04);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.send-button:hover::before {
  opacity: 1;
}

.send-button:active {
  transform: scale(0.95);
}

.send-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.send-orbit {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0);
  transition: box-shadow 0.22s ease;
}

.send-button:hover .send-orbit {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.send-label {
  position: relative;
  z-index: 2;
  display: inline-block;
}

.send-loader {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(23, 23, 23, 0.18);
  border-top-color: #171717;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.14s ease, transform 0.14s ease;
  animation: spin 0.8s linear infinite;
  z-index: 2;
}

.send-button.is-loading .send-label {
  opacity: 0;
}

.send-button.is-loading .send-loader {
  opacity: 1;
  transform: scale(1);
}

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

/* ── notes ────────────────────────────────────────────────────── */

.site-note {
  width: 100%;
  text-align: center;
  color: #757575;
  font-size: 0.74rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  user-select: none;
}

.site-note-top {
  margin-top: 14px;
}

.site-note-bottom {
  display: none;
}

body.chat-started .site-note-bottom {
  display: block;
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: var(--composer-w);
  z-index: 114;
}

body.chat-started .site-note-top {
  display: none;
}

/* ── messages ─────────────────────────────────────────────────── */

.message {
  display: flex;
  flex-direction: column;
}

.message-user {
  align-items: flex-end;
}

.message-user-bubble {
  display: inline-block;
  max-width: 760px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.66;
  padding: 13px 17px;
  border-radius: 22px;
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.message-assistant-text {
  max-width: 760px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.80;
  font-size: 0.99rem;
  color: #d9d9d9;
}

.details {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(28, 28, 28, 0.94);
}

.details.hidden {
  display: none;
}

.details summary {
  color: #8e8e8e;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
}

.details-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.source {
  border-left: 2px solid rgba(255, 255, 255, 0.10);
  padding: 0.55rem 0.85rem;
}

.source-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a8a8a8;
  margin-bottom: 0.22rem;
}

.source-meta {
  font-size: 0.74rem;
  color: #6f6f6f;
  margin-bottom: 0.28rem;
}

.source-text {
  font-size: 0.82rem;
  color: #b1b1b1;
  line-height: 1.55;
}

/* ── toast ────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(32, 32, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #eaeaea;
  font-size: 0.84rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 150;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── publication modal ────────────────────────────────────────── */

.launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
}

.launch-overlay.hidden {
  display: none;
}

.launch-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.46);
  backdrop-filter: blur(4px) saturate(0.94);
}

.launch-modal {
  position: relative;
  width: min(540px, calc(100vw - 36px));
  padding: 36px 32px 30px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.06), transparent 48%),
    linear-gradient(180deg, rgba(42, 42, 42, 0.98) 0%, rgba(28, 28, 28, 0.98) 100%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  text-align: center;
  animation: launchIn 220ms ease;
  overflow: hidden;
}

.launch-modal::before {
  content: "";
  position: absolute;
  top: -18%;
  left: -10%;
  width: 120%;
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.01), transparent);
  filter: blur(18px);
  pointer-events: none;
}

.launch-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #bcbcbc;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.launch-overline {
  position: relative;
  margin-bottom: 8px;
  color: #8d8d8d;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launch-title {
  position: relative;
  margin: 0;
  color: #f2f2f2;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.launch-copy {
  position: relative;
  margin: 12px 0 24px 0;
  color: #b8b8b8;
  font-size: 1rem;
  line-height: 1.6;
}

.launch-home {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 47px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #171717;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.14s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.launch-home:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

@keyframes launchIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

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

@media (max-width: 900px) {
  .topbar {
    padding-left: 78px;
    padding-right: 14px;
  }

  .brand {
    font-size: 1.10rem;
  }

  .app-shell {
    max-width: 100%;
  }

  .headline {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  :root {
    --composer-w: min(100vw - 32px, 860px);
  }
}

@media (max-width: 640px) {
  .sidebar {
    width: 58px;
  }

  .sidebar:hover {
    width: 220px;
  }

  .topbar {
    padding-left: 72px;
  }

  .top-actions {
    gap: 8px;
  }

  .top-action {
    width: 32px;
    height: 32px;
  }

  .composer {
    padding: 8px 9px;
    gap: 8px;
  }

  .launch-modal {
    padding: 28px 20px 22px;
    border-radius: 24px;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   PRICING MODAL — GLASSMORPHIC QUARTZ EDITION
═══════════════════════════════════════════════════════════════════════ */

.pricing-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pricing-overlay.hidden {
  display: none;
}

.pricing-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 11, 0.76);
  backdrop-filter: blur(22px) saturate(0.86);
  -webkit-backdrop-filter: blur(22px) saturate(0.86);
  cursor: pointer;
}

.pricing-scroll-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.07) transparent;
}

.pricing-scroll-container::-webkit-scrollbar {
  width: 3px;
}

.pricing-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.pricing-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
}

.pricing-modal {
  position: relative;
  width: 100%;
  padding: 56px 52px 48px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top-color: rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(ellipse 75% 38% at 50% 0%, rgba(255, 255, 255, 0.045) 0%, transparent 100%),
    linear-gradient(175deg, rgba(16, 18, 28, 0.98) 0%, rgba(8, 9, 14, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 70px 160px rgba(0, 0, 0, 0.74),
    0 28px 64px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  animation: pricingModalIn 0.50s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pricingModalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.982);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.pricing-overlay.pricing-closing .pricing-modal {
  animation: pricingModalOut 0.28s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes pricingModalOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }

  to {
    opacity: 0;
    transform: translateY(18px) scale(0.986);
    filter: blur(4px);
  }
}

.pricing-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.pricing-close-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  transform: rotate(90deg) scale(1.06);
}

.pricing-close-btn svg {
  display: block;
  flex-shrink: 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 50px;
}

.pricing-eyebrow {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.24);
  margin-bottom: 18px;
  user-select: none;
}

.pricing-title {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.8rem, 4.2vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.90);
  margin: 0 0 16px 0;
  line-height: 1.04;
}

.pricing-subtitle {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.83rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.27);
  margin: 0;
  line-height: 1.65;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 34px;
  border-radius: 30px;
  background: rgba(10, 12, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(52px) saturate(1.38);
  -webkit-backdrop-filter: blur(52px) saturate(1.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.055) inset,
    0 28px 64px rgba(0, 0, 0, 0.42),
    0 10px 28px rgba(0, 0, 0, 0.26);
  transition:
    transform 0.44s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.44s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.32s ease,
    border-top-color 0.32s ease;
  overflow: hidden;
  will-change: transform, box-shadow;
  animation: cardRise 0.54s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.card-pro,
.card-ultra {
  pointer-events: none;
  user-select: none;
}

.pricing-card:nth-child(1) {
  animation-delay: 0.13s;
}

.pricing-card:nth-child(2) {
  animation-delay: 0.20s;
}

.pricing-card:nth-child(3) {
  animation-delay: 0.27s;
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(3px);
  }

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

.pricing-card:hover {
  transform: translateY(-16px);
  border-color: rgba(255, 255, 255, 0.09);
  border-top-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.09) inset,
    0 76px 130px rgba(0, 0, 0, 0.72),
    0 40px 64px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.card-crystal-edge {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.42) 50%, transparent 100%);
  border-radius: 0 0 999px 999px;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.38s ease, left 0.38s ease, right 0.38s ease;
  z-index: 2;
}

.pricing-card:hover .card-crystal-edge {
  opacity: 1;
  left: 5%;
  right: 5%;
}

.card-inner-shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(132deg,
      transparent 28%,
      rgba(255, 255, 255, 0.028) 50%,
      transparent 72%);
  transform: translateX(-115%);
  transition: transform 1.0s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.pricing-card:hover .card-inner-shimmer {
  transform: translateX(115%);
}

.card-featured-aura {
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  background: transparent;
  box-shadow:
    0 0 70px rgba(190, 205, 255, 0.05),
    0 0 20px rgba(190, 205, 255, 0.03);
  pointer-events: none;
  transition: box-shadow 0.48s ease;
  z-index: 0;
}

.card-pro:hover .card-featured-aura {
  box-shadow:
    0 0 100px rgba(190, 205, 255, 0.11),
    0 0 40px rgba(190, 205, 255, 0.07);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 20px;
  width: fit-content;
  position: relative;
  z-index: 3;
  transition:
    color 0.32s ease,
    border-color 0.32s ease,
    background 0.32s ease;
}

.pricing-card:hover .card-badge {
  color: rgba(255, 255, 255, 0.60);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.card-badge-apex {
  border-color: rgba(255, 255, 255, 0.10);
}

.card-tier-label {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  margin-bottom: 9px;
  position: relative;
  z-index: 3;
  transition: color 0.32s ease;
}

.pricing-card:hover .card-tier-label {
  color: rgba(255, 255, 255, 0.46);
}

.card-model-name {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 2.55rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.74);
  margin: 0 0 26px 0;
  line-height: 1.04;
  position: relative;
  z-index: 3;
  transition: color 0.32s ease;
}

.pricing-card:hover .card-model-name {
  color: rgba(255, 255, 255, 1.0);
}

.card-price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin-bottom: 24px;
  line-height: 1;
  position: relative;
  z-index: 3;
}

.card-price-currency {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.32);
  transform: translateY(-5px);
  display: inline-block;
  transition: color 0.32s ease;
}

.pricing-card:hover .card-price-currency {
  color: rgba(255, 255, 255, 0.62);
}

.card-price-amount {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 4.2rem;
  font-weight: 300;
  letter-spacing: -0.045em;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1;
  transition: color 0.32s ease;
}

.card-price-free {
  font-style: italic;
  font-size: 3.5rem;
  letter-spacing: -0.03em;
}

.pricing-card:hover .card-price-amount {
  color: rgba(255, 255, 255, 1.0);
}

.card-price-period {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.73rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.22);
  align-self: flex-end;
  padding-bottom: 8px;
  transition: color 0.32s ease;
}

.pricing-card:hover .card-price-period {
  color: rgba(255, 255, 255, 0.46);
}

.card-price-sub {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.70rem;
  font-weight: 300;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.20);
  align-self: flex-end;
  padding-bottom: 8px;
  transition: color 0.32s ease;
}

.pricing-card:hover .card-price-sub {
  color: rgba(255, 255, 255, 0.42);
}

.card-description {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.79rem;
  font-weight: 300;
  line-height: 1.74;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.32);
  margin: 0 0 26px 0;
  position: relative;
  z-index: 3;
  transition: color 0.32s ease;
}

.pricing-card:hover .card-description {
  color: rgba(255, 255, 255, 0.60);
}

.card-feature-list {
  list-style: none;
  margin: 0 0 22px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 3;
}

.card-feature-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.34);
  transition: color 0.32s ease;
}

.pricing-card:hover .card-feature-list li {
  color: rgba(255, 255, 255, 0.66);
}

.card-feature-list li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  flex-shrink: 0;
  transition: background 0.32s ease;
}

.pricing-card:hover .card-feature-list li::before {
  background: rgba(255, 255, 255, 0.48);
}

.card-spacer {
  flex: 1;
  min-height: 16px;
}

.card-release-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.20);
  margin-bottom: 18px;
  position: relative;
  z-index: 3;
  transition: color 0.32s ease;
}

.pricing-card:hover .card-release-notice {
  color: rgba(255, 255, 255, 0.46);
}

.release-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  flex-shrink: 0;
  animation: releasePulse 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: background 0.32s ease;
}

.pricing-card:hover .release-dot {
  background: rgba(255, 255, 255, 0.56);
}

@keyframes releasePulse {

  0%,
  100% {
    opacity: 0.38;
    transform: scale(1);
  }

  50% {
    opacity: 1.0;
    transform: scale(1.35);
  }
}

.card-cta-btn {
  position: relative;
  width: 100%;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 8, 13, 0.92);
  color: rgba(255, 255, 255, 0.40);
  cursor: pointer;
  overflow: hidden;
  z-index: 3;
  padding: 0 18px;
  transition:
    border-color 0.36s ease,
    padding 0.36s cubic-bezier(0.4, 0, 0.1, 1),
    transform 0.18s ease;
}

.card-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 999px;
  transform: translateX(-101%);
  transition: transform 0.44s cubic-bezier(0.4, 0, 0.08, 1);
}

.card-cta-btn span {
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.34s ease;
  white-space: nowrap;
}

.card-cta-btn:hover {
  border-color: transparent;
  padding: 0 32px;
}

.card-cta-btn:hover::before {
  transform: translateX(0);
}

.card-cta-btn:hover span {
  color: #080910;
}

.card-cta-btn:active {
  transform: scale(0.975);
}

.card-pro {
  border-color: rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.22);
  background: rgba(12, 14, 22, 0.46);
}

.card-pro:hover {
  border-top-color: rgba(255, 255, 255, 0.36);
}

.card-ultra {
  border-top-color: rgba(255, 255, 255, 0.20);
}

.card-ultra .card-badge-apex {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
}

.pricing-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-footer p {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.16);
  margin: 0;
}

@media (max-width: 1020px) {
  .pricing-modal {
    padding: 44px 36px 40px;
    border-radius: 34px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .pricing-card {
    padding: 32px 28px 30px;
  }

  .pricing-title {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
  }
}

@media (max-width: 600px) {
  .pricing-overlay {
    padding: 10px;
    align-items: flex-end;
  }

  .pricing-scroll-container {
    max-height: calc(100vh - 20px);
  }

  .pricing-modal {
    padding: 36px 18px 28px;
    border-radius: 28px 28px 20px 20px;
  }

  .pricing-grid {
    max-width: 100%;
  }

  .pricing-card {
    padding: 28px 22px 26px;
    border-radius: 24px;
  }

  .card-model-name {
    font-size: 2.1rem;
  }

  .card-price-amount {
    font-size: 3.4rem;
  }

  .card-price-free {
    font-size: 2.9rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   WAITLIST MODAL — injected dynamically via JS
═══════════════════════════════════════════════════════════════════════ */

.waitlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.waitlist-overlay.waitlist-visible {
  opacity: 1;
  pointer-events: auto;
}

.waitlist-overlay.waitlist-closing {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}

.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(24px) saturate(0.82);
  -webkit-backdrop-filter: blur(24px) saturate(0.82);
  cursor: pointer;
}

.waitlist-card {
  position: relative;
  z-index: 1;
  width: min(500px, calc(100vw - 32px));
  padding: 52px 46px 44px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 255, 255, 0.048) 0%, transparent 100%),
    linear-gradient(170deg, rgba(14, 16, 24, 0.99) 0%, rgba(7, 8, 13, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 60px 140px rgba(0, 0, 0, 0.78),
    0 24px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  animation: waitlistCardIn 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes waitlistCardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.980);
    filter: blur(3px);
  }

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

.waitlist-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.30);
  cursor: pointer;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}

.waitlist-close-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  transform: rotate(90deg) scale(1.06);
}

.waitlist-eyebrow {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  margin-bottom: 20px;
  user-select: none;
}

.waitlist-title {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 18px 0;
  line-height: 1.06;
}

.waitlist-sub {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.30);
  margin: 0 0 32px 0;
}

.waitlist-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.waitlist-email-input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.84rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.waitlist-email-input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.waitlist-email-input:focus {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.waitlist-error {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.70rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 140, 140, 0.80);
  margin-top: 7px;
  padding-left: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.waitlist-error.visible {
  opacity: 1;
  transform: translateY(0);
}

.waitlist-cta-btn {
  position: relative;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 8, 13, 0.94);
  color: rgba(255, 255, 255, 0.40);
  cursor: pointer;
  overflow: hidden;
  padding: 0 18px;
  margin-top: 8px;
  transition:
    border-color 0.36s ease,
    padding 0.36s cubic-bezier(0.4, 0, 0.1, 1),
    transform 0.18s ease;
}

.waitlist-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 999px;
  transform: translateX(-101%);
  transition: transform 0.44s cubic-bezier(0.4, 0, 0.08, 1);
}

.waitlist-cta-btn span {
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
  transition: color 0.34s ease;
  white-space: nowrap;
}

.waitlist-cta-btn:hover {
  border-color: transparent;
  padding: 0 30px;
}

.waitlist-cta-btn:hover::before {
  transform: translateX(0);
}

.waitlist-cta-btn:hover span {
  color: #080910;
}

.waitlist-cta-btn:active {
  transform: scale(0.975);
}

.waitlist-form-inner {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.waitlist-form-inner.form-fading {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.waitlist-confirm {
  position: absolute;
  inset: 52px 46px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s ease 0.05s, transform 0.32s ease 0.05s;
  pointer-events: none;
}

.waitlist-confirm.confirm-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.waitlist-confirm-glyph {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 22px;
}

.waitlist-confirm-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.90);
  margin: 0 0 14px 0;
}

.waitlist-confirm-sub {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.78;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.28);
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   ACCOUNT AUTHENTICATION MODAL — BIFURCATED STATE MACHINE
   ─────────────────────────────────────────────────────────────────────
   View A (Intake):   Name + Email form. Unauthenticated state.
   View B (Profile):  Read-only credential display. Authenticated state.
   Both views share the quartz-glass card geometry.
═══════════════════════════════════════════════════════════════════════ */

/* ── Overlay shell ── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-overlay.hidden {
  display: none;
}

/* ── Frosted dark backdrop ── */
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.74);
  backdrop-filter: blur(24px) saturate(0.82);
  -webkit-backdrop-filter: blur(24px) saturate(0.82);
  cursor: pointer;
}

/* ── Quartz card ── */
.auth-card {
  position: relative;
  z-index: 1;
  width: min(500px, calc(100vw - 32px));
  min-height: 420px;
  padding: 52px 46px 44px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 255, 255, 0.048) 0%, transparent 100%),
    linear-gradient(170deg, rgba(14, 16, 24, 0.99) 0%, rgba(7, 8, 13, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 60px 140px rgba(0, 0, 0, 0.78),
    0 24px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  animation: authCardIn 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.980);
    filter: blur(3px);
  }

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

.auth-overlay.auth-closing .auth-card {
  animation: authCardOut 0.28s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes authCardOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }

  to {
    opacity: 0;
    transform: translateY(18px) scale(0.986);
    filter: blur(4px);
  }
}

/* ── Close button ── */
.auth-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.30);
  cursor: pointer;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.auth-close-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  transform: rotate(90deg) scale(1.06);
}

/* ── VIEW A: INTAKE FORM ─────────────────────────────────────── */

.auth-eyebrow {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  margin-bottom: 20px;
  user-select: none;
}

.auth-title {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 18px 0;
  line-height: 1.06;
}

.auth-sub {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.30);
  margin: 0 0 32px 0;
}

.auth-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.auth-text-input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.84rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.auth-text-input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.auth-text-input:focus {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(120, 80, 255, 0.08);
}

.auth-error {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.70rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 140, 140, 0.80);
  margin-top: 7px;
  padding-left: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.auth-error.visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-cta-btn {
  position: relative;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 8, 13, 0.94);
  color: rgba(255, 255, 255, 0.40);
  cursor: pointer;
  overflow: hidden;
  padding: 0 18px;
  margin-top: 8px;
  transition:
    border-color 0.36s ease,
    padding 0.36s cubic-bezier(0.4, 0, 0.1, 1),
    transform 0.18s ease;
}

.auth-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 999px;
  transform: translateX(-101%);
  transition: transform 0.44s cubic-bezier(0.4, 0, 0.08, 1);
}

.auth-cta-btn span {
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
  transition: color 0.34s ease;
  white-space: nowrap;
}

.auth-cta-btn:hover {
  border-color: transparent;
  padding: 0 30px;
}

.auth-cta-btn:hover::before {
  transform: translateX(0);
}

.auth-cta-btn:hover span {
  color: #080910;
}

.auth-cta-btn:active {
  transform: scale(0.975);
}

.auth-form-inner {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.auth-form-inner.form-fading {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* Hidden class used when profile view is active */
.auth-form-inner.form-hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: -9999px;
}

/* ── Confirmation flash overlay ─────────────────────────────── */
.auth-confirm {
  position: absolute;
  inset: 52px 46px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s ease 0.05s, transform 0.32s ease 0.05s;
  pointer-events: none;
}

.auth-confirm.confirm-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.auth-confirm-glyph {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 22px;
}

.auth-confirm-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.90);
  margin: 0 0 14px 0;
}

.auth-confirm-sub {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.78;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.28);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   VIEW B: PROFILE — Read-only credential display (authenticated state)
   ──────────────────────────────────────────────────────────────────────
   Avatar monogram, verification badge, locked credentials, session meta,
   red-slide Clear Session CTA. Mirrors the waitlist card geometry.
══════════════════════════════════════════════════════════════════════ */

.auth-profile {
  position: absolute;
  inset: 0;
  padding: 52px 46px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Entry: fade + rise */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.40s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.40s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 8;
  /* Glass overlay on top of the card background */
  background:
    radial-gradient(ellipse 60% 35% at 50% 0%, rgba(80, 40, 200, 0.07) 0%, transparent 100%),
    linear-gradient(170deg, rgba(14, 16, 24, 0.99) 0%, rgba(7, 8, 13, 0.99) 100%);
}

.auth-profile.profile-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Avatar + badge header ── */
.auth-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

/* Volumetric indigo monogram sphere */
.auth-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 36% 30%, rgba(120, 80, 255, 0.62) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #1e0f5c 0%, #0d0625 70%);
  border: 1px solid rgba(120, 80, 255, 0.22);
  border-top-color: rgba(160, 120, 255, 0.40);
  box-shadow:
    0 0 32px rgba(100, 60, 255, 0.22),
    inset -3px -3px 10px rgba(0, 0, 0, 0.80),
    inset 2px 2px 8px rgba(100, 60, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.90);
  /* Metallic gradient text inside avatar */
  background-clip: none;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.90);
}

/* Verification pill badge */
.auth-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(80, 40, 200, 0.10);
  border: 1px solid rgba(120, 80, 255, 0.18);
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(150, 110, 255, 0.80);
}

/* ── Credential display — read-only ── */
.auth-profile-name {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 2.0rem;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 6px 0;
  line-height: 1.1;
  /* Metallic gradient for the name */
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 1.00) 0%,
      rgba(210, 195, 255, 0.92) 40%,
      rgba(255, 255, 255, 0.98) 65%,
      rgba(195, 180, 255, 0.90) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.auth-profile-email {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 26px;
}

/* Hairline separator */
.auth-profile-divider {
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* Session metadata row */
.auth-profile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

.auth-profile-meta-label {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
}

.auth-profile-meta-sep {
  color: rgba(255, 255, 255, 0.12);
  font-size: 0.70rem;
}

.auth-profile-meta-value {
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.60rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(150, 110, 255, 0.58);
}

/* ── Clear Session CTA — red slide-in on hover ── */
.auth-profile-signout {
  position: relative;
  width: 100%;
  max-width: 240px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 13, 0.94);
  cursor: pointer;
  overflow: hidden;
  padding: 0 18px;
  transition:
    border-color 0.36s ease,
    padding 0.36s cubic-bezier(0.4, 0, 0.1, 1),
    transform 0.18s ease;
}

/* Red fill slides in from left on hover */
.auth-profile-signout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(220, 60, 60, 0.90), rgba(200, 40, 40, 0.95));
  border-radius: 999px;
  transform: translateX(-101%);
  transition: transform 0.44s cubic-bezier(0.4, 0, 0.08, 1);
}

.auth-profile-signout span {
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', ui-sans-serif, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  transition: color 0.34s ease;
  white-space: nowrap;
}

.auth-profile-signout:hover {
  border-color: transparent;
  padding: 0 28px;
}

.auth-profile-signout:hover::before {
  transform: translateX(0);
}

.auth-profile-signout:hover span {
  color: rgba(255, 255, 255, 0.96);
}

.auth-profile-signout:active {
  transform: scale(0.975);
}

/* ── Responsive auth modal ── */
@media (max-width: 600px) {
  .auth-card {
    padding: 40px 24px 34px;
    border-radius: 28px;
  }

  .auth-confirm {
    inset: 40px 24px 34px;
  }

  .auth-profile {
    padding: 40px 24px 34px;
  }

  .auth-profile-name {
    font-size: 1.7rem;
  }
}