:root {
  color-scheme: dark;
  --bg: #050b16;
  --bg-soft: #0d1730;
  --surface: rgba(11, 19, 38, 0.78);
  --surface-2: rgba(16, 26, 50, 0.92);
  --surface-light: rgba(255, 255, 255, 0.05);
  --line: rgba(151, 185, 255, 0.14);
  --line-strong: rgba(151, 185, 255, 0.26);
  --text: #f5f8ff;
  --muted: #9fadd1;
  --cyan: #4be8ff;
  --blue: #6a8fff;
  --violet: #a45fff;
  --pink: #ff5dbf;
  --green: #5de7b4;
  --amber: #ffbc5c;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --hero-rotate-x: 0deg;
  --hero-rotate-y: 0deg;
}

body.light-theme {
  color-scheme: light;
  --bg: #eef4ff;
  --bg-soft: #fbfdff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-2: rgba(255, 255, 255, 0.96);
  --surface-light: rgba(17, 38, 87, 0.05);
  --line: rgba(74, 102, 173, 0.13);
  --line-strong: rgba(74, 102, 173, 0.24);
  --text: #0f1728;
  --muted: #556682;
  --cyan: #00a4d7;
  --blue: #2d64ec;
  --violet: #8545ff;
  --pink: #ea52a7;
  --green: #129d6d;
  --amber: #d28b14;
  --shadow: 0 24px 60px rgba(61, 91, 151, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(75, 232, 255, 0.1), transparent 24%),
    radial-gradient(circle at 84% 0%, rgba(164, 95, 255, 0.16), transparent 28%),
    radial-gradient(circle at 76% 58%, rgba(255, 93, 191, 0.08), transparent 24%),
    linear-gradient(180deg, #030813 0%, var(--bg) 48%, #040915 100%);
  overflow-x: hidden;
}

body.light-theme {
  background:
    radial-gradient(circle at 14% 8%, rgba(0, 164, 215, 0.09), transparent 24%),
    radial-gradient(circle at 84% 0%, rgba(133, 69, 255, 0.1), transparent 28%),
    radial-gradient(circle at 76% 58%, rgba(234, 82, 167, 0.06), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 48%, #edf4ff 100%);
}

body.light-theme {
  --line: rgba(74, 102, 173, 0.2);
  --line-strong: rgba(74, 102, 173, 0.34);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 32%, transparent 84%);
  opacity: 0.42;
}

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

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-bg {
  background:
    radial-gradient(circle at 42% 28%, rgba(106, 143, 255, 0.08), transparent 22%),
    radial-gradient(circle at 62% 68%, rgba(255, 93, 191, 0.05), transparent 24%);
}

.section {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

main {
  position: relative;
  z-index: 1;
}

#developers,
#projects {
  scroll-margin-top: 110px;
}

#hero-intro {
  scroll-margin-top: 140px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 20, 0.86);
}

body.light-theme .topbar {
  background: rgba(249, 251, 255, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
}

.brand-mark span {
  position: absolute;
  border: 1.5px solid currentColor;
  border-radius: 5px;
}

.brand-mark span:nth-child(1) {
  top: 3px;
  left: 8px;
  width: 12px;
  height: 12px;
}

.brand-mark span:nth-child(2) {
  top: 8px;
  left: 2px;
  width: 12px;
  height: 12px;
}

.brand-mark span:nth-child(3) {
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
}

.brand-name {
  font-size: 1.5rem;
}

.nav,
.topbar-actions,
.topbar-menu,
.hero-actions,
.hero-strip,
.chip-row,
.screen-pills,
.screen-metrics,
.ticker-track,
.project-meta,
.dev-tech,
.section-head,
.search-box {
  display: flex;
  align-items: center;
}

.nav {
  justify-content: center;
  gap: 32px;
}

.topbar-menu {
  justify-content: space-between;
  gap: 18px;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-weight: 700;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.topbar-actions {
  justify-content: flex-end;
  gap: 12px;
}

.topbar-auth-button,
.topbar-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  cursor: pointer;
}

.topbar-cta-button {
  gap: 10px;
  min-width: 152px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.topbar-cta-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.topbar-cta-button:hover,
.topbar-cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(106, 143, 255, 0.28);
}

.user-menu {
  position: relative;
}

.user-menu summary {
  list-style: none;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-menu-trigger {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  gap: 0;
  min-height: 52px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.user-menu-trigger:hover,
.user-menu-trigger:focus-visible,
.user-menu[open] .user-menu-trigger {
  transform: translateY(-1px);
  border-color: rgba(75, 232, 255, 0.28);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.user-menu-avatar {
  width: 40px;
  height: 40px;
  min-width: 53px;
  min-height: 40px;
  flex: 0 0 40px;
  font-size: 0.76rem;
  border-width: 2px;
}

.user-menu-unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 10px 18px rgba(75, 232, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.user-menu-trigger-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  z-index: 4;
  border: 2px solid rgba(5, 10, 20, 0.96);
}

.user-menu-caret {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  transition: transform 180ms ease, color 180ms ease;
}

.user-menu[open] .user-menu-caret {
  transform: rotate(180deg);
  color: var(--text);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 25;
  min-width: 240px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(9, 16, 30, 0.96);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.user-menu-header-avatar {
  width: 48px;
  height: 48px;
}

.user-menu-header-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.user-menu-header-copy strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.user-menu-header-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--text);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.user-menu-item + .user-menu-item {
  margin-top: 6px;
}

.user-menu-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.user-menu-item-badge {
  min-width: 26px;
  height: 26px;
  margin-left: auto;
  color: #06101f;
  background: linear-gradient(135deg, #7cf4ff, #b996ff);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 10px 18px rgba(75, 232, 255, 0.14);
}

.user-menu-item-inbox {
  color: #86d8ff;
}

.user-menu-item-account {
  color: #8fb4ff;
}

.user-menu-item-logout {
  color: #ff8da1;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.user-menu-item-inbox:hover,
.user-menu-item-inbox:focus-visible {
  background: linear-gradient(135deg, rgba(75, 232, 255, 0.14), rgba(75, 232, 255, 0.06));
}

.user-menu-item-account:hover,
.user-menu-item-account:focus-visible {
  background: linear-gradient(135deg, rgba(95, 140, 255, 0.14), rgba(164, 95, 255, 0.08));
}

.user-menu-item-logout:hover,
.user-menu-item-logout:focus-visible {
  background: linear-gradient(135deg, rgba(255, 123, 147, 0.16), rgba(255, 123, 147, 0.06));
}

body.light-theme .user-menu-trigger:hover,
body.light-theme .user-menu-trigger:focus-visible,
body.light-theme .user-menu[open] .user-menu-trigger {
  box-shadow: 0 16px 26px rgba(61, 91, 151, 0.12);
  border-color: rgba(45, 100, 236, 0.18);
}

body.light-theme .user-menu-caret {
  border-color: rgba(74, 102, 173, 0.18);
  background: rgba(255, 255, 255, 0.95);
}

body.light-theme .user-menu-trigger-badge {
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 10px 18px rgba(61, 91, 151, 0.18),
    0 0 0 1px rgba(45, 100, 236, 0.12);
}

body.light-theme .user-menu-item-badge {
  color: #123052;
  background: linear-gradient(135deg, #b9efff, #d6c8ff);
  box-shadow:
    inset 0 0 0 1px rgba(45, 100, 236, 0.12),
    0 10px 18px rgba(61, 91, 151, 0.12);
}

body.light-theme .user-menu-dropdown {
  border-color: rgba(74, 102, 173, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 246, 255, 0.92)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 44px rgba(61, 91, 151, 0.14);
}

body.light-theme .user-menu-header {
  border-bottom-color: rgba(74, 102, 173, 0.12);
}

body.light-theme .user-menu-item {
  color: #1c2640;
}

body.light-theme .user-menu-item-inbox {
  color: #0f9dd6;
}

body.light-theme .user-menu-item-account {
  color: #4467d9;
}

body.light-theme .user-menu-item-logout {
  color: #d14d74;
}

body.light-theme .user-menu-item:hover,
body.light-theme .user-menu-item:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(74, 102, 173, 0.08);
}

body.light-theme .user-menu-item-inbox:hover,
body.light-theme .user-menu-item-inbox:focus-visible {
  background: linear-gradient(135deg, rgba(89, 198, 255, 0.16), rgba(210, 244, 255, 0.6));
}

body.light-theme .user-menu-item-account:hover,
body.light-theme .user-menu-item-account:focus-visible {
  background: linear-gradient(135deg, rgba(111, 141, 255, 0.16), rgba(232, 224, 255, 0.7));
}

body.light-theme .user-menu-item-logout:hover,
body.light-theme .user-menu-item-logout:focus-visible {
  background: linear-gradient(135deg, rgba(255, 179, 197, 0.28), rgba(255, 238, 243, 0.88));
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: end;
  width: 52px;
  height: 44px;
  padding: 0;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-light);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
  pointer-events: none;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.theme-toggle,
.ghost-button,
.primary-button {
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}

.theme-toggle {
  width: 58px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(75, 232, 255, 0.08));
  color: var(--text);
  cursor: pointer;
}

.theme-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.moon-icon,
.sun-icon {
  position: absolute;
  transition: opacity 220ms ease, transform 220ms ease;
}

.moon-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: -6px 0 0 0 #fff;
  transform: translateX(3px);
}

.sun-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 188, 92, 0.22);
  opacity: 0;
  transform: scale(0.7);
}

body.light-theme .moon-icon {
  opacity: 0;
  transform: scale(0.7);
}

body.light-theme .sun-icon {
  opacity: 1;
  transform: scale(1);
}

.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, filter 180ms ease;
}

.ghost-button {
  border: 1px solid var(--line-strong);
  background: var(--surface-light);
}

.primary-button {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 18px 30px rgba(106, 143, 255, 0.2);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(75, 232, 255, 0.32);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(75, 232, 255, 0.12);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(106, 143, 255, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
  filter: saturate(1.06);
}

.ghost-button:active,
.primary-button:active {
  transform: translateY(0);
}

.large-button {
  padding: 15px 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 28px;
  min-height: calc(100vh - 88px);
  align-items: center;
  padding-top: 28px;
  padding-bottom: 36px;
}

.eyebrow,
.panel-kicker,
.card-tag,
.screen-label {
  margin: 0;
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero h1,
.section-head h2,
.project-copy h3,
.dev-copy h3,
.floating-card h2,
.screen-panel strong {
  font-family: "Space Grotesk", sans-serif;
}

.hero h1 {
  margin: 11px 0 15px;
  max-width: 11.4ch;
  font-size: clamp(2.52rem, 4.35vw, 4.4rem);
  line-height: 0.96;
}

.hero-text {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}


.search-box {
  gap: 12px;
  width: min(100%, 540px);
  margin-top: 16px;
  padding: 10px 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.search-box:hover {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 34px rgba(0, 0, 0, 0.18);
}

.search-box svg {
  width: 22px;
  height: 22px;
  fill: var(--muted);
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  min-width: 0;
  flex: 1 1 220px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.search-box:has(input:focus),
.search-box:has(input:not(:placeholder-shown)) {
  border-color: rgba(0, 229, 204, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 229, 204, 0.2),
    0 0 38px rgba(0, 229, 204, 0.16);
}

.search-box-button {
  flex: 0 0 auto;
  min-width: 112px;
  margin-left: 4px;
  padding: 10px 16px;
  border-radius: 22px;
}

.hero-actions,
.hero-strip,
.screen-pills,
.project-meta,
.dev-tech {
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 18px;
}

.hero-strip {
  margin-top: 20px;
  flex-wrap: nowrap;
  align-items: stretch;
}

.mini-stat,
.floating-card,
.console,
.dev-card,
.project-card {
  position: relative;
  overflow: hidden;
}

.mini-stat,
.floating-card,
.console,
.showcase,
.project-card,
.dev-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.mini-stat {
  min-width: 0;
  flex: 1 1 0;
  padding: 14px 16px;
  border-radius: 22px;
}

.mini-stat strong {
  display: block;
  font-size: 1.15rem;
}

.mini-stat span,
.floating-card p,
.screen-panel p,
.project-copy p,
.dev-copy p,
.dev-copy span {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 720px;
}

.hero-orbit,
.glow,
.hero-spark,
.stage-floor,
.hero-note,
.floating-card,
.console,
.signal,
.scanline,
.base-shadow {
  position: absolute;
}

.hero-orbit {
  border-radius: 50%;
  border: 1px solid var(--line);
}

.orbit-a {
  inset: 60px 70px 160px 90px;
  transform: rotate(-8deg);
}

.orbit-b {
  inset: 12px 10px 72px 150px;
  border-color: rgba(164, 95, 255, 0.14);
}

.glow,
.hero-spark {
  border-radius: 50%;
}

.glow {
  filter: blur(6px);
}

.glow-a {
  top: 8%;
  right: 10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(164, 95, 255, 0.28), transparent 70%);
}

.glow-b {
  bottom: 12%;
  left: 12%;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(75, 232, 255, 0.24), transparent 70%);
}

.hero-spark {
  width: 10px;
  height: 10px;
  background: #fff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.8);
}

.spark-a {
  top: 14%;
  left: 56%;
  animation: sparkPulse 4.4s ease-in-out infinite;
}

.spark-b {
  bottom: 22%;
  right: 16%;
  animation: sparkPulse 5.2s ease-in-out infinite -1s;
}

.spark-c {
  top: 26%;
  right: 34%;
  animation: sparkPulse 4.8s ease-in-out infinite -0.5s;
}

.stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateY(-15px) perspective(1600px) rotateX(var(--hero-rotate-x)) rotateY(var(--hero-rotate-y));
}

.stage-floor {
  left: 14%;
  right: 10%;
  bottom: 92px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 232, 255, 0.2), rgba(5, 11, 22, 0) 64%);
  filter: blur(5px);
}

.hero-note {
  top: -22px;
  left: 24%;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(75, 232, 255, 0.1), rgba(164, 95, 255, 0.1));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  transform: translateZ(80px);
}

