body.page-forum {
  background: #07070b;
  color: #e5e7eb;
}
body.page-forum .loader { background: #07070b; }
body.page-forum .footer-news { display: none; }

.forum-hero {
  padding-bottom: 28px;
}
.page-forum-list .forum-hero {
  padding: 8px 0 12px;
}
.page-forum-list .forum-hero .about-hero-inner {
  max-width: none;
  text-align: left;
}
.page-forum-list .forum-hero .about-kicker {
  margin-bottom: 8px;
}
.page-forum-list .forum-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.6vw, 36px);
}
.page-forum-list .forum-hero .about-h1-white,
.page-forum-list .forum-hero .about-h1-grad {
  display: inline;
}
.page-forum-list .forum-hero .about-lead {
  margin: 0;
  max-width: none;
  font-size: 15px;
}
.page-forum-list .about-orb {
  width: 220px;
  height: 220px;
  filter: blur(70px);
}
.forum-hero-topic {
  padding-bottom: 12px;
  text-align: left;
}
.forum-hero-topic .forum-topic-head {
  position: relative;
  z-index: 1;
  text-align: left;
}
.forum-topic-head h1 {
  margin: 12px 0 16px;
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.forum-back {
  display: inline-block;
  margin-bottom: 18px;
  color: #a78bfa;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.forum-back:hover { color: #fde68a; }

.forum-board {
  position: relative;
  z-index: 1;
  padding: 8px 0 96px;
}
.forum-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.forum-new-btn {
  margin-left: auto;
  padding: 10px 20px;
  border: 0;
  cursor: pointer;
}
#forum-new {
  scroll-margin-top: 120px;
}
#forum-new[hidden] { display: none; }
.forum-compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.forum-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.forum-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 420px;
}
.forum-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font: inherit;
  font-size: 13px;
}
.forum-search input:focus {
  outline: none;
  border-color: rgba(167,139,250,0.55);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}
