:root {
  --bg: #f5faff;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-strong: #ffffff;
  --text: #0b1f3a;
  --muted: #5d7395;
  --primary: #0a6bff;
  --primary-dark: #0148b5;
  --border: rgba(10, 107, 255, 0.14);
  --shadow: 0 20px 60px rgba(10, 68, 170, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(10, 107, 255, 0.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(103, 204, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #eef7ff 0%, #f8fbff 45%, #eef5ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(10, 107, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 107, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
}

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

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

.page-shell,
.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.site-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.site-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role-badge--newbie {
  color: #5f6773;
  background: rgba(95, 103, 115, 0.12);
}

.role-badge--client {
  color: #d9730d;
  background: rgba(217, 115, 13, 0.14);
}

.role-badge--moderator {
  color: #1b8f48;
  background: rgba(27, 143, 72, 0.14);
}

.role-badge--admin {
  color: #d92d20;
  background: rgba(217, 45, 32, 0.14);
}

.tabs-nav {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.tab-link {
  position: relative;
  z-index: 1;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 240ms ease, color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.tab-link:hover {
  transform: translateY(-1px);
}

.tab-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #3e9eff 100%);
  box-shadow: 0 14px 28px rgba(10, 107, 255, 0.22);
}

.tab-panel {
  position: relative;
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 280ms ease,
    max-height 280ms ease,
    visibility 0s linear 280ms;
}

.tab-panel > section {
  overflow: visible;
}

.tab-panel.is-active {
  max-height: 4000px;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 220ms ease,
    transform 280ms ease,
    max-height 280ms ease,
    visibility 0s linear 0s;
}

.tab-panel.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  min-height: auto;
  padding: 24px 0 12px;
}

.hero__copy h1,
.section__heading h2,
.admin-header h1,
.admin-card h2,
.admin-card h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.hero__copy h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.92;
  margin-bottom: 20px;
}

.hero__copy p,
.section__heading p,
.project-card p,
.admin-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

.hero__actions,
.admin-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #3e9eff 100%);
  box-shadow: 0 18px 36px rgba(10, 107, 255, 0.25);
}

.button--ghost {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--border);
}

.button--danger {
  color: #fff;
  background: linear-gradient(135deg, #ff4d6d 0%, #ff7a8f 100%);
}

.hero-scene {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.hero-model-shell {
  position: relative;
  width: 220px;
  height: 320px;
  margin-left: -84px;
  z-index: 2;
  align-self: end;
}

.hero-model-shell__glow {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 6px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 173, 255, 0.34), rgba(12, 20, 44, 0.08) 58%, transparent 80%);
  filter: blur(16px);
}

.hero-figure {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-figure__shadow {
  position: absolute;
  bottom: 14px;
  width: 122px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 26, 54, 0.25), transparent 72%);
  filter: blur(8px);
}

.hero-figure__body {
  position: relative;
  width: 138px;
  height: 172px;
  animation: float-card 5.5s ease-in-out infinite;
}

.hero-figure__head {
  position: absolute;
  top: 0;
  left: 42px;
  width: 54px;
  height: 60px;
  z-index: 3;
}

.hero-figure__face {
  position: absolute;
  inset: 12px 8px 0;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(180deg, #f7d1bb 0%, #efb793 100%);
  box-shadow: inset 0 -6px 0 rgba(164, 101, 71, 0.08);
}

.hero-figure__face::before,
.hero-figure__face::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #17233e;
}

.hero-figure__face::before {
  left: 12px;
}

.hero-figure__face::after {
  right: 12px;
}

