:root {
  --bg: #0b1422;
  --bg-soft: #122036;
  --panel: rgba(19, 32, 50, 0.94);
  --panel-strong: rgba(14, 25, 41, 0.98);
  --panel-alt: rgba(27, 43, 63, 0.92);
  --line: rgba(139, 171, 201, 0.2);
  --line-strong: rgba(106, 194, 211, 0.42);
  --text: #f2f6fb;
  --muted: #b5c5d8;
  --accent: #62bfd1;
  --accent-strong: #287990;
  --sunset: #c3e9ef;
  --accent-soft: rgba(98, 191, 209, 0.14);
  --shadow: 0 24px 58px rgba(2, 8, 18, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: radial-gradient(circle at top, rgba(48, 106, 154, 0.2), transparent 32%),
    linear-gradient(180deg, #0b1422 0%, #111e31 35%, #0b1422 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(125deg, rgba(117, 188, 213, 0.045), transparent 38%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }

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

button { font: inherit; }

:focus-visible {
  outline: 2px solid rgba(122, 213, 226, 0.95);
  outline-offset: 3px;
}

.live-banner {
  position: relative;
  z-index: 50;
  text-align: center;
  padding: 0.66rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(10, 20, 34, 0.95);
  border-bottom: 1px solid var(--line);
  color: var(--sunset);
  backdrop-filter: blur(10px);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, #0a1422, #15243a 54%, #0b1422);
  opacity: 1;
  visibility: visible;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.boot-screen::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(146, 198, 216, 0.02) 0 1px, transparent 1px 4px);
  content: "";
  pointer-events: none;
}

.boot-panel {
  position: relative;
  width: min(320px, 100%);
  text-align: center;
}

.boot-brand {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.boot-brand span {
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
}

.boot-status {
  margin: 34px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.boot-progress {
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.boot-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), var(--sunset));
  transition: width 100ms linear;
}

.boot-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: rgba(181, 199, 218, 0.84);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.boot-screen.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .boot-screen,
  .boot-progress > span {
    transition-duration: 120ms;
  }
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.nav-row,
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 0 14px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 28, 45, 0.86);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 31, 49, 0.9);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: var(--text);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.filter-btn {
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  background: linear-gradient(135deg, #c9edf1 0%, #67bfd0 48%, #287990 100%);
  border: 1px solid rgba(154, 222, 231, 0.78);
  color: #0b1927;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(51, 155, 181, 0.19);
}

.secondary-btn,
.ghost-btn {
  background: rgba(18, 31, 49, 0.8);
  border: 1px solid var(--line);
  color: var(--text);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.filter-btn:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 88px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  color: var(--sunset);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 4.5rem;
  line-height: 0.98;
}

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

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 32px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stats strong {
  font-size: 1.5rem;
  letter-spacing: -0.06em;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 96px 0 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.filters .filter-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.filter-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  color: var(--muted);
}

.filter-btn.active {
  background: rgba(98, 191, 209, 0.16);
  border-color: rgba(98, 191, 209, 0.52);
  color: var(--text);
}

.category-grid,
.mod-grid,
.creator-grid {
  display: grid;
  gap: 22px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  display: grid;
  grid-template-rows: 42px auto 1fr;
  align-content: start;
  min-width: 0;
  min-height: 188px;
  padding: 16px 13px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(27, 44, 65, 0.96), rgba(15, 28, 45, 0.98));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(223, 241, 250, 0.035);
  transition: transform 0.2s ease, border-color 0.2s ease;
  scroll-snap-align: start;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(98, 191, 209, 0.1);
  font-size: 1.25rem;
}

.category-card h3 {
  margin: 12px 0 7px;
  font-size: 0.98rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.muted-section {
  padding-top: 100px;
}

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

.filter-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

.mod-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(16, 29, 47, 0.97);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mod-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 30px rgba(0,0,0,0.22);
}

.mod-image {
  display: block;
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  object-fit: cover;
}

.image-one {
  background-image: linear-gradient(160deg, rgba(9, 24, 42, 0.12), rgba(9, 24, 42, 0.42)), url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=900&q=80");
}

.image-two {
  background-image: linear-gradient(160deg, rgba(9, 24, 42, 0.12), rgba(9, 24, 42, 0.42)), url("https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?auto=format&fit=crop&w=900&q=80");
}

.image-three {
  background-image: linear-gradient(160deg, rgba(9, 24, 42, 0.12), rgba(9, 24, 42, 0.42)), url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=900&q=80");
}