.hero-note span {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.floating-card {
  width: 280px;
  padding: 20px;
  border-radius: 26px;
}

.floating-card::before,
.project-card::before,
.dev-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.card-left {
  top: 48px;
  left: 14px;
  transform: translateZ(110px) rotateY(18deg);
  animation: floatCardLeft 18s ease-in-out infinite;
}

.card-right {
  top: 120px;
  right: 20px;
  transform: translateZ(92px) rotateY(-18deg);
  animation: floatCardRight 19s ease-in-out infinite -1.4s;
}

.floating-card h2 {
  margin: 12px 0 10px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.chip-row {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.chip-row span,
.screen-pills span,
.project-meta span,
.dev-tech span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  white-space: nowrap;
}

body.light-theme .chip-row span,
body.light-theme .screen-pills span,
body.light-theme .project-meta span,
body.light-theme .dev-tech span,
body.light-theme .theme-toggle,
body.light-theme .ghost-button,
body.light-theme .mini-stat,
body.light-theme .floating-card,
body.light-theme .console,
body.light-theme .showcase,
body.light-theme .project-card,
body.light-theme .dev-card,
body.light-theme .project-art,
body.light-theme .console-top,
body.light-theme .console-screen,
body.light-theme .section-label {
  border-color: var(--line-strong);
}

body.light-theme .console-top {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(238, 245, 255, 0.82));
}

body.light-theme .console-title {
  color: #61718d;
}

body.light-theme .console-screen {
  background:
    linear-gradient(180deg, rgba(252, 253, 255, 0.96), rgba(231, 240, 255, 0.94)),
    radial-gradient(circle at 20% 15%, rgba(45, 100, 236, 0.12), transparent 20%),
    radial-gradient(circle at 80% 18%, rgba(133, 69, 255, 0.12), transparent 22%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 34px 90px rgba(61, 91, 151, 0.16);
}

body.light-theme .screen-grid {
  background-image:
    linear-gradient(rgba(18, 32, 58, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 32, 58, 0.05) 1px, transparent 1px);
  opacity: 0.4;
}

body.light-theme .screen-panel,
body.light-theme .metric-card {
  border-color: rgba(45, 100, 236, 0.14);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 40px rgba(61, 91, 151, 0.08);
}

body.light-theme .metric-card::after {
  background: radial-gradient(circle, rgba(45, 100, 236, 0.12), transparent 70%);
}

body.light-theme .beam-stack span {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(45, 100, 236, 0.26));
}

body.light-theme .beam-stack span:nth-child(2) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(106, 143, 255, 0.28));
}

body.light-theme .beam-stack span:nth-child(3) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(133, 69, 255, 0.24));
}

body.light-theme .beam-stack span:nth-child(4) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(93, 231, 180, 0.22));
}

body.light-theme .console-base {
  background: linear-gradient(180deg, rgba(214, 228, 255, 0.94), rgba(170, 192, 235, 0.92));
}

body.light-theme .base-lights {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
}

body.light-theme .base-shadow {
  background: radial-gradient(circle, rgba(45, 100, 236, 0.14), rgba(233, 241, 255, 0) 66%);
}

.console {
  left: 13%;
  right: 9%;
  top: 132px;
  bottom: 72px;
  border-radius: 34px;
  transform: translateZ(48px) rotateX(10deg) rotateY(-7deg);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff6f7a; }
.dot-yellow { background: #ffcb58; }
.dot-green { background: #3bdd8d; }

.console-title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.console-screen {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 34px 34px;
  background:
    linear-gradient(180deg, rgba(10, 18, 35, 0.88), rgba(8, 13, 25, 0.98)),
    radial-gradient(circle at 20% 15%, rgba(75, 232, 255, 0.16), transparent 20%),
    radial-gradient(circle at 80% 18%, rgba(164, 95, 255, 0.18), transparent 22%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 56px rgba(0, 0, 0, 0.26);
}

.screen-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.24;
}

.signal {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(151, 185, 255, 0.12);
}

.signal-a {
  top: 48px;
  right: 72px;
  animation: orbitPulse 14s ease-in-out infinite;
}

.signal-b {
  bottom: 84px;
  left: 52px;
  animation: orbitPulse 15s ease-in-out infinite -1.6s;
}

.scanline {
  inset: -20% 0 auto;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(75, 232, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0.2;
  animation: scanDown 16s linear infinite;
}

.screen-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.88fr;
  gap: 18px;
  padding: 18px 28px 28px;
}

.screen-panel,
.metric-card {
  border: 1px solid rgba(151, 185, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-primary {
  min-height: 290px;
  padding: 24px;
  border-radius: 28px;
  transform: translateY(-11px);
}

.screen-panel strong {
  display: block;
  margin: 14px 0 12px;
  max-width: 12ch;
  font-size: 2rem;
  line-height: 1;
}

.screen-panel p {
  max-width: 42ch;
  margin: 0;
  line-height: 1.7;
}

.screen-pills {
  margin-top: 18px;
}

.screen-metrics {
  flex-direction: column;
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -50% 40%;
  height: 120px;
  background: radial-gradient(circle, rgba(75, 232, 255, 0.16), transparent 70%);
  opacity: 0.8;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
}

.beam-stack {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.beam-stack span {
  height: 110px;
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(75, 232, 255, 0.42));
  animation: beamRise 11s ease-in-out infinite;
  transform-origin: bottom center;
}

.beam-stack span:nth-child(2) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(106, 143, 255, 0.44));
  animation-delay: -0.6s;
}

.beam-stack span:nth-child(3) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(164, 95, 255, 0.42));
  animation-delay: -1.2s;
}

.beam-stack span:nth-child(4) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(93, 231, 180, 0.38));
  animation-delay: -1.8s;
}

.console-base {
  position: relative;
  width: 62%;
  height: 26px;
  margin: 0 auto;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, rgba(180, 209, 255, 0.34), rgba(9, 14, 25, 0.94));
}

.base-lights {
  position: absolute;
  inset: 5px 24px auto;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.base-shadow {
  left: 50%;
  bottom: -40px;
  width: 320px;
  height: 90px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 232, 255, 0.2), rgba(5, 11, 22, 0) 66%);
  filter: blur(6px);
}

.ticker {
  width: 100%;
  overflow: hidden;
  padding: 0 0 24px;
}

.ticker-track {
  gap: 18px;
  width: max-content;
  padding-left: 24px;
  animation: marquee 42s linear infinite;
}

.ticker-track span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.showcase {
  width: min(100%, 1600px);
  margin: 0 auto 24px;
  padding: 24px;
  border-radius: 34px;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.02;
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(75, 232, 255, 0.14), rgba(164, 95, 255, 0.12));
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.developers-grid,
.projects-grid {
  display: grid;
  gap: 18px;
}

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

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

.dev-card,
.project-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  will-change: auto;
}

.dev-card:hover,
.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(75, 232, 255, 0.5);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(75, 232, 255, 0.18);
}

body.light-theme .dev-card:hover,
body.light-theme .project-card:hover {
  border-color: rgba(45, 100, 236, 0.42);
  box-shadow: 0 30px 70px rgba(61, 91, 151, 0.18), 0 0 0 1px rgba(45, 100, 236, 0.16);
}

.dev-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
}

.developers-empty {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  max-width: 760px;
  width: 100%;
  margin: 8px auto 0;
  padding: 42px 32px;
  border: 1px solid rgba(75, 232, 255, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.08), rgba(164, 95, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(75, 232, 255, 0.08);
  text-align: center;
}

.developers-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(75, 232, 255, 0.16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(164, 95, 255, 0.14), transparent 34%);
  pointer-events: none;
}

.developers-empty > * {
  position: relative;
  z-index: 1;
}

.developers-empty-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border: 1px solid rgba(75, 232, 255, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.18), rgba(164, 95, 255, 0.14)),
    rgba(255, 255, 255, 0.04);
  color: var(--cyan);
  box-shadow: 0 18px 34px rgba(75, 232, 255, 0.12);
}

.developers-empty-icon svg {
  width: 36px;
  height: 36px;
}

.developers-empty-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.developers-empty h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1;
}

.developers-empty p {
  max-width: 58ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.developers-empty p strong {
  color: var(--text);
  font-weight: 800;
}

.developers-empty-action {
  min-width: 170px;
}

.dev-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.avatar-cyan {
  background: radial-gradient(circle at 30% 30%, #96f8ff, #018bb9);
  box-shadow: 0 0 28px rgba(75, 232, 255, 0.28);
}

.avatar-violet {
  background: radial-gradient(circle at 30% 30%, #dfb2ff, #6f20c1);
  box-shadow: 0 0 28px rgba(164, 95, 255, 0.28);
}

.avatar-green {
  background: radial-gradient(circle at 30% 30%, #b8ffe2, #0b9b69);
  box-shadow: 0 0 28px rgba(93, 231, 180, 0.28);
}

.dev-copy h3,
.project-copy h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.dev-copy h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.dev-card-followers {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.dev-copy p {
  margin: 0 0 10px;
  color: var(--cyan);
  font-weight: 700;
}

.project-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 28px;
}

.project-art {
  position: relative;
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(151, 185, 255, 0.16);
  display: grid;
  place-items: center;
}

.project-art-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: rgba(10, 18, 35, 0.42);
}

.project-art::before,
.project-art::after {
  content: "";
  position: absolute;
  border-radius: 18px;
  pointer-events: none;
}

.project-art::before {
  inset: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(-8deg);
}

.project-art::after {
  inset: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(10deg);
}

.art-cyan {
  background:
    radial-gradient(circle at 30% 30%, rgba(75, 232, 255, 0.38), transparent 36%),
    linear-gradient(135deg, rgba(75, 232, 255, 0.24), rgba(11, 19, 38, 0.62));
}

.art-blue {
  background:
    radial-gradient(circle at 30% 30%, rgba(106, 143, 255, 0.36), transparent 36%),
    linear-gradient(135deg, rgba(106, 143, 255, 0.24), rgba(11, 19, 38, 0.62));
}

.art-pink {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 93, 191, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(255, 93, 191, 0.22), rgba(11, 19, 38, 0.62));
}

.project-copy p {
  margin: 0;
  line-height: 1.7;
}

.project-copy .ghost-button {
  margin-top: 16px;
}

.reveal {
  opacity: 1;
  transform: none;
}

html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease,
    transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCardLeft {
  0%, 100% {
    transform: translateZ(110px) translateY(0) rotateY(18deg);
  }
  50% {
    transform: translateZ(132px) translateY(-16px) rotateY(13deg);
  }
}

@keyframes floatCardRight {
  0%, 100% {
    transform: translateZ(92px) translateY(0) rotateY(-18deg);
  }
  50% {
    transform: translateZ(120px) translateY(-14px) rotateY(-12deg);
  }
}

@keyframes sparkPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.8);
    opacity: 1;
  }
}

@keyframes orbitPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.26;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.48;
  }
}

@keyframes scanDown {
  from {
    transform: translateY(-20%);
  }
  to {
    transform: translateY(260%);
  }
}