.hero-figure__hair {
  position: absolute;
  inset: 0;
  border-radius: 30px 28px 18px 20px;
  background:
    radial-gradient(circle at 18px 18px, #2d426d 0, #2d426d 18px, transparent 18px),
    linear-gradient(180deg, #223456 0%, #10182c 100%);
  clip-path: polygon(8% 34%, 25% 8%, 58% 0, 92% 18%, 100% 56%, 86% 44%, 72% 35%, 58% 42%, 45% 36%, 24% 48%, 9% 44%);
}

.hero-figure__torso {
  position: absolute;
  left: 18px;
  top: 52px;
  width: 102px;
  height: 96px;
  border-radius: 34px 34px 24px 24px;
  background:
    linear-gradient(180deg, #3f78ff 0%, #2759e8 46%, #183ca3 100%);
  box-shadow:
    inset 0 -12px 0 rgba(10, 24, 61, 0.16),
    0 18px 24px rgba(17, 29, 58, 0.12);
}

.hero-figure__torso::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 8px;
  height: 48px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(78, 130, 255, 0.96) 0%, rgba(39, 89, 232, 0.96) 100%);
  z-index: -1;
}

.hero-figure__hood {
  position: absolute;
  top: -1px;
  left: 21px;
  width: 60px;
  height: 42px;
  border-radius: 30px 30px 22px 22px;
  border: 3px solid rgba(221, 233, 255, 0.35);
  border-bottom: none;
  opacity: 0.8;
}

.hero-figure__arm {
  position: absolute;
  top: 44px;
  width: 58px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d6e4ff 0%, #b7caf4 100%);
  box-shadow: 0 4px 10px rgba(18, 28, 57, 0.12);
}

.hero-figure__arm--left {
  left: 10px;
  transform: rotate(31deg);
  transform-origin: left center;
}

.hero-figure__arm--right {
  right: 10px;
  transform: rotate(-31deg);
  transform-origin: right center;
}

.hero-figure__legs {
  display: none;
}

.hero-figure__legs span {
  display: none;
}

.code-card,
.stats article,
.project-card,
.contact-form,
.admin-card,
.admin-header,
.notice,
.empty-state,
.message-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.code-card,
.admin-card,
.project-card,
.contact-form,
.message-card,
.empty-state,
.notice,
.stats article {
  border-radius: 28px;
}

.code-card {
  position: relative;
  margin-left: 0;
  padding: 0;
  transform: rotate(3deg);
  animation: float-card 5.5s ease-in-out infinite;
  overflow: hidden;
  border-color: rgba(36, 42, 57, 0.9);
  background:
    radial-gradient(circle at top right, rgba(123, 76, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #2b0f3a 0%, #23152d 32%, #17191f 100%);
  box-shadow: 0 28px 50px rgba(19, 24, 37, 0.28);
  z-index: 1;
}

.code-card__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.code-lines {
  display: grid;
  gap: 10px;
  padding: 18px 20px 22px;
  color: #e8edf8;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 0.92rem;
  line-height: 1.6;
}

.code-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.code-card__dot--close {
  background: #ff5f56;
}

.code-card__dot--min {
  background: #ffbd2e;
}

.code-card__dot--max {
  background: #27c93f;
}

.code-card__title {
  margin-left: 6px;
  color: rgba(232, 237, 248, 0.76);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.code-lines b {
  color: #ffcf66;
  font-weight: 700;
}

.code-lines__ok {
  color: #8dff95;
}

.code-lines__muted {
  color: rgba(232, 237, 248, 0.66);
}

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

.stats article {
  padding: 24px;
}

.stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  font-family: "Space Grotesk", sans-serif;
}

.section,
.contact-section {
  padding: 44px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) 430px;
  gap: 18px;
  align-items: start;
  justify-content: start;
}

.contact-figure-shell {
  position: relative;
  display: block;
  min-height: 0;
  padding-top: 0;
  margin-top: 0;
  align-self: start;
}

.contact-intro {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(171, 207, 255, 0.72);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 248, 255, 0.94) 100%);
  box-shadow: 0 18px 34px rgba(16, 78, 188, 0.12);
  z-index: 3;
}

.contact-intro::after {
  display: none;
}

.contact-intro__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 107, 255, 0.14);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-intro h3 {
  margin: 0 0 10px;
  font-size: 1.86rem;
  line-height: 1;
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.98rem;
}

.contact-intro p + p {
  margin-top: 10px;
}

.section__heading {
  margin-bottom: 24px;
}

.projects-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.topics-board {
  display: grid;
  gap: 14px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.pagination__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(10, 107, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  font-weight: 700;
}

.pagination__button--active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #3e9eff 100%);
  box-shadow: 0 14px 28px rgba(10, 107, 255, 0.18);
}

