:root {
  --bg: #05110b;
  --bg-soft: rgba(8, 20, 14, 0.62);
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --panel-border: rgba(255, 255, 255, 0.2);
  --text: #eff6f0;
  --muted: rgba(239, 246, 240, 0.72);
  --soft-muted: rgba(239, 246, 240, 0.52);
  --accent: #9de7b4;
  --accent-strong: #d4ffe2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --max-width: 1240px;
  --font-main: "SF Pro Display", "SF Pro Text", "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  background-color: #05110b;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: transparent;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2, 10, 7, 0.1), rgba(2, 10, 7, 0.84)),
    radial-gradient(circle at 18% 12%, rgba(205, 255, 220, 0.12), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.07), transparent 26%),
    url("./assets/bg-leaves.png") center / cover no-repeat fixed,
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 1;
  position: relative;
  isolation: isolate;
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
}

body.account-page {
  overflow-x: hidden;
  overflow-y: auto;
}

body.account-page main {
  min-height: calc(100vh - 106px);
  height: auto;
  display: flex;
  align-items: center;
  padding-top: clamp(48px, 9vh, 96px);
  padding-bottom: clamp(112px, 14vh, 168px);
}

body.account-page .cabinet-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

body.account-page .site-footer-shell {
  margin-top: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 18% 20%, rgba(206, 255, 220, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(2, 8, 5, 0.04), rgba(2, 8, 5, 0.24));
  z-index: -2;
  transform: none;
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  will-change: transform, filter, opacity;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(206, 255, 220, 0.16), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(142, 255, 191, 0.14), transparent 22%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.08), transparent 30%);
  z-index: -1;
  pointer-events: none;
  filter: blur(18px);
}

.page-noise {
  display: none;
}

.ambient {
  position: fixed;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.32;
  pointer-events: none;
}

.ambient-left {
  top: -12rem;
  left: -8rem;
  background: rgba(132, 240, 169, 0.22);
}

