/* Premium Nexus layer for the Antigravity clone. */

:root {
  --nexus-shadow-hero: 0 30px 80px rgba(0, 0, 0, 0.4);
  --nexus-shadow-card: 0 18px 42px rgba(0, 0, 0, 0.28);
  --nexus-shadow-glow: 0 0 28px rgba(163, 114, 255, 0.22);
}

@keyframes nexus-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 120px 80px, -140px 40px, 60px -120px, 0 0; }
}

@keyframes nexus-entrance {
  from { opacity: 0; transform: translateY(30px) scale(0.98); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes nexus-reveal {
  from { width: 0; }
  to { width: 100%; }
}

body.public-body.theme-night,
body.gpp-portal-shell.theme-night {
  background:
    radial-gradient(circle at 15% 15%, rgba(163, 114, 255, 0.1) 0, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(244, 180, 26, 0.05) 0, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(5, 4, 15, 1) 0, transparent 100%),
    #020108;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body.public-body.theme-night::after,
body.gpp-portal-shell.theme-night::after {
  content: "";
  position: fixed;
  inset: 0;
  /* Very subtle constellation/star dust pattern */
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.15) 0.5px, transparent 1px);
  background-size: 100px 100px;
  background-size: 120px 120px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.nexus-glass {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 40px;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 0 20px rgba(163, 114, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.nexus-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--nexus-noise);
  opacity: 0.02;
  pointer-events: none;
}

.nexus-topbar {
  margin: 16px auto 0;
  width: min(1320px, calc(100% - 32px));
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  border-radius: 16px;
  background: rgba(9, 8, 20, 0.8);
  border: 1px solid rgba(163, 114, 255, 0.15);
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.nexus-topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.nexus-topbar__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.nexus-topbar__meta {
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nexus-topbar__location {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.nexus-topbar__talent-link {
  white-space: nowrap;
}

.nexus-lang-switch a {
  color: rgba(255, 255, 255, 0.54);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nexus-lang-switch a:hover {
  color: #fff;
}

.nexus-lang-switch a.is-active {
  color: #fff;
  font-weight: 700;
}

.nexus-logo img {
  display: block;
  height: 34px;
  width: auto;
}

.nexus-nav-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nexus-nav-link:hover,
.nexus-nav-link.is-active {
  color: #fff;
  background: rgba(163, 114, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(163, 114, 255, 0.3);
}

.nexus-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

.nexus-title {
  color: var(--text);
  font-family: "Outfit", "Instrument Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
}

.nexus-accent-text {
  background: linear-gradient(135deg, #e5e7eb 0%, #b89bf2 40%, #e6c563 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(163, 114, 255, 0.15));
}

.nexus-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(163, 114, 255, 0.2);
  background: rgba(163, 114, 255, 0.05);
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.nexus-kicker__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--nexus-shadow-glow);
}

.nexus-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 85vh;
  padding: 80px 40px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--nexus-shadow-hero);
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  width: 100%;
}

/* CAROUSEL ENGINE */
.nexus-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

.nexus-carousel-track {
  position: relative;
  height: 85vh;
  width: 100%;
  border-radius: 40px;
  overflow: hidden;
}

.nexus-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  z-index: 1;
}

.nexus-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.nexus-carousel-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.nexus-carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nexus-carousel-indicator.is-active {
  background: #f4b41a;
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(244, 180, 26, 0.6);
}

.nexus-hero:hover {
  transform: scale(1.005);
}

.nexus-hero--home {
  background:
    radial-gradient(circle at center, rgba(7, 8, 20, 0.7), rgba(7, 8, 20, 0.95)),
    url("/brand/illustrative/hero.png") center / cover no-repeat;
}

.nexus-hero--hosts {
  background:
    radial-gradient(circle at center, rgba(7, 8, 20, 0.7), rgba(7, 8, 20, 0.95)),
    url("/brand/illustrative/hosts.png") center / cover no-repeat;
}

.nexus-hero--astros {
  background:
    radial-gradient(circle at center, rgba(7, 8, 20, 0.7), rgba(7, 8, 20, 0.95)),
    url("/brand/illustrative/talents.png") center / cover no-repeat;
}

.nexus-hero--agencies {
  background:
    radial-gradient(circle at center, rgba(7, 8, 20, 0.7), rgba(7, 8, 20, 0.95)),
    url("/brand/illustrative/agencies.png") center / cover no-repeat;
}

.nexus-hero--talent-crew {
  background:
    radial-gradient(circle at center, rgba(7, 8, 20, 0.7), rgba(7, 8, 20, 0.95)),
    url("/brand/illustrative/talents.png") center / cover no-repeat;
}

.nexus-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: nexus-entrance 1.2s cubic-bezier(0.2, 1, 0.3, 1) both;
}

.nexus-hero__lede {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(228, 233, 247, 0.84);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;
}

.nexus-home-hero-title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1;
}

.nexus-home-slide-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
}