.pagination__button--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.topics-board__head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 140px 120px 160px;
  gap: 18px;
  padding: 0 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 140px 120px 160px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.95) 100%);
  box-shadow: 0 18px 34px rgba(10, 68, 170, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.topic-row:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 107, 255, 0.24);
  box-shadow: 0 26px 42px rgba(10, 68, 170, 0.14);
}

.topic-row__main {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.topic-row__main img {
  width: 132px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
}

.topic-row__content {
  display: grid;
  gap: 8px;
}

.topic-row__tag {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(10, 107, 255, 0.08);
  border: 1px solid rgba(10, 107, 255, 0.12);
}

.topic-row__content h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-family: "Space Grotesk", sans-serif;
}

.topic-row__content p {
  margin: 0;
  color: var(--muted);
}

.topic-row__price,
.topic-row__comments,
.topic-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.topic-row__price,
.topic-row__comments {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.project-page {
  padding-top: 24px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  font-weight: 700;
  color: var(--primary-dark);
}

.thread-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 247, 255, 0.95) 100%);
  box-shadow: var(--shadow);
}

.thread-hero__copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.thread-hero__copy h1,
.thread-panel__head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.thread-hero__copy h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.thread-hero__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  white-space: pre-line;
}

.thread-topic-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10, 107, 255, 0.08);
  border: 1px solid rgba(10, 107, 255, 0.14);
  color: var(--muted);
  font-size: 0.95rem;
}

.thread-topic-author strong {
  color: var(--primary-dark);
}

.thread-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.thread-pill {
  display: inline-flex;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(10, 107, 255, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-dark);
}

.thread-hero__cover {
  width: 100%;
  min-height: 320px;
  border-radius: 24px;
  object-fit: cover;
}

.thread-hero__visual {
  display: grid;
  gap: 14px;
}

.thread-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.thread-gallery__item {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(10, 107, 255, 0.14);
  background: rgba(255, 255, 255, 0.88);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.thread-gallery__item:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 107, 255, 0.28);
  box-shadow: 0 14px 30px rgba(42, 101, 198, 0.14);
}

.thread-gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.thread-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.thread-panel,
.comment-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.thread-panel {
  padding: 22px;
  border-radius: 28px;
}

.thread-panel__head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.comments-list {
  display: grid;
  gap: 14px;
}

.comment-card {
  padding: 18px;
  border-radius: 22px;
}

.comment-card__head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.comment-card__author {
  display: flex;
  gap: 10px;
  align-items: center;
}

.comment-card__identity {
  display: grid;
  gap: 4px;
}

.comment-card__date {
  color: var(--muted);
  font-size: 0.88rem;
}

.comment-reply-target {
  color: #8a93a3;
  font-size: 0.82rem;
}

.comment-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.96) 0%, rgba(214, 230, 255, 0.96) 100%);
  color: var(--primary-dark);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  border: 1px solid rgba(10, 107, 255, 0.14);
  flex-shrink: 0;
}

.comment-avatar {
  width: 44px;
  height: 44px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
}

.profile-avatar--large {
  width: 112px;
  height: 112px;
  font-size: 2rem;
}

.comment-avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-author-name {
  font-size: 1.12rem;
  text-decoration: none;
  transition: opacity 160ms ease;
}

a.comment-author-name:hover {
  opacity: 0.8;
}

.comment-author-name--newbie {
  color: #7f8792;
}

.comment-author-name--client {
  color: #d47a14;
}

.comment-author-name--moderator {
  color: #169651;
}

.comment-author-name--admin {
  color: #d03c3c;
}

.comment-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.comment-card__head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.comment-card__footer {
  margin-top: 14px;
}

.comment-delete-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: 999px;
  background: rgba(217, 45, 32, 0.1);
  color: #d92d20;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.comment-delete-button:hover {
  background: rgba(217, 45, 32, 0.16);
  transform: translateY(-1px);
}

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

.comment-card--thread {
  position: relative;
}

.comment-replies {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  margin-left: 14px;
  padding-left: 16px;
  border-left: 2px solid rgba(10, 107, 255, 0.08);
}