.ambient-right {
  right: -10rem;
  bottom: 8rem;
  background: rgba(255, 255, 255, 0.12);
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(229, 255, 237, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(2, 10, 7, 0.04), rgba(2, 10, 7, 0.44));
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

body > :not(.page-transition):not(.ambient) {
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1), opacity 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-entering::before,
body.is-leaving::before {
  transform: scale(1.05);
  filter: blur(16px) saturate(0.96);
}

body.is-entering > :not(.page-transition):not(.ambient) {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
}

body.is-entering .page-transition {
  opacity: 1;
}

body.is-leaving > :not(.page-transition):not(.ambient) {
  opacity: 0;
  transform: translateY(-22px) scale(1.01);
}

body.is-leaving .page-transition {
  opacity: 1;
}

.glass-panel,
.glass-chip,
.discord-pill,
.primary-button,
.secondary-button,
.ghost-button,
.nav-link,
.auth-tab,
.tag-pill {
  backdrop-filter: blur(34px) saturate(158%);
  -webkit-backdrop-filter: blur(34px) saturate(158%);
  transform: translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 24px 24px 0;
  transition: padding 240ms ease;
}

.topbar {
  width: min(var(--max-width), calc(100vw - 48px));
  margin: 0 auto;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px 14px 18px;
  transition: padding 240ms ease, width 240ms ease, background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.topbar-shell.compact {
  padding-top: 10px;
}

.topbar-shell.compact .topbar {
  width: min(1080px, calc(100vw - 28px));
  padding: 9px 12px 9px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.topbar-shell.compact .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-link,
.auth-tab,
.ghost-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: 220ms ease;
}

.nav-link,
.discord-pill,
.primary-button,
.secondary-button,
.ghost-button,
.brand {
  text-decoration: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
}

.topbar-shell.compact .nav-link {
  padding: 10px 15px;
}

.nav-link i {
  font-size: 0.92rem;
  color: rgba(212, 255, 226, 0.78);
}

.nav-link:hover,
.nav-link.active,
.auth-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.discord-pill,
.primary-button,
.secondary-button,
.discord-auth-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.discord-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
}

.topbar-shell.compact .discord-pill {
  padding: 10px 14px;
}

.discord-pill:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.discord-auth-button:hover {
  transform: translateY(-1px);
}

.discord-pill-icon,
.discord-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.discord-pill-icon i,
.discord-mark i {
  font-size: 0.82rem;
}

main {
  width: min(var(--max-width), calc(100vw - 48px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.section {
  padding: 52px 0;
  scroll-margin-top: 110px;
}

.hero {
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  position: relative;
  padding: 84px 20px 40px;
}

.hero-backdrop,
.hero-overlay {
  display: none;
}

.hero-content,
.hero-tools-shell {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow,
.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.hero-title {
  margin: 20px 0 2px;
  max-width: 100%;
  font-size: clamp(3.3rem, 6.1vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.hero-title-kinetic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  flex-wrap: nowrap;
  width: 100%;
  text-align: center;
}

.hero-title-script {
  display: inline-block;
  font-family: var(--font-main);
  font-style: normal;
  font-weight: 800;
  color: rgba(245, 249, 246, 0.98);
  text-shadow: none;
  animation: heroBloom 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title-main {
  display: inline-block;
  position: relative;
  background: none;
  color: rgba(245, 249, 246, 0.98);
  text-shadow: none;
  animation: heroBloom 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title-main::after {
  content: none;
}

.hero-copy {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-copy-centered {
  max-width: 760px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.hero-actions-centered {
  justify-content: center;
}

.primary-button,
.secondary-button,
.ghost-button,
.discord-auth-button {
  border-radius: 999px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
}

.primary-button {
  background: linear-gradient(180deg, rgba(237, 255, 243, 0.26), rgba(194, 255, 212, 0.1));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.secondary-button,
.ghost-button,
.discord-auth-button {
  background: rgba(255, 255, 255, 0.05);
}

.hero-tools-shell {
  width: 100%;
  max-width: 1180px;
  margin: 76px auto 0;
  border-radius: 34px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-tools-heading {
  margin: 0 0 18px;
  text-align: center;
  color: rgba(244, 249, 245, 0.94);
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-tools-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.hero-tools-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marqueeSlide 42s linear infinite;
}

.hero-tool-pill {
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  gap: 8px;
}

.hero-tool-pill strong {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.hero-tool-pill span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-copy {
  margin: 0;
  max-width: 480px;
  color: var(--muted);
  line-height: 1.75;
}

.about-card h3 {
  margin: 0;
  font-size: 1.32rem;
  letter-spacing: -0.04em;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.library-shell {
  border-radius: 34px;
  padding: 24px;
  background: transparent;
  border: 0;
}

.tools-section {
  min-height: 100vh;
}

.tools-heading {
  margin-bottom: 30px;
}

.tools-stage {
  border-radius: 40px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at top right, rgba(210, 255, 221, 0.12), transparent 24%);
}

.tools-stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 18px;
  margin-bottom: 20px;
}

.tools-stage-copy,
.tools-stage-stats {
  border-radius: 30px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.tools-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-strong);
}

.tools-stage-copy h3 {
  margin: 18px 0 12px;
  max-width: 12ch;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.tools-stage-copy p {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.75;
}

.tools-stage-stats {
  display: grid;
  gap: 12px;
}

.tools-stat {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-stat i {
  color: var(--accent-strong);
}

.tools-stat strong {
  font-size: 1rem;
}

.tools-stat span {
  color: var(--soft-muted);
}

.library-toolbar,
.library-meta,
.account-grid,
.about-grid {
  display: grid;
  gap: 16px;
}

.library-toolbar {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.search-field,
.sort-field,
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-field {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 24px;
  min-height: 62px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-field input,
.sort-field select,
.auth-form input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--text);
  background: transparent;
}

.search-field input::placeholder,
.auth-form input::placeholder {
  color: rgba(239, 246, 240, 0.42);
}

.sort-field {
  padding: 10px 16px;
  border-radius: 24px;
  min-height: 62px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--soft-muted);
}

.sort-field span {
  font-size: 0.85rem;
}

.sort-field select option {
  color: #09140d;
}

.tag-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-pill {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: 220ms ease;
}

.tag-pill.active,
.tag-pill:hover {
  color: var(--text);
  border-color: rgba(201, 255, 216, 0.35);
  background: rgba(201, 255, 216, 0.12);
}

.library-meta {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin: 20px 0 16px;
}

.library-meta p {
  margin: 0;
  color: var(--soft-muted);
}

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

.tool-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(210, 255, 223, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.tool-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.tool-visual::before,
.tool-visual::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tool-visual::before {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1), transparent 16%);
}

.tool-visual::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
}

.visual-aurora {
  background: linear-gradient(135deg, rgba(149, 235, 179, 0.65), rgba(21, 53, 31, 0.9));
}

.visual-cobalt {
  background: linear-gradient(135deg, rgba(118, 163, 255, 0.68), rgba(15, 27, 54, 0.92));
}

.visual-ember {
  background: linear-gradient(135deg, rgba(255, 186, 127, 0.68), rgba(59, 29, 16, 0.92));
}

.visual-mint {
  background: linear-gradient(135deg, rgba(182, 255, 224, 0.68), rgba(20, 57, 54, 0.92));
}

.visual-violet {
  background: linear-gradient(135deg, rgba(190, 168, 255, 0.68), rgba(28, 24, 58, 0.92));
}

.visual-slate {
  background: linear-gradient(135deg, rgba(214, 219, 230, 0.48), rgba(29, 34, 41, 0.92));
}

.tool-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.tool-topline,
.tool-tags,
.auth-switch,
.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--accent-strong);
}

.tool-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-heading h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.tool-version,
.tag,
.tool-updated {
  color: var(--soft-muted);
  font-size: 0.92rem;
}

.tool-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.about-card,
.eggai-card,
.auth-panel,
.account-status {
  border-radius: 34px;
  padding: 24px;
}

.about-index {
  color: var(--accent-strong);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
}

.about-card h3,
.eggai-card h3,
.auth-copy h3,
.account-status h3 {
  margin: 18px 0 10px;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.about-card p,
.eggai-card p,
.auth-copy p,
.status-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.account-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-switch {
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  width: fit-content;
}

.auth-tab {
  padding: 12px 18px;
  border-radius: 999px;
}

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

.auth-form label {
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.auth-form label span {
  color: var(--soft-muted);
  font-size: 0.88rem;
}

.discord-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  background: linear-gradient(180deg, rgba(114, 137, 218, 0.34), rgba(114, 137, 218, 0.16));
}

.auth-footnote {
  margin: 0;
  color: var(--soft-muted);
  line-height: 1.65;
}

.account-status {
  position: relative;
  overflow: hidden;
}

.status-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -80px;
  right: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 255, 211, 0.26), transparent 70%);
  filter: blur(6px);
}

.status-label {
  position: relative;
  margin: 0;
  color: var(--accent-strong);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.status-copy {
  position: relative;
}

.status-list {
  position: relative;
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-item span {
  color: var(--soft-muted);
}

.hidden {
  display: none !important;
}

.favorite-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 13, 9, 0.38);
  color: rgba(239, 244, 240, 0.88);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.favorite-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.44);
  color: rgba(255, 255, 255, 0.98);
}

.favorite-button.active {
  color: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.favorite-button.compact {
  width: 38px;
  height: 38px;
}

.tool-visual .favorite-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

.account-shell-section {
  min-height: auto;
  width: 100%;
  display: flex;
  align-items: stretch;
  padding-top: 34px;
}

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

.auth-workspace,
.cabinet-shell {
  border-radius: 34px;
  padding: 28px;
}

.auth-workspace {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 122px;
}

.auth-workspace-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auth-workspace-title {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.auth-mode-pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 180ms ease;
}

.auth-mode-pill:hover,
.auth-mode-pill.active {
  color: var(--text);
  border-color: rgba(205, 255, 218, 0.26);
  background: rgba(205, 255, 218, 0.1);
}

.auth-feedback {
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.96rem;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-feedback.success {
  color: #dffbe5;
  background: rgba(83, 195, 116, 0.16);
  border-color: rgba(83, 195, 116, 0.24);
}

.auth-feedback.error {
  color: #ffd9d9;
  background: rgba(220, 87, 87, 0.15);
  border-color: rgba(220, 87, 87, 0.24);
}

.auth-feedback.info {
  color: #e3f2ff;
  background: rgba(91, 154, 228, 0.15);
  border-color: rgba(91, 154, 228, 0.24);
}

.auth-stage {
  display: grid;
  gap: 22px;
}

.auth-stage-copy {
  display: grid;
  gap: 10px;
}

.auth-stage-copy h4 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

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

.auth-stage-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(241, 246, 242, 0.92);
  font-size: 0.88rem;
}

.pro-auth-form,
.verify-form {
  display: grid;
  gap: 16px;
}

.pro-auth-form label,
.verify-form label {
  display: grid;
  gap: 10px;
}

.pro-auth-form label span,
.verify-form label span {
  color: rgba(244, 248, 245, 0.88);
  font-size: 0.95rem;
}

.pro-auth-form input,
.verify-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.pro-auth-form input:focus,
.verify-form input:focus {
  border-color: rgba(208, 255, 220, 0.28);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pro-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.auth-inline-button {
  padding-inline: 0;
  color: rgba(218, 255, 227, 0.9);
}

.auth-helper-copy {
  margin: -2px 0 0;
  color: rgba(240, 246, 242, 0.78);
  font-size: 0.96rem;
  line-height: 1.6;
}

.resend-code-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.98);
}

.resend-code-button:hover {
  color: rgba(255, 255, 255, 0.98);
}

.mail-preview-card {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.mail-preview-label {
  margin: 0 0 6px;
  color: rgba(241, 247, 243, 0.92);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mail-preview-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.code-grid input {
  text-align: center;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 18px 0;
  border-radius: 18px;
}

.cabinet-shell {
  min-height: min(600px, calc(100vh - 198px));
  max-height: calc(100vh - 198px);
  width: min(100%, var(--max-width));
  margin: 0 auto;
  overflow: hidden;
}

.cabinet-empty {
  min-height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  padding: 48px 24px 24px;
}

.cabinet-empty-icon {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  display: inline-grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 auto 4px;
}

.cabinet-empty h3 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.cabinet-empty p {
  margin: 4px auto 0;
  max-width: 500px;
  color: var(--muted);
  line-height: 1.6;
}

.cabinet-dashboard {
  display: grid;
  gap: 18px;
}

.cabinet-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cabinet-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(225, 255, 233, 0.24), rgba(112, 180, 132, 0.12)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cabinet-hero-copy h3 {
  margin: 6px 0 4px;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  letter-spacing: -0.05em;
}

.cabinet-hero-copy p {
  margin: 0;
  color: var(--muted);
}

.cabinet-hero-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cabinet-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #dffbe5;
  background: rgba(83, 195, 116, 0.16);
  border: 1px solid rgba(83, 195, 116, 0.24);
}

.cabinet-badge.subtle {
  color: rgba(241, 246, 242, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

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

.cabinet-stat,
.security-card,
.favorite-dashboard-card,
.access-dashboard-card,
.mini-empty-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.cabinet-stat {
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.cabinet-stat span {
  color: var(--muted);
  font-size: 0.84rem;
}

.cabinet-stat strong {
  font-size: 0.98rem;
}

.cabinet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cabinet-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 180ms ease;
}

.cabinet-tab:hover,
.cabinet-tab.active {
  color: var(--text);
  background: rgba(209, 255, 221, 0.11);
  border-color: rgba(209, 255, 221, 0.24);
}

.cabinet-panel {
  display: none;
}

.cabinet-panel.active {
  display: block;
}

.cabinet-info-list,
.favorites-dashboard-grid,
.access-dashboard-grid,
.security-card-grid {
  display: grid;
  gap: 10px;
}

.cabinet-info-row {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cabinet-info-row span {
  color: var(--muted);
}

.favorites-dashboard-grid,
.access-dashboard-grid,
.security-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.favorite-dashboard-card,
.access-dashboard-card,
.security-card,
.mini-empty-card {
  padding: 16px;
}

.favorite-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.favorite-dashboard-card h4,
.access-dashboard-card h4,
.security-card strong,
.mini-empty-card h4 {
  margin: 0;
}

.favorite-dashboard-card p,
.access-dashboard-card p,
.security-card p,
.mini-empty-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.access-dashboard-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.access-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 6px;
  background: #9fffbc;
  box-shadow: 0 0 0 8px rgba(159, 255, 188, 0.12);
}

.security-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.logout-button {
  margin-top: 18px;
}

.tools-clean-section {
  padding-top: 142px;
}

.hero-tools-shell {
  margin-top: 64px;
}

.morph-shell {
  position: relative;
  width: min(100%, 980px);
  height: 112px;
  margin: -8px auto 42px;
  display: grid;
  place-items: center;
}

.morph-text {
  position: relative;
  width: 100%;
  min-height: 96px;
  display: grid;
  place-items: center;
  justify-items: center;
  text-align: center;
  filter: url(#morphThreshold) blur(0.6px);
  white-space: nowrap;
}

.morph-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  width: 100%;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  font-weight: 800;
  color: rgba(236, 243, 239, 0.95);
  letter-spacing: -0.04em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  filter: blur(8px);
  transform: scale(0.985);
  will-change: opacity, filter, transform, visibility;
  transition: opacity 1100ms ease, filter 1100ms ease, transform 1100ms ease, visibility 0s linear 1100ms;
}

.morph-word.is-visible {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
  transform: scale(1);
  transition-delay: 0s;
}

.morph-svg {
  position: absolute;
  width: 0;
  height: 0;
}

.search-field,
.sort-field {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sort-field-custom {
  position: relative;
  display: grid;
  gap: 10px;
}

.sort-field-label {
  color: rgba(241, 246, 243, 0.9);
  font-size: 0.92rem;
}

.sort-dropdown {
  position: relative;
}

.sort-dropdown-trigger {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.14);
  color: rgba(246, 249, 247, 0.96);
  font: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.sort-dropdown-trigger:hover,
.sort-dropdown.is-open .sort-dropdown-trigger {
  border-color: rgba(214, 255, 225, 0.22);
  transform: translateY(-1px);
}

.sort-dropdown-trigger i {
  color: var(--muted);
  transition: transform 180ms ease, color 180ms ease;
}

.sort-dropdown.is-open .sort-dropdown-trigger i {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.92);
}

.sort-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(13, 25, 18, 0.96), rgba(7, 16, 11, 0.94));
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sort-option {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(232, 239, 235, 0.84);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.sort-option:hover,
.sort-option.active {
  background: rgba(213, 255, 225, 0.12);
  color: rgba(255, 255, 255, 0.98);
  transform: translateX(2px);
}

.tag-pill {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 241, 236, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tag {
  background: rgba(224, 255, 233, 0.08);
  border-color: rgba(224, 255, 233, 0.12);
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(214, 255, 225, 0.18);
  background: rgba(214, 255, 225, 0.12);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.download-button:hover {
  transform: translateY(-1px);
  background: rgba(214, 255, 225, 0.18);
  border-color: rgba(214, 255, 225, 0.28);
}

.inline-download {
  margin-top: 16px;
}

.download-button-static {
  justify-content: flex-start;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 249, 246, 0.9);
  cursor: default;
}

.download-button-static:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.auth-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 20px 40px;
}

.auth-standalone {
  width: min(100%, 640px);
  padding: 32px;
  border-radius: 34px;
  display: grid;
  gap: 22px;
}

.auth-standalone h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
}

.auth-brand {
  width: fit-content;
}

.auth-standalone > h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
}

.empty-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.auth-divider {
  position: relative;
  display: grid;
  place-items: center;
  margin: 2px 0;
  color: rgba(229, 236, 232, 0.7);
  font-size: 0.92rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 14px;
  background: transparent;
}

.site-footer-shell {
  width: min(calc(100% - 40px), 1180px);
  margin: 24px auto 28px;
}

.site-footer {
  border-radius: 34px;
  padding: 28px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.8fr));
  gap: 24px;
}

.site-footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.site-footer-avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.site-footer-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-footer-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer-brand h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.05em;
}

.site-footer-brand p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 460px;
}

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

.site-footer-column h3 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 246, 242, 0.92);
}