.nexus-home-hero-lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 700px;
}

.nexus-home-cta-center {
  justify-content: center;
}

.nexus-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nexus-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.nexus-button--primary {
  background: #f4b41a;
  color: #050414;
  box-shadow: 0 8px 24px rgba(244, 180, 26, 0.25);
}

.nexus-button--primary:hover {
  background: #fff;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 48px rgba(244, 180, 26, 0.45);
}

.nexus-button--ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(4px);
}

.nexus-button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nexus-side-stack {
  display: grid;
  gap: 16px;
  align-self: end;
  position: relative;
  z-index: 1;
}

.nexus-side-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nexus-side-card strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}

.nexus-side-card span {
  color: rgba(220, 227, 244, 0.72);
  line-height: 1.55;
  font-size: 0.94rem;
}

.nexus-section {
  margin-top: 60px;
  padding: 60px;
  border-radius: 40px;
}

.nexus-home-story,
.nexus-home-audience {
  margin-bottom: 40px;
}

.nexus-home-flow {
  margin-bottom: 60px;
}

.nexus-home-centered-heading {
  align-items: center;
  text-align: center;
}

.nexus-home-story-title,
.nexus-home-audience-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.nexus-home-centered-copy {
  max-width: 700px;
  margin: 0 auto;
}

.nexus-home-audience-copy {
  max-width: 760px;
}

.nexus-home-story-grid {
  margin-top: 40px;
}

.nexus-home-audience-grid {
  margin-top: 32px;
}

.nexus-home-card-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.nexus-home-card-kicker {
  margin-bottom: 14px;
}

.nexus-home-card-actions {
  margin-top: 18px;
}

.nexus-home-visual-image {
  border-radius: 16px;
  opacity: 0.92;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.nexus-home-flow-kicker {
  margin-bottom: 16px;
}

.nexus-home-flow-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 16px;
}

.nexus-home-flow-copy {
  color: rgba(220, 227, 244, 0.74);
  line-height: 1.72;
  margin-bottom: 30px;
}

.nexus-home-suggestion {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.05);
  padding: 12px 0;
}

.nexus-home-suggestion strong {
  color: #fff;
}

.nexus-home-suggestion span {
  color: rgba(220, 227, 244, 0.72);
  font-size: 0.93rem;
}

.nexus-home-suggestion--last {
  border-color: transparent;
}

.nexus-home-side-note {
  margin-top: 22px;
}

.nexus-home-audience {
  background: rgba(7, 8, 20, 0.4);
  border: 1px solid rgba(255,255,255,0.05);
}

.nexus-section__heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.nexus-section__heading p {
  margin: 0;
  max-width: 760px;
  color: rgba(220, 227, 244, 0.74);
  line-height: 1.72;
}

.nexus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

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

.nexus-card {
  padding: 24px;
  border-radius: 26px;
  transition: all 0.35s cubic-bezier(0.2, 1, 0.3, 1);
  position: relative;
  background: rgba(255, 255, 255, 0.02);
}

.nexus-card:hover {
  transform: translateY(-12px) scale(1.01);
  border-color: rgba(163, 114, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(163, 114, 255, 0.2);
}

.nexus-card h3,
.nexus-card h4 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  color: #fff;
}