.comment-card--thread.level-1,
.comment-card--thread.level-2,
.comment-card--thread.level-3,
.comment-card--thread.level-4 {
  padding: 8px 0 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.comment-card--thread.level-1 .comment-avatar,
.comment-card--thread.level-2 .comment-avatar,
.comment-card--thread.level-3 .comment-avatar,
.comment-card--thread.level-4 .comment-avatar {
  width: 36px;
  height: 36px;
}

.comment-card--thread.level-1 .comment-author-name,
.comment-card--thread.level-2 .comment-author-name,
.comment-card--thread.level-3 .comment-author-name,
.comment-card--thread.level-4 .comment-author-name {
  font-size: 1rem;
}

.comment-card--thread.level-1 .comment-card__date,
.comment-card--thread.level-2 .comment-card__date,
.comment-card--thread.level-3 .comment-card__date,
.comment-card--thread.level-4 .comment-card__date {
  font-size: 0.82rem;
}

.comment-card--thread.level-1 .comment-reply-target,
.comment-card--thread.level-2 .comment-reply-target,
.comment-card--thread.level-3 .comment-reply-target,
.comment-card--thread.level-4 .comment-reply-target {
  font-size: 0.78rem;
}

.comment-card--thread.level-1 .comment-card__footer,
.comment-card--thread.level-2 .comment-card__footer,
.comment-card--thread.level-3 .comment-card__footer,
.comment-card--thread.level-4 .comment-card__footer {
  margin-top: 8px;
}

.comment-card--thread.level-1 .comment-delete-button,
.comment-card--thread.level-2 .comment-delete-button,
.comment-card--thread.level-3 .comment-delete-button,
.comment-card--thread.level-4 .comment-delete-button,
.comment-card--thread.level-1 .comment-reply-button,
.comment-card--thread.level-2 .comment-reply-button,
.comment-card--thread.level-3 .comment-reply-button,
.comment-card--thread.level-4 .comment-reply-button {
  min-height: 30px;
  font-size: 0.78rem;
}

.comment-card--thread.level-1 .comment-card__head,
.comment-card--thread.level-2 .comment-card__head,
.comment-card--thread.level-3 .comment-card__head,
.comment-card--thread.level-4 .comment-card__head {
  margin-bottom: 6px;
}

.comment-card--thread.level-1 p,
.comment-card--thread.level-2 p,
.comment-card--thread.level-3 p,
.comment-card--thread.level-4 p {
  padding-left: 46px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.comment-card--thread.level-1 .reply-form,
.comment-card--thread.level-2 .reply-form,
.comment-card--thread.level-3 .reply-form,
.comment-card--thread.level-4 .reply-form {
  width: min(100%, 360px);
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(10, 68, 170, 0.06);
}

.reply-box {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.reply-box summary {
  list-style: none;
}

.reply-box summary::-webkit-details-marker {
  display: none;
}

.comment-reply-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(10, 107, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 107, 255, 0.08);
  color: var(--primary-dark);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.reply-box[open] .comment-reply-button {
  background: rgba(10, 107, 255, 0.12);
}

.reply-form {
  width: min(100%, 460px);
  padding: 14px;
  border: 1px solid rgba(10, 107, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(10, 68, 170, 0.12);
}

.reply-form textarea {
  min-height: 96px;
}

.auth-lock-card,
.profile-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-lock-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
}

.auth-lock-card h3,
.profile-card h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.auth-lock-card p,
.profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.user-inline-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.profile-page {
  padding-top: 24px;
}

.profile-card {
  display: grid;
  gap: 18px;
  max-width: 720px;
  padding: 28px;
  border-radius: 30px;
}

.profile-card__hero {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

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

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

.profile-upload-form {
  max-width: 420px;
}

.profile-page--forum {
  padding-top: 24px;
}

.profile-layout-v2 {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-sidebar-v2,
.profile-main-v2,
.profile-grid-v2 {
  display: grid;
  gap: 22px;
}

.profile-panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(62, 158, 255, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 100%);
  box-shadow: 0 24px 44px rgba(10, 68, 170, 0.12);
  padding: 24px;
}

.profile-panel--identity {
  gap: 18px;
  text-align: center;
}

.profile-panel--identity,
.profile-panel--hero,
.profile-panel--note {
  display: grid;
}

.profile-avatar--poster {
  width: min(100%, 208px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(10, 107, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(10, 107, 255, 0.12), rgba(255, 255, 255, 0.94)),
    rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.profile-avatar--poster span {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  color: #0a6bff;
}

.profile-sidebar-v2__identity {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.profile-sidebar-v2__identity h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.profile-register-date {
  color: var(--muted);
}

.profile-note-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 107, 255, 0.12);
  color: var(--primary-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.profile-panel--note p,
.profile-panel--hero h2,
.profile-topic-card__meta,
.wall-post-author__meta span,
.profile-panel__status {
  color: var(--muted);
}

.profile-panel--note p {
  white-space: pre-line;
}

.profile-panel--hero {
  gap: 22px;
}

.profile-panel__hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.profile-panel__hero-top h2,
.profile-section-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.profile-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10, 107, 255, 0.08);
  border: 1px solid rgba(10, 107, 255, 0.12);
}

.profile-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 6px rgba(18, 183, 106, 0.12);
}

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

.profile-stats-v2 article {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 107, 255, 0.1);
}

.profile-stats-v2 strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--primary-dark);
}

.profile-grid-v2 {
  grid-template-columns: 1.05fr 1.35fr;
}

.profile-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.profile-topics-list,
.wall-posts-list {
  display: grid;
  gap: 14px;
}

.profile-topic-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(10, 107, 255, 0.12);
  background: rgba(255, 255, 255, 0.82);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.profile-topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 107, 255, 0.2);
  box-shadow: 0 16px 28px rgba(10, 68, 170, 0.1);
}