@keyframes beamRise {
  0%, 100% {
    transform: scaleY(0.78);
    opacity: 0.68;
  }
  50% {
    transform: scaleY(1.1);
    opacity: 1;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-40%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto 1fr;
    justify-items: stretch;
  }

  .topbar-menu {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav,
  .topbar-actions {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .hero-visual {
    min-height: 620px;
  }

  .hero-note {
    top: -12px;
    left: 10%;
  }

  .floating-card {
    width: 230px;
  }

  .card-left {
    top: 30px;
    left: 0;
  }

  .card-right {
    top: 92px;
    right: 0;
  }

  .console {
    left: 10%;
    right: 8%;
    top: 146px;
    bottom: 56px;
  }

  .screen-layout {
    grid-template-columns: 1fr 0.8fr;
    gap: 14px;
    padding: 20px 20px 24px;
  }

  .panel-primary {
    min-height: 240px;
    padding: 20px;
    transform: translateY(0);
  }

  .screen-panel strong {
    max-width: 10ch;
    font-size: 1.65rem;
  }

  .screen-panel p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .screen-pills span {
    padding: 7px 9px;
    font-size: 0.76rem;
  }

  .developers-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    grid-template-columns: auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand {
    gap: 12px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .topbar-menu {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
      var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
  }

  .topbar-menu.is-open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    font-size: 0.98rem;
  }

  .nav a {
    padding: 10px 4px;
  }

  .nav a::after {
    display: none;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    min-height: auto;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 24px;
  }

  .hero h1 {
    max-width: 9.5ch;
    font-size: clamp(2.35rem, 10.8vw, 3.8rem);
    line-height: 0.98;
  }

  .hero-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .search-box {
    width: 100%;
    margin-top: 14px;
    padding: 13px 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .hero-actions .large-button,
  .topbar-actions .ghost-button,
  .topbar-actions .primary-button,
  .topbar-actions .theme-toggle,
  .topbar-actions .user-menu {
    width: 100%;
  }

  .topbar-actions .theme-toggle {
    border-radius: 18px;
  }

  .user-menu-dropdown {
    position: static;
    min-width: 0;
    margin-top: 10px;
    box-shadow: none;
  }

  .user-menu-trigger {
    width: 52px;
  }

  .hero-strip {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }

  .mini-stat {
    flex: 1 1 100%;
  }

  .hero-visual {
    min-height: 500px;
  }

  .stage {
    transform: translateY(-8px) perspective(1600px) rotateX(var(--hero-rotate-x)) rotateY(var(--hero-rotate-y));
  }

  .hero-note {
    top: -2px;
    left: 4%;
    right: 4%;
    text-align: center;
    padding: 9px 12px;
  }

  .floating-card {
    width: 156px;
    padding: 12px;
  }

  .floating-card h2 {
    font-size: 0.92rem;
  }

  .card-left {
    top: 26px;
    left: -4px;
  }

  .card-right {
    top: 86px;
    right: -4px;
  }

  .console {
    left: 3%;
    right: 3%;
    top: 112px;
    bottom: 44px;
  }

  .console-screen {
    min-height: 320px;
  }

  .screen-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 14px 18px;
  }

  .screen-panel strong {
    max-width: none;
    font-size: 1.18rem;
  }

  .screen-panel p,
  .metric-card span,
  .project-copy p,
  .dev-copy span {
    font-size: 0.86rem;
  }

  .metric-card {
    padding: 14px;
  }

  .beam-stack {
    left: 18px;
    right: 18px;
    bottom: 16px;
    gap: 10px;
  }

  .beam-stack span {
    height: 64px;
  }

  .screen-pills {
    gap: 8px;
  }

  .screen-pills span {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .showcase {
    padding: 18px;
    border-radius: 28px;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 18px;
  }

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

  .dev-card,
  .project-card {
    padding: 18px;
    border-radius: 24px;
  }

  .developers-empty {
    padding: 34px 20px;
    border-radius: 26px;
  }

  .developers-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
  }
}

.dev-card-top {
  display: flex;
  align-items: flex-start;
}

.avatar {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border: 3px solid rgba(75, 232, 255, 0.75);
  border-radius: 50%;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(12, 24, 49, 0.96), rgba(38, 64, 117, 0.92));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.avatar-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.avatar-xl { width: 150px; height: 150px; font-size: 2rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 1.35rem; }
.avatar-md { width: 68px; height: 68px; font-size: 1rem; }
.avatar-sm { width: 52px; height: 52px; font-size: 0.82rem; }

.dev-card-top {
  gap: 16px;
}

.dev-tech:empty {
  display: none;
}

.dev-card-avatar-link {
  display: inline-flex;
  border-radius: 50%;
}

.dev-card-avatar-link:focus-visible {
  outline: 0;
}

.dev-card-name-link {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.dev-card-name-link:hover,
.dev-card-name-link:focus-visible {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(75, 232, 255, 0.18);
}

.dev-card-bio {
  display: -webkit-box;
  height: 5.25rem;
  min-height: 5.25rem;
  line-height: 1.75;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dev-tech {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  overflow: hidden;
}

.dev-tech span {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  padding: 7px 8px;
  font-size: 0.74rem;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-tech .dev-tech-chip-sm {
  font-size: 0.68rem;
  padding-inline: 6px;
}

.dev-tech .dev-tech-chip-xs {
  font-size: 0.62rem;
  padding-inline: 5px;
}

.dev-card-link {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  gap: 8px;
  width: 168px;
  max-width: 100%;
  height: 46px;
  padding: 0 16px;
  line-height: 1;
  text-align: center;
  font-variant-ligatures: none;
}

.dev-card-link-view {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 18px 30px rgba(106, 143, 255, 0.2);
}

.dev-card-link-view:hover,
.dev-card-link-view:focus-visible {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 22px 38px rgba(106, 143, 255, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
  filter: saturate(1.06);
}

body.light-theme .dev-card-link-view {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 30px rgba(61, 91, 151, 0.16);
}

body.light-theme .dev-card-link-view:hover,
body.light-theme .dev-card-link-view:focus-visible {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 22px 38px rgba(61, 91, 151, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.dev-card-link-account {
  width: 190px;
  color: #07111f;
  border: 1px solid rgba(255, 188, 92, 0.38);
  background: linear-gradient(135deg, #ffcf76, #ff7fb3);
  box-shadow: 0 18px 30px rgba(255, 127, 179, 0.18);
}

.dev-card-link-account:hover,
.dev-card-link-account:focus-visible {
  color: #07111f;
  border-color: rgba(255, 207, 118, 0.55);
  background: linear-gradient(135deg, #ffda91, #ff8fc0);
  box-shadow: 0 22px 38px rgba(255, 127, 179, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.14);
  filter: saturate(1.06);
}

body.light-theme .dev-card-link-account {
  color: #07111f;
  border-color: rgba(210, 139, 20, 0.3);
  box-shadow: 0 18px 30px rgba(210, 139, 20, 0.14);
}

body.light-theme .dev-card-link-account:hover,
body.light-theme .dev-card-link-account:focus-visible {
  color: #07111f;
  border-color: rgba(210, 139, 20, 0.42);
  box-shadow: 0 22px 38px rgba(210, 139, 20, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.dev-card-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.dev-card-link span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.dev-card-own {
  position: relative;
  border-color: rgba(75, 232, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(75, 232, 255, 0.08), rgba(164, 95, 255, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(75, 232, 255, 0.12);
}

.dev-card-owner-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(75, 232, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.16), rgba(164, 95, 255, 0.12)),
    rgba(255, 255, 255, 0.04);
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.light-theme .dev-card-own {
  border-color: rgba(45, 100, 236, 0.22);
  background:
    linear-gradient(180deg, rgba(45, 100, 236, 0.08), rgba(133, 69, 255, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 247, 255, 0.72)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 24px 52px rgba(61, 91, 151, 0.12),
    0 0 0 1px rgba(45, 100, 236, 0.1);
}

body.light-theme .developers-empty {
  border-color: rgba(45, 100, 236, 0.18);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.08), rgba(133, 69, 255, 0.07)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 245, 255, 0.82)),
    #eef4ff;
  box-shadow: 0 24px 56px rgba(61, 91, 151, 0.13), 0 0 0 1px rgba(45, 100, 236, 0.08);
}

body.light-theme .developers-empty::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 100, 236, 0.12), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(133, 69, 255, 0.1), transparent 34%);
}

body.light-theme .developers-empty-icon {
  border-color: rgba(45, 100, 236, 0.18);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.12), rgba(133, 69, 255, 0.1)),
    rgba(255, 255, 255, 0.72);
  color: var(--blue);
  box-shadow: 0 18px 34px rgba(61, 91, 151, 0.12);
}

body.light-theme .developers-empty-kicker {
  color: var(--blue);
}

body.light-theme .dev-card-owner-tag {
  border-color: rgba(45, 100, 236, 0.16);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.1), rgba(133, 69, 255, 0.08)),
    rgba(255, 255, 255, 0.84);
  color: var(--blue);
}

.user-profile-page {
  padding-top: 22px;
  padding-bottom: 56px;
  display: grid;
  gap: 24px;
}

.profile-form-page {
  padding-top: 22px;
  padding-bottom: 56px;
  display: grid;
  gap: 24px;
}

.profile-form-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.profile-form-top-message {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.18em;
  min-height: 52px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.profile-form-top-message-word {
  display: inline-flex;
  gap: 0.02em;
}

.profile-form-top-message span {
  animation: profileTopWordFloat 5.8s ease-in-out infinite;
}

.profile-form-top-message span span:nth-child(5n + 1) {
  color: #43ddff;
  text-shadow: 0 0 16px rgba(67, 221, 255, 0.28);
}

.profile-form-top-message span span:nth-child(5n + 2) {
  color: #bb7cff;
  text-shadow: 0 0 16px rgba(187, 124, 255, 0.26);
}

.profile-form-top-message span span:nth-child(5n + 3) {
  color: #ff76b2;
  text-shadow: 0 0 16px rgba(255, 118, 178, 0.24);
}

.profile-form-top-message span span:nth-child(5n + 4) {
  color: #5be4a8;
  text-shadow: 0 0 16px rgba(91, 228, 168, 0.24);
}

.profile-form-top-message span span:nth-child(5n) {
  color: #ffc95c;
  text-shadow: 0 0 16px rgba(255, 201, 92, 0.22);
}

.profile-form-top-message span span:hover {
  transform: translateY(-4px) scale(1.06);
}

.profile-form-topbar-spacer {
  width: 160px;
}

@keyframes profileTopWordFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.profile-form-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: start;
}

.profile-form-intro,
.profile-form-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
}

.profile-form-intro {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 20px;
  padding: 28px;
  overflow: hidden;
}

.profile-form-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 14% 12%, rgba(75, 232, 255, 0.12), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(164, 95, 255, 0.14), transparent 30%),
    radial-gradient(circle at 42% 78%, rgba(255, 194, 92, 0.08), transparent 22%);
  pointer-events: none;
}

.profile-form-intro > * {
  position: relative;
  z-index: 1;
}

.profile-form-intro-banner {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(75, 232, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.16), rgba(164, 95, 255, 0.14), rgba(255, 194, 92, 0.14)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}

.profile-form-intro-banner-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-form-intro h1,
.profile-form-card-head h2,
.profile-form-highlight h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.profile-form-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.profile-form-intro p,
.profile-form-card-head p,
.profile-form-help,
.profile-form-file-note,
.profile-form-errors p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-form-highlight {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(75, 232, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.1), rgba(164, 95, 255, 0.1), rgba(255, 194, 92, 0.06)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 32px rgba(0, 0, 0, 0.12);
}

.profile-form-highlight-copy {
  display: grid;
  gap: 8px;
}

.profile-form-highlight h2 {
  font-size: 1.2rem;
}

.profile-form-highlight-copy p {
  max-width: 44ch;
  color: var(--muted);
  line-height: 1.65;
}

.profile-form-highlight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-form-highlight-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.08), rgba(164, 95, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.profile-form-highlight-grid span:hover {
  transform: translateY(-2px);
  border-color: rgba(75, 232, 255, 0.24);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.12);
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.12), rgba(164, 95, 255, 0.12)),
    rgba(255, 255, 255, 0.05);
}

.profile-form-card {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.profile-form-card-head {
  display: grid;
  gap: 10px;
}

.profile-form-card-head h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
}

.profile-edit-form {
  display: grid;
  gap: 26px;
}

.profile-form-section {
  display: grid;
  gap: 18px;
}

.profile-form-section-head {
  display: grid;
  gap: 6px;
}

.profile-form-section-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

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

.profile-form-field {
  display: grid;
  gap: 10px;
}

.profile-form-field-wide {
  grid-column: 1 / -1;
}

.profile-form-label {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.profile-form-field input,
.profile-form-field textarea,
.profile-form-field select {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(75, 232, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.profile-form-field textarea {
  min-height: 126px;
  resize: vertical;
}

.profile-form-story-grid {
  display: grid;
  gap: 18px;
}

.profile-form-story-grid #id_short_intro {
  min-height: 58px;
}

.profile-form-story-grid #id_bio {
  min-height: 180px;
}

.profile-form-field input:hover,
.profile-form-field textarea:hover,
.profile-form-field select:hover {
  border-color: rgba(75, 232, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(75, 232, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
}

.profile-form-field input:focus,
.profile-form-field textarea:focus,
.profile-form-field select:focus {
  outline: 0;
  transform: translateY(-1px);
  border-color: rgba(75, 232, 255, 0.48);
  box-shadow:
    0 0 0 4px rgba(75, 232, 255, 0.12),
    0 18px 34px rgba(0, 0, 0, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(75, 232, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
}

.profile-form-file-wrap {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px dashed rgba(75, 232, 255, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.08), rgba(164, 95, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
}

.profile-form-file-wrap:hover {
  border-color: rgba(75, 232, 255, 0.42);
}

.profile-form-file-wrap input[type="file"] {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-form-file-wrap input[type="file"]:focus {
  transform: none;
  box-shadow: none;
}

.profile-avatar-editor {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-avatar-preview-wrap {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.profile-avatar-preview {
  width: 168px;
  height: 168px;
}

.profile-form-file-panel {
  display: grid;
  gap: 12px;
}

.profile-form-upload-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px dashed rgba(75, 232, 255, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.08), rgba(164, 95, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.profile-form-upload-box:hover {
  transform: translateY(-1px);
  border-color: rgba(75, 232, 255, 0.42);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.14);
}

.profile-form-upload-box input[type="file"] {
  display: none;
}

.profile-form-upload-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-form-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(75, 232, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.18), rgba(164, 95, 255, 0.14)),
    rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.profile-form-upload-button:hover,
.profile-form-upload-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(75, 232, 255, 0.34);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
}

.profile-form-clear-button {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 123, 147, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 123, 147, 0.12), rgba(255, 98, 132, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: #ff7b93;
}

.profile-form-clear-button:hover,
.profile-form-clear-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 123, 147, 0.42);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
}

.profile-form-clear-button svg {
  width: 18px;
  height: 18px;
}

.profile-form-upload-name {
  color: var(--muted);
  font-weight: 700;
  word-break: break-word;
}

.profile-social-form-grid {
  display: grid;
  gap: 16px;
}

.profile-social-field {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.profile-social-field:hover {
  transform: translateY(-2px);
  border-color: rgba(75, 232, 255, 0.24);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.14);
}

.profile-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.08), rgba(164, 95, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.profile-social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.profile-social-input {
  display: grid;
  gap: 10px;
}

.profile-social-input input {
  min-height: 52px;
  padding-left: 18px;
  border: 1px solid rgba(75, 232, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(75, 232, 255, 0.05)),
    rgba(13, 20, 36, 0.56);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-social-input input::placeholder {
  color: rgba(203, 214, 241, 0.62);
}

.profile-social-field:hover .profile-social-input input {
  border-color: rgba(75, 232, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(75, 232, 255, 0.06)),
    rgba(15, 24, 42, 0.64);
}

.profile-social-input input:focus {
  outline: 0;
  transform: translateY(-1px);
  border-color: rgba(75, 232, 255, 0.42);
  box-shadow:
    0 0 0 4px rgba(75, 232, 255, 0.12),
    0 16px 28px rgba(0, 0, 0, 0.16);
}

.profile-social-errors {
  grid-column: 1 / -1;
}

.profile-social-github .profile-social-icon {
  color: #f5f8ff;
}

.profile-social-linkedin .profile-social-icon {
  color: #0a66c2;
}

.profile-social-youtube .profile-social-icon {
  color: #ff3434;
}

.profile-social-website .profile-social-icon {
  color: #4be8ff;
}

.profile-social-instagram .profile-social-icon {
  color: #ff5dbf;
}

.profile-form-errors {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 123, 147, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 123, 147, 0.12), rgba(255, 98, 132, 0.06)),
    rgba(255, 255, 255, 0.03);
}

.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

body.light-theme .profile-form-intro,
body.light-theme .profile-form-card {
  border-color: rgba(74, 102, 173, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 247, 255, 0.72)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 46px rgba(61, 91, 151, 0.1);
}

body.light-theme .profile-form-highlight {
  border-color: rgba(45, 100, 236, 0.16);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.08), rgba(133, 69, 255, 0.08), rgba(255, 194, 92, 0.08)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 16px 28px rgba(61, 91, 151, 0.08);
}

body.light-theme .profile-form-intro-banner {
  border-color: rgba(45, 100, 236, 0.16);
  background:
    linear-gradient(135deg, rgba(89, 198, 255, 0.18), rgba(166, 117, 255, 0.14), rgba(255, 198, 92, 0.16)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 24px rgba(61, 91, 151, 0.1);
}

body.light-theme .profile-form-highlight-grid span {
  border-color: rgba(74, 102, 173, 0.16);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.08), rgba(133, 69, 255, 0.06)),
    rgba(255, 255, 255, 0.8);
}

body.light-theme .profile-form-highlight-grid span:hover {
  border-color: rgba(45, 100, 236, 0.22);
  box-shadow: 0 12px 20px rgba(61, 91, 151, 0.1);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.12), rgba(133, 69, 255, 0.09)),
    rgba(255, 255, 255, 0.92);
}