.site-footer-links {
  display: grid;
  gap: 10px;
}

.site-footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer-link:hover {
  color: var(--text);
  transform: translateX(2px);
}

.site-footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer-bottom p {
  margin: 0;
  color: var(--soft-muted);
}

.site-footer-bottom a {
  color: var(--accent-strong);
  text-decoration: none;
}

.site-footer-bottom a:hover {
  color: var(--text);
}

.site-footer-credit,
.site-footer-credit:hover {
  color: rgba(255, 255, 255, 0.98);
}

.site-footer-bottom a.site-footer-credit,
.site-footer-bottom a.site-footer-credit:hover {
  color: rgba(255, 255, 255, 0.98);
}

.site-footer-link-button {
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.site-footer-link-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer-link-icon i {
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.legal-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 7, 4, 0.78);
}

.legal-modal__dialog {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  padding: 32px 28px 28px;
  overflow: hidden;
  border-radius: 32px;
}

.legal-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.legal-modal__header {
  margin-bottom: 18px;
  padding-right: 54px;
}

.legal-modal__header h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.legal-modal__eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legal-modal__content {
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding-right: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.legal-modal__content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.legal-modal__content p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.78;
}

.legal-modal-open {
  overflow: hidden;
}

.eggai-section {
  min-height: calc(100vh - 138px);
  display: grid;
  place-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.eggai-placeholder {
  width: min(100%, 640px);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}

.eggai-placeholder-icon {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  display: inline-grid;
  place-items: center;
  font-size: 2.1rem;
  color: rgba(245, 249, 246, 0.98);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.eggai-placeholder h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.06em;
}

.eggai-placeholder p {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.eggai-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at top right, rgba(204, 255, 221, 0.18), transparent 26%);
}

