:root {
  color-scheme: dark;
  --ink: #f5f0ff;
  --muted: #b7a4d7;
  --soft: rgba(245, 240, 255, 0.72);
  --line: rgba(184, 126, 255, 0.22);
  --panel: rgba(18, 11, 31, 0.72);
  --panel-strong: rgba(31, 17, 54, 0.92);
  --purple: #8e34ff;
  --purple-hot: #bb57ff;
  --violet: #5b20df;
  --black: #050308;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  cursor: none;
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(142, 52, 255, 0.34), transparent 38rem),
    linear-gradient(180deg, #050308 0%, #0c0615 48%, #07030c 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.starfield {
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: 0;
}

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

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  transition:
    filter 420ms ease,
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 1, 0.3, 1);
  z-index: 2;
}

body.transition-active .page-shell {
  filter: blur(14px);
  opacity: 0.42;
  transform: scale(0.985);
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(5, 3, 8, 0.62);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  inset: 0 0 auto;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px clamp(18px, 4vw, 56px);
  position: fixed;
  z-index: 20;
}

.brand,
.nav-links,
.hero-actions,
.deploy-section,
.header-actions {
  align-items: center;
  display: flex;
}

.brand {
  font-size: 1.04rem;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0;
}

.brand-mark {
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(142, 52, 255, 0.65);
  height: 38px;
  object-fit: cover;
  width: 38px;
}

.nav-links {
  color: var(--soft);
  gap: clamp(18px, 4vw, 38px);
  font-size: 0.95rem;
  font-weight: 600;
}

.header-actions {
  gap: 12px;
}

.mobile-nav-toggle,
.mobile-nav {
  display: none;
}

.header-secondary {
  min-height: 44px;
}

.nav-links a,
.text-link {
  transition: color 180ms ease;
}

.nav-links a:hover,
.text-link:hover {
  color: #ffffff;
}

.nav-links a[aria-current="page"] {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(187, 87, 255, 0.7);
}

.header-action,
.primary-action,
.secondary-action {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
}

.header-action,
.primary-action {
  background: linear-gradient(135deg, var(--purple-hot), var(--violet));
  box-shadow: 0 18px 42px rgba(91, 32, 223, 0.3);
  color: #ffffff;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  transition:
    border-color 360ms ease,
    box-shadow 360ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-action::before,
.primary-action::before {
  background: radial-gradient(circle, rgba(187, 87, 255, 0.75), transparent 64%);
  content: "";
  height: 160%;
  left: -24%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.72);
  transition:
    left 360ms ease,
    opacity 280ms ease,
    transform 360ms ease;
  width: 42%;
  z-index: 1;
}

.header-action::after,
.primary-action::after {
  background: radial-gradient(circle, rgba(187, 87, 255, 0.34), rgba(187, 87, 255, 0.12) 42%, transparent 72%);
  border-radius: inherit;
  content: "";
  inset: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: scale(0.94);
  transition:
    opacity 320ms ease,
    transform 520ms ease;
  z-index: 0;
}

.header-action:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-3px) scale(1.045);
}

.header-action:hover,
.primary-action:hover {
  box-shadow:
    0 24px 62px rgba(91, 32, 223, 0.52),
    0 0 52px rgba(187, 87, 255, 0.56),
    0 0 0 1px rgba(245, 240, 255, 0.14) inset,
    0 18px 46px rgba(91, 32, 223, 0.26);
}

.header-action:hover::after,
.primary-action:hover::after {
  animation: buttonPurplePulse 2.15s ease-in-out infinite;
  opacity: 0.72;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(245, 240, 255, 0.02);
  overflow: hidden;
  position: relative;
  transition:
    background 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.secondary-action:hover {
  background: rgba(142, 52, 255, 0.16);
  border-color: rgba(245, 240, 255, 0.48);
  box-shadow:
    inset 0 0 28px rgba(187, 87, 255, 0.1),
    0 0 30px rgba(187, 87, 255, 0.2);
}

.hero-section {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 76px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  min-height: 92vh;
  padding: 132px clamp(20px, 6vw, 86px) 72px;
  position: relative;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(184, 126, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 126, 255, 0.1) 1px, transparent 1px);
  background-size: 84px 84px;
  inset: 0;
  mask-image: linear-gradient(180deg, black 0%, transparent 72%);
  opacity: 0.42;
  position: absolute;
}

.hero-glow {
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.68;
  position: absolute;
}

.hero-glow-one {
  display: none;
}

.hero-glow-two {
  display: none;
}

.hero-copy,
.section-block,
.command-section,
.deploy-section {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: #d7b7ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  display: inline-grid;
  font-size: clamp(4.2rem, 11vw, 10.5rem);
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  letter-spacing: 0;
  line-height: 0.84;
  margin-bottom: 28px;
  max-width: none;
  white-space: nowrap;
  width: max-content;
  text-shadow: 0 0 56px rgba(142, 52, 255, 0.68);
}

.interactive-title span {
  display: inline-block;
  flex: 0 0 auto;
  transform-origin: 50% 68%;
  transition:
    transform 420ms cubic-bezier(0.2, 1.65, 0.32, 1),
    text-shadow 420ms ease,
    color 420ms ease;
}