.nexus-card p {
  margin: 0;
  color: rgba(220, 227, 244, 0.72);
  line-height: 1.68;
}

.nexus-badge-row,
.nexus-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nexus-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(235, 239, 250, 0.86);
  font-size: 12px;
  font-weight: 700;
}

.nexus-badge--accent {
  color: #fff2bf;
  border-color: rgba(244, 180, 26, 0.26);
  background: rgba(244, 180, 26, 0.12);
}

.nexus-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(235, 239, 250, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nexus-chip:hover,
.nexus-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(244, 180, 26, 0.32);
  background: rgba(244, 180, 26, 0.12);
}

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

.nexus-stat {
  padding: 20px;
  border-radius: 24px;
}

.nexus-stat strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.nexus-stat span {
  display: block;
  margin-top: 10px;
  color: rgba(220, 227, 244, 0.72);
  line-height: 1.55;
}

.nexus-path-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
}

.nexus-path-card img {
  width: 100%;
  max-width: 180px;
  justify-self: end;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.28));
}

.nexus-step {
  text-align: left;
}

.nexus-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(163, 114, 255, 0.12);
  color: #f4e6ff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.nexus-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: center;
}

.nexus-panel-visual {
  min-height: 340px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(9, 8, 22, 0.22), rgba(9, 8, 22, 0.72)),
    radial-gradient(circle at 18% 20%, rgba(163, 114, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(244, 180, 26, 0.14), transparent 24%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.nexus-panel-visual img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.34));
}

.nexus-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.nexus-market-card {
  overflow: hidden;
  padding: 0;
}

.nexus-market-card__media {
  position: relative;
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(7, 8, 18, 0.16), rgba(7, 8, 18, 0.92)),
    radial-gradient(circle at 18% 20%, rgba(163, 114, 255, 0.24), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(244, 180, 26, 0.18), transparent 24%),
    rgba(9, 8, 22, 0.82);
}

.nexus-market-card__media img {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 112px;
  opacity: 0.82;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.32));
}

.nexus-market-card__overlay {
  position: absolute;
  inset: auto 20px 18px 20px;
}

.nexus-market-card__body {
  padding: 22px;
}