body.light-theme .profile-form-field input,
body.light-theme .profile-form-field textarea,
body.light-theme .profile-form-field select {
  border-color: rgba(74, 102, 173, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 255, 0.9)),
    rgba(255, 255, 255, 0.96);
  color: #1f2942;
}

body.light-theme .profile-form-field input:hover,
body.light-theme .profile-form-field textarea:hover,
body.light-theme .profile-form-field select:hover {
  border-color: rgba(45, 100, 236, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 255, 0.98)),
    rgba(255, 255, 255, 0.98);
}

body.light-theme .profile-form-field input:focus,
body.light-theme .profile-form-field textarea:focus,
body.light-theme .profile-form-field select:focus {
  border-color: rgba(45, 100, 236, 0.36);
  box-shadow:
    0 0 0 4px rgba(45, 100, 236, 0.1),
    0 18px 28px rgba(61, 91, 151, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(240, 247, 255, 1)),
    rgba(255, 255, 255, 1);
}

body.light-theme .profile-form-file-wrap {
  border-color: rgba(45, 100, 236, 0.2);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.06), rgba(133, 69, 255, 0.05)),
    rgba(255, 255, 255, 0.86);
}

body.light-theme .profile-form-upload-box {
  border-color: rgba(45, 100, 236, 0.18);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.06), rgba(133, 69, 255, 0.05)),
    rgba(255, 255, 255, 0.9);
}

body.light-theme .profile-form-upload-button {
  border-color: rgba(45, 100, 236, 0.16);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.12), rgba(133, 69, 255, 0.1)),
    rgba(255, 255, 255, 0.95);
  color: #1f2942;
}

body.light-theme .profile-form-clear-button {
  color: #d24f72;
  border-color: rgba(210, 79, 114, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 216, 225, 0.86), rgba(255, 241, 244, 0.96)),
    rgba(255, 255, 255, 0.9);
}

body.light-theme .profile-social-field {
  border-color: rgba(74, 102, 173, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.9)),
    rgba(255, 255, 255, 0.9);
}

body.light-theme .profile-social-field:hover {
  border-color: rgba(45, 100, 236, 0.22);
  box-shadow: 0 18px 28px rgba(61, 91, 151, 0.1);
}

body.light-theme .profile-social-icon {
  border-color: rgba(74, 102, 173, 0.16);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.08), rgba(133, 69, 255, 0.06)),
    rgba(255, 255, 255, 0.86);
}

body.light-theme .profile-social-input input {
  border-color: rgba(74, 102, 173, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 247, 255, 0.98)),
    rgba(255, 255, 255, 0.96);
  color: #1f2942;
}

body.light-theme .profile-social-input input::placeholder {
  color: rgba(93, 109, 145, 0.7);
}

body.light-theme .profile-social-field:hover .profile-social-input input {
  border-color: rgba(45, 100, 236, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(237, 245, 255, 1)),
    rgba(255, 255, 255, 1);
}

body.light-theme .profile-social-input input:focus {
  border-color: rgba(45, 100, 236, 0.36);
  box-shadow:
    0 0 0 4px rgba(45, 100, 236, 0.1),
    0 14px 24px rgba(61, 91, 151, 0.12);
}

body.light-theme .profile-social-github .profile-social-icon {
  color: #111827;
}

body.light-theme .profile-social-linkedin .profile-social-icon {
  color: #0a66c2;
}

body.light-theme .profile-social-youtube .profile-social-icon {
  color: #e11d48;
}

body.light-theme .profile-social-website .profile-social-icon {
  color: #0ea5e9;
}

body.light-theme .profile-social-instagram .profile-social-icon {
  color: #d946ef;
}

body.light-theme .profile-form-errors {
  border-color: rgba(210, 79, 114, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 216, 225, 0.86), rgba(255, 241, 244, 0.96)),
    rgba(255, 255, 255, 0.9);
}