.interactive-title span:hover {
  color: #ffffff;
  text-shadow:
    0 0 26px rgba(245, 240, 255, 0.92),
    0 0 64px rgba(187, 87, 255, 0.84);
  transform: scale(1.24) translateY(-0.04em);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-lede {
  color: var(--soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.7;
  max-width: 650px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-actions .primary-action,
.hero-actions .secondary-action {
  min-width: 164px;
}

.discord-action {
  background: linear-gradient(135deg, #5b7cff, #4a67f5);
  box-shadow: 0 18px 42px rgba(73, 103, 245, 0.34);
  gap: 10px;
}

.discord-action::before {
  background: radial-gradient(circle, rgba(142, 196, 255, 0.58), transparent 64%);
}

.discord-action::after {
  background: radial-gradient(circle, rgba(113, 149, 255, 0.3), rgba(91, 124, 255, 0.12) 42%, transparent 72%);
}

.discord-action-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.1rem;
  justify-content: center;
  width: 1.1rem;
}

.discord-action-icon svg {
  display: block;
  height: 100%;
  width: 100%;
}

.section-block,
.command-section,
.deploy-section {
  padding: clamp(74px, 10vw, 128px) clamp(20px, 6vw, 86px);
}

.scroll-pop {
  opacity: 0;
  transform: translateY(46px) scale(0.965);
  transition:
    opacity 720ms ease,
    transform 900ms cubic-bezier(0.16, 1.4, 0.34, 1);
  will-change: opacity, transform;
}

.scroll-pop.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scroll-pop.is-visible .feature-card,
.scroll-pop.is-visible .terminal-panel,
.scroll-pop.is-visible .command-copy,
.scroll-pop.is-visible .deploy-copy {
  animation: sectionBounce 760ms cubic-bezier(0.2, 1.55, 0.3, 1) both;
}

.scroll-pop.is-visible .feature-card:nth-child(2) {
  animation-delay: 80ms;
}

.scroll-pop.is-visible .feature-card:nth-child(3) {
  animation-delay: 150ms;
}

.section-heading {
  max-width: 860px;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.policy-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.feature-card,
.terminal-panel,
.deploy-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
}

.feature-card {
  min-height: 250px;
  padding: 28px;
}

.feature-card,
.portal-feature-item,
.portal-badge-card,
.account-card,
.history-card,
.summary-grid div,
.account-item,
.ticket-card,
.portal-stat-block,
.portal-hero-card,
.portal-span-two,
.portal-dev-section,
.terms-callout-card,
.terms-group-head,
.terms-accordion-item {
  overflow: hidden;
  position: relative;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 340ms ease,
    box-shadow 340ms ease;
}

.feature-card::after,
.portal-feature-item::after,
.portal-badge-card::after,
.account-card::after,
.history-card::after,
.summary-grid div::after,
.account-item::after,
.ticket-card::after,
.portal-stat-block::after,
.portal-hero-card::after,
.portal-span-two::after,
.portal-dev-section::after,
.terms-callout-card::after,
.terms-group-head::after,
.terms-accordion-item::after {
  background:
    linear-gradient(115deg, rgba(187, 87, 255, 0) 8%, rgba(187, 87, 255, 0.14) 24%, rgba(142, 52, 255, 0.72) 50%, rgba(187, 87, 255, 0.18) 76%, rgba(187, 87, 255, 0) 92%),
    linear-gradient(295deg, rgba(187, 87, 255, 0) 14%, rgba(91, 32, 223, 0.16) 42%, rgba(187, 87, 255, 0.44) 64%, rgba(187, 87, 255, 0) 88%);
  background-size: 220% 220%, 220% 220%;
  background-position: 0% 50%, 100% 50%;
  border-radius: inherit;
  content: "";
  inset: 0;
  padding: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: scale(1.03);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 2;
}

.feature-card > *,
.portal-feature-item > *,
.portal-badge-card > *,
.account-card > *,
.history-card > *,
.summary-grid div > *,
.account-item > *,
.ticket-card > *,
.portal-stat-block > *,
.portal-hero-card > *,
.portal-span-two > *,
.portal-dev-section > *,
.terms-callout-card > *,
.terms-group-head > *,
.terms-accordion-item > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover,
  .portal-feature-item:hover,
  .portal-badge-card:hover,
  .account-card:hover,
  .history-card:hover,
  .summary-grid div:hover,
  .account-item:hover,
  .ticket-card:hover,
  .portal-stat-block:hover,
  .portal-hero-card:hover,
  .portal-span-two:hover,
  .portal-dev-section:hover,
  .terms-callout-card:hover,
  .terms-group-head:hover,
  .terms-accordion-item:hover {
    border-color: rgba(245, 240, 255, 0.28);
    box-shadow:
      0 34px 82px rgba(0, 0, 0, 0.36),
      0 0 44px rgba(187, 87, 255, 0.24),
      0 0 0 1px rgba(245, 240, 255, 0.1) inset;
    transform: translateY(-4px) scale(1.018);
  }

  .feature-card:hover::after,
  .portal-feature-item:hover::after,
  .portal-badge-card:hover::after,
  .account-card:hover::after,
  .history-card:hover::after,
  .summary-grid div:hover::after,
  .account-item:hover::after,
  .ticket-card:hover::after,
  .portal-stat-block:hover::after,
  .portal-hero-card:hover::after,
  .portal-span-two:hover::after,
  .portal-dev-section:hover::after,
  .terms-callout-card:hover::after,
  .terms-group-head:hover::after,
  .terms-accordion-item:hover::after {
    animation: flowingCardGlow 3.8s ease-in-out infinite;
    opacity: 0.82;
  }

  .terms-accordion-item:hover,
  .terms-accordion-item:focus-within {
    box-shadow:
      0 30px 70px rgba(0, 0, 0, 0.26),
      0 0 28px rgba(187, 87, 255, 0.14),
      0 0 0 1px rgba(245, 240, 255, 0.08) inset;
    transform: none;
  }

  .terms-accordion-item:hover::after,
  .terms-accordion-item:focus-within::after {
    animation: none;
    opacity: 0;
  }

  body.portal-developer-page .portal-dev-section:hover,
  body.portal-developer-page .portal-dev-section:focus-within,
  body.portal-developer-page .developer-pane-card:hover,
  body.portal-developer-page .developer-pane-card:focus-within,
  body.portal-developer-page .developer-rail-panel:hover,
  body.portal-developer-page .developer-stage-banner:hover,
  body.portal-developer-page .developer-workbench:hover {
    border-color: rgba(186, 209, 255, 0.2);
    box-shadow:
      0 24px 56px rgba(0, 0, 0, 0.24),
      0 0 28px rgba(96, 228, 255, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: none;
  }

  body.portal-developer-page .portal-dev-section:hover::after,
  body.portal-developer-page .portal-dev-section:focus-within::after,
  body.portal-developer-page .developer-pane-card:hover::after,
  body.portal-developer-page .developer-pane-card:focus-within::after,
  body.portal-developer-page .developer-rail-panel:hover::after,
  body.portal-developer-page .developer-stage-banner:hover::after,
  body.portal-developer-page .developer-workbench:hover::after {
    animation: none;
    opacity: 0.18;
  }

  body.portal-developer-page .developer-workbench .account-item:hover,
  body.portal-developer-page .developer-workbench .account-item:focus-within,
  body.portal-developer-page .developer-workbench .summary-grid div:hover,
  body.portal-developer-page .developer-workbench .summary-grid div:focus-within {
    box-shadow:
      0 18px 34px rgba(0, 0, 0, 0.18),
      0 0 20px rgba(96, 228, 255, 0.06),
      0 0 0 1px rgba(245, 240, 255, 0.06) inset;
    transform: none;
  }

  body.portal-developer-page .developer-workbench .account-item:hover::after,
  body.portal-developer-page .developer-workbench .account-item:focus-within::after,
  body.portal-developer-page .developer-workbench .summary-grid div:hover::after,
  body.portal-developer-page .developer-workbench .summary-grid div:focus-within::after {
    animation: none;
    opacity: 0.14;
  }
}

.feature-icon {
  color: #d7b7ff;
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 68px;
}

.feature-card p,
.command-copy p,
.deploy-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.command-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.terminal-panel {
  overflow: hidden;
}

.terminal-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
}

.terminal-header span {
  background: #d7b7ff;
  border-radius: 50%;
  height: 10px;
  opacity: 0.74;
  width: 10px;
}

.terminal-body {
  background: linear-gradient(145deg, rgba(142, 52, 255, 0.14), rgba(5, 3, 8, 0.3));
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.9rem, 2vw, 1.18rem);
  min-height: 320px;
  padding: 30px;
}

.terminal-body p {
  border-bottom: 1px solid rgba(184, 126, 255, 0.12);
  color: #f5f0ff;
  margin: 0;
  padding: 16px 0;
  word-break: break-word;
}

.terminal-body span {
  color: #c788ff;
  font-weight: 800;
}

.text-link {
  color: #d7b7ff;
  display: inline-flex;
  font-weight: 800;
  margin-top: 12px;
}

.deploy-section {
  justify-content: space-between;
  margin: 0 clamp(20px, 6vw, 86px) 74px;
  padding: clamp(30px, 5vw, 56px);
}

.deploy-copy {
  max-width: 720px;
}

.deploy-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.account-section {
  padding-top: 0;
}

.account-preview-shell,
.portal-grid,
.portal-stats-duo,
.portal-search-row,
.portal-filter-group,
.portal-feature-list {
  display: grid;
  gap: 18px;
}

.account-preview-shell {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.portal-main {
  padding: 132px clamp(20px, 6vw, 86px) 82px;
}

.login-main {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding-top: 124px;
}

.login-hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 68px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  width: 100%;
}

.login-copy {
  position: relative;
}

.login-copy::before {
  background:
    radial-gradient(circle, rgba(255, 214, 123, 0.18), transparent 58%),
    radial-gradient(circle, rgba(142, 52, 255, 0.26), transparent 64%);
  content: "";
  filter: blur(18px);
  height: 360px;
  left: -40px;
  position: absolute;
  top: -60px;
  width: 360px;
  z-index: 0;
}

.login-copy > * {
  position: relative;
  z-index: 1;
}

.login-card {
  background:
    linear-gradient(160deg, rgba(27, 17, 45, 0.92), rgba(12, 8, 22, 0.92)),
    var(--panel);
  padding: 30px;
}

.login-form {
  gap: 16px;
}

.login-message {
  margin-bottom: 18px;
}

.login-oauth-actions {
  display: grid;
  margin-bottom: 18px;
}

.login-divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  margin: 18px 0;
  text-transform: uppercase;
}