.eggai-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-strong);
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal:nth-child(2) {
  animation-delay: 80ms;
}

.reveal:nth-child(3) {
  animation-delay: 150ms;
}

.reveal:nth-child(4) {
  animation-delay: 220ms;
}

.reveal:nth-child(5) {
  animation-delay: 300ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBloom {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    filter: blur(12px);
    letter-spacing: -0.11em;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    letter-spacing: -0.065em;
  }
}

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

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

@keyframes marqueeSlide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 7px));
  }
}

@media (max-width: 1080px) {
  .hero,
  .account-grid,
  .about-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .account-shell,
  .tools-stage-top {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-content {
    padding: 30px 0 0;
  }

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

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-shell {
    width: min(calc(100% - 24px), 1180px);
  }

  .site-footer {
    padding: 22px;
  }

  .site-footer-brand {
    grid-template-columns: 1fr;
  }

  .hero-title-kinetic {
    flex-direction: column;
    align-items: center;
    gap: 0.05em;
  }

  .auth-workspace {
    position: static;
  }

  .favorites-dashboard-grid,
  .access-dashboard-grid,
  .security-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar-shell {
    padding-inline: 14px;
  }

  main {
    width: min(var(--max-width), calc(100vw - 28px));
  }

  .topbar {
    width: calc(100vw - 28px);
    border-radius: 34px;
    padding: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .library-toolbar,
  .library-meta {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(3rem, 13vw, 5.6rem);
  }

  .hero-tools-shell {
    margin-top: 54px;
  }

  .hero-tool-pill {
    min-width: 210px;
  }

  .auth-workspace,
  .cabinet-shell {
    padding: 22px;
  }

  .auth-workspace-top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-mode-switch {
    justify-content: flex-start;
  }

  .auth-field-grid,
  .cabinet-stats,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-hero,
  .cabinet-info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-shell.compact .topbar {
    width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.floating-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(14, 20, 30, 0.92);
  color: #f7fbff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-notice-error {
  background: rgba(126, 24, 24, 0.96);
}

.admin-section {
  padding-top: 144px;
}

.admin-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto 80px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  margin-bottom: 20px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.admin-summary-card,
.admin-card,
.admin-feature-row {
  padding: 24px;
}

.admin-summary-card span {
  display: block;
  color: rgba(245, 248, 255, 0.72);
  margin-bottom: 12px;
}

.admin-summary-card strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-feature-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f8ff;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  margin-bottom: 20px;
}

.admin-card-head {
  margin-bottom: 18px;
}

.admin-card-head h2 {
  margin: 0 0 8px;
}

.admin-card-head p {
  margin: 0;
  color: rgba(245, 248, 255, 0.72);
}

.admin-code-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(245, 248, 255, 0.9);
}

.admin-code-list li + li {
  margin-top: 10px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

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

.admin-actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-admin-button {
  padding: 10px 14px;
  min-height: auto;
}

.admin-guard-card {
  width: min(720px, calc(100vw - 40px));
  margin: 0 auto 80px;
  padding: 32px;
  border-radius: 28px;
  background: rgba(8, 14, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.admin-guard-card h2 {
  margin-top: 0;
}

.admin-launch-button {
  margin-right: 10px;
}

@media (max-width: 900px) {
  .admin-summary-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }
}