.profile-topic-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 18px;
}

.profile-topic-card__content {
  display: grid;
  gap: 8px;
}

.profile-topic-card__content strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.profile-topic-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.92rem;
}

.wall-post-form {
  margin-bottom: 16px;
}

.profile-about-form textarea {
  min-height: 132px;
  white-space: pre-line;
}

.profile-slug-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.forum-section-card,
.forum-panel,
.forum-topic-page {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(180, 210, 255, 0.7);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(81, 125, 192, 0.16);
}

.forum-section-card {
  padding: 26px;
  display: grid;
  gap: 16px;
}

.forum-section-card__meta,
.forum-topic-page__meta,
.forum-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.forum-section-card h3,
.forum-panel h2,
.forum-topic-page h1 {
  margin: 0;
}

.forum-section-card p,
.forum-topic-page__meta span,
.forum-topic-row span,
.forum-recent-item span,
.forum-section-hero p {
  color: var(--muted);
}

.forum-recent {
  margin-top: 28px;
}

.forum-recent-list,
.forum-topic-list {
  display: grid;
  gap: 14px;
}

.forum-recent-item,
.forum-topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(185, 213, 255, 0.72);
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
}

.forum-recent-item strong,
.forum-topic-row strong {
  display: block;
  margin-bottom: 6px;
}

.forum-recent-item__date {
  white-space: nowrap;
}

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

.back-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.forum-section-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.forum-section-hero__stats {
  min-width: 140px;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(180, 210, 255, 0.7);
  border-radius: 24px;
}

.forum-section-hero__stats strong {
  display: block;
  font-size: 2.2rem;
  color: var(--ink);
}

.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.forum-panel {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.empty-state--tight {
  padding: 28px;
}

.form-notice {
  margin: 0;
  color: var(--primary);
  font-weight: 600;
}

.forum-topic-page {
  padding: 34px;
  display: grid;
  gap: 24px;
}

.forum-topic-post {
  padding: 24px;
  border-radius: 24px;
  background: rgba(243, 248, 255, 0.82);
  border: 1px solid rgba(181, 212, 255, 0.72);
}

.forum-topic-post p {
  margin: 0;
  white-space: pre-line;
  line-height: 1.75;
}

.form-error {
  margin: 0;
  color: #d33b52;
  font-weight: 700;
}

.forum-page {
  display: grid;
  gap: 24px;
}

.forum-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

.forum-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.forum-page__hero,
.forum-compose,
.forum-thread-list,
.forum-topic-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.92));
  border: 1px solid rgba(180, 211, 255, 0.74);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(81, 125, 192, 0.16);
}