.user-profile-back-link {
  width: fit-content;
  min-height: 50px;
  padding-inline: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.user-profile-back-link::before {
  content: "\2190";
  margin-right: 10px;
  font-size: 1rem;
}

.user-profile-back-link:hover,
.user-profile-back-link:focus-visible {
  transform: translateY(-2px) scale(1.025);
}

.user-profile-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.user-profile-sidebar {
  position: sticky;
  top: 106px;
}

.user-profile-card,
.user-profile-section,
.user-profile-hero {
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
}

.user-profile-card {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.user-profile-card-top,
.user-profile-main,
.user-profile-meta {
  display: grid;
}

.user-profile-card-top {
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.user-profile-card-label {
  margin-bottom: 6px;
  justify-self: start;
  width: 100%;
}

.user-profile-card-copy {
  display: grid;
  gap: 8px;
  width: 100%;
}

.user-profile-card-copy h1,
.user-profile-hero h2,
.user-profile-section h2,
.user-profile-project-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.user-profile-card-copy h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.98;
}

.user-profile-card-copy p,
.user-profile-hero p,
.user-profile-skill-row p,
.user-profile-empty,
.user-profile-project-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.user-profile-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.user-profile-meta-item {
  min-height: 0;
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  align-self: start;
}

.user-profile-meta-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.user-profile-meta-item strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.user-profile-public-card {
  text-align: center;
}

.user-profile-public-top {
  gap: 14px;
}

.user-profile-public-card .avatar-xl {
  width: 136px;
  height: 136px;
}

.user-profile-public-card .user-profile-card-copy h1 {
  font-size: clamp(1.9rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.user-profile-public-card .user-profile-card-copy p {
  color: var(--cyan);
  font-weight: 800;
  line-height: 1.35;
}

.user-profile-public-meta {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.user-profile-public-meta .user-profile-meta-item {
  grid-column: span 2;
  display: flex;
  min-width: 0;
  min-height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
}

.user-profile-public-meta .user-profile-meta-item-wide {
  grid-column: span 3;
}

.user-profile-followers-stat {
  border-color: rgba(14, 224, 198, 0.34);
}

.user-profile-followers-stat strong {
  color: var(--green);
  text-shadow: 0 0 18px rgba(93, 231, 180, 0.22);
}

.user-profile-socials {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 8px;
  overflow-x: auto;
  padding-top: 6px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.user-profile-socials::-webkit-scrollbar {
  display: none;
}

.user-profile-socials a,
.user-profile-chip-cloud span,
.user-profile-project-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.08), rgba(164, 95, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.user-profile-socials a {
  width: 58px;
  padding: 0;
}

.user-profile-socials a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.user-profile-social-github {
  color: #f5f8ff;
}

.user-profile-social-linkedin {
  color: #0a66c2;
}

.user-profile-social-youtube {
  color: #ff3434;
}

.user-profile-social-website {
  color: #4be8ff;
}

.user-profile-social-instagram {
  color: #ff5dbf;
}

body.light-theme .user-profile-social-github {
  color: #111827;
}

body.light-theme .user-profile-social-linkedin {
  color: #0a66c2;
}

body.light-theme .user-profile-social-youtube {
  color: #e11d48;
}

body.light-theme .user-profile-social-website {
  color: #0ea5e9;
}

body.light-theme .user-profile-social-instagram {
  color: #d946ef;
}

.user-profile-socials a:hover,
.user-profile-socials a:focus-visible,
.user-profile-project-link:hover,
.user-profile-project-link:focus-visible,
.user-profile-contact:hover,
.user-profile-contact:focus-visible,
.user-profile-follow-button:hover,
.user-profile-follow-button:focus-visible {
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.user-profile-public-socials {
  justify-content: center;
}

.user-profile-actions {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.user-profile-follow-form,
.user-profile-follow-login {
  display: flex;
  width: 100%;
  margin: 0;
  min-width: 0;
}

.user-profile-follow-note {
  flex: 0 0 100%;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.user-profile-follow-button {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  justify-content: center;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.user-profile-follow-button.is-follow {
  color: #05131b;
  border-color: rgba(75, 232, 255, 0.55);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 18px 30px rgba(93, 231, 180, 0.18);
}

.user-profile-follow-button.is-unfollow {
  color: #ffe4ec;
  border-color: rgba(255, 128, 160, 0.4);
  background:
    linear-gradient(135deg, rgba(255, 93, 139, 0.22), rgba(164, 95, 255, 0.12)),
    rgba(255, 255, 255, 0.04);
}

.user-profile-contact {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  gap: 10px;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #6a8fff, var(--violet));
  box-shadow: 0 18px 30px rgba(106, 143, 255, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, filter 180ms ease;
}

.user-profile-contact:hover,
.user-profile-contact:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #7ca0ff, #a45fff);
  box-shadow: 0 22px 38px rgba(106, 143, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.12);
  filter: saturate(1.06);
}

.user-profile-contact svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.user-profile-contact span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.user-profile-main {
  gap: 24px;
}

.user-profile-hero,
.user-profile-section {
  padding: 28px;
}

.user-profile-hero {
  gap: 14px;
}

.user-profile-hero .section-label,
.user-profile-section .section-label {
  margin-bottom: 10px;
}

.user-profile-hero h2,
.user-profile-section h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.user-profile-name-accent {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(75, 232, 255, 0.18);
}

.user-profile-skill-list {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid rgba(151, 185, 255, 0.12);
}

.user-profile-skill-row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-inline: -14px;
  padding: 20px 14px;
  border: 0;
  background: transparent;
  box-shadow: inset 0 -1px 0 rgba(151, 185, 255, 0.12);
}

.user-profile-skill-row:first-child {
  padding-top: 20px;
}

.user-profile-skill-row h3 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.user-profile-skill-row p {
  max-width: 62ch;
  padding: 0;
  background: transparent;
  font-size: 1.02rem;
}

.user-profile-chip-cloud,
.user-profile-project-tags,
.user-profile-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.user-profile-project-tags {
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  overflow: hidden;
}

.user-profile-project-tags span {
  flex: 1 1 0;
  min-width: 0;
  min-height: 34px;
  padding: 0 7px;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.user-profile-project-tags .user-profile-project-tag-sm {
  padding-inline: 5px;
  font-size: 0.68rem;
}

.user-profile-project-tags .user-profile-project-tag-xs {
  padding-inline: 4px;
  font-size: 0.58rem;
}

.user-profile-project-tags span:only-child {
  flex: 0 1 auto;
}

.user-profile-chip-cloud {
  margin-top: 20px;
}

.user-profile-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.user-profile-project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.16);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.user-profile-project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(75, 232, 255, 0.34);
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(75, 232, 255, 0.12);
}

.user-profile-project-media {
  display: block;
  padding: 14px 14px 0;
}

.user-profile-project-media img {
  display: block;
  width: 100%;
  height: 210px;
  border-radius: 20px;
  object-fit: cover;
}

.user-profile-project-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.user-profile-project-byline {
  color: var(--cyan) !important;
  font-style: italic;
  font-weight: 600;
}

.user-profile-project-card h3 {
  font-size: 1.55rem;
  line-height: 1.02;
}

.user-profile-project-card h3 a:hover {
  color: var(--cyan);
}

.user-profile-project-feedback {
  color: var(--green) !important;
  font-weight: 800;
}

.user-profile-project-feedback span {
  color: var(--muted);
  font-weight: 500;
}

.user-profile-project-link {
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 8px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 18px 30px rgba(106, 143, 255, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.user-profile-project-link:hover,
.user-profile-project-link:focus-visible {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 22px 38px rgba(106, 143, 255, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
  filter: saturate(1.06);
}

.user-profile-project-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.user-profile-project-link span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

body.light-theme .user-profile-card,
body.light-theme .user-profile-section,
body.light-theme .user-profile-hero,
body.light-theme .user-profile-project-card {
  border-color: rgba(74, 102, 173, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 247, 255, 0.72)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 46px rgba(61, 91, 151, 0.1);
}

body.light-theme .user-profile-name-accent {
  color: var(--blue);
  text-shadow: 0 0 14px rgba(45, 100, 236, 0.12);
}

body.light-theme .user-profile-meta-item,
body.light-theme .user-profile-socials a,
body.light-theme .user-profile-chip-cloud span,
body.light-theme .user-profile-project-tags span {
  border-color: rgba(74, 102, 173, 0.16);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.08), rgba(133, 69, 255, 0.06)),
    rgba(255, 255, 255, 0.8);
}

body.light-theme .user-profile-followers-stat {
  border-color: rgba(18, 157, 109, 0.24);
}

body.light-theme .user-profile-followers-stat strong {
  color: #059669;
  text-shadow: 0 0 14px rgba(18, 157, 109, 0.14);
}

body.light-theme .user-profile-follow-note {
  color: rgba(20, 33, 61, 0.62);
}

body.light-theme .user-profile-skill-row {
  background: transparent;
  box-shadow: inset 0 -1px 0 rgba(74, 102, 173, 0.14);
}

body.light-theme .dev-card-name-link:hover,
body.light-theme .dev-card-name-link:focus-visible,
body.light-theme .user-profile-project-card h3 a:hover {
  color: var(--blue);
  text-shadow: 0 0 14px rgba(45, 100, 236, 0.12);
}

body.light-theme .user-profile-socials a:hover,
body.light-theme .user-profile-socials a:focus-visible,
body.light-theme .user-profile-contact:hover,
body.light-theme .user-profile-contact:focus-visible,
body.light-theme .user-profile-follow-button:hover,
body.light-theme .user-profile-follow-button:focus-visible,
body.light-theme .user-profile-back-link:hover,
body.light-theme .user-profile-back-link:focus-visible {
  box-shadow: 0 16px 26px rgba(61, 91, 151, 0.12);
}

body.light-theme .user-profile-contact {
  color: #fff;
  background: linear-gradient(135deg, #2d64ec, #8545ff);
  box-shadow: 0 18px 30px rgba(61, 91, 151, 0.2);
}

body.light-theme .user-profile-follow-button.is-follow {
  color: #05131b;
  border-color: rgba(18, 157, 109, 0.24);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 18px 30px rgba(18, 157, 109, 0.16);
}

body.light-theme .user-profile-follow-button.is-unfollow {
  color: #be123c;
  border-color: rgba(225, 29, 72, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 216, 225, 0.86), rgba(255, 241, 244, 0.96)),
    rgba(255, 255, 255, 0.9);
}

body.light-theme .user-profile-contact:hover,
body.light-theme .user-profile-contact:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #965bff);
  box-shadow: 0 22px 38px rgba(61, 91, 151, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.52);
}

body.light-theme .user-profile-project-link {
  color: #fff;
  box-shadow: 0 18px 30px rgba(61, 91, 151, 0.16);
}

body.light-theme .user-profile-project-link:hover,
body.light-theme .user-profile-project-link:focus-visible {
  color: #fff;
  box-shadow: 0 22px 38px rgba(61, 91, 151, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.account-page .user-profile-shell {
  align-items: start;
}

.account-profile-card {
  gap: 24px;
}

.account-card-topbar,
.account-section-heading,
.account-inline-actions,
.account-project-actions {
  display: flex;
  gap: 12px;
}

.account-card-topbar,
.account-section-heading {
  align-items: flex-start;
  justify-content: space-between;
}

.account-card-topbar {
  width: 100%;
}

.account-action-button {
  min-height: 48px;
  padding: 10px 18px;
  border-color: rgba(125, 210, 230, 0.14);
  background:
    linear-gradient(135deg, rgba(180, 247, 255, 0.18), rgba(206, 248, 255, 0.1)),
    rgba(224, 250, 255, 0.06);
  color: #93dbe6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.account-action-button:hover,
.account-action-button:focus-visible {
  transform: translateY(-2px);
}

.account-action-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.account-action-icon-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.account-action-add {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 16px 30px rgba(106, 143, 255, 0.22);
}

.account-action-edit {
  color: #93dbe6;
  border-color: rgba(125, 210, 230, 0.14);
  background:
    linear-gradient(135deg, rgba(180, 247, 255, 0.18), rgba(206, 248, 255, 0.1)),
    rgba(224, 250, 255, 0.06);
}

.account-action-view {
  color: #c6bcff;
  border-color: rgba(164, 95, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(164, 95, 255, 0.16), rgba(122, 124, 255, 0.1)),
    rgba(255, 255, 255, 0.04);
}

.account-action-danger {
  color: #ff7b93;
  border-color: rgba(255, 123, 147, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 123, 147, 0.12), rgba(255, 98, 132, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.account-section {
  display: grid;
  gap: 24px;
}

.account-section-heading h2 {
  margin-top: 6px;
}

.account-skill-list {
  display: grid;
  gap: 18px;
}

.account-skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-top: 18px;
  box-shadow: inset 0 1px 0 rgba(151, 185, 255, 0.1);
}

.account-skill-row:first-child {
  padding-top: 0;
  box-shadow: none;
}

.account-skill-copy {
  display: grid;
  gap: 8px;
}

.account-skill-copy h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}

.account-row-actions {
  flex-direction: column;
  align-items: stretch;
  min-width: 110px;
}

.account-project-card .user-profile-project-body {
  gap: 14px;
}

.account-project-feedback {
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(93, 231, 180, 0.18);
  border-radius: 999px;
  background: rgba(93, 231, 180, 0.07);
  color: var(--green) !important;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2 !important;
}

.account-project-feedback span {
  color: var(--muted);
  font-weight: 700;
}

.account-project-description {
  display: -webkit-box;
  min-height: 5.25rem;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.account-project-actions {
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 2px;
}

.account-project-actions .account-action-button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.account-project-actions .account-action-icon-button {
  gap: 6px;
}

.account-project-actions .account-action-icon-button svg {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.account-empty-state {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 4px 0;
}

.account-page .user-profile-projects > .account-empty-state {
  grid-column: 1 / -1;
}

.account-danger-zone {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 123, 147, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 123, 147, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 123, 147, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.18);
}

.account-danger-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  color: #ff8fa2;
  background:
    linear-gradient(135deg, rgba(255, 123, 147, 0.2), rgba(255, 143, 89, 0.12)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 123, 147, 0.16);
}

.account-danger-icon svg {
  width: 30px;
  height: 30px;
}

.account-danger-copy {
  display: grid;
  gap: 8px;
}

.account-danger-copy h2 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
}

.account-danger-copy p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.account-delete-link {
  min-width: max-content;
}

.account-delete-field {
  display: grid;
  gap: 10px;
}

.account-delete-field span {
  color: rgba(240, 237, 230, 0.72);
  font-weight: 800;
}

.account-delete-input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 147, 120, 0.24);
  border-radius: 18px;
  outline: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  color: #fff7f4;
  font: inherit;
  font-weight: 700;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.account-delete-input::placeholder {
  color: rgba(240, 237, 230, 0.36);
}

.account-delete-input:focus {
  border-color: rgba(255, 143, 89, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 143, 89, 0.12);
}

.account-delete-page {
  padding-top: 40px;
  padding-bottom: 56px;
}

.account-delete-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 24px;
  align-items: center;
  min-height: calc(100vh - 240px);
}

.account-delete-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding: 18px 12px 18px 0;
}

.account-delete-copy h1 {
  margin: 0;
  color: #f0ede6;
  font-family: "Clash Display", "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.account-delete-copy > p {
  max-width: 58ch;
  margin: 0;
  color: rgba(240, 237, 230, 0.72);
  font-size: 1.02rem;
  line-height: 1.75;
}

.account-delete-points {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.account-delete-point {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 116, 116, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 113, 113, 0.08), rgba(255, 170, 120, 0.04)),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.account-delete-point strong {
  color: #fff2ee;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.account-delete-point span {
  color: rgba(240, 237, 230, 0.62);
  line-height: 1.65;
}

.account-delete-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 113, 113, 0.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 113, 113, 0.16), transparent 28%),
    radial-gradient(circle at left bottom, rgba(255, 180, 120, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(18, 25, 46, 0.96), rgba(10, 15, 29, 0.98));
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 113, 113, 0.08);
  overflow: hidden;
}

.account-delete-card-glow {
  position: absolute;
  inset: auto -70px -90px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 113, 113, 0.24), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.account-delete-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-delete-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  color: #ff9b76;
  background:
    linear-gradient(135deg, rgba(255, 113, 113, 0.18), rgba(255, 180, 120, 0.12)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 150, 120, 0.16);
}

.account-delete-icon svg {
  width: 36px;
  height: 36px;
}

.account-delete-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 147, 120, 0.2);
  border-radius: 999px;
  color: #ffb29e;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

.account-delete-card-copy {
  display: grid;
  gap: 10px;
}

.account-delete-eyebrow {
  margin: 0;
  color: rgba(240, 237, 230, 0.56);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-delete-card-copy h2 {
  margin: 0;
  color: #fff7f4;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  word-break: break-word;
}

.account-delete-description {
  margin: 0;
  color: rgba(240, 237, 230, 0.7);
  line-height: 1.75;
}

.account-delete-summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.account-delete-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-delete-summary-row span {
  color: rgba(240, 237, 230, 0.58);
}

.account-delete-summary-row strong {
  color: #fff6f2;
  text-align: right;
}

.account-delete-actions {
  display: grid;
  gap: 12px;
}

.account-delete-confirm,
.account-delete-cancel {
  min-height: 54px;
  border-radius: 18px;
  font-weight: 800;
}

.account-delete-confirm {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #ff6a79, #ff8f59);
  box-shadow: 0 24px 40px rgba(255, 106, 121, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.account-delete-confirm:hover,
.account-delete-confirm:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 28px 48px rgba(255, 106, 121, 0.28);
  filter: saturate(1.08);
}

.account-delete-cancel {
  width: 100%;
}

body.light-theme .account-action-danger {
  color: #58aebe;
  border-color: rgba(194, 51, 88, 0.18);
}

body.light-theme .account-action-button {
  color: #58aebe;
  border-color: rgba(84, 159, 182, 0.2);
  background:
    linear-gradient(135deg, rgba(175, 237, 245, 0.75), rgba(225, 251, 255, 0.92)),
    rgba(255, 255, 255, 0.82);
}

body.light-theme .account-action-add {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #31cfff, #8e59ff);
}

body.light-theme .account-project-feedback {
  border-color: rgba(18, 157, 109, 0.2);
  background: rgba(18, 157, 109, 0.08);
  color: var(--green) !important;
}

body.light-theme .account-action-edit {
  color: #58aebe;
  border-color: rgba(84, 159, 182, 0.2);
  background:
    linear-gradient(135deg, rgba(175, 237, 245, 0.75), rgba(225, 251, 255, 0.92)),
    rgba(255, 255, 255, 0.82);
}

body.light-theme .account-action-view {
  color: #7a57db;
  border-color: rgba(122, 87, 219, 0.18);
  background:
    linear-gradient(135deg, rgba(236, 227, 255, 0.92), rgba(246, 243, 255, 0.98)),
    rgba(255, 255, 255, 0.9);
}

body.light-theme .account-action-danger {
  color: #d24f72;
  border-color: rgba(210, 79, 114, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 216, 225, 0.86), rgba(255, 241, 244, 0.96)),
    rgba(255, 255, 255, 0.9);
}

body.light-theme .account-danger-zone {
  border-color: rgba(210, 79, 114, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 225, 0.58), transparent 34%),
    linear-gradient(135deg, rgba(255, 242, 245, 0.96), rgba(255, 255, 255, 0.9)),
    #ffffff;
  box-shadow: 0 24px 50px rgba(61, 91, 151, 0.12);
}

body.light-theme .account-danger-icon {
  color: #d24f72;
  background:
    linear-gradient(135deg, rgba(255, 216, 225, 0.96), rgba(255, 241, 244, 0.98)),
    rgba(255, 255, 255, 0.9);
}

body.light-theme .account-delete-field span {
  color: rgba(20, 33, 61, 0.72);
}

body.light-theme .account-delete-input {
  border-color: rgba(210, 79, 114, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #14213d;
}

body.light-theme .account-delete-input::placeholder {
  color: rgba(20, 33, 61, 0.42);
}

body.light-theme .account-delete-copy h1 {
  color: #14213d;
}

body.light-theme .account-delete-copy > p {
  color: rgba(20, 33, 61, 0.72);
}

body.light-theme .account-delete-point {
  border-color: rgba(210, 79, 114, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 216, 225, 0.9), rgba(255, 241, 235, 0.96)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(61, 91, 151, 0.08);
}

body.light-theme .account-delete-point strong {
  color: #16243f;
}

body.light-theme .account-delete-point span {
  color: rgba(20, 33, 61, 0.68);
}

body.light-theme .account-delete-card {
  border-color: rgba(210, 79, 114, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 178, 158, 0.26), transparent 28%),
    radial-gradient(circle at left bottom, rgba(255, 225, 206, 0.4), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.95)),
    #ffffff;
  box-shadow:
    0 30px 72px rgba(61, 91, 151, 0.14),
    0 0 0 1px rgba(210, 79, 114, 0.06);
}

body.light-theme .account-delete-pill {
  border-color: rgba(210, 79, 114, 0.16);
  color: #c55273;
  background: rgba(255, 255, 255, 0.68);
}

body.light-theme .account-delete-eyebrow {
  color: rgba(20, 33, 61, 0.56);
}

body.light-theme .account-delete-card-copy h2,
body.light-theme .account-delete-summary-row strong {
  color: #14213d;
}

body.light-theme .account-delete-description,
body.light-theme .account-delete-summary-row span {
  color: rgba(20, 33, 61, 0.68);
}

body.light-theme .account-delete-summary {
  border-color: rgba(74, 102, 173, 0.12);
  background: rgba(244, 247, 255, 0.82);
}

body.light-theme .account-action-button:hover,
body.light-theme .account-action-button:focus-visible {
  box-shadow: 0 16px 26px rgba(61, 91, 151, 0.12);
}

@media (max-width: 1040px) {
  .user-profile-shell {
    grid-template-columns: 1fr;
  }

  .user-profile-sidebar {
    position: static;
  }

  .profile-form-shell {
    grid-template-columns: 1fr;
  }

  .profile-form-intro {
    position: static;
  }

  .profile-form-topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .profile-form-top-message {
    justify-content: flex-start;
    min-height: 0;
  }

  .profile-form-topbar-spacer {
    display: none;
  }

  .account-section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .account-inline-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 980px) {
  .account-delete-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .account-delete-copy {
    padding-right: 0;
  }

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

@media (max-width: 760px) {
  .user-profile-page {
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .user-profile-card,
  .user-profile-hero,
  .user-profile-section {
    padding: 20px;
    border-radius: 26px;
  }

  .profile-form-intro,
  .profile-form-card {
    padding: 20px;
    border-radius: 26px;
  }

  .user-profile-meta,
  .user-profile-skill-row {
    grid-template-columns: 1fr;
  }

  .user-profile-public-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-profile-public-meta .user-profile-meta-item,
  .user-profile-public-meta .user-profile-meta-item-wide {
    grid-column: auto;
  }

  .user-profile-public-meta .user-profile-followers-stat {
    grid-column: 1 / -1;
  }

  .user-profile-actions {
    grid-template-columns: minmax(96px, 112px) minmax(0, 1fr);
  }

  .user-profile-projects {
    grid-template-columns: 1fr;
  }

  .profile-form-grid,
  .profile-form-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .profile-avatar-editor,
  .profile-social-field {
    grid-template-columns: 1fr;
  }

  .profile-avatar-preview-wrap {
    justify-items: start;
    text-align: left;
  }

  .user-profile-card-copy h1,
  .user-profile-hero h2,
  .user-profile-section h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .profile-form-intro h1,
  .profile-form-card-head h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .user-profile-project-media img {
    height: 190px;
  }

  .user-profile-project-card h3 {
    font-size: 1.35rem;
  }

  .account-card-topbar,
  .account-section-heading,
  .account-skill-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .account-inline-actions,
  .account-project-actions {
    flex-direction: column;
  }

  .account-danger-zone {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .account-delete-page {
    padding-top: 24px;
    padding-bottom: 38px;
  }

  .account-delete-copy h1 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .account-delete-card {
    padding: 22px;
    border-radius: 26px;
  }

  .account-delete-card-head,
  .account-delete-summary-row {
    align-items: start;
    flex-direction: column;
  }

  .account-delete-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .account-action-button {
    width: 100%;
  }

  .account-project-actions .account-action-button {
    flex: 0 0 auto;
  }

  .account-row-actions {
    min-width: 0;
  }
}

.developer-pagination {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 32px auto 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 20%, rgba(75, 232, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(10, 16, 30, 0.76);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
}

.developer-pagination-status {
  display: grid;
  gap: 4px;
  justify-self: start;
  min-width: 180px;
}

.developer-pagination-status span {
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.developer-pagination-status strong {
  color: var(--muted);
  font-size: 0.94rem;
}

.developer-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  gap: 12px;
  flex-wrap: wrap;
}

body.light-theme .developer-pagination {
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 164, 215, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(243, 247, 255, 0.58)),
    rgba(247, 250, 255, 0.78);
  box-shadow: 0 18px 44px rgba(61, 91, 151, 0.1);
}

body.light-theme .developer-pagination-status span {
  color: var(--blue);
}

body.light-theme .developer-pagination-status strong {
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.82), rgba(6, 11, 22, 0.96)),
    radial-gradient(circle at 12% 10%, rgba(75, 232, 255, 0.1), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(164, 95, 255, 0.14), transparent 32%);
  backdrop-filter: blur(14px);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.18);
}

body.light-theme .site-footer {
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.9), rgba(236, 243, 255, 0.98)),
    radial-gradient(circle at 12% 10%, rgba(0, 164, 215, 0.08), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(133, 69, 255, 0.08), transparent 32%);
  border-top-color: rgba(74, 102, 173, 0.18);
  box-shadow: 0 -18px 48px rgba(61, 91, 151, 0.1);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.7fr));
  gap: 32px;
  padding-top: 34px;
  padding-bottom: 28px;
}