.image-four {
  background-image: linear-gradient(160deg, rgba(9, 24, 42, 0.12), rgba(9, 24, 42, 0.42)), url("https://images.unsplash.com/photo-1525609004556-c46c7d6cf023?auto=format&fit=crop&w=900&q=80");
}

.mod-body {
  padding: 18px 18px 20px;
}

.mod-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tag,
.rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(98, 191, 209, 0.08);
  border: 1px solid rgba(98, 191, 209, 0.18);
  color: var(--sunset);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rating-stars {
  color: var(--accent);
  white-space: nowrap;
}

.empty-stars {
  color: var(--muted);
}

.mod-body h3 {
  margin: 16px 0 8px;
  font-size: 1.32rem;
}

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

.mod-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.creators-section {
  padding-top: 110px;
}

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

.creator-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 14px;
  align-items: start;
  column-gap: 14px;
  padding: 22px 18px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 33, 51, 0.8), rgba(8, 17, 30, 0.96));
}

.creator-card-copy {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.creator-name-wrap {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.creator-name {
  display: inline-block;
  color: var(--text);
  overflow-wrap: anywhere;
}

.creator-bio {
  color: var(--muted);
}

.creator-role-label {
  color: var(--accent);
}

.mod-creator-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.mod-creator-link > span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.creator-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.creator-avatar {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(180, 230, 239, 0.15), rgba(40, 114, 143, 0.28));
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--sunset);
}

.creator-avatar > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.creator-avatar-fallback {
  position: relative;
  z-index: 1;
}

.creator-header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.creator-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.about-section {
  padding-top: 106px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 28px;
}

.about-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  line-height: 1.02;
}

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

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

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sunset), var(--accent));
  box-shadow: 0 0 12px rgba(98, 191, 209, 0.5);
}

.about-panel {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 33, 51, 0.82), rgba(10, 20, 34, 0.96));
  box-shadow: var(--shadow);
}

.panel-surface {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
}