.forum-page__hero {
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.forum-page__hero h1,
.forum-compose__header h2,
.forum-thread-list__head h2,
.forum-topic-header h1,
.forum-reply-box__head h2 {
  margin: 0;
}

.forum-page__hero p,
.forum-compose__header span,
.forum-thread-list__head span,
.forum-post-card__date,
.forum-post-card__controls,
.forum-topic-header__meta,
.forum-topic-header__meta span,
.forum-topic-header__meta a,
.forum-thread-item__main span,
.forum-thread-item__stats span {
  color: var(--muted);
}

.forum-page__hero-stats {
  min-width: 160px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(230, 241, 255, 0.92);
  border: 1px solid rgba(171, 205, 255, 0.76);
  text-align: center;
}

.forum-page__hero-stats strong {
  display: block;
  font-size: 2.4rem;
  color: var(--primary);
}

.forum-compose {
  padding: 0;
  overflow: hidden;
}

.forum-compose__header,
.forum-thread-list__head,
.forum-reply-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.forum-compose__header {
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(226, 239, 255, 0.8), rgba(247, 250, 255, 0.4));
  border-bottom: 1px solid rgba(179, 210, 255, 0.62);
}

.forum-compose__form {
  display: grid;
  gap: 20px;
  padding: 28px;
}

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

.forum-field > span,
.forum-editor-body > span {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
}

.forum-field input,
.forum-field select,
.forum-field textarea,
.forum-editor-body textarea,
.forum-reply-form textarea {
  width: 100%;
  border: 1px solid rgba(180, 210, 255, 0.75);
  border-radius: 18px;
  background: rgba(250, 252, 255, 0.96);
  color: var(--ink);
  padding: 14px 16px;
}

.forum-editor-shell {
  border: 1px solid rgba(178, 210, 255, 0.74);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(244, 249, 255, 0.92);
}

.forum-editor-toolbar,
.forum-reply-form__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(180, 211, 255, 0.62);
  color: var(--primary);
}

.forum-editor-toolbar span,
.forum-reply-form__bar span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(228, 240, 255, 0.8);
  font-weight: 700;
}

.forum-tool-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: rgba(228, 240, 255, 0.8);
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.forum-post-card__controls a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.forum-editor-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.forum-editor-body textarea {
  min-height: 260px;
  border: 0;
  background: transparent;
  padding: 0;
}

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

.forum-compose__options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.forum-compose__actions {
  display: flex;
  gap: 14px;
}

.forum-compose__locked,
.forum-reply-box {
  padding: 28px;
}

.forum-thread-list {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.forum-thread-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(180, 210, 255, 0.7);
}

.forum-thread-item__main {
  display: grid;
  gap: 8px;
}

.forum-thread-item__main strong {
  font-size: 1.08rem;
}

.forum-thread-item__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.forum-thread-item__stats {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.forum-prefix,
.forum-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.forum-prefix {
  color: #0c5ee8;
  background: rgba(219, 236, 255, 0.92);
  border: 1px solid rgba(154, 197, 255, 0.72);
}

.forum-tag {
  color: var(--muted);
  background: rgba(244, 248, 255, 0.94);
  border: 1px solid rgba(204, 223, 255, 0.84);
}

.forum-topic-shell {
  padding: 30px;
  display: grid;
  gap: 18px;
}

.forum-topic-header {
  display: grid;
  gap: 14px;
}

.forum-topic-header__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.forum-topic-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.forum-topic-header__meta a {
  color: var(--primary);
  text-decoration: none;
}

.forum-post-card {
  padding: 22px 24px;
  border-radius: 26px;
  border: 1px solid rgba(181, 212, 255, 0.72);
  background: rgba(252, 253, 255, 0.88);
  box-shadow: 0 18px 44px rgba(82, 126, 192, 0.12);
}

.forum-post-card--reply {
  margin-top: 14px;
}

.forum-post-card--reply.level-1,
.forum-post-card--reply.level-2,
.forum-post-card--reply.level-3 {
  margin-left: 34px;
  background: rgba(246, 250, 255, 0.92);
}

.forum-post-card__head,
.forum-post-card__author,
.forum-post-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.forum-post-card__author {
  justify-content: flex-start;
}

.forum-post-card__controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.forum-post-card__body {
  margin-top: 18px;
}

.forum-post-card__body p {
  margin: 0;
  white-space: pre-line;
  line-height: 1.8;
}

.forum-post-card__footer {
  margin-top: 14px;
}

.forum-post-card__children {
  margin-top: 12px;
}

.forum-replies-block {
  display: grid;
  gap: 14px;
}

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

.wall-post-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(10, 107, 255, 0.1);
  background: rgba(255, 255, 255, 0.84);
}