.site-footer__brand h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer__brand p {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

body.light-theme .site-footer__brand h3 {
  color: #12203a;
}

body.light-theme .site-footer__brand p,
body.light-theme .site-footer__links a,
body.light-theme .site-footer__bottom p {
  color: #556682;
}

.site-footer__links {
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-footer__socials-compact {
  position: relative;
  display: block;
  width: 108px;
  min-height: 126px;
  justify-self: start;
  margin-top: -10px;
}

.site-footer__links a {
  width: fit-content;
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.site-footer__socials-compact a.site-footer__social-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.08), rgba(164, 95, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-footer__socials-compact a.site-footer__social-pill:nth-child(1) {
  top: 0;
  left: 31px;
}

.site-footer__socials-compact a.site-footer__social-pill:nth-child(2) {
  top: 44px;
  left: 0;
}

.site-footer__socials-compact a.site-footer__social-pill:nth-child(3) {
  top: 44px;
  left: 62px;
}

.site-footer__socials-compact a.site-footer__social-pill:nth-child(4) {
  top: 88px;
  left: 31px;
}

.site-footer__socials-compact a.site-footer__social-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer__social-pill-github {
  color: #f5f8ff;
}

.site-footer__social-pill-linkedin {
  color: #0a66c2;
}

.site-footer__social-pill-contact {
  color: #4be8ff;
}

.site-footer__social-pill-whatsapp {
  color: #25d366;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--text);
  transform: translateX(4px);
  text-shadow: 0 0 18px rgba(75, 232, 255, 0.18);
}

.site-footer__socials-compact a.site-footer__social-pill:hover,
.site-footer__socials-compact a.site-footer__social-pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(75, 232, 255, 0.42);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
  text-shadow: none;
}

body.light-theme .site-footer__links a:hover,
body.light-theme .site-footer__links a:focus-visible {
  color: #12203a;
  text-shadow: 0 0 14px rgba(45, 100, 236, 0.12);
}

body.light-theme .site-footer__socials-compact a.site-footer__social-pill {
  border-color: rgba(74, 102, 173, 0.16);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.08), rgba(133, 69, 255, 0.06)),
    rgba(255, 255, 255, 0.8);
}

body.light-theme .site-footer__socials-compact a.site-footer__social-pill:hover,
body.light-theme .site-footer__socials-compact a.site-footer__social-pill:focus-visible {
  box-shadow: 0 14px 22px rgba(61, 91, 151, 0.12);
}

.site-footer__bottom {
  padding: 14px 24px 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}

body.light-theme .site-footer__bottom {
  border-top-color: rgba(74, 102, 173, 0.18);
}

.site-footer__bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.pager-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.pager-button-arrow {
  gap: 8px;
  min-width: 86px;
}

.pager-button-arrow svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.pager-button:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.pager-button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(75, 232, 255, 0.9), rgba(164, 95, 255, 0.9));
}