.forum-search button {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(99,102,241,0.28);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.forum-search button:hover {
  background: rgba(99,102,241,0.45);
}
.forum-search-clear {
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.forum-search-clear:hover { color: #fde68a; }
.forum-filter {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.forum-filter:hover,
.forum-filter.is-on {
  border-color: rgba(251,191,36,0.4);
  background: rgba(251,191,36,0.1);
  color: #fde68a;
}

.forum-compose {
  scroll-margin-top: 120px;
}
.forum-compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 12px;
  margin-bottom: 12px;
}
.forum-compose input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.28);
  color: #fff;
  font: inherit;
}
.forum-compose input:focus {
  outline: none;
  border-color: rgba(167,139,250,0.55);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

.forum-select {
  position: relative;
  width: 100%;
  min-width: 0;
  color: #fff;
  cursor: pointer;
}
.forum-select-trigger {
  position: relative;
  box-sizing: border-box;
  min-height: 46px;
  padding: 12px 38px 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  color: #fff;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-select-trigger::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.forum-select:focus .forum-select-trigger,
.forum-select.is-open .forum-select-trigger {
  outline: none;
  border-color: rgba(167,139,250,0.55);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}
.forum-select.is-open .forum-select-trigger::after {
  transform: translateY(-25%) rotate(225deg);
}
.forum-select-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid rgba(196,181,253,.24);
  border-radius: 14px;
  background: #17151f;
  box-shadow: 0 14px 34px rgba(0,0,0,.42);
}
.forum-select-option {
  padding: 10px 12px;
  border-radius: 9px;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.forum-select-option:hover,
.forum-select-option:focus,
.forum-select-option.is-active,
.forum-select-option[aria-selected="true"] {
  outline: none;
  background: rgba(139,92,246,.2);
  color: #fff;
}

.forum-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.forum-row {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(160deg, rgba(99,102,241,0.1) 0%, rgba(255,255,255,0.03) 46%, rgba(12,12,18,0.94) 100%);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.forum-row.is-pin {
  border-color: rgba(251,191,36,0.32);
  background:
    linear-gradient(160deg, rgba(251,191,36,0.1) 0%, rgba(167,139,250,0.1) 40%, rgba(12,12,18,0.94) 100%);
}
.forum-row:hover {
  transform: translateY(-2px);
  border-color: rgba(251,191,36,0.45);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.forum-row-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 14px;
  padding: 12px 18px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.forum-row-link.has-thumb {
  grid-template-columns: 92px minmax(0, 1fr) 148px;
}
.forum-row-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}
.forum-row-thumb .product-box {
  width: 92px;
  max-width: 92px;
}
.forum-row-thumb .product-img {
  display: block;
  width: 100%;
  height: auto;
}
.forum-row-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.forum-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,0.28);
  background: rgba(99,102,241,0.14);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.forum-chip.is-gold {
  border-color: rgba(251,191,36,0.4);
  background: rgba(251,191,36,0.12);
  color: #fde68a;
}
.forum-row-main h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.forum-row-main p {
  margin: 0 0 14px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.55;
}
.forum-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.forum-row-meta img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #12131a;
}
.forum-row-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  text-align: right;
}
.forum-row-stats strong {
  display: block;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.forum-row-stats span {
  color: rgba(255,255,255,0.42);
  font-size: 12px;
}

.forum-topic-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #9ca3af;
  font-size: 14px;
}
.forum-thread {
  position: relative;
  z-index: 1;
  padding: 8px 0 96px;
}
.forum-thread-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.forum-post {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.forum-post.is-op {
  border-color: rgba(251,191,36,0.28);
  background:
    linear-gradient(160deg, rgba(251,191,36,0.1) 0%, rgba(99,102,241,0.08) 40%, rgba(12,12,18,0.92) 100%);
  margin-bottom: 32px;
}
.forum-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.forum-post-meta time {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}
.forum-op-mark {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251,191,36,0.14);
  color: #fde68a;
  font-size: 11px;
  font-weight: 700;
}
.forum-reply-btn {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #c4b5fd;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.forum-reply-btn:hover { color: #fff; }
.forum-edit-btn,
.forum-post-meta .user-wall-del {
  margin-left: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255,255,255,0.4);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.forum-edit-btn { color: #c4b5fd; }
.forum-edit-btn:hover,
.forum-post-meta .user-wall-del:hover { color: #fff; }
.forum-edit {
  margin-top: 12px;
}
.forum-edit textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}
.forum-edit-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.forum-edit-actions .user-wall-err {
  margin: 0 auto 0 0;
}
.forum-reply-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.forum-post-text {
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.forum-link {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.forum-link:hover { color: #fff; }
.forum-embed {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 10px 0;
  max-width: 420px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(167,139,250,0.28);
  background:
    radial-gradient(220px 80px at 0% 0%, rgba(99,102,241,0.16), transparent 70%),
    rgba(12, 12, 18, 0.92);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.forum-embed:hover {
  transform: translateY(-2px);
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
.forum-embed-img {
  flex: 0 0 92px;
  width: 92px;
  background: #0c0c12;
}
.forum-embed-img img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
  object-fit: cover;
}
.forum-embed-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 14px 10px 0;
}
.forum-embed-kind {
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.forum-embed-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.forum-icode {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(110, 118, 129, 0.28);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: #e6edf3;
}
.forum-code {
  margin: 12px 0;
  border-radius: 8px;
  border: 1px solid #30363d;
  background: #0d1117;
  overflow: hidden;
}
.forum-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}
.forum-code-lang {
  color: #8b949e;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: lowercase;
}
.forum-code-copy {
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #21262d;
  color: #c9d1d9;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.forum-code-copy:hover {
  background: #30363d;
  border-color: #8b949e;
}
.forum-code-copy.is-ok {
  color: #3fb950;
  border-color: #238636;
}
.forum-code-pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow: auto;
  max-height: 420px;
}
.forum-code-pre code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  color: #e6edf3;
  white-space: pre;
  tab-size: 4;
}
.forum-md-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.forum-md-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.forum-md-btn svg {
  width: 14px;
  height: 14px;
}
.forum-md-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(167,139,250,0.4);
}
.forum-img-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.forum-img-preview:empty { display: none; }
.forum-img-chip {
  position: relative;
  width: 72px;
  height: 72px;
}
.forum-img-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #12131a;
}
.forum-img-chip button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
}
.forum-post-text .forum-shot {
  display: block;
  margin: 12px 0 0;
  max-width: min(100%, 720px);
}
.forum-post-text .forum-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  cursor: zoom-in;
}
.product-pres-lb {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 10, 0.88);
  backdrop-filter: blur(18px);
}
.product-pres-lb.is-open {
  display: flex;
}
.product-pres-lb-imgwrap {
  position: relative;
  max-width: 92vw;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: #a855f7 transparent;
}
.product-pres-lb-imgwrap::-webkit-scrollbar { width: 8px; }
.product-pres-lb-imgwrap::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 8px;
}
.product-pres-lb img {
  display: block;
  max-width: 92vw;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55);
  background: #0b0b12;
  cursor: pointer;
}
.product-pres-lb-close,
.product-pres-lb-nav {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(20, 20, 28, 0.7);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.product-pres-lb-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 22px;
}
.product-pres-lb-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 30px;
  transform: translateY(-50%);
}
.product-pres-lb-prev { left: 24px; }
.product-pres-lb-next { right: 24px; }
.product-pres-lb-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.18em;
  font-size: 13px;
}
body.pres-lb-open { overflow: hidden; }

.forum-aside {
  padding: 20px 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(160deg, rgba(99,102,241,0.12) 0%, rgba(255,255,255,0.03) 46%, rgba(12,12,18,0.94) 100%);
}
.forum-aside h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.forum-aside-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.forum-aside-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
}
.forum-aside-item strong {
  display: block;
  margin: 8px 0 4px;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.forum-aside-item em {
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  font-style: normal;
}
.forum-aside-all {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.forum-empty {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  color: #9ca3af;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.12);
}
.forum-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.forum-pager-link {
  min-width: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.forum-pager-link:hover,
.forum-pager-link.is-on {
  border-color: rgba(167,139,250,0.55);
  background: rgba(99,102,241,0.18);
  color: #fff;
}
.forum-pager-gap {
  color: rgba(255,255,255,0.35);
  padding: 0 2px;
}

@media (max-width: 900px) {
  .forum-row-link,
  .forum-compose-grid {
    grid-template-columns: 1fr;
  }
  .forum-thread-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .forum-thread-main,
  .forum-aside {
    min-width: 0;
  }
  .forum-row-link.has-thumb {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .forum-row-link.has-thumb .forum-row-thumb .product-box {
    width: 72px;
    max-width: 72px;
  }
  .forum-row-link.has-thumb .forum-row-stats {
    grid-column: 2;
  }
  .forum-search {
    flex: 1 1 100%;
    max-width: none;
    order: 3;
  }
  .forum-row-stats {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 24px;
  }
  .product-pres-lb-nav { display: none; }
}