.nexus-market-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nexus-market-price small {
  display: block;
  color: rgba(220, 227, 244, 0.56);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nexus-market-price strong {
  display: block;
  margin-top: 4px;
  color: #fff3bf;
  font-size: 1.18rem;
}

.nexus-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(4, 4, 12, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nexus-modal-overlay.active {
  display: grid;
}

.nexus-modal {
  width: min(100%, 760px);
  padding: 28px;
  border-radius: 30px;
}

.nexus-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.nexus-input {
  width: 100%;
  min-height: 140px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  resize: vertical;
  outline: none;
}

.nexus-input:focus {
  border-color: rgba(163, 114, 255, 0.42);
  box-shadow: var(--nexus-shadow-glow);
}

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

.nexus-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nexus-footer-note {
  padding: 56px 24px 0;
  text-align: center;
  color: rgba(220, 227, 244, 0.56);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.nexus-section--compact {
  padding: 38px;
}

.nexus-split--top {
  align-items: flex-start;
}

.nexus-market-filter-wrap {
  display: grid;
  gap: 18px;
}

.nexus-market-card__summary {
  display: grid;
  gap: 12px;
}

.nexus-market-card__summary p {
  margin: 0;
}

.nexus-market-card__status {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.nexus-market-card__status .nexus-badge-row {
  gap: 8px;
}

.nexus-market-card__footer .nexus-button {
  min-height: 42px;
  padding: 0 18px;
}

.nexus-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.nexus-pricing-card {
  display: grid;
  gap: 20px;
}

.nexus-pricing-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.nexus-pricing-card__price {
  display: grid;
  gap: 6px;
}

.nexus-pricing-card__price strong {
  color: #fff4c8;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
}

.nexus-pricing-card__price span {
  color: rgba(220, 227, 244, 0.62);
  font-size: 0.95rem;
}

.nexus-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.nexus-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(228, 233, 247, 0.82);
  line-height: 1.6;
}

.nexus-feature-list__tick {
  color: #f4b41a;
  font-weight: 800;
}

.nexus-tier-table-wrap {
  overflow-x: auto;
}

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

.nexus-tier-table th,
.nexus-tier-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nexus-tier-table th {
  color: rgba(220, 227, 244, 0.68);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nexus-tier-table td {
  color: rgba(236, 240, 249, 0.9);
}

.nexus-auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.nexus-shell--auth {
  padding-top: 44px;
}

.nexus-auth-panel,
.nexus-auth-card {
  padding: 34px;
  border-radius: 32px;
}

.nexus-auth-panel {
  display: grid;
  gap: 22px;
  align-content: start;
}

.nexus-auth-panel p {
  margin: 0;
  color: rgba(220, 227, 244, 0.78);
  line-height: 1.75;
}

.nexus-auth-stack {
  display: grid;
  gap: 14px;
}

.nexus-auth-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.nexus-auth-card .muted {
  margin: 10px 0 0;
  color: rgba(220, 227, 244, 0.72);
  line-height: 1.7;
}

.nexus-auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.nexus-auth-grid {
  display: grid;
  gap: 14px;
}

.nexus-auth-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(236, 240, 249, 0.86);
  font-size: 0.88rem;
  font-weight: 700;
}

.nexus-auth-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.nexus-auth-input,
.nexus-auth-toggle {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 18px;
}

.nexus-auth-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  outline: none;
}

.nexus-auth-input:focus {
  border-color: rgba(163, 114, 255, 0.42);
  box-shadow: var(--nexus-shadow-glow);
}

.nexus-auth-toggle {
  min-width: 104px;
  padding: 0 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.nexus-auth-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nexus-auth-actions,
.nexus-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nexus-auth-links {
  margin-top: 4px;
}

.nexus-auth-links a {
  color: rgba(236, 240, 249, 0.76);
  text-decoration: none;
  font-size: 0.94rem;
}

.nexus-auth-links a:hover {
  color: #fff;
}

.nexus-auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(236, 240, 249, 0.84);
}

.nexus-auth-remember input {
  width: 16px;
  height: 16px;
}

.nexus-auth-note,
.nexus-auth-status,
.nexus-auth-error {
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.6;
}

.nexus-auth-note {
  border: 1px dashed rgba(244, 180, 26, 0.36);
  background: rgba(244, 180, 26, 0.08);
  color: rgba(255, 244, 200, 0.86);
}

.nexus-auth-status {
  border: 1px solid rgba(42, 157, 108, 0.34);
  background: rgba(42, 157, 108, 0.1);
  color: #d6ffe5;
}

.nexus-auth-error {
  border: 1px solid rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.08);
  color: #ffd9d9;
}

.nexus-auth-hint {
  margin-top: 22px;
}

@media (max-width: 1100px) {
  .nexus-hero,
  .nexus-split,
  .nexus-path-card,
  .nexus-auth-shell {
    grid-template-columns: 1fr;
  }

  .nexus-grid--3,
  .nexus-stat-grid {
    grid-template-columns: 1fr;
  }

  .nexus-path-card img {
    justify-self: start;
    max-width: 150px;
  }
}

@media (max-width: 720px) {
  .nexus-topbar {
    width: calc(100% - 14px);
    padding: 14px;
  }

  .nexus-topbar .topbar__center {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nexus-topbar__row,
  .nexus-topbar__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .nexus-topbar__actions,
  .nexus-topbar__nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nexus-shell {
    padding: 22px 14px 56px;
  }

  .nexus-hero,
  .nexus-section,
  .nexus-modal,
  .nexus-auth-panel,
  .nexus-auth-card {
    padding: 22px;
    border-radius: 24px;
  }

  .nexus-section--compact {
    padding: 22px;
  }

  .nexus-auth-toggle {
    min-width: 86px;
    padding: 0 12px;
  }
}