.mini-visual {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-stats {
  margin-top: 18px;
}

.download-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.download-stats strong {
  font-size: 1rem;
}

.download-stats span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-section {
  padding-top: 110px;
}

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

.faq-item {
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(18, 31, 49, 0.8);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

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

.site-footer {
  padding: 52px 0 34px;
}

.footer-wrap {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .value-grid,
  .creator-grid,
  .mod-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .category-grid {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 2px 16px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--line-strong) transparent;
    scrollbar-width: thin;
  }

  .category-card {
    flex: 0 0 164px;
  }

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

  .filters {
    width: 100%;
  }

  .nav-row,
  .nav-wrap {
    padding-inline: 12px;
    flex-wrap: wrap;
    position: relative;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 42px;
  }

  .nav-row.menu-open .main-nav,
  .nav-wrap.menu-open .main-nav {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
  }

  .main-nav a {
    padding: 12px 4px;
    border-top: 1px solid var(--line);
  }

  .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 24px);
  }

  .section {
    padding-top: 68px;
  }

  .muted-section,
  .creators-section,
  .about-section {
    padding-top: 68px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }

  .nav-actions {
    gap: 8px;
  }

  .category-card {
    flex-basis: 154px;
    min-height: 180px;
    padding: 14px 12px;
  }

  .category-grid {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .mod-grid,
  .creator-grid {
    gap: 14px;
  }

  .about-grid {
    gap: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-stats {
    gap: 14px 18px;
  }

  .site-footer {
    padding-top: 40px;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    padding: 0.8rem 0.95rem;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-copy h1 {
    font-size: 3.1rem;
  }

  .about-copy h2 {
    font-size: 2.5rem;
  }

  .value-grid,
  .creator-grid,
  .mod-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

.mod-download-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(180, 230, 239, 0.64);
  border-radius: 8px;
  background: rgba(98, 191, 209, 0.1);
  color: var(--sunset);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.download-link:hover {
  background: var(--accent);
  color: #15110a;
}

.mod-installation-instructions,
.upload-install-instructions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.mod-installation-instructions summary,
.upload-install-instructions summary {
  padding: 12px 14px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 650;
  list-style-position: inside;
}

.mod-installation-instructions summary::marker,
.upload-install-instructions summary::marker {
  color: var(--accent);
}

.mod-installation-instructions p,
.upload-install-instructions p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  border-radius: 8px;
}

.upload-info {
  min-width: 0;
}

.upload-info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.upload-info > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.upload-edit {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.upload-edit > summary {
  padding: 10px 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.upload-edit-form {
  display: grid;
  gap: 12px;
  padding: 4px 0 12px;
}

.upload-edit-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 600;
}

.upload-edit-form label > span,
.upload-edit-form small {
  color: var(--muted);
  font-size: 0.78rem;
}

.upload-edit-form > button {
  justify-self: start;
}

.upload-image-preview {
  display: block;
  width: min(100%, 420px);
  max-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.upload-image-preview[hidden] {
  display: none;
}

.upload-form .upload-image-preview {
  width: min(100%, 300px);
}

.upload-empty,
.creator-empty,
.review-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  line-height: 1.6;
}

.creator-empty,
.review-empty {
  text-align: center;
}

.filter-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.field-group span,
.upload-form label span,
.developer-form label span,
.site-category-form label span,
.site-theme-grid label span,
.site-copy-grid label span,
.profile-form .field-group span,
.avatar-file-label {
  letter-spacing: 0;
}

.live-banner,
.brand,
.brand-text,
.eyebrow,
.hero-copy h1,
.hero-stats strong,
.hero-stats span,
.section-heading h2,
.tag,
.rating,
.creator-header span,
.about-copy h2,
.auth-copy h1,
.dashboard-head h1,
.auth-card-header small,
.panel-header small,
.profile-dialog-header small,
.stat-card strong {
  letter-spacing: 0;
}

.hero-grid,
.about-grid,
.auth-grid,
.dashboard-grid,
.stats-grid,
.site-theme-grid,
.site-copy-grid,
.field-row,
.creator-profile-summary,
.creator-card,
.mod-card,
.category-card,
.value-card,
.stat-card,
.auth-card,
.content-panel,
.side-panel,
.faq-item,
.site-editor-shell,
.profile-dialog,
.developer-terminal-dialog,
.upload-item,
.review-item,
.notification-item,
.site-editor-dialog,
.profile-avatar-preview {
  min-width: 0;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.filter-btn,
.category-card,
.mod-card,
.creator-card,
.value-card,
.stat-card,
.faq-item,
.auth-card,
.content-panel,
.side-panel,
.about-panel,
.site-editor-shell,
.profile-dialog,
.developer-terminal-dialog,
.upload-item,
.review-item,
.notification-item,
.site-editor-dialog,
input,
textarea,
select {
  border-radius: 8px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.6;
}

input,
textarea,
select {
  font-size: 0.95rem;
}

input[type="file"] {
  padding: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .nav-wrap,
  .nav-row {
    gap: 8px;
    min-height: 64px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .primary-btn,
  .nav-actions .ghost-btn {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .nav-actions .auth-link {
    max-width: 116px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .upload-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .status-solid {
    justify-self: start;
  }
}

.section-heading h2 {
  font-size: 2.8rem;
}

.auth-copy h1,
.dashboard-head h1 {
  font-size: 3.5rem;
}

.stat-card strong {
  font-size: 2.2rem;
}

.detail-hero {
  padding: 48px 0 80px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  align-items: start;
  gap: 20px;
}

.detail-content {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 26px;
}

.detail-cover-image {
  display: block;
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  object-fit: cover;
}

.detail-cover-image[hidden] {
  display: none;
}

.creator-published-mod {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.creator-published-mod-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
}

.creator-published-mod h3,
.creator-published-mod p {
  margin: 0;
}

.detail-content h1 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.detail-content > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.mod-review-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.mod-review-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}

.mod-review-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.mod-review-heading p,
.mod-review-panel > p {
  margin: 0;
  color: var(--muted);
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
}

.star-rating button {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 38px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.star-rating button.active,
.star-rating button:hover {
  color: var(--accent);
}

.star-rating .zero-star-button {
  margin-left: 8px;
  border-color: var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.star-rating .zero-star-button:hover {
  color: var(--text);
}

.detail-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

.detail-meta div {
  display: grid;
  gap: 5px;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.detail-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-install-panel {
  position: sticky;
  top: 100px;
}

.detail-install-panel h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.detail-install-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-state {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.detail-state p {
  margin: 0;
  color: var(--muted);
}

.mod-title-link {
  color: inherit;
}

.mod-title-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.catalog-load-error {
  display: grid;
  justify-items: center;
  gap: 12px;
  grid-column: 1 / -1;
}

@media (max-width: 800px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-install-panel {
    position: static;
  }

  .detail-content {
    padding: 20px;
  }

  .detail-content h1 {
    font-size: 2.3rem;
  }
}

.creator-action-panel {
  align-self: center;
  padding: 30px;
}

.creator-action-panel h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.creator-action-panel > p:not(.eyebrow) {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.creator-profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.creator-avatar-large {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  font-size: 2.5rem;
}

.creator-profile-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.creator-username,
.creator-profile-bio {
  color: var(--muted);
}

.creator-profile-actions,
.creator-profile-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.creator-profile-actions p {
  margin: 0;
}

.creator-profile-stats {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.creator-profile-stats strong {
  color: var(--text);
}

.profile-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-back-link:hover {
  color: var(--text);
}

.status-solid {
  align-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(196, 211, 180, 0.28);
  border-radius: 4px;
  background: rgba(112, 145, 96, 0.12);
  color: #d3e2c7;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-solid.alt {
  border-color: var(--line);
  background: rgba(98, 191, 209, 0.08);
  color: var(--sunset);
}

.review-item {
  display: grid;
  gap: 14px;
}

.review-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.review-item p strong {
  color: var(--text);
}

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

.site-editor-tabs button {
  border-radius: 8px;
}

.tag,
.rating {
  border-radius: 4px;
  letter-spacing: 0;
}

.live-banner,
.brand,
.brand-text,
.eyebrow,
.hero-copy h1,
.hero-stats strong,
.hero-stats span,
.section-heading h2,
.creator-header span,
.about-copy h2,
.auth-copy h1,
.dashboard-head h1,
.auth-card-header small,
.panel-header small,
.profile-dialog-header small,
.field-group span,
.upload-form label span,
.developer-form label span,
.site-category-form label span,
.site-theme-grid label span,
.site-copy-grid label span,
.profile-form .field-group span,
.avatar-file-label,
.stat-card strong {
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .auth-copy {
    padding-top: 0;
  }
}

.developer-identity {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.developer-identity-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.developer-identity-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.developer-identity-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer-identity-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.developer-identity-copy strong {
  overflow-wrap: anywhere;
}

.developer-identity-copy > span,
.developer-profile-badge {
  color: var(--muted);
  font-family: "Geist Mono", "Geist Mono Fallback", monospace;
  font-size: 0.72rem;
}

.developer-identity-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.developer-identity-form > label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
}

.developer-identity-form > label > span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.developer-identity-form input[type="color"] {
  width: 56px;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel-strong);
  cursor: pointer;
}

.developer-name-preset {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.developer-name-preset > span {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.profile-name-color-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-name-color-control input[type="color"] {
  width: 56px;
  height: 44px;
  padding: 4px;
}

.profile-name-color-control button {
  min-height: 44px;
}

.developer-identity-form .developer-identity-bio,
.developer-identity-form .developer-avatar-input,
.developer-identity-effects,
.developer-identity-actions,
.developer-identity-form > .login-message {
  grid-column: 1 / -1;
}

.developer-identity-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px;
  border-block: 1px solid var(--line);
}

.developer-identity-effects label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
}

.developer-identity-effects input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.developer-identity-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.developer-profile-badge:not([hidden]) {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.rgb-text {
  color: transparent !important;
  background: linear-gradient(90deg, #ff315c, #ffc42e, #45ed91, #39c5ff, #b45bff, #ff315c);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: developer-rgb-shift 5s linear infinite;
}

.name-color-black {
  text-shadow: 0 0 1px rgba(242, 246, 251, 0.95), 0 0 5px rgba(242, 246, 251, 0.35);
}

.name-animation-pulse {
  animation: creator-name-pulse 2.2s ease-in-out infinite;
}

.name-animation-glow {
  animation: creator-name-glow 2.4s ease-in-out infinite;
}

.name-animation-sweep {
  color: transparent !important;
  background: linear-gradient(100deg, var(--name-fill-color, var(--text)) 0%, #5de5d2 35%, #f5d36c 50%, #5de5d2 65%, var(--name-fill-color, var(--text)) 100%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: creator-name-sweep 3.5s linear infinite;
}

.name-animation-float {
  animation: creator-name-float 2.8s ease-in-out infinite;
}

.name-animation-flicker {
  animation: creator-name-flicker 2.7s steps(1, end) infinite;
}

.name-animation-hue {
  animation: creator-name-hue 5s linear infinite;
}

@keyframes creator-name-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.68; }
}

@keyframes creator-name-glow {
  0%, 100% { text-shadow: 0 0 2px currentColor; }
  50% { text-shadow: 0 0 10px currentColor, 0 0 18px rgba(98, 191, 209, 0.42); }
}

@keyframes creator-name-sweep {
  to { background-position: 220% 0; }
}

@keyframes creator-name-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes creator-name-flicker {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20%, 63% { opacity: 0.5; }
}

@keyframes creator-name-hue {
  to { filter: hue-rotate(360deg); }
}

.rgb-avatar-frame {
  animation: developer-rgb-frame 5s linear infinite;
}

@keyframes developer-rgb-shift {
  to { background-position: 300% 0; }
}

@keyframes developer-rgb-frame {
  0%, 100% { box-shadow: 0 0 0 2px #ff315c, 0 0 18px rgba(255, 49, 92, 0.25); }
  33% { box-shadow: 0 0 0 2px #45ed91, 0 0 18px rgba(69, 237, 145, 0.25); }
  66% { box-shadow: 0 0 0 2px #39c5ff, 0 0 18px rgba(57, 197, 255, 0.25); }
}

@media (max-width: 700px) {
  .developer-identity-preview {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .developer-identity-preview > a {
    grid-column: 1 / -1;
  }

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

  .developer-identity-form > label,
  .developer-identity-effects,
  .developer-identity-actions,
  .developer-identity-form > .login-message {
    grid-column: 1;
  }

  .developer-identity-actions > button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rgb-text,
  .rgb-avatar-frame,
  .name-animation-pulse,
  .name-animation-glow,
  .name-animation-sweep,
  .name-animation-float,
  .name-animation-flicker,
  .name-animation-hue {
    animation: none;
  }
}

.developer-appointment {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.developer-account-search,
.developer-appointment-confirm label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.developer-account-search > span,
.developer-appointment-confirm label > span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.developer-account-results {
  display: grid;
  max-height: 240px;
  overflow-y: auto;
}

.developer-account-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.developer-account-result:hover,
.developer-account-result:focus-visible {
  background: rgba(98, 191, 209, 0.08);
}

.developer-account-result span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.developer-account-result small,
.developer-account-empty {
  color: var(--muted);
}

.developer-appointment-confirm {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.developer-appointment-confirm p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.developer-appointment-confirm button {
  justify-self: end;
}

.creator-display-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.developer-mark {
  display: inline-grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  color: var(--accent);
  vertical-align: middle;
}

.developer-mark[hidden],
.developer-profile-badge[hidden] {
  display: none !important;
}

.developer-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.creator-card-copy .developer-mark {
  width: 16px;
  height: 16px;
  margin-left: 6px;
}

@media (max-width: 700px) {
  .developer-appointment-confirm button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .section-heading h2 {
    font-size: 2.2rem;
  }

  .auth-copy h1,
  .dashboard-head h1 {
    font-size: 2.8rem;
  }

  .creator-profile-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }

  .creator-profile-copy h1 {
    font-size: 2.5rem;
  }

  .profile-avatar-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-actions,
  .site-editor-footer {
    grid-template-columns: minmax(0, 1fr);
  }
}

.auth-page,
.dashboard-page {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.96), rgba(15, 12, 10, 0.96));
}

.auth-wrap,
.dashboard-page {
  padding-top: 60px;
}

.auth-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.auth-copy {
  padding-top: 40px;
}

.auth-copy h1,
.dashboard-head h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5rem;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.auth-copy p,
.auth-copy .demo-hint,
.dashboard-head p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-card,
.content-panel,
.side-panel,
.developer-terminal-dialog,
.site-editor-shell,
.profile-dialog {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.92), rgba(10, 20, 34, 0.96));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 24px;
}

.auth-card-header,
.panel-header,
.site-editor-header,
.profile-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-card-header {
  margin-bottom: 22px;
}

.auth-card-header strong,
.panel-header h2,
.panel-header h3,
.site-editor-header h2,
.profile-dialog-header h2 {
  font-size: 1.05rem;
}

.auth-card-header small,
.panel-header small,
.profile-dialog-header small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.auth-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
}

.auth-mode button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
}

.auth-mode button.active {
  background: rgba(98, 191, 209, 0.12);
  color: var(--text);
  border: 1px solid rgba(98, 191, 209, 0.32);
}

.auth-form,
.developer-form,
.profile-form {
  display: grid;
  gap: 18px;
}

.field-group,
.upload-form label,
.developer-form label,
.site-category-form label,
.site-theme-grid label,
.site-copy-grid label,
.profile-form .field-group {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.field-group span,
.upload-form label span,
.developer-form label span,
.site-category-form label span,
.site-theme-grid label span,
.site-copy-grid label span,
.profile-form .field-group span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(14, 27, 43, 0.8);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: rgba(181, 197, 216, 0.72);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(98, 191, 209, 0.7);
  box-shadow: 0 0 0 3px rgba(98, 191, 209, 0.12);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-message.success {
  color: #d6f4d8;
}

.full-width {
  width: 100%;
}

.developer-terminal-dialog {
  width: min(620px, calc(100% - 28px));
  padding: 22px;
  color: var(--text);
}

.developer-terminal-dialog::backdrop {
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(4px);
}

.terminal-screen {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(6, 8, 11, 0.9);
  border: 1px solid rgba(98, 191, 209, 0.28);
  color: #dfe9eb;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  min-height: 110px;
}

.terminal-input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 14, 16, 0.9);
}

.terminal-input-row span {
  color: var(--sunset);
  font-weight: 700;
  white-space: nowrap;
}

.terminal-input-row input {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.terminal-close,
.profile-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  font-size: 1.4rem;
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

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

.stat-card {
  padding: 24px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.92), rgba(10, 20, 34, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  display: block;
}

.stat-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 2.2rem;
  letter-spacing: -0.06em;
}

.dashboard-grid {
  gap: 22px;
  margin-top: 12px;
}

.content-panel,
.side-panel {
  padding: 18px;
}

.upload-form,
.content-panel,
.side-panel {
  display: grid;
  gap: 18px;
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.upload-list,
.review-queue,
.notification-list {
  display: grid;
  gap: 12px;
}

.upload-item,
.review-item,
.notification-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
}

.quick-actions,
.developer-controls,
.developer-form,
.external-hosting-fields,
.site-category-actions,
.profile-actions,
.site-editor-footer,
.site-category-toolbar {
  display: grid;
  gap: 12px;
}

.external-hosting-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.external-hosting-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.full {
  width: 100%;
}

.developer-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(98, 191, 209, 0.42);
  border-inline-start: 4px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(13, 27, 43, 0.98), rgba(12, 19, 34, 0.98));
  box-shadow: 0 0 0 1px rgba(98, 191, 209, 0.06), 0 18px 36px rgba(0, 0, 0, 0.18);
}

.developer-console-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.developer-console-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.developer-console-title h3,
.developer-quick-tools-heading h4 {
  margin: 0;
}

.developer-console-mark,
.developer-quick-tools-heading > span {
  color: var(--accent);
  font-family: "Geist Mono", "Geist Mono Fallback", monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.developer-tier-label {
  justify-self: end;
  color: var(--muted);
  font-family: "Geist Mono", "Geist Mono Fallback", monospace;
  font-size: 0.72rem;
  text-align: right;
  text-transform: uppercase;
}

.developer-quick-tools {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(98, 191, 209, 0.055);
}

.developer-quick-tools-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.developer-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.developer-quick-actions > * {
  min-height: 42px;
}

.developer-style-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.developer-style-presets > span {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.style-preset-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(98, 191, 209, 0.08);
  color: var(--text);
  cursor: pointer;
}

.style-preset-button:hover,
.style-preset-button:focus-visible {
  background: rgba(98, 191, 209, 0.18);
}

.developer-style-message {
  grid-column: 1 / -1;
}

.developer-panel.hidden,
.site-editor-panel.hidden,
.profile-dialog.hidden,
.notifications-dialog.hidden,
.hidden {
  display: none !important;
}

.backup-warning {
  color: var(--muted);
  line-height: 1.7;
}

.site-editor-dialog {
  width: min(860px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
}

.site-editor-shell {
  padding: 18px;
}

.site-editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.site-editor-tabs button {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  cursor: pointer;
}

.site-editor-tabs button.active {
  background: rgba(98, 191, 209, 0.12);
  color: var(--text);
  border-color: rgba(98, 191, 209, 0.32);
}

.site-editor-panel {
  display: grid;
  gap: 18px;
  padding: 16px 0;
}

.site-editor-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

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

.site-category-toolbar,
.site-category-form {
  display: grid;
  gap: 12px;
}

.site-category-toolbar {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.profile-dialog {
  width: min(680px, calc(100% - 28px));
  padding: 18px;
}

.profile-avatar-editor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}

.profile-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(98, 191, 209, 0.14), rgba(39, 96, 124, 0.24));
  border: 1px solid var(--line);
  font-size: 3rem;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.profile-avatar-actions {
  display: grid;
  gap: 12px;
}

.avatar-file-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.profile-actions,
.site-editor-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-list {
  margin-top: 12px;
}

.notification-item {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--muted);
}

.notification-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.notification-dot {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.profile-hint {
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .auth-grid,
  .dashboard-grid,
  .stats-grid,
  .site-theme-grid,
  .site-copy-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    align-items: start;
    flex-direction: column;
  }
}

.ui-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.creator-card-arrow {
  width: 14px;
  height: 14px;
}

.inline-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.35em;
  vertical-align: -0.15em;
}

.category-svg {
  width: 22px;
  height: 22px;
}

.creator-avatar-fallback .ui-icon {
  width: 1.25em;
  height: 1.25em;
}

.profile-avatar-preview > .avatar-fallback-icon .ui-icon {
  width: 42px;
  height: 42px;
}

body {
  font-family: "Geist", "Geist Fallback", sans-serif;
}

.boot-brand,
.brand-text,
.hero-copy h1,
.section-heading h2,
.about-copy h2,
.creator-action-panel h3,
.creator-profile-copy h1,
.auth-copy h1,
.dashboard-head h1 {
  font-family: "Geist", "Geist Fallback", sans-serif;
  letter-spacing: 0;
}

.live-banner,
.eyebrow,
.hero-stats span,
.tag,
.rating,
.creator-header span,
.auth-card-header small,
.panel-header small,
.profile-dialog-header small {
  font-family: "Geist Mono", "Geist Mono Fallback", monospace;
}

.category-grid {
  gap: 0;
  border-block: 1px solid var(--line);
}

.category-card {
  min-height: 164px;
  padding: 18px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

.category-card:last-child {
  border-right: 0;
}

.category-card:hover {
  background: rgba(98, 191, 209, 0.06);
  transform: none;
}

.category-card[aria-current="true"] {
  background: rgba(98, 191, 209, 0.1);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.category-card .icon {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  font-size: 1.1rem;
}

.category-card h3 {
  margin: 10px 0 6px;
}

.category-card p {
  font-size: 0.76rem;
}

.auth-card,
.content-panel,
.side-panel,
.developer-terminal-dialog,
.site-editor-shell,
.profile-dialog {
  border-radius: 8px;
  box-shadow: none;
}

@media (max-width: 980px) {
  .category-card {
    min-height: 152px;
    padding: 16px 12px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 160px;
  }

  .nav-wrap,
  .nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-height: 44px;
  }

  .nav-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    min-width: 0;
    margin: 0;
  }

  .nav-actions > * {
    min-height: 44px;
  }

  .nav-actions .auth-link {
    max-width: none;
  }

  .nav-wrap.menu-open .main-nav,
  .nav-row.menu-open .main-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    width: 100%;
    padding: 4px 0 8px;
  }

  .nav-wrap.menu-open .main-nav a,
  .nav-row.menu-open .main-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
  }

  .hero-actions > a,
  .hero-actions > button {
    flex: 1 1 140px;
    justify-content: center;
    min-height: 44px;
  }

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

  .hero-stats > div,
  .mod-meta > *,
  .creator-profile-copy,
  .upload-info {
    min-width: 0;
  }

  .hero-stats strong {
    font-size: 1.25rem;
    overflow-wrap: anywhere;
  }

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

  .mod-download-panel > .download-link,
  .form-actions > button {
    width: 100%;
    min-height: 44px;
  }

  .detail-meta {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .profile-actions,
  .site-editor-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-actions > *,
  .site-editor-footer > * {
    min-height: 44px;
  }

  .site-editor-dialog,
  .profile-dialog,
  .developer-terminal-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    margin: auto;
    overflow: auto;
  }

  .site-editor-shell,
  .profile-dialog {
    padding: 14px;
  }

  .site-editor-tabs {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .site-editor-tabs > button {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .terminal-input-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .terminal-input-row span {
    white-space: normal;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  textarea,
  select {
    min-height: 44px;
    font-size: 16px;
  }

  input[type="color"] {
    width: 56px;
    height: 44px;
    min-height: 44px;
  }

  textarea {
    min-height: 112px;
  }

  input[type="file"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    font-size: 0.82rem;
  }

  .nav-actions,
  .developer-identity-actions,
  .form-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 20px);
  }

  .section-heading h2 {
    font-size: 1.8rem;
    overflow-wrap: anywhere;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
    overflow-wrap: anywhere;
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-stats strong {
    font-size: 1.1rem;
  }

  .nav-actions > * {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-width: 0;
  }

  .nav-actions #openNotifications {
    flex: 0 0 44px;
  }

  .creator-card {
    grid-template-columns: 44px minmax(0, 1fr) 14px;
    column-gap: 10px;
    padding: 16px 12px;
  }

  .creator-card .creator-avatar {
    width: 44px;
    height: 44px;
  }

  .creator-card-copy {
    overflow-wrap: anywhere;
  }

  .detail-content {
    padding: 14px;
  }

  .detail-content h1 {
    font-size: 1.9rem;
  }

  .auth-card,
  .content-panel,
  .side-panel {
    padding: 14px;
  }

  .upload-item {
    padding: 12px;
  }
}

@media (max-width: 360px) {
  .nav-actions > * {
    flex-basis: 100%;
  }

  .nav-actions #openNotifications {
    flex: 1 1 100%;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .hero-stats strong {
    font-size: 1rem;
  }

  .creator-card {
    grid-template-columns: 38px minmax(0, 1fr) 12px;
    column-gap: 8px;
    padding-inline: 10px;
  }

  .creator-card .creator-avatar {
    width: 38px;
    height: 38px;
  }

  .creator-card-arrow {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 700px) {
  .developer-console-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .developer-console-header .developer-console-title {
    grid-column: 1;
    grid-row: 1;
  }

  .developer-console-header .developer-tier-label {
    grid-column: 2;
    grid-row: 1;
  }

  .developer-console-header > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .developer-quick-actions > * {
    flex: 1 1 145px;
  }

  .developer-style-presets .style-preset-button {
    flex: 1 1 118px;
  }

  .developer-panel > .panel-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .developer-panel > .panel-header h3 {
    grid-column: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .developer-panel > .panel-header .developer-tier-label {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }

  .developer-panel > .panel-header > button,
  .developer-panel > .panel-header > a {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 0;
  }

  .developer-account-result {
    min-height: 52px;
    gap: 8px;
    padding-inline: 8px;
  }

  .developer-account-result > span {
    min-width: 0;
  }

  .developer-appointment-confirm button {
    justify-self: stretch;
    min-height: 44px;
  }

  .review-actions > button {
    flex: 1 1 120px;
    min-height: 44px;
  }

  .site-category-toolbar,
  .site-category-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-category-toolbar > button,
  .site-category-actions > button {
    width: 100%;
    min-height: 44px;
  }

  .developer-identity-actions > button,
  .developer-form > button {
    min-height: 44px;
  }
}

.developer-color-palette {
  display: grid;
  grid-template-columns: repeat(8, minmax(28px, 36px));
  gap: 7px;
  min-width: 0;
}

.developer-color-swatch {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(242, 246, 251, 0.45);
  border-radius: 50%;
  background: var(--swatch-color);
  cursor: pointer;
}

.developer-color-swatch:hover {
  transform: scale(1.12);
}

.bio-color-black {
  text-shadow: 0 0 1px rgba(242, 246, 251, 0.95), 0 0 5px rgba(242, 246, 251, 0.35);
}

.bio-animation-pulse { animation: creator-name-pulse 2.2s ease-in-out infinite; }
.bio-animation-glow { animation: creator-name-glow 2.4s ease-in-out infinite; }
.bio-animation-sweep {
  color: transparent !important;
  background: linear-gradient(100deg, var(--bio-fill-color, var(--muted)) 0%, #5de5d2 35%, #f5d36c 50%, #5de5d2 65%, var(--bio-fill-color, var(--muted)) 100%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: creator-name-sweep 3.5s linear infinite;
}
.bio-animation-float { animation: creator-name-float 2.8s ease-in-out infinite; }
.bio-animation-flicker { animation: creator-name-flicker 2.7s steps(1, end) infinite; }
.bio-animation-hue { animation: creator-name-hue 5s linear infinite; }
.bio-animation-wave { animation: creator-name-wave 3s ease-in-out infinite; }
.bio-animation-bounce { animation: creator-name-bounce 1.8s ease-in-out infinite; }

@keyframes creator-name-wave {
  0%, 100% { transform: skewX(0); }
  50% { transform: skewX(-3deg); }
}

@keyframes creator-name-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(-2px); }
}

.community-rank-fields {
  display: grid;
  gap: 12px;
}

.community-rank-field {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) repeat(2, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.community-rank-field label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.remove-community-rank {
  min-height: 42px;
}

@media (max-width: 760px) {
  .community-rank-field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-rank-field > label:first-child,
  .community-rank-field > button {
    grid-column: 1 / -1;
  }

  .remove-community-rank {
    width: 100%;
  }

  .developer-color-palette {
    grid-template-columns: repeat(6, minmax(28px, 36px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-animation-pulse,
  .bio-animation-glow,
  .bio-animation-sweep,
  .bio-animation-float,
  .bio-animation-flicker,
  .bio-animation-hue,
  .bio-animation-wave,
  .bio-animation-bounce {
    animation: none;
  }
}