.login-divider span {
  background: rgba(245, 240, 255, 0.12);
  display: block;
  height: 1px;
}

.login-divider strong {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}

.login-remember {
  align-items: center;
  color: var(--soft);
  display: inline-flex;
  gap: 12px;
  user-select: none;
}

.login-remember input {
  accent-color: #ffbf47;
  height: 18px;
  width: 18px;
}

.login-feature-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  max-width: 760px;
}

.login-feature-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 191, 71, 0.18);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 6px;
  padding: 18px 20px;
}

.login-feature-pill strong {
  color: #fff2c9;
}

.login-feature-pill span {
  color: var(--muted);
  line-height: 1.55;
}

.portal-login-page {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 191, 71, 0.16), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(142, 52, 255, 0.24), transparent 28rem),
    linear-gradient(180deg, #050308 0%, #0b0713 45%, #08040d 100%);
}

.portal-hero {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  margin-bottom: 28px;
}

.portal-hero-card,
.portal-span-two,
.portal-stat-block,
.portal-badge-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
}

.portal-hero-card {
  padding: 28px;
}

.portal-title {
  font-size: clamp(3.6rem, 8vw, 7rem);
  margin-bottom: 16px;
}

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

.portal-span-two {
  grid-column: span 2;
}

.portal-panel-heading {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.portal-summary-grid {
  margin-bottom: 18px;
}

.portal-stats-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-stat-block {
  padding: 18px;
}

.portal-search-form,
.portal-bio-form {
  display: grid;
  gap: 12px;
}

#exchanger-bio-form {
  margin-top: 18px;
}

.portal-search-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.portal-label {
  color: #d7b7ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-input,
.portal-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 126, 255, 0.18);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  width: 100%;
}