.wall-post-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wall-post-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wall-post-author__meta {
  display: grid;
  gap: 3px;
}

.wall-post-card p {
  margin: 0;
  color: var(--primary-dark);
  line-height: 1.7;
  white-space: pre-line;
}

.empty-state--soft {
  border-radius: 22px;
  border-style: solid;
  background: rgba(255, 255, 255, 0.76);
}

.thread-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button.is-liked {
  border-color: rgba(10, 107, 255, 0.22);
  background: rgba(10, 107, 255, 0.1);
  color: #0a55cf;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  justify-content: start;
  align-content: start;
  max-width: 620px;
  margin: 0;
}

.social-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 140px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(62, 158, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 100%);
  box-shadow: 0 18px 34px rgba(10, 68, 170, 0.12);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-card__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.social-card__icon svg {
  width: 28px;
  height: 28px;
}

.social-card__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.social-card__icon--telegram {
  color: #229ed9;
  background: rgba(34, 158, 217, 0.14);
}

.social-card__icon--discord {
  color: #5865f2;
  background: rgba(88, 101, 242, 0.14);
}

.social-card__icon--steam {
  color: #0b1f3a;
  background: rgba(11, 31, 58, 0.1);
}

.social-card__icon--email {
  color: #0a6bff;
  background: rgba(10, 107, 255, 0.12);
}

.social-card__icon--extra {
  color: #0b1f3a;
  background: rgba(10, 107, 255, 0.1);
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 107, 255, 0.26);
  box-shadow: 0 24px 40px rgba(10, 68, 170, 0.16);
}

.social-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(10, 107, 255, 0.08);
}

.social-card__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 107, 255, 0.12);
}

.social-card strong {
  position: relative;
  z-index: 1;
  max-width: none;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-family: "Space Grotesk", sans-serif;
}

.social-card::before {
  content: none;
}

.project-card {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(62, 158, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 249, 255, 0.98) 100%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 107, 255, 0.22);
  box-shadow: 0 28px 42px rgba(10, 68, 170, 0.16);
}

.project-card__media {
  position: relative;
  padding: 14px 14px 0;
}

.project-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
}

.project-card__badge,
.project-card .price {
  position: absolute;
  z-index: 1;
  backdrop-filter: none;
}

.project-card__badge {
  top: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11, 31, 58, 0.78);
}

.project-card .price {
  top: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(10, 68, 170, 0.14);
}

.project-card__body {
  display: grid;
  gap: 18px;
  padding: 20px 22px 22px;
}

.project-card__top {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.project-card__top h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-family: "Space Grotesk", sans-serif;
}

.price {
  white-space: nowrap;
  font-weight: 800;
  color: var(--primary-dark);
}

.project-card__footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.project-card__meta {
  display: grid;
  gap: 4px;
}

.project-card__meta span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card__meta strong {
  font-size: 1.2rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.contact-form,
.admin-card,
.admin-header {
  padding: 22px;
}

.stack-form,
.contact-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 10px;
}