.pager-button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (min-width: 761px) and (max-width: 980px) {
  .topbar {
    grid-template-columns: auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar-menu {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
      var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
  }

  .topbar-menu.is-open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    font-size: 0.98rem;
  }

  .nav a {
    padding: 10px 4px;
  }

  .nav a::after {
    display: none;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .topbar-actions .primary-button,
  .topbar-actions .theme-toggle {
    width: 100%;
  }

  .topbar-actions .theme-toggle {
    border-radius: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 560px;
    overflow: hidden;
  }

  .hero h1 {
    max-width: 10.5ch;
    font-size: clamp(2.4rem, 8vw, 3.85rem);
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-actions .large-button {
    flex: 1 1 220px;
  }

  .hero-strip {
    flex-wrap: wrap;
  }

  .mini-stat {
    flex: 1 1 calc(50% - 12px);
  }

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

  .ticker-track {
    animation-duration: 36s;
  }

  .topbar,
  .mini-stat,
  .floating-card,
  .console,
  .showcase,
  .dev-card {
    backdrop-filter: none;
  }
}

@media (max-width: 760px) {

  .avatar-xl { width: 112px; height: 112px; }
  .avatar-lg { width: 76px; height: 76px; }
  .avatar-md { width: 54px; height: 54px; }
  .avatar-sm { width: 42px; height: 42px; }

  .developer-pagination {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    border-radius: 24px;
  }

  .developer-pagination-status {
    min-width: 0;
    justify-self: stretch;
    text-align: center;
  }

  .developer-pagination-status span,
  .developer-pagination-status strong {
    white-space: nowrap;
  }

  .developer-pagination-controls {
    grid-column: auto;
    justify-content: center;
    gap: 10px;
  }

  .pager-button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 13px;
  }

  .pager-button-arrow {
    min-width: 78px;
  }

  .site-footer {
    margin-top: 32px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 26px;
    padding-bottom: 20px;
  }

  .site-footer__brand p {
    max-width: none;
  }

  .site-footer__bottom {
    padding: 14px 16px 18px;
  }
}

@media (max-width: 560px) {
  .hero-visual {
    min-height: 430px;
  }

  .user-profile-actions {
    grid-template-columns: minmax(92px, 108px) minmax(0, 1fr);
    gap: 8px;
  }

  .user-profile-follow-button,
  .user-profile-contact {
    min-height: 52px;
    padding-inline: 12px;
  }

  .user-profile-contact {
    gap: 8px;
  }

  .floating-card {
    display: none;
  }

  .console {
    top: 18px;
    bottom: 24px;
    left: 0;
    right: 0;
    transform: translateZ(24px) rotateX(4deg) rotateY(-2deg);
  }

  .console-screen {
    min-height: 290px;
  }

  .hero-note {
    display: none;
  }

  .beam-stack {
    display: none;
  }

  .signal-a,
  .signal-b,
  .scanline {
    opacity: 0.12;
  }

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

  .mini-stat {
    flex: 1 1 100%;
  }
}

.auth-page {
  min-height: calc(100vh - 88px);
  padding-top: 20px;
  padding-bottom: 24px;
  display: grid;
  align-items: center;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.auth-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(75, 232, 255, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(164, 95, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 88%);
  opacity: 0.45;
}

.auth-panel-copy,
.auth-panel-form {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.auth-panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 100%;
  padding-top: 8px;
  padding-bottom: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.auth-panel-copy::before {
  display: none;
}

.auth-panel-copy h1,
.auth-panel-form h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.auth-hero-label {
  width: fit-content;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.02em;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  animation: authFadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both;
}

.auth-hero-label span {
  display: inline-block;
  animation: authWelcomeFloat 2.8s ease-in-out infinite, authWelcomeGlow 3.4s ease-in-out infinite;
}

.auth-hero-label span:nth-child(1) { color: #4be8ff; animation-delay: 0s; }
.auth-hero-label span:nth-child(2) { color: #73f0ff; animation-delay: 0.08s; }
.auth-hero-label span:nth-child(3) { color: #8cf3ff; animation-delay: 0.16s; }
.auth-hero-label span:nth-child(4) { color: #a59bff; animation-delay: 0.24s; }
.auth-hero-label span:nth-child(5) { color: #c388ff; animation-delay: 0.32s; }
.auth-hero-label span:nth-child(6) { color: #ff7dc8; animation-delay: 0.4s; }
.auth-hero-label span:nth-child(7) { color: #ff9eac; animation-delay: 0.48s; }
.auth-hero-label span:nth-child(8) { color: #5de7b4; animation-delay: 0.56s; margin-left: 0.18em; }
.auth-hero-label span:nth-child(9) { color: #7ef0c5; animation-delay: 0.64s; }
.auth-hero-label span:nth-child(10) { color: #ffbc5c; animation-delay: 0.72s; }
.auth-hero-label span:nth-child(11) { color: #ffd36f; animation-delay: 0.8s; }

.auth-hero-label span:hover {
  transform: translateY(-4px) scale(1.06);
}

.auth-hero-label .auth-hero-word {
  display: inline-flex;
  gap: 0.02em;
}

.auth-hero-label .auth-hero-word:hover {
  transform: none;
}

.auth-hero-label .auth-hero-word span:hover {
  transform: translateY(-4px) scale(1.06);
}

.auth-hero-word-brand {
  margin-left: 0.22em;
  white-space: nowrap;
}

.auth-hero-label-register {
  margin-top: 30px;
}

.auth-hero-title {
  display: block;
  max-width: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 700;
  line-height: 0.98;
  align-self: stretch;
  margin-top: auto;
  margin-bottom: auto;
  padding-bottom: 0.08em;
}

.auth-hero-title span {
  display: inline-block;
  margin-right: 0.08em;
  padding-bottom: 0.04em;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  animation: authRevealWord 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.auth-hero-title span:last-child {
  margin-right: 0;
}

.auth-hero-title span:nth-child(1) { animation-delay: 0.12s; }
.auth-hero-title span:nth-child(2) { animation-delay: 0.42s; }
.auth-hero-title span:nth-child(3) { animation-delay: 0.72s; }
.auth-hero-title span:nth-child(4) { animation-delay: 1.02s; }
.auth-hero-title span:nth-child(5) { animation-delay: 1.32s; }
.auth-hero-title span:nth-child(6) { animation-delay: 1.66s; }

.auth-panel-copy h1 {
  margin: 0;
}

.auth-lead,
.auth-highlight-card p,
.auth-support-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.auth-lead {
  max-width: 48ch;
  font-size: 0.96rem;
}

.auth-lead-typed {
  display: block;
  min-height: 4.2rem;
}

.auth-lead-typed span {
  display: inline-block;
  margin-right: 0.08em;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  animation: authRevealWord 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.auth-lead-typed span:last-child {
  margin-right: 0;
}

.auth-lead-typed span:nth-child(1) { animation-delay: 2s; }
.auth-lead-typed span:nth-child(2) { animation-delay: 2.12s; }
.auth-lead-typed span:nth-child(3) { animation-delay: 2.22s; }
.auth-lead-typed span:nth-child(4) { animation-delay: 2.34s; }
.auth-lead-typed span:nth-child(5) { animation-delay: 2.5s; }
.auth-lead-typed span:nth-child(6) { animation-delay: 2.66s; }
.auth-lead-typed span:nth-child(7) { animation-delay: 2.84s; }
.auth-lead-typed span:nth-child(8) { animation-delay: 3.04s; }
.auth-lead-typed span:nth-child(9) { animation-delay: 3.16s; }
.auth-lead-typed span:nth-child(10) { animation-delay: 3.4s; }
.auth-lead-typed span:nth-child(11) { animation-delay: 3.52s; }
.auth-lead-typed span:nth-child(12) { animation-delay: 3.68s; }
.auth-lead-typed span:nth-child(13) { animation-delay: 3.84s; }
.auth-lead-typed span:nth-child(14) { animation-delay: 4.08s; }
.auth-lead-typed span:nth-child(15) { animation-delay: 4.28s; }
.auth-lead-typed span:nth-child(16) { animation-delay: 4.44s; }
.auth-lead-typed span:nth-child(17) { animation-delay: 4.62s; }

.auth-bio-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(75, 232, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(75, 232, 255, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.14);
  animation: authFadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 4.7s both;
}

.auth-bio-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, #9df7ff, #00abc7 58%, #0a2448 100%);
  color: #041223;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 28px rgba(0, 229, 204, 0.18);
}

.auth-bio-logo {
  color: #041223;
  transform: scale(1.1);
}

.auth-bio-logo span {
  border-width: 2px;
}

.auth-bio-copy {
  display: grid;
  gap: 6px;
}

.auth-bio-label {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-bio-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.auth-panel-form {
  display: grid;
  gap: 18px;
  align-content: start;
  width: min(100%, 760px);
  justify-self: end;
  background:
    radial-gradient(circle at 0 0, rgba(75, 232, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(9, 16, 32, 0.88), rgba(14, 21, 39, 0.78));
}

.auth-form-top {
  display: grid;
  gap: 10px;
}

.auth-form-top p {
  margin: 0;
  color: var(--muted);
}

.auth-login-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(75, 232, 255, 0.14), rgba(164, 95, 255, 0.12));
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-message-list {
  display: grid;
  gap: 10px;
}

.auth-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.92rem;
}

.auth-message-error {
  border: 1px solid rgba(255, 141, 158, 0.26);
  background: rgba(255, 141, 158, 0.08);
  color: #ff9eac;
}

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

.auth-field {
  display: grid;
  gap: 9px;
}

.auth-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.auth-field-help {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  outline: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.98rem;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.auth-input::placeholder {
  color: var(--muted);
}

.auth-input:focus {
  border-color: rgba(75, 232, 255, 0.52);
  box-shadow: 0 0 0 1px rgba(75, 232, 255, 0.16), 0 18px 36px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.auth-password-wrap {
  position: relative;
  display: block;
}

.auth-password-wrap .auth-input {
  padding-right: 54px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(151, 185, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.08), rgba(164, 95, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.auth-password-toggle .auth-eye-closed {
  display: none;
}

.auth-password-toggle.is-visible {
  color: var(--cyan);
  border-color: rgba(75, 232, 255, 0.38);
  box-shadow: 0 0 18px rgba(75, 232, 255, 0.12);
}

.auth-password-toggle.is-visible .auth-eye-open {
  display: none;
}

.auth-password-toggle.is-visible .auth-eye-closed {
  display: block;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--text);
  border-color: rgba(75, 232, 255, 0.42);
}

.auth-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.auth-submit {
  min-width: 100%;
}

.auth-submit {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.01em;
}

.auth-signup-line {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.auth-signup-line a {
  color: var(--cyan);
  font-weight: 700;
}

.auth-signup-line a:hover,
.auth-signup-line a:focus-visible {
  color: var(--text);
}

.auth-forgot-link {
  justify-self: end;
  width: fit-content;
  margin-top: -6px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.auth-forgot-link:hover,
.auth-forgot-link:focus-visible {
  color: var(--text);
  text-shadow: 0 0 16px rgba(75, 232, 255, 0.18);
}

body.light-theme .auth-forgot-link {
  color: var(--blue);
}

.auth-support {
  display: grid;
}

.auth-support-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-support-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.auth-support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.16), rgba(164, 95, 255, 0.14)),
    rgba(255, 255, 255, 0.04);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(75, 232, 255, 0.16);
}

.auth-support-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

body.light-theme .auth-panel,
body.light-theme .auth-support-card,
body.light-theme .auth-input {
  border-color: rgba(74, 102, 173, 0.18);
}

body.light-theme .auth-panel {
  background:
    radial-gradient(circle at top right, rgba(45, 100, 236, 0.1), transparent 24%),
    radial-gradient(circle at bottom left, rgba(133, 69, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 247, 255, 0.72)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 60px rgba(61, 91, 151, 0.14);
}

body.light-theme .auth-panel-copy {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.light-theme .auth-hero-label {
  background: transparent;
  box-shadow: none;
}

body.light-theme .auth-panel-form {
  background:
    radial-gradient(circle at 0 0, rgba(45, 100, 236, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(243, 247, 255, 0.76));
}

body.light-theme .auth-support-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(243, 247, 255, 0.68)),
    rgba(255, 255, 255, 0.76);
}

body.light-theme .auth-input {
  background: rgba(255, 255, 255, 0.76);
}

body.light-theme .auth-bio-card {
  border-color: rgba(45, 100, 236, 0.14);
  background:
    radial-gradient(circle at top left, rgba(45, 100, 236, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(243, 247, 255, 0.72)),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 34px rgba(61, 91, 151, 0.12);
}

body.light-theme .auth-input:focus {
  border-color: rgba(45, 100, 236, 0.42);
  box-shadow: 0 0 0 1px rgba(45, 100, 236, 0.14), 0 18px 36px rgba(61, 91, 151, 0.12);
}

body.light-theme .auth-password-toggle {
  border-color: rgba(74, 102, 173, 0.16);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.08), rgba(133, 69, 255, 0.06)),
    rgba(255, 255, 255, 0.76);
}

body.light-theme .auth-password-toggle.is-visible {
  color: var(--blue);
  border-color: rgba(45, 100, 236, 0.34);
}

body.light-theme .auth-login-badge {
  background: linear-gradient(135deg, rgba(45, 100, 236, 0.12), rgba(133, 69, 255, 0.08));
}

body.light-theme .auth-hero-kicker {
  color: var(--blue);
}

body.light-theme .auth-support-icon {
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(45, 100, 236, 0.16);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.12), rgba(133, 69, 255, 0.08)),
    rgba(255, 255, 255, 0.72);
}

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

  .auth-panel-copy h1 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .auth-page {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 26px;
  }

  .auth-shell {
    gap: 20px;
  }

  .auth-panel-copy,
  .auth-panel-form {
    padding: 20px;
  }

  .auth-hero-title {
    max-width: 100%;
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .auth-form-actions {
    flex-direction: column;
  }

  .auth-support-card {
    grid-template-columns: 1fr;
  }
}

@keyframes authRevealWord {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

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

@keyframes authWelcomeFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.04);
  }
}

@keyframes authWelcomeGlow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    filter: saturate(1);
  }
  50% {
    text-shadow: 0 0 18px currentColor;
    filter: saturate(1.12);
  }
}

.auth-page-register .auth-shell {
  align-items: center;
}

.auth-page-register .auth-panel-copy {
  justify-content: flex-start;
  gap: 14px;
}

.auth-page-register .auth-hero-title {
  margin-top: 92px;
  margin-bottom: 52px;
  font-size: clamp(2.8rem, 5.4vw, 5.1rem);
  line-height: 0.96;
}

.auth-page-register .auth-lead-typed {
  min-height: 3.4rem;
  margin-bottom: 84px;
}

.auth-page-register .auth-bio-card {
  padding: 14px 16px;
  border-radius: 22px;
}

.auth-page-register .auth-bio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.auth-page-register .auth-bio-copy p {
  line-height: 1.55;
}

.auth-page-register .auth-panel-form {
  gap: 12px;
  padding: 20px 22px;
  transform: translateY(-10px);
}

.auth-page-register .auth-form-top {
  gap: 7px;
}

.auth-page-register .auth-form-top p {
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-page-register .auth-login-badge {
  padding: 9px 15px;
  font-size: 1rem;
}

.auth-page-register .auth-form {
  gap: 10px;
}

.auth-page-register .auth-field {
  gap: 6px;
}

.auth-page-register .auth-label {
  font-size: 0.88rem;
}

.auth-page-register .auth-field-help {
  font-size: 0.76rem;
  line-height: 1.35;
}

.auth-page-register .auth-input {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
}

.auth-page-register .auth-form-actions {
  margin-top: 2px;
}

.auth-page-register .auth-submit {
  min-height: 46px;
}

.auth-page-register .auth-signup-line {
  margin-top: -4px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.auth-page-register .auth-support-card {
  padding: 12px 14px;
  gap: 10px;
  border-radius: 18px;
}

.auth-page-register .auth-support-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.auth-page-register .auth-support-card strong {
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.auth-page-register .auth-support-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-next-steps {
  display: grid;
  gap: 12px;
  margin-top: 25px;
  animation: authFadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 5s both;
}

.auth-next-label {
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-next-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  --next-line-left: 42px;
  --next-line-width: calc(100% - 84px);
}

.auth-next-track::before {
  content: "";
  position: absolute;
  left: var(--next-line-left);
  width: var(--next-line-width);
  top: 32px;
  z-index: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(151, 185, 255, 0.08);
}

.auth-next-track::after {
  content: "";
  position: absolute;
  left: var(--next-line-left);
  width: var(--next-line-width);
  top: 32px;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(75, 232, 255, 0.92), rgba(164, 95, 255, 0.82));
  transform-origin: left;
  transform: scaleX(0);
  animation: authNextDraw 3.4s cubic-bezier(0.45, 0, 0.2, 1) 5.2s infinite;
}

.auth-next-step {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 14px;
  border: 1px solid rgba(75, 232, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(14px);
  animation: authNextStepIn 0.62s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.auth-next-step:nth-of-type(1) { animation-delay: 5.25s; }
.auth-next-step:nth-of-type(2) { animation-delay: 5.42s; }
.auth-next-step:nth-of-type(3) { animation-delay: 5.59s; }

.auth-next-step span {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.18), rgba(164, 95, 255, 0.14)),
    #17233a;
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(75, 232, 255, 0.12);
}

.auth-next-step strong {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.94rem;
  line-height: 1.25;
}

.auth-next-step:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 232, 255, 0.36);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.light-theme .auth-next-label {
  color: var(--blue);
}

body.light-theme .auth-next-track::before {
  z-index: 5;
  background: rgba(74, 102, 173, 0.12);
}

body.light-theme .auth-next-track::after {
  z-index: 6;
  background: #2d64ec;
}

body.light-theme .auth-next-step {
  border-color: rgba(74, 102, 173, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(243, 247, 255, 0.68)),
    rgba(255, 255, 255, 0.76);
}

body.light-theme .auth-next-step span {
  z-index: 7;
  color: #18304f;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.98), transparent 34%),
    linear-gradient(135deg, rgba(0, 164, 215, 0.18), rgba(133, 69, 255, 0.12)),
    #f8fbff;
  box-shadow:
    0 0 0 5px #f8fbff,
    0 0 0 6px rgba(45, 100, 236, 0.12),
    0 12px 24px rgba(61, 91, 151, 0.12);
}

.auth-page-reset .auth-shell {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
}

.auth-reset-copy {
  justify-content: flex-start;
  gap: 24px;
  padding-top: 24px;
}

.auth-reset-back {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(75, 232, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.18), rgba(164, 95, 255, 0.12)),
    rgba(255, 255, 255, 0.05);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(75, 232, 255, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.auth-reset-back svg {
  width: 28px;
  height: 28px;
}

.auth-reset-back:hover,
.auth-reset-back:focus-visible {
  transform: translateX(-3px);
  border-color: rgba(75, 232, 255, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(75, 232, 255, 0.18),
    0 16px 30px rgba(75, 232, 255, 0.12);
}

.auth-reset-label {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.auth-reset-label .auth-hero-word > span {
  margin-left: 0;
}

.auth-reset-title {
  margin-top: 10px;
  margin-bottom: 8px;
}

.auth-reset-note {
  margin-top: auto;
  animation: authFadeUp 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

.auth-reset-form-panel {
  align-content: center;
}

.auth-reset-form {
  gap: 16px;
}

.auth-reset-sent-panel {
  gap: 22px;
}

.auth-reset-confirm-panel {
  gap: 20px;
}

.auth-reset-confirm-form {
  gap: 14px;
}

.auth-reset-sent-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(75, 232, 255, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.22), rgba(164, 95, 255, 0.16)),
    rgba(255, 255, 255, 0.05);
  color: var(--cyan);
  box-shadow:
    inset 0 0 0 1px rgba(75, 232, 255, 0.1),
    0 18px 34px rgba(75, 232, 255, 0.12);
}

.auth-reset-sent-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.auth-reset-confirm-icon {
  color: var(--green);
}

.auth-reset-complete-icon {
  color: var(--green);
}

.auth-reset-invalid-icon {
  color: #ff8da1;
}

.auth-password-help {
  padding: 14px 16px;
  border: 1px solid rgba(151, 185, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.auth-password-help ul,
.auth-password-help ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.auth-password-help li::marker {
  color: var(--cyan);
}

.auth-reset-sent-list {
  display: grid;
  gap: 12px;
}

.auth-reset-sent-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(151, 185, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-reset-sent-item span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.2), rgba(164, 95, 255, 0.16)),
    rgba(255, 255, 255, 0.05);
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-reset-sent-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.auth-reset-sent-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.auth-reset-secondary {
  width: 100%;
  min-height: 52px;
}

body.light-theme .auth-reset-back {
  border-color: rgba(0, 164, 215, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 164, 215, 0.12), rgba(133, 69, 255, 0.08)),
    rgba(255, 255, 255, 0.86);
  color: var(--blue);
}

body.light-theme .auth-reset-sent-icon {
  border-color: rgba(0, 164, 215, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 164, 215, 0.12), rgba(133, 69, 255, 0.08)),
    rgba(255, 255, 255, 0.86);
  color: var(--blue);
  box-shadow:
    inset 0 0 0 1px rgba(45, 100, 236, 0.1),
    0 16px 30px rgba(61, 91, 151, 0.12);
}

body.light-theme .auth-reset-confirm-icon {
  color: var(--green);
}

body.light-theme .auth-reset-complete-icon {
  color: var(--green);
}

body.light-theme .auth-reset-invalid-icon {
  color: #d14d74;
}

body.light-theme .auth-password-help {
  border-color: rgba(74, 102, 173, 0.16);
  background: rgba(255, 255, 255, 0.58);
}

body.light-theme .auth-password-help li::marker {
  color: var(--blue);
}

body.light-theme .auth-reset-sent-item {
  border-color: rgba(74, 102, 173, 0.16);
  background: rgba(255, 255, 255, 0.58);
}

body.light-theme .auth-reset-sent-item span {
  color: var(--blue);
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.12), rgba(133, 69, 255, 0.08)),
    rgba(255, 255, 255, 0.76);
}

@media (max-width: 1100px) {
  .auth-page-reset .auth-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .auth-page-reset {
    padding-top: 16px;
  }

  .auth-reset-copy {
    gap: 18px;
    padding-top: 20px;
  }

  .auth-reset-back {
    width: 48px;
    height: 48px;
  }
}

@keyframes authNextDraw {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
    transform: scaleX(0);
  }
  38% {
    opacity: 1;
    transform: scaleX(0.5);
  }
  50% {
    opacity: 1;
    transform: scaleX(0.5);
  }
  80% {
    transform: scaleX(1);
    opacity: 1;
  }
  92% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

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

/* Flash Messages */
.messages-container {
  width: min(1100px, 92%);
  margin: 1rem auto 0;
  position: relative;
  z-index: 20;
}

.alert {
  position: relative;
  padding: 12px 40px 12px 16px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.alert-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.alert-close:hover {
  opacity: 1;
}

.alert.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.alert.warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.alert:hover {
  transform: translateY(-2px);
}

.inbox-page {
  padding-top: 42px;
  padding-bottom: 72px;
}

.inbox-shell {
  display: grid;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.inbox-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
}

.inbox-title-block {
  display: grid;
  gap: 14px;
}

.inbox-title-block .section-label {
  justify-self: start;
  min-width: 180px;
  padding-inline: 28px;
}

.inbox-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.inbox-title-block h1 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  font-weight: 800;
  line-height: 1;
}

.inbox-count-pill,
.inbox-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.inbox-count-pill {
  min-width: 54px;
  min-height: 42px;
  padding: 0 16px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.22), rgba(164, 95, 255, 0.18)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(75, 232, 255, 0.22),
    0 14px 30px rgba(75, 232, 255, 0.12);
  color: var(--cyan);
  font-size: 1.55rem;
}

.inbox-title-block p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.inbox-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 12%, rgba(75, 232, 255, 0.1), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(164, 95, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(10, 16, 30, 0.82);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.inbox-list {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.inbox-message {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.5fr) minmax(130px, auto);
  gap: 18px;
  align-items: center;
  padding: 19px 22px;
  border: 1px solid transparent;
  border-bottom-color: rgba(151, 185, 255, 0.22);
  border-radius: 20px;
  color: var(--text);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.inbox-message:not(.inbox-message-unread) {
  opacity: 0.74;
  background: rgba(255, 255, 255, 0.018);
}

.inbox-message-unread {
  border-color: rgba(75, 232, 255, 0.22);
  background:
    linear-gradient(90deg, rgba(75, 232, 255, 0.12), rgba(164, 95, 255, 0.055)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 3px 0 0 rgba(75, 232, 255, 0.82),
    inset 0 0 0 1px rgba(75, 232, 255, 0.12),
    0 16px 34px rgba(75, 232, 255, 0.06);
}

.inbox-message:last-child {
  border-bottom-color: transparent;
}

.inbox-message:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(75, 232, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(75, 232, 255, 0.16);
}

.inbox-message-unread:hover {
  background:
    linear-gradient(90deg, rgba(75, 232, 255, 0.24), rgba(164, 95, 255, 0.14)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 5px 0 0 rgba(75, 232, 255, 1),
    inset 0 0 0 1px rgba(75, 232, 255, 0.34),
    0 22px 46px rgba(75, 232, 255, 0.18),
    0 0 36px rgba(164, 95, 255, 0.12);
}

.inbox-sender {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
}

.inbox-sender-copy,
.inbox-message-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.inbox-sender-name,
.inbox-subject,
.inbox-date,
.inbox-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-sender-name {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.inbox-email {
  color: var(--muted);
  font-size: 0.84rem;
}

.inbox-subject-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.inbox-subject {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
}

.inbox-status-pill {
  min-height: 26px;
  padding: 0 10px;
  background: rgba(151, 185, 255, 0.08);
  color: var(--muted);
  font-size: 0.72rem;
}

.inbox-message-unread .inbox-status-pill {
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.22), rgba(164, 95, 255, 0.18)),
    rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(75, 232, 255, 0.18);
}

.inbox-preview {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.inbox-date {
  justify-self: end;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inbox-message-unread .inbox-sender-name,
.inbox-message-unread .inbox-subject {
  color: #fff;
}

.inbox-message:not(.inbox-message-unread) .inbox-subject,
.inbox-message:not(.inbox-message-unread) .inbox-sender-name {
  font-weight: 700;
}

.inbox-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 300px;
  padding: 44px 24px;
  text-align: center;
}

.inbox-empty h2 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.inbox-empty p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.message-page {
  padding-top: 42px;
  padding-bottom: 72px;
}

.message-detail-card {
  position: relative;
  display: grid;
  gap: 26px;
  max-width: 980px;
  min-height: 520px;
  margin: 0 auto;
  padding: 46px clamp(24px, 6vw, 72px) 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 12%, rgba(75, 232, 255, 0.1), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(164, 95, 255, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(10, 16, 30, 0.86);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.message-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.message-back-button {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(75, 232, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.18), rgba(164, 95, 255, 0.12)),
    rgba(255, 255, 255, 0.05);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(75, 232, 255, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.message-back-button svg {
  width: 28px;
  height: 28px;
}

.message-back-button:hover,
.message-back-button:focus-visible {
  transform: translateX(-3px);
  border-color: rgba(75, 232, 255, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(75, 232, 255, 0.18),
    0 16px 30px rgba(75, 232, 255, 0.12);
}

.message-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(75, 232, 255, 0.18);
  border-radius: 999px;
  background: rgba(75, 232, 255, 0.08);
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
}

.message-detail-head {
  display: grid;
  gap: 10px;
}

.message-detail-head h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
}

.message-field-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.message-meta-list {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.62fr) minmax(140px, 0.5fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.message-sender-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.message-sender-copy,
.message-meta-item,
.message-body-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.message-meta-item {
  align-content: center;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.message-sender-name {
  min-width: 0;
  overflow: hidden;
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease;
}

.message-sender-name:hover,
.message-sender-name:focus-visible {
  color: var(--text);
}

.message-email {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-date {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.message-meta-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-recipient-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.message-recipient-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-recipient-you {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 0.86em;
  font-weight: 800;
}

.message-body-section {
  gap: 14px;
}

.message-body {
  max-width: 100%;
  padding: 24px 26px;
  border: 1px solid rgba(151, 185, 255, 0.12);
  border-left: 4px solid rgba(75, 232, 255, 0.64);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-compose-page {
  padding-top: 42px;
  padding-bottom: 72px;
}

.message-compose-card {
  display: grid;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
  padding: 44px clamp(22px, 5vw, 64px) 50px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 12%, rgba(75, 232, 255, 0.1), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(164, 95, 255, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(10, 16, 30, 0.86);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.message-compose-back {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(75, 232, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(75, 232, 255, 0.18), rgba(164, 95, 255, 0.12)),
    rgba(255, 255, 255, 0.05);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(75, 232, 255, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.message-compose-back svg {
  width: 28px;
  height: 28px;
}

.message-compose-back:hover,
.message-compose-back:focus-visible {
  transform: translateX(-3px);
  border-color: rgba(75, 232, 255, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(75, 232, 255, 0.18),
    0 16px 30px rgba(75, 232, 255, 0.12);
}

.message-compose-head {
  display: grid;
  gap: 14px;
}

.message-compose-head h1 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.02;
}

.message-compose-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.message-recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  padding: 12px 20px 12px 12px;
  border: 1px solid rgba(75, 232, 255, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 50%, rgba(75, 232, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(75, 232, 255, 0.12), rgba(164, 95, 255, 0.08)),
    rgba(75, 232, 255, 0.06);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 36px rgba(75, 232, 255, 0.08);
}

.message-recipient-chip .avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  font-size: 0.7rem;
  box-shadow: 0 12px 24px rgba(75, 232, 255, 0.2);
}

.message-recipient-chip-copy {
  display: grid;
  gap: 4px;
  line-height: 1.05;
}

.message-recipient-chip-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-recipient-chip-copy strong {
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 800;
}

.message-compose-form {
  display: grid;
  gap: 22px;
  padding-top: 8px;
}

.message-form-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(93, 231, 180, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(93, 231, 180, 0.1), rgba(75, 232, 255, 0.06)),
    rgba(255, 255, 255, 0.035);
  color: var(--muted);
  line-height: 1.45;
}

.message-form-note strong {
  color: var(--text);
}

.message-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.message-form-field {
  display: grid;
  gap: 9px;
}

.message-form-field-full {
  grid-column: 1 / -1;
}

.message-form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.message-form-optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border: 1px solid rgba(75, 232, 255, 0.18);
  border-radius: 999px;
  background: rgba(75, 232, 255, 0.08);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-form-field input,
.message-form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.message-form-field textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.7;
}

.message-form-field input:focus,
.message-form-field textarea:focus {
  border-color: rgba(75, 232, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 1px rgba(75, 232, 255, 0.18),
    0 16px 30px rgba(75, 232, 255, 0.08);
}

.message-form-field input::placeholder,
.message-form-field textarea::placeholder {
  color: rgba(159, 173, 209, 0.72);
}

.message-form-help {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.message-form-errors {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #ff8da1;
  font-size: 0.9rem;
  list-style: none;
}

.message-auth-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(75, 232, 255, 0.14);
  border-radius: 18px;
  background: rgba(75, 232, 255, 0.055);
  color: var(--muted);
}

.message-auth-note strong {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.message-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 6px;
}

.message-submit-button {
  min-width: 170px;
  border: 0;
  cursor: pointer;
}

body.light-theme .inbox-card {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 164, 215, 0.08), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(133, 69, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 247, 255, 0.72)),
    rgba(247, 250, 255, 0.86);
  box-shadow: 0 22px 56px rgba(61, 91, 151, 0.12);
}

body.light-theme .inbox-message {
  border-bottom-color: rgba(74, 102, 173, 0.2);
}

body.light-theme .inbox-message:not(.inbox-message-unread) {
  background: rgba(255, 255, 255, 0.45);
}

body.light-theme .inbox-message-unread {
  border-color: rgba(45, 100, 236, 0.18);
  background:
    linear-gradient(90deg, rgba(45, 100, 236, 0.1), rgba(133, 69, 255, 0.05)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 3px 0 0 rgba(45, 100, 236, 0.72),
    inset 0 0 0 1px rgba(45, 100, 236, 0.12),
    0 14px 28px rgba(61, 91, 151, 0.08);
}

body.light-theme .inbox-count-pill {
  background:
    linear-gradient(135deg, rgba(45, 100, 236, 0.14), rgba(133, 69, 255, 0.1)),
    rgba(255, 255, 255, 0.82);
  color: var(--blue);
  box-shadow:
    inset 0 0 0 1px rgba(45, 100, 236, 0.16),
    0 12px 26px rgba(61, 91, 151, 0.1);
}

body.light-theme .inbox-message:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(45, 100, 236, 0.12);
}

body.light-theme .inbox-message-unread:hover {
  background:
    linear-gradient(90deg, rgba(45, 100, 236, 0.18), rgba(133, 69, 255, 0.1)),
    rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 5px 0 0 rgba(45, 100, 236, 0.9),
    inset 0 0 0 1px rgba(45, 100, 236, 0.26),
    0 20px 40px rgba(61, 91, 151, 0.15),
    0 0 30px rgba(45, 100, 236, 0.08);
}

body.light-theme .inbox-message-unread .inbox-sender-name,
body.light-theme .inbox-message-unread .inbox-subject {
  color: var(--text);
}

body.light-theme .inbox-message-unread .inbox-status-pill {
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(45, 100, 236, 0.16);
}

body.light-theme .message-detail-card {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 164, 215, 0.08), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(133, 69, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 247, 255, 0.72)),
    rgba(247, 250, 255, 0.9);
  box-shadow: 0 22px 56px rgba(61, 91, 151, 0.12);
}

body.light-theme .message-back-button {
  border-color: rgba(0, 164, 215, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 164, 215, 0.12), rgba(133, 69, 255, 0.08)),
    rgba(255, 255, 255, 0.86);
  color: var(--blue);
}

body.light-theme .message-status {
  border-color: rgba(45, 100, 236, 0.14);
  background: rgba(45, 100, 236, 0.08);
  color: var(--blue);
}

body.light-theme .message-sender-name {
  color: var(--blue);
}

body.light-theme .message-sender-name:hover,
body.light-theme .message-sender-name:focus-visible {
  color: #00a4d7;
}

body.light-theme .message-recipient-you {
  color: var(--blue);
}

body.light-theme .message-body {
  border-color: rgba(74, 102, 173, 0.14);
  border-left-color: rgba(45, 100, 236, 0.62);
  background: rgba(255, 255, 255, 0.58);
}

body.light-theme .message-compose-card {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 164, 215, 0.08), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(133, 69, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(243, 247, 255, 0.74)),
    rgba(247, 250, 255, 0.9);
  box-shadow: 0 22px 56px rgba(61, 91, 151, 0.12);
}

body.light-theme .message-compose-back,
body.light-theme .message-recipient-chip {
  border-color: rgba(0, 164, 215, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 164, 215, 0.12), rgba(133, 69, 255, 0.08)),
    rgba(255, 255, 255, 0.86);
  color: var(--blue);
}

body.light-theme .message-recipient-chip-copy strong {
  color: var(--blue);
}

body.light-theme .message-form-note {
  border-color: rgba(18, 157, 109, 0.18);
  background:
    linear-gradient(135deg, rgba(18, 157, 109, 0.08), rgba(0, 164, 215, 0.06)),
    rgba(255, 255, 255, 0.72);
}

body.light-theme .message-form-optional {
  border-color: rgba(0, 164, 215, 0.18);
  background: rgba(0, 164, 215, 0.08);
  color: var(--blue);
}

body.light-theme .message-form-field input,
body.light-theme .message-form-field textarea {
  border-color: rgba(74, 102, 173, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

body.light-theme .message-form-field input:focus,
body.light-theme .message-form-field textarea:focus {
  border-color: rgba(0, 164, 215, 0.62);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(0, 164, 215, 0.16),
    0 16px 30px rgba(61, 91, 151, 0.1);
}

body.light-theme .message-auth-note {
  border-color: rgba(45, 100, 236, 0.14);
  background: rgba(45, 100, 236, 0.06);
}

@media (max-width: 900px) {
  .inbox-head {
    grid-template-columns: 1fr;
  }

  .inbox-message {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .inbox-date {
    justify-self: start;
  }

  .message-detail-card {
    min-height: auto;
  }

  .message-meta-list {
    grid-template-columns: 1fr;
  }

  .message-meta-item {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .message-compose-page {
    padding-top: 28px;
  }

  .message-compose-card {
    gap: 24px;
    padding: 24px 18px 30px;
    border-radius: 24px;
  }

  .message-compose-back {
    width: 48px;
    height: 48px;
  }

  .message-form-grid {
    grid-template-columns: 1fr;
  }

  .message-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .message-submit-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .inbox-page,
  .message-page {
    padding-top: 28px;
  }

  .inbox-list {
    padding: 10px;
  }

  .inbox-message {
    padding: 18px 14px;
  }

  .inbox-title-block h1 {
    font-size: clamp(2rem, 12vw, 2.8rem);
  }

  .message-detail-card {
    gap: 24px;
    padding: 24px 18px 30px;
    border-radius: 24px;
  }

  .message-back-button {
    width: 48px;
    height: 48px;
  }

  .message-status {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .message-body {
    padding: 20px 18px;
  }
}

.fade-out {
  animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
  0% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