.portal-input:focus,
.portal-textarea:focus {
  border-color: rgba(245, 240, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(187, 87, 255, 0.1);
  outline: none;
}

.portal-textarea {
  min-height: 120px;
  resize: vertical;
}

body.portal-developer-page {
  background:
    radial-gradient(circle at top left, rgba(96, 228, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(187, 87, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, #0a0d14 0%, #0d1118 45%, #090c12 100%);
  color: #eef4ff;
}

body.portal-developer-page .page-shell {
  overflow: visible;
}

body.portal-developer-page .site-header {
  background: rgba(8, 11, 18, 0.72);
  border-bottom: 1px solid rgba(142, 170, 214, 0.16);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

body.portal-developer-page .brand-mark {
  box-shadow: 0 0 22px rgba(96, 228, 255, 0.22);
}

body.portal-developer-page .nav-links {
  color: rgba(231, 239, 255, 0.72);
}

body.portal-developer-page .nav-links a[aria-current="page"] {
  text-shadow: 0 0 16px rgba(96, 228, 255, 0.34);
}

body.portal-developer-page .header-action,
body.portal-developer-page .primary-action {
  background: linear-gradient(135deg, #5c7cff, #8e34ff);
  box-shadow: 0 16px 38px rgba(79, 106, 255, 0.24);
}

body.portal-developer-page .secondary-action {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 171, 213, 0.18);
}

.developer-command-deck {
  padding: 116px clamp(20px, 3vw, 34px) 36px;
}

.developer-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.developer-rail {
  display: none;
}

.developer-rail-panel,
.developer-stage-banner,
.developer-workbench {
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(10, 15, 24, 0.82);
  border: 1px solid rgba(151, 171, 214, 0.14);
  border-radius: 24px;
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.developer-rail-panel {
  padding: 20px;
}

.developer-rail-kicker,
.developer-picker-label {
  color: #94cfff;
  letter-spacing: 0.12em;
}

.developer-rail-title,
.developer-stage-banner h2,
.developer-workbench-copy h3,
.developer-pane-card h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
}

.developer-rail-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 0.94;
  margin: 0;
}

.developer-rail-copy,
.developer-rail-status,
.developer-stage-banner p {
  color: rgba(232, 239, 255, 0.72);
  line-height: 1.65;
  margin: 0;
}

.developer-auth-actions {
  flex-wrap: wrap;
}

.developer-owner-card {
  align-items: center;
  background: linear-gradient(145deg, rgba(96, 228, 255, 0.08), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(126, 171, 255, 0.12);
  border-radius: 18px;
  display: flex;
  gap: 14px;
  padding: 16px;
}

.developer-owner-card h3 {
  margin: 0 0 6px;
}

.developer-owner-card p {
  color: rgba(232, 239, 255, 0.64);
  margin: 0;
}

.developer-snapshot-panel .summary-grid,
.developer-banner-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.developer-snapshot-panel .summary-grid div,
.developer-banner-grid div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(150, 172, 214, 0.12);
  border-radius: 16px;
  box-shadow: none;
  min-height: 0;
  padding: 16px;
}

.developer-snapshot-panel .summary-grid span,
.developer-banner-grid span {
  color: rgba(155, 187, 227, 0.7);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.developer-snapshot-panel .summary-grid strong,
.developer-banner-grid strong {
  color: #f1f6ff;
  font-size: 0.98rem;
}

.developer-stage {
  display: grid;
  gap: 20px;
}

.developer-stage-banner {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  padding: 24px;
}

.developer-stage-banner h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  margin: 0 0 10px;
}

.developer-workbench {
  overflow: clip;
  padding: 24px;
}

.developer-workbench-bar {
  align-items: stretch;
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.developer-workbench-copy p,
.developer-workbench-copy h3 {
  margin: 0;
}

.developer-workbench-copy h3 {
  font-size: 1.35rem;
  margin-top: 6px;
}

.developer-tab-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(151, 171, 214, 0.12);
  border-radius: 20px;
  display: grid;
  gap: 8px;
  padding: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
}

body.portal-developer-page .developer-tab-toggle .secondary-action {
  background: transparent;
  border-color: rgba(151, 171, 214, 0.1);
  border-radius: 14px;
  box-shadow: none;
  min-height: 40px;
  width: 100%;
  transform: none;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 240ms ease;
}

body.portal-developer-page .developer-tab-toggle .secondary-action.is-selected {
  background: linear-gradient(135deg, rgba(96, 228, 255, 0.16), rgba(92, 124, 255, 0.26));
  border-color: rgba(145, 196, 255, 0.24);
  color: #ffffff;
}

body.portal-developer-page .developer-tab-toggle .secondary-action:hover,
body.portal-developer-page .developer-tab-toggle .secondary-action:focus-visible {
  background: rgba(120, 143, 214, 0.12);
  border-color: rgba(151, 171, 214, 0.16);
  box-shadow: inset 0 0 0 1px rgba(196, 214, 255, 0.04);
  transform: none;
}

body.portal-developer-page .header-action:hover,
body.portal-developer-page .primary-action:hover,
body.portal-developer-page .secondary-action:hover {
  transform: none;
}

.developer-panel-stage {
  min-height: 540px;
  overflow: clip;
}

.developer-pane-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top right, rgba(96, 228, 255, 0.08), transparent 34%);
  border-color: rgba(151, 171, 214, 0.12);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 44px rgba(0, 0, 0, 0.18);
  padding: 24px;
}

.developer-portal-grid {
  align-items: start;
  gap: 22px;
}

body.portal-developer-page .portal-dev-section,
body.portal-developer-page .developer-pane-card,
body.portal-developer-page .developer-rail-panel,
body.portal-developer-page .developer-stage-banner,
body.portal-developer-page .developer-workbench,
body.portal-developer-page .developer-workbench .account-item,
body.portal-developer-page .developer-workbench .summary-grid div {
  transform: none;
}

.developer-pane-card .portal-panel-heading {
  margin-bottom: 16px;
}

.developer-pane-card .account-list,
.developer-pane-card .portal-bio-form {
  gap: 16px;
}

.developer-terms-card {
  gap: 18px;
}

.developer-terms-toolbar {
  display: grid;
  gap: 16px;
}

.developer-search-field {
  margin: 0;
}

.developer-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.developer-terms-meta {
  color: rgba(180, 200, 234, 0.72);
  font-size: 0.94rem;
  margin-bottom: 4px;
}

.developer-terms-shell {
  display: grid;
  gap: 18px;
}

.developer-terms-group {
  display: grid;
  gap: 16px;
}

.developer-terms-group-head {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.developer-terms-wide {
  grid-column: 1 / -1;
}

.developer-terms-callouts,
.developer-terms-list {
  display: grid;
  gap: 14px;
}

.developer-terms-editor-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(151, 171, 214, 0.12);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.developer-terms-editor-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.developer-terms-editor-head span {
  color: rgba(148, 207, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.developer-terms-inline-grid,
.developer-terms-meta-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.developer-terms-actions {
  padding-top: 4px;
}

.developer-portal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.developer-portal-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.developer-dashboard-shell {
  display: grid;
  gap: 24px;
  padding: 0 clamp(20px, 6vw, 86px) 82px;
}

.developer-dashboard-hero {
  min-height: auto;
  padding-bottom: 34px;
}

.developer-hero-copy {
  display: grid;
  gap: 18px;
}

.developer-identity-card {
  align-self: stretch;
  display: grid;
  gap: 22px;
}

.developer-dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.developer-summary-panel {
  min-height: 0;
}

.developer-dashboard-card {
  padding: clamp(20px, 3vw, 28px);
}

.developer-launch-card {
  display: grid;
  gap: 20px;
}

.developer-launch-note {
  margin: 0;
}

.developer-launch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.developer-workspace-shell {
  display: grid;
  gap: 18px;
}

.developer-workspace-overview {
  align-items: end;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(187, 87, 255, 0.18), transparent 38%);
  border: 1px solid rgba(184, 126, 255, 0.16);
  border-radius: 16px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  padding: 20px 22px;
}

.developer-workspace-overview h4 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.developer-workspace-overview p:last-child {
  color: var(--muted);
  margin: 0;
}

.developer-panel-stage {
  position: static;
  transition: none;
}

.developer-panel {
  align-content: start;
  display: none;
  gap: 18px;
  min-height: 0;
}

.developer-panel.is-active {
  display: grid;
}

.developer-panel.is-entering {
  animation: developerPanelIn 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.portal-developer-page .portal-dev-section,
body.portal-developer-page .developer-pane-card,
body.portal-developer-page .developer-rail-panel,
body.portal-developer-page .developer-stage-banner,
body.portal-developer-page .developer-workbench,
body.portal-developer-page .developer-tab-toggle {
  will-change: auto;
}

.portal-dev-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(187, 87, 255, 0.1), transparent 32%);
  border: 1px solid rgba(184, 126, 255, 0.14);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 22px;
}

.portal-dev-section-wide {
  grid-column: 1 / -1;
}

.developer-builder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.developer-picker-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 4px;
}

.developer-picker-card,
.developer-toggle-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 126, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
}

.developer-picker-label {
  color: #cbb5ea;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.developer-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.developer-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  min-height: 40px;
  padding: 9px 14px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.developer-pill:hover,
.developer-pill:focus-visible {
  border-color: rgba(245, 240, 255, 0.36);
  box-shadow: 0 10px 24px rgba(63, 19, 114, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.developer-pill.is-selected {
  background: linear-gradient(135deg, rgba(142, 52, 255, 0.34), rgba(187, 87, 255, 0.18));
  border-color: rgba(245, 240, 255, 0.42);
  box-shadow: 0 14px 28px rgba(82, 18, 146, 0.24);
}

.portal-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-filter-group .secondary-action {
  min-height: 38px;
}

.portal-filter-group .is-selected {
  background: rgba(142, 52, 255, 0.22);
  border-color: rgba(245, 240, 255, 0.42);
}

.portal-feature-list {
  grid-template-columns: 1fr;
}

.portal-feature-item,
.portal-badge-card,
.public-profile-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 126, 255, 0.14);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  padding: 18px;
}

.portal-feature-item {
  align-items: start;
  display: block;
}

.portal-feature-item strong,
.portal-badge-card strong {
  display: block;
  margin-bottom: 8px;
}

.portal-action-card,
.portal-highlight {
  min-height: 100%;
}

.ticket-panel-stage {
  margin-top: 18px;
  position: relative;
  transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ticket-panel-stage.is-switching {
  overflow: hidden;
}

.ticket-panel {
  display: grid;
  gap: 16px;
}

.ticket-panel:not(.is-active):not(.is-entering):not(.is-leaving) {
  display: none;
}

.ticket-panel.is-entering,
.ticket-panel.is-leaving {
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

.portal-modal-shell {
  inset: 0;
  position: fixed;
  z-index: 30;
}

.portal-toast-viewport {
  bottom: 24px;
  display: grid;
  gap: 12px;
  justify-items: end;
  left: 16px;
  pointer-events: none;
  position: fixed;
  right: 16px;
  z-index: 40;
}

.portal-toast {
  background:
    linear-gradient(160deg, rgba(31, 18, 50, 0.96), rgba(16, 11, 29, 0.98));
  border: 1px solid rgba(184, 126, 255, 0.22);
  border-radius: 14px;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(245, 240, 255, 0.03) inset;
  max-width: min(420px, 100%);
  opacity: 0;
  overflow: hidden;
  padding: 16px 16px 18px;
  pointer-events: auto;
  position: relative;
  transform: translateY(22px) scale(0.96);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.2, 1, 0.3, 1);
  width: min(420px, 100%);
}

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

.portal-toast.is-dismissing {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.portal-toast-message {
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  max-width: calc(100% - 42px);
  padding-right: 10px;
}

.portal-toast-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 240, 255, 0.12);
  border-radius: 999px;
  color: var(--soft);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  width: 30px;
}

.portal-toast-close:hover {
  background: rgba(142, 52, 255, 0.16);
  border-color: rgba(245, 240, 255, 0.28);
  color: #ffffff;
  transform: scale(1.06);
}

.portal-toast-progress {
  animation: toastCountdown 10s linear forwards;
  background: linear-gradient(90deg, var(--purple-hot), var(--purple), var(--violet));
  bottom: 0;
  height: 4px;
  left: 0;
  position: absolute;
  transform-origin: left center;
  width: 100%;
}

.portal-modal-backdrop {
  background: rgba(6, 4, 11, 0.74);
  backdrop-filter: blur(12px);
  inset: 0;
  position: absolute;
}

.portal-modal {
  background:
    linear-gradient(145deg, rgba(142, 52, 255, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(18, 11, 31, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.4);
  left: 50%;
  max-height: min(86vh, 760px);
  max-width: min(560px, calc(100vw - 32px));
  overflow: auto;
  padding: 28px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.portal-modal-heading {
  margin-bottom: 24px;
}

.portal-modal-note {
  background: linear-gradient(135deg, rgba(187, 87, 255, 0.14), rgba(91, 32, 223, 0.08));
  border: 1px solid rgba(245, 240, 255, 0.12);
  border-radius: 10px;
  color: var(--soft);
  line-height: 1.65;
  padding: 14px 16px;
}

.portal-select {
  position: relative;
}

.portal-select-trigger {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(187, 87, 255, 0.08)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 126, 255, 0.22);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 16px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

.portal-select-trigger:hover,
.portal-select.is-open .portal-select-trigger {
  border-color: rgba(245, 240, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(187, 87, 255, 0.1);
}

.portal-select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.portal-select-chevron {
  border-bottom: 2px solid rgba(255, 255, 255, 0.84);
  border-right: 2px solid rgba(255, 255, 255, 0.84);
  height: 10px;
  margin-left: 14px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
  width: 10px;
}

.portal-select.is-open .portal-select-chevron {
  transform: rotate(225deg) translateY(-1px);
}

.portal-select-menu {
  background:
    linear-gradient(160deg, rgba(31, 18, 50, 0.98), rgba(16, 11, 29, 0.98));
  border: 1px solid rgba(184, 126, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 8px;
  left: 0;
  margin-top: 10px;
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 4;
}

.portal-select-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 12px 14px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.portal-select-option:hover,
.portal-select-option.is-selected {
  background: linear-gradient(135deg, rgba(187, 87, 255, 0.18), rgba(91, 32, 223, 0.12));
  border-color: rgba(245, 240, 255, 0.22);
  transform: translateX(2px);
}

.portal-select-option:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.portal-user-card {
  margin-bottom: 18px;
}

.portal-badge-shell,
.public-profile-shell {
  display: grid;
  gap: 16px;
}

.portal-badge-number {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 30px rgba(187, 87, 255, 0.35);
}

.portal-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.public-profile-header {
  align-items: center;
}

.public-profile-bio {
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0;
}

.account-heading {
  margin-bottom: 34px;
}

.account-lede {
  color: var(--soft);
  line-height: 1.75;
  max-width: 720px;
}

.account-shell,
.account-grid,
.account-panels,
.summary-grid {
  display: grid;
  gap: 18px;
}

.account-shell {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.account-grid,
.account-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-panels {
  grid-column: 1 / -1;
}

.account-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
  padding: 28px;
}

.account-auth-card {
  align-self: start;
  position: sticky;
  top: 110px;
}

.account-kicker {
  color: #d7b7ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.account-user {
  align-items: center;
  display: flex;
  gap: 16px;
}

.account-user h3 {
  margin-bottom: 6px;
}

.account-user p,
.account-message,
.account-empty,
.ticket-card p,
.account-item p {
  color: var(--muted);
  line-height: 1.65;
}

.account-avatar,
.account-avatar-placeholder {
  align-items: center;
  background: linear-gradient(135deg, rgba(187, 87, 255, 0.95), rgba(91, 32, 223, 0.92));
  border: 1px solid rgba(245, 240, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(91, 32, 223, 0.26);
  display: inline-flex;
  height: 68px;
  justify-content: center;
  object-fit: cover;
  width: 68px;
}

.account-avatar-placeholder {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.account-hidden {
  display: none;
}

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

.summary-grid div,
.account-item,
.ticket-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 126, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
}

.summary-grid span,
.ticket-meta span,
.account-item strong {
  color: #9b87bf;
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-grid strong {
  display: block;
  font-size: 1.75rem;
  margin-top: 10px;
}

.account-list,
.ticket-list {
  display: grid;
  gap: 14px;
}

.ticket-list-secondary {
  margin-top: 16px;
}

.account-item-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.account-item-copy {
  min-width: 0;
}

.account-inline-action {
  flex: 0 0 auto;
  min-height: 36px;
  padding-inline: 14px;
}

.ticket-card {
  display: grid;
  gap: 14px;
}

.ticket-head,
.ticket-meta {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.ticket-head {
  align-items: center;
}

.ticket-id {
  color: #ffffff;
  font-weight: 800;
}

.ticket-status {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  gap: 8px;
  font-weight: 800;
  padding: 6px 10px;
  text-transform: uppercase;
}

.ticket-status-icon {
  border-radius: 999px;
  display: block;
  height: 16px;
  width: 16px;
}

.ticket-status-open {
  color: #d7b7ff;
}

.ticket-status-claimed {
  color: #efe2ff;
}

.ticket-status-completed {
  color: #a8ffcc;
}

.ticket-status-cancelled {
  color: #ffb8d6;
}

.portal-akl-list {
  max-height: 560px;
  overflow: auto;
  padding-right: 6px;
}

.portal-akl-entry p strong {
  color: #ffffff;
}

.ticket-route {
  color: #ffffff;
  font-weight: 700;
}

.ticket-meta {
  flex-wrap: wrap;
}

.ticket-meta div {
  min-width: 120px;
}

.ticket-note {
  border-top: 1px solid rgba(184, 126, 255, 0.14);
  margin-top: 2px;
  padding-top: 14px;
}

.history-view {
  display: none;
  min-height: 100vh;
  padding: 132px clamp(20px, 6vw, 86px) 82px;
}

.terms-layout,
.terms-group,
.terms-accordion {
  display: grid;
  gap: 34px;
}

.terms-group-head,
.terms-accordion-trigger,
.terms-callout-card {
  background:
    linear-gradient(145deg, rgba(142, 52, 255, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(18, 11, 31, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
  padding: 26px;
}

.terms-group-head,
.terms-accordion-trigger,
.terms-callout-card {
  position: relative;
  overflow: hidden;
}

.terms-group-copy,
.terms-callout-card p {
  color: var(--soft);
  line-height: 1.7;
  margin-bottom: 0;
}

.terms-group-head h3,
.terms-accordion-title,
.terms-callout-card h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  margin-bottom: 0;
}

.terms-callout-row {
  display: grid;
  gap: 18px;
}

.terms-callout-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.terms-group-head {
  display: grid;
  gap: 10px;
}

.terms-accordion-item {
  background:
    linear-gradient(145deg, rgba(142, 52, 255, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(18, 11, 31, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
  overflow: visible;
}

.terms-accordion {
  gap: 22px;
}

.terms-accordion-trigger {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 24px 26px;
  text-align: left;
  transition:
    background 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
  width: 100%;
}

.terms-accordion-trigger:hover {
  background: rgba(255, 255, 255, 0.02);
}

.terms-accordion-copy {
  display: grid;
  gap: 8px;
}

.terms-accordion-title {
  font-weight: 800;
  line-height: 1.04;
}

.terms-accordion-icon {
  border-bottom: 2px solid rgba(245, 240, 255, 0.9);
  border-right: 2px solid rgba(245, 240, 255, 0.9);
  flex: 0 0 auto;
  height: 12px;
  transform: rotate(45deg);
  transition: transform 260ms ease;
  width: 12px;
}

.terms-accordion-item.is-open .terms-accordion-icon {
  transform: rotate(225deg);
}

.terms-accordion-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 560ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.terms-accordion-item.is-open .terms-accordion-panel {
  opacity: 1;
  overflow: visible;
  transform: translateY(0);
}

.terms-accordion-panel > .history-grid,
.terms-accordion-panel > .terms-callout-row {
  padding: 0 26px 30px;
}

.terms-accordion-panel > .history-grid {
  margin-top: 6px;
}

.terms-accordion-panel > .history-grid + .terms-callout-row,
.terms-accordion-panel > .terms-callout-row + .history-grid {
  padding-top: 0;
}

body.history-mode .home-view {
  display: none;
}

body.history-mode .history-view {
  display: block;
}

.history-hero {
  align-items: flex-end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.history-hero div {
  max-width: 820px;
}

.history-hero h2 {
  font-size: clamp(4rem, 10vw, 9rem);
  margin-bottom: 18px;
  text-shadow: 0 0 58px rgba(142, 52, 255, 0.58);
}

.history-hero p {
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.history-back {
  flex: 0 0 auto;
}

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

.terms-layout .history-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.history-card {
  background:
    linear-gradient(145deg, rgba(142, 52, 255, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(18, 11, 31, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(245, 240, 255, 0.04) inset;
  min-height: 275px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition:
    transform 260ms cubic-bezier(0.2, 1.2, 0.3, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.terms-layout .history-card:hover,
.terms-layout .history-card:focus-within {
  border-color: rgba(245, 240, 255, 0.32);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(187, 87, 255, 0.18),
    0 0 0 1px rgba(245, 240, 255, 0.12) inset;
  transform: translateY(-5px);
}

.terms-layout .history-card:hover::after,
.terms-layout .history-card:focus-within::after {
  animation: flowingCardGlow 3.4s ease-in-out infinite;
  opacity: 0.52;
}

.history-card::before {
  background: linear-gradient(90deg, transparent, rgba(245, 240, 255, 0.16), transparent);
  content: "";
  height: 1px;
  left: 18px;
  position: absolute;
  right: 18px;
  top: 0;
}

.history-card-top {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 42px;
  text-transform: uppercase;
}

.history-status {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 9px;
}

.history-status.completed {
  color: #d7b7ff;
}

.history-status.claimed {
  color: #f5f0ff;
}

.history-status.cancelled {
  color: #9b87bf;
}

.history-card h3 {
  margin-bottom: 12px;
}

.history-card p {
  color: var(--muted);
  line-height: 1.65;
  min-height: 78px;
}

.history-card dl {
  border-top: 1px solid rgba(184, 126, 255, 0.16);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin: 22px 0 0;
  padding-top: 18px;
}

.history-card dt,
.history-card dd {
  margin: 0;
}

.history-card dt {
  color: #8f7bae;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.history-card dd {
  color: var(--ink);
  font-weight: 800;
  margin-top: 6px;
}

.page-transition {
  align-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(187, 87, 255, 0.24), transparent 18rem),
    radial-gradient(circle at 50% 50%, rgba(91, 32, 223, 0.24), transparent 38rem),
    rgba(5, 3, 8, 0.74);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 820ms ease;
  z-index: 80;
}

.page-transition::after {
  animation: transitionBeat 620ms ease-in-out infinite;
  background: radial-gradient(circle, rgba(187, 87, 255, 0.34), rgba(142, 52, 255, 0.18) 34%, transparent 68%);
  border-radius: 50%;
  content: "";
  filter: blur(16px);
  height: clamp(220px, 30vw, 430px);
  opacity: 0.42;
  position: absolute;
  width: clamp(220px, 30vw, 430px);
  z-index: 1;
}

body.transition-active .page-transition {
  opacity: 1;
}

body.transition-exiting .page-transition {
  opacity: 0;
}

body.transition-flight .page-transition::after {
  animation: transitionBeat 420ms ease-in-out infinite, loaderGlow 1.95s ease both;
}

.transition-field {
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.transition-field span {
  background: linear-gradient(90deg, transparent, rgba(245, 240, 255, 0.9), transparent);
  border-radius: 999px;
  height: 2px;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform-origin: left center;
  width: clamp(110px, 18vw, 240px);
}

body.transition-flight .transition-field span {
  animation: none;
}

.transition-field span:nth-child(1) { --angle: -28deg; animation-delay: 200ms; top: 41%; }
.transition-field span:nth-child(2) { --angle: -12deg; animation-delay: 420ms; top: 47%; }
.transition-field span:nth-child(3) { --angle: 7deg; animation-delay: 80ms; top: 52%; }
.transition-field span:nth-child(4) { --angle: 21deg; animation-delay: 620ms; top: 58%; }
.transition-field span:nth-child(5) { --angle: 36deg; animation-delay: 310ms; top: 44%; }
.transition-field span:nth-child(6) { --angle: 53deg; animation-delay: 720ms; top: 55%; }

.loader-orbit {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.loader-orbit span {
  border: 1px solid rgba(245, 240, 255, 0.2);
  border-left-color: rgba(245, 240, 255, 0.82);
  border-radius: 50%;
  height: clamp(130px, 18vw, 220px);
  opacity: 0;
  position: absolute;
  transform: rotateX(72deg) rotateZ(0deg);
  width: clamp(130px, 18vw, 220px);
}

body.transition-flight .loader-orbit span {
  animation: loadingOrbit 1.15s linear infinite, loadingOrbitAppear 2.2s ease both;
}

.loader-orbit span:nth-child(2) {
  animation-delay: 80ms;
  height: clamp(180px, 25vw, 310px);
  width: clamp(180px, 25vw, 310px);
}

.loader-orbit span:nth-child(3) {
  animation-delay: 160ms;
  height: clamp(85px, 12vw, 150px);
  width: clamp(85px, 12vw, 150px);
}

.cursor-glow,
.cursor-ring,
.cursor-dot {
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 180ms ease;
  z-index: 100;
}

.cursor-glow {
  background: radial-gradient(ellipse, rgba(166, 78, 255, 0.34) 0%, rgba(142, 52, 255, 0.18) 30%, transparent 68%);
  border-radius: 50%;
  filter: blur(8px);
  height: 440px;
  mix-blend-mode: screen;
  transform: translate3d(-50%, -50%, 0);
  width: 820px;
  z-index: 1;
}

.cursor-ring {
  align-items: center;
  border: 1px solid rgba(245, 240, 255, 0.86);
  border-radius: 50%;
  display: flex;
  height: 34px;
  justify-content: center;
  transform: translate3d(-50%, -50%, 0);
  transition:
    height 220ms cubic-bezier(0.2, 1.4, 0.3, 1),
    opacity 180ms ease,
    width 220ms cubic-bezier(0.2, 1.4, 0.3, 1);
  width: 34px;
}

.cursor-dot {
  background: #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),
    0 0 10px rgba(187, 87, 255, 0.8);
  height: 6px;
  transform: translate3d(-50%, -50%, 0);
  width: 6px;
}

body.cursor-ready .cursor-glow,
body.cursor-ready .cursor-ring,
body.cursor-ready .cursor-dot {
  opacity: 1;
}

body.cursor-hovering .cursor-ring {
  background: rgba(187, 87, 255, 0.08);
  border-color: rgba(245, 240, 255, 0.96);
  box-shadow:
    0 0 28px rgba(187, 87, 255, 0.44),
    inset 0 0 18px rgba(187, 87, 255, 0.2);
  height: 62px;
  width: 62px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

@keyframes logoGlowDrift {
  0%,
  100% {
    border-radius: 46% 54% 52% 48%;
    filter: blur(24px) hue-rotate(0deg);
    opacity: 0.52;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.9);
  }

  35% {
    border-radius: 58% 42% 48% 52%;
    filter: blur(18px) hue-rotate(16deg);
    opacity: 0.74;
    transform: translate(-50%, -50%) rotate(18deg) scale(1.08);
  }

  70% {
    border-radius: 43% 57% 58% 42%;
    filter: blur(30px) hue-rotate(-14deg);
    opacity: 0.58;
    transform: translate(-50%, -50%) rotate(-16deg) scale(0.98);
  }
}

@keyframes centeredLogoGlow {
  0%,
  100% {
    border-radius: 46% 54% 52% 48%;
    filter: blur(24px) hue-rotate(0deg);
    opacity: 0.56;
    transform: translate(-50%, -50%) translateY(0) rotate(0deg) scale(0.9);
  }

  50% {
    border-radius: 58% 42% 48% 52%;
    filter: blur(19px) hue-rotate(14deg);
    opacity: 0.74;
    transform: translate(-50%, -50%) translateY(-18px) rotate(12deg) scale(1.06);
  }
}

@keyframes logoHaloSpin {
  from {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.04);
  }

  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes flowingCardGlow {
  0% {
    background-position: 0% 50%, 100% 50%;
    transform: scale(1.03);
  }

  100% {
    background-position: 100% 50%, 0% 50%;
    transform: scale(1.03);
  }
}

@keyframes buttonPurplePulse {
  0% {
    opacity: 0.26;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.84;
    transform: scale(1.02);
  }

  100% {
    opacity: 0.26;
    transform: scale(0.94);
  }
}

@keyframes transitionBeat {
  0%,
  100% {
    filter: blur(18px);
  }

  50% {
    filter: blur(10px);
  }
}

@keyframes loaderGlow {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.82);
  }

  22%,
  78% {
    opacity: 0.58;
    transform: scale(1.08);
  }
}

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

@keyframes loadingOrbitAppear {
  0%,
  100% {
    opacity: 0;
  }

  18%,
  82% {
    opacity: 1;
  }
}

@keyframes starStreak {
  0% {
    opacity: 0;
    transform: translate3d(32vw, 0, 0) scaleX(0.06) rotate(var(--angle, 0deg));
  }

  24% {
    opacity: 0.92;
  }

  62% {
    opacity: 0.72;
    transform: translate3d(-8vw, 0, 0) scaleX(1.8) rotate(var(--angle, 0deg));
  }

  100% {
    opacity: 0;
    transform: translate3d(-78vw, 0, 0) scaleX(2.5) rotate(var(--angle, 0deg));
  }
}


@keyframes sectionBounce {
  0% {
    transform: translateY(22px) scale(0.985);
  }

  62% {
    transform: translateY(-8px) scale(1.012);
  }

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

@keyframes toastCountdown {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

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

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

@keyframes developerPanelOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.992);
  }
}

@media (max-width: 860px) {
  body {
    cursor: auto;
  }

  .site-header {
    align-items: center;
    min-height: 68px;
    padding-block: 12px;
  }

  .mobile-nav-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(184, 126, 255, 0.34);
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 0.06em;
    min-height: 42px;
    padding: 0 14px;
    text-transform: uppercase;
  }

  .mobile-nav-toggle-bar {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
    position: relative;
    transition: background 180ms ease;
    width: 18px;
  }

  .mobile-nav-toggle-bar::before,
  .mobile-nav-toggle-bar::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transition: transform 220ms ease;
    width: 18px;
  }

  .mobile-nav-toggle-bar::before {
    transform: translateY(-6px);
  }

  .mobile-nav-toggle-bar::after {
    transform: translateY(6px);
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open .mobile-nav-toggle-bar {
    background: transparent;
  }

  body.mobile-nav-open .mobile-nav-toggle-bar::before {
    transform: rotate(45deg);
  }

  body.mobile-nav-open .mobile-nav-toggle-bar::after {
    transform: rotate(-45deg);
  }

  .mobile-nav {
    background:
      linear-gradient(160deg, rgba(22, 13, 37, 0.95), rgba(10, 6, 18, 0.96)),
      rgba(5, 3, 8, 0.94);
    border-bottom: 1px solid rgba(184, 126, 255, 0.22);
    display: grid;
    gap: 16px;
    left: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 clamp(14px, 5vw, 24px);
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 68px;
    transition:
      max-height 240ms ease,
      opacity 220ms ease,
      padding 220ms ease;
    z-index: 18;
  }

  body.mobile-nav-open .mobile-nav {
    max-height: calc(100vh - 68px);
    opacity: 1;
    overflow: auto;
    padding: 16px clamp(14px, 5vw, 24px) 24px;
    pointer-events: auto;
  }

  .mobile-nav-links,
  .mobile-nav-actions {
    display: grid;
    gap: 10px;
  }

  .mobile-nav a {
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(184, 126, 255, 0.18);
    border-radius: 12px;
    color: var(--ink);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 46px;
    padding: 0 14px;
  }

  .mobile-nav a[aria-current="page"] {
    border-color: rgba(245, 240, 255, 0.52);
    box-shadow: 0 0 22px rgba(187, 87, 255, 0.24);
  }

  .mobile-nav .primary-action,
  .mobile-nav .secondary-action {
    width: 100%;
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .page-shell {
    overflow: visible;
  }

  .hero-section,
  .command-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 56px;
    padding-top: 112px;
  }

  h1 {
    line-height: 0.9;
  }

  h2 {
    line-height: 1.02;
  }

  .section-block,
  .command-section,
  .deploy-section,
  .portal-main,
  .history-view {
    padding-left: clamp(14px, 5vw, 24px);
    padding-right: clamp(14px, 5vw, 24px);
  }

  .hero-glow-one {
    height: min(72vw, 340px);
    left: 50%;
    top: 25%;
    width: min(72vw, 340px);
  }

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

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

  .account-shell,
  .account-grid,
  .account-panels,
  .account-preview-shell,
  .terms-layout,
  .terms-callout-row,
  .portal-grid,
  .login-hero,
  .login-feature-strip,
  .portal-hero,
  .portal-stats-duo,
  .developer-shell,
  .developer-stage-banner,
  .developer-dashboard-grid,
  .developer-portal-grid,
  .developer-builder-grid {
    grid-template-columns: 1fr;
  }

  .portal-span-two {
    grid-column: auto;
  }

  .portal-modal {
    max-width: calc(100vw - 24px);
    padding: 22px;
  }

  .account-auth-card {
    position: static;
    top: auto;
  }

  .history-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .developer-command-deck {
    padding-left: clamp(14px, 5vw, 24px);
    padding-right: clamp(14px, 5vw, 24px);
  }

  .developer-rail {
    position: static;
    top: auto;
  }

  .developer-workbench-bar {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .developer-tab-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .feature-icon {
    margin-bottom: 28px;
  }

  .deploy-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .portal-panel-heading {
    flex-direction: column;
  }

  .developer-workspace-overview,
  .developer-banner-grid,
  .developer-terms-group-head,
  .developer-terms-inline-grid,
  .developer-terms-meta-grid,
  .developer-launch-grid,
  .developer-picker-grid {
    grid-template-columns: 1fr;
  }

  .developer-tab-toggle {
    justify-content: flex-start;
  }

  .portal-title {
    font-size: clamp(2.7rem, 16vw, 4.6rem);
  }

  .login-main {
    min-height: 0;
  }

  .account-card,
  .feature-card,
  .history-card,
  .portal-dev-section,
  .portal-hero-card {
    padding: 20px;
  }

  .history-card {
    min-height: 0;
  }

  .history-hero h2 {
    font-size: clamp(2.8rem, 18vw, 5.2rem);
  }

  .ticket-head {
    align-items: flex-start;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  body {
    cursor: auto;
  }

  .cursor-glow,
  .cursor-ring,
  .cursor-dot {
    display: none;
  }

  .interactive-title span,
  .header-action::after,
  .primary-action::after,
  .scroll-pop,
  .scroll-pop.is-visible .feature-card,
  .scroll-pop.is-visible .terminal-panel,
  .scroll-pop.is-visible .command-copy,
  .scroll-pop.is-visible .deploy-copy {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .portal-toast-viewport {
    bottom: 16px;
    left: 12px;
    right: 12px;
  }

  .portal-toast {
    max-width: 100%;
    width: 100%;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand span {
    display: none;
  }

  .mobile-nav-toggle {
    font-size: 0;
    min-width: 42px;
    padding: 0;
  }

  .mobile-nav-toggle-bar {
    margin-inline: auto;
  }

  h1 {
    font-size: clamp(3rem, 21vw, 4.8rem);
  }

  .hero-lede,
  .account-lede,
  .history-hero p,
  .feature-card p,
  .command-copy p,
  .deploy-copy p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .terminal-body {
    font-size: 0.92rem;
    min-height: 0;
    padding: 18px;
  }

  .terminal-body p {
    padding: 14px 0;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    width: 100%;
  }

  .login-remember {
    align-items: flex-start;
  }

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

  .ticket-head,
  .ticket-meta {
    flex-direction: column;
  }

  .portal-search-row {
    grid-template-columns: 1fr;
  }

  .status-pill {
    bottom: 10%;
    font-size: 0.74rem;
    right: 9%;
  }
}