label span {
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(10, 107, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form label {
  gap: 8px;
}

.contact-form label span {
  font-size: 0.98rem;
}

.contact-form .button {
  min-height: 44px;
  margin-top: 4px;
}

.admin-shell--centered {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.admin-grid {
  margin: 24px 0;
}

.admin-list,
.messages-list {
  display: grid;
  gap: 14px;
}

.admin-item,
.message-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-item {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-item--project {
  align-items: flex-start;
}

.admin-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-end;
}

.admin-edit-panel {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.admin-edit-panel summary {
  list-style: none;
}

.admin-edit-panel summary::-webkit-details-marker {
  display: none;
}

.admin-edit-form {
  width: min(100%, 420px);
  padding: 16px;
  border: 1px solid rgba(10, 107, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(10, 68, 170, 0.12);
}

.users-list {
  display: grid;
  gap: 14px;
}

.admin-user-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-user-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-user-row__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(10, 107, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
}

.notice,
.empty-state,
.message-card {
  padding: 20px;
}

.message-card p,
.admin-item span {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.reveal-delay {
  transition-delay: 140ms;
}

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

@keyframes float-card {
  0% {
    transform: translateY(0) rotate(3deg);
  }

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

  100% {
    transform: translateY(0) rotate(3deg);
  }
}

@media (max-width: 900px) {
  .hero,
  .projects-grid,
  .socials-grid,
  .contact-layout,
  .topics-board__head,
  .topic-row,
  .thread-hero,
  .thread-layout,
  .admin-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .topics-board__head {
    display: none;
  }

  .topic-row {
    gap: 14px;
  }

  .topic-row__main {
    grid-template-columns: 1fr;
  }

  .forum-layout {
    grid-template-columns: 1fr;
  }

  .forum-section-hero {
    flex-direction: column;
  }

  .forum-page__hero,
  .forum-compose__header,
  .forum-thread-list__head,
  .forum-reply-box__head,
  .forum-post-card__head,
  .forum-post-card__footer,
  .forum-topic-header__meta,
  .forum-thread-item {
    grid-template-columns: 1fr;
    display: grid;
  }

  .forum-thread-item__stats {
    justify-items: start;
  }

  .forum-compose__actions,
  .forum-compose__options {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-post-card--reply.level-1,
  .forum-post-card--reply.level-2,
  .forum-post-card--reply.level-3 {
    margin-left: 12px;
  }

  .topic-row__main img {
    width: 100%;
    height: 180px;
  }

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

  .hero-scene {
    min-height: auto;
  }

  .stats {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .admin-shell {
    width: min(100% - 20px, 1180px);
  }

  .tabs-nav {
    display: grid;
    width: 100%;
  }

  .hero__copy h1 {
    font-size: 3.3rem;
  }

  .hero-scene {
    min-height: auto;
    justify-content: center;
  }

  .hero-model-shell {
    position: relative;
    width: 150px;
    height: 224px;
    margin-left: 0;
  }

  .contact-figure-shell {
    min-height: 220px;
    margin-top: 0;
  }

  .contact-intro {
    width: 100%;
    max-width: 304px;
  }

  .contact-intro::after {
    display: block;
    right: 50%;
    bottom: -9px;
    margin-right: -10px;
    width: 22px;
    height: 22px;
    border-right: 1px solid rgba(171, 207, 255, 0.72);
    border-bottom: 1px solid rgba(171, 207, 255, 0.72);
  }

  .button,
  input,
  textarea {
    width: 100%;
  }

  .hero__actions,
  .site-topbar,
  .site-topbar__actions,
  .admin-header,
  .forum-recent-item,
  .forum-topic-row,
  .project-card__top,
  .project-card__footer,
  .admin-user-row,
  .admin-user-row__form,
  .admin-item__actions,
  .comment-card__head,
  .comment-card__tools,
  .admin-item,
  .message-card__meta {
    grid-template-columns: 1fr;
    display: grid;
  }

  .reply-form {
    width: 100%;
  }

  .comment-replies {
    margin-left: 8px;
    padding-left: 12px;
  }

  .comment-card--thread.level-1,
  .comment-card--thread.level-2,
  .comment-card--thread.level-3,
  .comment-card--thread.level-4 {
    padding: 6px 0 6px 10px;
  }

  .comment-card--thread.level-1 p,
  .comment-card--thread.level-2 p,
  .comment-card--thread.level-3 p,
  .comment-card--thread.level-4 p {
    padding-left: 0;
  }
}
