@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --bg: #070203;
  --bg-2: #0d0306;
  --paper: #14060a;
  --paper-2: #1d080f;
  --ink: #fff2f4;
  --text: #f6cbd2;
  --muted: #a96f7a;
  --muted-2: #7c4e56;
  --line: rgba(255, 155, 165, 0.10);
  --line-strong: rgba(255, 155, 165, 0.17);
  --primary: #c90f25;
  --primary-2: #d83a24;
  --accent: #a8062d;
  --violet: #981d31;
  --warning: #ff9f1c;
  --success: #b90f23;
  --danger: #c11226;
  --primary-rgb: 201, 15, 37;
  --primary2-rgb: 216, 58, 36;
  --accent-rgb: 168, 6, 45;
  --warning-rgb: 255, 159, 28;
  --danger-rgb: 193, 18, 38;
  --success-rgb: 185, 15, 35;
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 24px 68px rgba(0, 0, 0, 0.38);
  --shadow-strong: 0 36px 96px rgba(0, 0, 0, 0.55);
  --ring: 0 0 0 4px rgba(var(--primary2-rgb), 0.18);
  --font-body: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --font-title: 'Manrope', 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

.forum-topic-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(215, 35, 52, 0.34);
  background: rgba(185, 14, 34, 0.16);
  color: #ffd0d8;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.forum-topic-type--important {
  border-color: rgba(220, 34, 64, 0.42);
  background: rgba(185, 14, 44, 0.16);
  color: #ffc2cd;
}

.forum-topic-type--release,
.forum-topic-type--update {
  border-color: rgba(210, 28, 48, 0.40);
  background: rgba(185, 14, 34, 0.14);
  color: #ffc6ce;
}

.forum-topic-type--faq,
.forum-topic-type--guide {
  border-color: rgba(220, 58, 36, 0.38);
  background: rgba(185, 40, 24, 0.14);
  color: #ffd1d6;
}

.forum-filter-tabs--types {
  margin-top: 10px;
}

.forum-report-box {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.forum-report-box summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.forum-report-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.forum-report-form .textarea {
  min-height: 86px;
}

.admin-moderation-grid,
.public-profile-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.profile-visitor-list,
.profile-activity-list {
  display: grid;
  gap: 10px;
}

.profile-visitor-item,
.profile-activity-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
}

.profile-visitor-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.profile-visitor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.profile-visitor-item span,
.profile-activity-item {
  min-width: 0;
}

.profile-visitor-item b,
.profile-activity-item b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-visitor-item em,
.profile-activity-item em,
.profile-activity-item p {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.profile-activity-type {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(185, 14, 34, 0.16);
  color: #ffd0d8;
  font-size: 11px;
  font-weight: 900;
}

.profile-activity-item p {
  margin: 0;
  white-space: normal;
}

@media (min-width: 980px) {
  .admin-moderation-grid,
  .public-profile-extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-visitor-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-visitor-item .forum-online-status {
    grid-column: 2;
    justify-self: start;
  }
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(4, 1, 2, 0.74), rgba(4, 1, 2, 0.99) 72%),
    linear-gradient(135deg, #070203 0%, #120408 45%, #230711 100%);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), transparent 34%, rgba(var(--accent-rgb), 0.08));
  background-size: 44px 44px;
}

body.theme-dark {
  --bg: #070203;
  --bg-2: #0d0306;
  --paper: #14060a;
  --paper-2: #1d080f;
  --ink: #fff2f4;
  --text: #f6cbd2;
  --muted: #a96f7a;
  --muted-2: #7c4e56;
  --line: rgba(255, 155, 165, 0.10);
  --line-strong: rgba(255, 155, 165, 0.17);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 24px 62px rgba(0, 0, 0, 0.42);
  --shadow-strong: 0 30px 88px rgba(0, 0, 0, 0.5);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(4, 1, 2, 0.74), rgba(4, 1, 2, 0.99) 72%),
    linear-gradient(135deg, #070203 0%, #120408 45%, #230711 100%);
}

body.theme-dark::before {
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), transparent 34%, rgba(var(--accent-rgb), 0.08));
}

body.theme-light {
  --bg: #1a070b;
  --bg-2: #240a10;
  --paper: #2a0e15;
  --paper-2: #34121a;
  --ink: #fff1f3;
  --text: #f2c8cf;
  --muted: #b57b84;
  --muted-2: #8d5f67;
  --line: rgba(255, 150, 162, 0.11);
  --line-strong: rgba(255, 150, 162, 0.18);
  --primary: #c90f25;
  --primary-2: #d83a24;
  --accent: #a8062d;
  --violet: #981d31;
  --warning: #d96c06;
  --success: #b90f23;
  --danger: #c11226;
  --primary-rgb: 201, 15, 37;
  --primary2-rgb: 216, 58, 36;
  --accent-rgb: 168, 6, 45;
  --warning-rgb: 217, 108, 6;
  --danger-rgb: 193, 18, 38;
  --success-rgb: 185, 15, 35;
  --shadow-soft: 0 18px 44px rgba(42, 48, 35, 0.08);
  --shadow-md: 0 24px 60px rgba(42, 48, 35, 0.12);
  --shadow-strong: 0 30px 80px rgba(18, 22, 15, 0.18);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(7, 2, 3, 0.74), rgba(7, 2, 3, 0.98)),
    linear-gradient(135deg, #1a070b 0%, #240a10 48%, #320c17 100%);
}

body.theme-light::before {
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(21, 22, 18, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 22, 18, 0.055) 1px, transparent 1px);
}

::selection {
  background: rgba(var(--primary-rgb), 0.22);
}

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  line-height: 1.12;
  letter-spacing: 0;
}

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

ul {
  margin-top: 0;
}

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

.muted2 {
  color: var(--muted-2);
}

.small {
  font-size: 13px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.space-between {
  justify-content: space-between;
}

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

.card,
.surface,
.item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.card {
  padding: 24px;
}

.surface {
  background: var(--paper-2);
}

.surface--pad {
  padding: 14px;
}

.item {
  padding: 14px 15px;
  background: color-mix(in srgb, var(--paper-2) 72%, transparent);
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.item b {
  color: var(--ink);
  font-weight: 700;
}

.item .item-date {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-2) 44%, var(--line-strong));
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.input:focus,
.textarea:focus {
  outline: none;
  box-shadow: var(--ring);
}

.btn--primary {
  border-color: var(--primary);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 38px rgba(var(--primary-rgb), 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--primary:hover {
  border-color: var(--primary);
  box-shadow: 0 18px 44px rgba(var(--primary2-rgb), 0.28), 0 18px 44px rgba(var(--primary-rgb), 0.22);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.btn--danger {
  border-color: rgba(var(--danger-rgb), 0.42);
  color: var(--danger);
  background: rgba(var(--danger-rgb), 0.08);
}

.btn--full {
  width: 100%;
}

.btn--sm {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.icon-btn {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.input,
.textarea {
  width: 100%;
  margin-top: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input:focus,
.textarea:focus {
  border-color: rgba(var(--primary2-rgb), 0.56);
  background: color-mix(in srgb, var(--paper) 88%, var(--paper-2));
}

.textarea {
  min-height: 118px;
  resize: vertical;
}

.badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(var(--primary2-rgb), 0.34);
  border-radius: 999px;
  color: color-mix(in srgb, var(--primary-2) 76%, var(--ink));
  background: rgba(var(--primary2-rgb), 0.1);
  font-size: 12px;
  font-weight: 800;
}

.badge--success {
  border-color: rgba(var(--success-rgb), 0.36);
  color: color-mix(in srgb, var(--success) 78%, var(--ink));
  background: rgba(var(--success-rgb), 0.12);
}

.badge--warning {
  border-color: rgba(var(--warning-rgb), 0.42);
  color: color-mix(in srgb, var(--warning) 72%, var(--ink));
  background: rgba(var(--warning-rgb), 0.12);
}

.badge--danger {
  border-color: rgba(var(--danger-rgb), 0.42);
  color: color-mix(in srgb, var(--danger) 80%, var(--ink));
  background: rgba(var(--danger-rgb), 0.1);
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.26);
  border-radius: var(--radius-lg);
  color: color-mix(in srgb, var(--primary) 66%, var(--ink));
  background: rgba(var(--primary-rgb), 0.09);
}

.flash strong {
  color: var(--ink);
}

.flash--danger {
  border-color: rgba(var(--danger-rgb), 0.34);
  color: color-mix(in srgb, var(--danger) 78%, var(--ink));
  background: rgba(var(--danger-rgb), 0.08);
}

.flash--success {
  border-color: rgba(var(--success-rgb), 0.34);
  color: color-mix(in srgb, var(--success) 78%, var(--ink));
  background: rgba(var(--success-rgb), 0.1);
}

.warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: var(--warning);
  font-size: 15px;
}

.price {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 800;
}

.features {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  position: relative;
  margin: 9px 0;
  padding-left: 20px;
  color: var(--muted);
}

.features li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 0 16px rgba(var(--primary2-rgb), 0.42);
}

/* Landing */
.page-landing .cursor {
  display: none;
}

.page-landing header {
  position: sticky;
  top: 18px;
  z-index: 20;
  width: min(1180px, calc(100% - 40px));
  min-height: 70px;
  margin: 18px auto 0;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(14, 3, 7, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
}

.page-landing .landing-header__left,
.page-landing .landing-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-landing .landing-header__right {
  margin-left: auto;
}

.page-landing .logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 2px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
}

.page-landing .logo::before {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 42%),
    linear-gradient(135deg, var(--primary), var(--primary-2) 58%, var(--accent));
  box-shadow: 0 0 28px rgba(var(--primary-rgb), 0.38);
}

.page-landing nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-landing nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: #d9def3;
  font-weight: 700;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.page-landing nav a:hover {
  color: #ffffff;
  border-color: rgba(var(--primary2-rgb), 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.page-landing .hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 118px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

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

.page-landing .hero-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin-bottom: 20px;
  padding: 7px 12px;
  border: 1px solid rgba(var(--primary2-rgb), 0.32);
  border-radius: 999px;
  color: color-mix(in srgb, var(--primary-2) 72%, var(--ink));
  background: rgba(var(--primary2-rgb), 0.08);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-landing .hero-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 18px rgba(var(--success-rgb), 0.72);
}

.page-landing .hero h1 {
  max-width: 800px;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: 0;
}

.page-landing .hero h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--primary-2), var(--primary) 56%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.page-landing .hero p {
  max-width: 660px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
}

.page-landing .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.page-landing .hero-metrics {
  max-width: 660px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.page-landing .metric {
  min-height: 98px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.page-landing .metric strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
}

.page-landing .metric span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-landing .hero-visual {
  position: relative;
  min-width: 0;
}

.page-landing .hero-visual__frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: #16080b;
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(var(--primary2-rgb), 0.08), 0 0 80px rgba(var(--primary-rgb), 0.18);
}

.page-landing .hero-visual__topbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 5, 9, 0.96);
}

.page-landing .hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #767b69;
}

.page-landing .hero-dot:nth-child(1) {
  background: var(--accent);
}

.page-landing .hero-dot:nth-child(2) {
  background: var(--warning);
}

.page-landing .hero-dot:nth-child(3) {
  background: var(--primary-2);
}

.page-landing .hero-visual__media {
  position: relative;
  aspect-ratio: 16 / 10.4;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.76)),
    #070203;
}

.page-landing .hero-visual__media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(1.12) contrast(1.08);
}

.page-landing .hero-visual__media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 2, 4, 0.16) 0%, rgba(8, 2, 4, 0.24) 44%, rgba(8, 2, 4, 0.90) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
}

.page-landing .hero-visual__caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
}

.page-landing .hero-visual__caption strong {
  display: block;
  font-family: var(--font-title);
  font-size: 20px;
}

.page-landing .hero-visual__caption span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.page-landing .status-pill {
  min-width: 96px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--success-rgb), 0.72), rgba(var(--primary2-rgb), 0.68));
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.page-landing .hero-visual__panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.page-landing .hero-visual__stat {
  padding: 16px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(18, 5, 9, 0.96);
  font-size: 12px;
}

.page-landing .hero-visual__stat b {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 19px;
}

.page-landing .section {
  width: min(1180px, calc(100% - 40px));
  margin: 86px auto;
  position: relative;
  z-index: 1;
}

.page-landing .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.page-landing .section-title {
  font-size: 42px;
  font-weight: 800;
}

.page-landing .section-subtitle {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.page-landing .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.page-landing .card {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  padding: 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.page-landing .card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary2-rgb), 0.36);
  box-shadow: var(--shadow-md), 0 0 52px rgba(var(--primary-rgb), 0.12);
}

.page-landing .card h3 {
  margin-top: 12px;
  font-size: 22px;
}

.page-landing .card p {
  margin-top: 10px;
}

.page-landing #products .card {
  isolation: isolate;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary2-rgb), 0.04) 48%, rgba(var(--accent-rgb), 0.12));
}

.page-landing #products .card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.72;
  background:
    linear-gradient(180deg, transparent 0%, rgba(7, 8, 18, 0.8) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 12px);
}

.page-landing #products .card::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--font-title);
  font-size: 74px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.page-landing #products .card:nth-child(1)::after {
  content: 'LUA';
}

.page-landing #products .card:nth-child(2)::after {
  content: 'ALTV';
}

.page-landing #products .card:nth-child(3)::after {
  content: 'RAGE';
}

.page-landing #products .price {
  margin-top: auto;
  padding-top: 22px;
  font-size: 34px;
}

.page-landing #products .btn {
  margin-top: 18px;
}

.page-landing #advantages .card:nth-child(1) {
  border-color: rgba(var(--success-rgb), 0.24);
}

.page-landing #advantages .card:nth-child(2) {
  border-color: rgba(var(--primary2-rgb), 0.24);
}

.page-landing #advantages .card:nth-child(3) {
  border-color: rgba(var(--warning-rgb), 0.24);
}

.page-landing .section--videos {
  margin-bottom: 46px;
}

.page-landing .section--videos .section-head,
.page-landing #faq .section-head {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.page-landing .video-carousel {
  width: min(780px, 100%);
  margin: 0 auto;
}

.page-landing .video-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.page-landing .video-carousel__track {
  display: flex;
  transition: transform 0.28s ease;
}

.page-landing .video-card {
  flex: 0 0 100%;
  padding: 10px;
  overflow: hidden;
}

.page-landing .video-card__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #090304;
}

.page-landing .video-card__media::before {
  content: '';
  display: block;
  aspect-ratio: 16 / 9;
}

.page-landing .video-card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-landing .video-card__content {
  padding: 14px 6px 6px;
}

.page-landing .video-card__content h3 {
  margin-top: 9px;
  font-size: 20px;
}

.page-landing .video-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.page-landing .video-carousel__button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 22px;
}

.page-landing .video-carousel__counter {
  min-width: 62px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  font-weight: 800;
  text-align: center;
}

.js .page-landing .card {
  opacity: 0;
  transform: translateY(18px);
}

.js .page-landing .card.visible {
  opacity: 1;
  transform: translateY(0);
}

.js .page-landing .video-card {
  opacity: 1;
  transform: none;
}

.page-landing .faq {
  max-width: 900px;
  margin: 0 auto;
}

.page-landing .faq-item {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.page-landing .faq-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  cursor: pointer;
}

.page-landing .faq-header span {
  color: var(--ink);
  font-weight: 800;
}

.page-landing .icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.page-landing .faq-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: var(--muted);
  transition: max-height 0.28s ease, padding 0.28s ease;
}

.page-landing .faq-item.active .faq-body {
  max-height: 260px;
  padding: 0 18px 18px;
}

.page-landing .faq-item.active .icon {
  transform: rotate(45deg);
}

.page-landing footer {
  padding: 34px 0 44px;
  color: var(--muted-2);
  text-align: center;
}

/* Auth */
.page-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 38px 18px;
}

.page-auth::after {
  content: '7z ACCESS';
  position: fixed;
  right: 30px;
  bottom: 18px;
  z-index: -1;
  color: rgba(21, 22, 18, 0.055);
  font-family: var(--font-title);
  font-size: 86px;
  font-weight: 800;
}

body.theme-dark.page-auth::after {
  color: rgba(244, 240, 232, 0.045);
}

.page-auth .auth-card {
  width: min(460px, 100%);
  padding: 30px;
}

.page-auth .auth-title {
  margin-top: 8px;
  font-size: 34px;
}

.page-auth .auth-subtitle {
  margin-top: 10px;
  color: var(--muted);
}

.page-auth form {
  margin-top: 20px;
}

.page-auth form .btn {
  margin-top: 12px;
}

.page-auth .switch {
  width: fit-content;
  margin: 16px auto 0;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.page-auth .auth-feature-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.page-auth .footer {
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

/* App shell */
.page-app {
  min-height: 100vh;
}

.page-app .sidebar {
  position: fixed;
  top: 16px;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  width: 280px;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(14, 3, 7, 0.88);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(22px);
}

.page-app .sidebar h3 {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
}

.page-app .sidebar > a {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin-top: 7px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-weight: 700;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.page-app .sidebar > a:hover,
.page-app .sidebar > a.is-active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper-2);
}

.page-app .sidebar > a.is-active {
  border-color: rgba(var(--primary2-rgb), 0.32);
  color: color-mix(in srgb, var(--primary-2) 76%, var(--ink));
  background: rgba(var(--primary2-rgb), 0.1);
}

.page-app .topbar {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 312px;
  z-index: 35;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(14, 3, 7, 0.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.page-app .topbar__left,
.page-app .topbar__right {
display: flex;
  align-items: center;
  gap: 8px;
}

.page-app .topbar__right {
  margin-left: auto;
}

.page-app .topbar__title {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
}

.page-app .main {
  margin-left: 312px;
  padding: 98px 16px 36px 0;
}

.page-app .container {
  width: min(1120px, 100%);
}

.page-app h2 {
  font-size: 32px;
}

.page-app h3 {
  font-size: 22px;
}

.page-app h4 {
  font-size: 16px;
}

.page-app .card {
  padding: 22px;
}

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

.page-app .app-kpis .item {
  min-height: 86px;
}

.page-app .app-kpis b {
  font-family: var(--font-title);
  font-size: 24px;
}

.app-wrap {
  flex-wrap: wrap;
}

.app-link {
  width: 100%;
}

.news-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-news {
  overflow: hidden;
}

.news-panel__head--hero {
  position: relative;
  margin: -4px -4px 16px;
  padding: 18px;
  border: 1px solid rgba(150, 67, 77, 0.42);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 20, 34, 0.98), rgba(9, 12, 20, 0.94)),
    rgba(8, 10, 15, 0.96);
}

.news-panel__head--hero h3 {
  color: #fff;
  font-size: 26px;
}

.news-live-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(185, 15, 35, 0.36);
  border-radius: 999px;
  color: #ffd7dc;
  background: rgba(185, 15, 35, 0.1);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.news-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b90f23;
  box-shadow: 0 0 14px rgba(185, 15, 35, 0.9);
}

.news-broadcast {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(185, 15, 35, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(185, 15, 35, 0.09), rgba(216, 58, 36, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.news-broadcast__mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 15, 35, 0.32);
  border-radius: 13px;
  color: #fff0f2;
  background: rgba(185, 15, 35, 0.12);
  font-family: var(--font-title);
  font-weight: 900;
}

.news-broadcast strong {
  color: #fff;
}

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

.news-list--vanish {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 12px;
}

.news-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(75, 91, 128, 0.5);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(7, 10, 17, 0.92);
  box-shadow: inset 3px 0 0 rgba(185, 15, 35, 0.72);
}

.news-card--featured {
  grid-row: span 2;
  min-height: 360px;
  padding: 22px;
  border-color: rgba(185, 15, 35, 0.34);
  background:
    linear-gradient(145deg, rgba(185, 15, 35, 0.17), rgba(216, 58, 36, 0.06) 42%, rgba(7, 10, 17, 0.95)),
    rgba(7, 10, 17, 0.96);
  box-shadow:
    inset 4px 0 0 #b90f23,
    0 22px 60px rgba(0, 0, 0, 0.28);
}

.news-card__top,
.news-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.news-card__issue,
.news-card time,
.news-card__bottom span,
.news-card__bottom a {
  font-size: 12px;
  font-weight: 800;
}

.news-card__issue {
  padding: 5px 9px;
  border: 1px solid rgba(185, 15, 35, 0.28);
  border-radius: 999px;
  color: #ffd3d8;
  background: rgba(185, 15, 35, 0.09);
}

.news-card time {
  color: #9f737a;
  text-align: right;
}

.news-card__body {
  margin-top: auto;
}

.news-card h4 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.18;
}

.news-card--featured h4 {
  font-size: 32px;
}

.news-card p {
  margin-top: 12px;
  color: #c99aa2;
  font-size: 14px;
  line-height: 1.6;
}

.news-card--featured p {
  max-width: 720px;
  color: #c4cde7;
  font-size: 15px;
}

.news-card__bottom {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card__bottom span {
  color: #9f737a;
}

.news-card__bottom a {
  color: #ff9aa5;
}

.news-card:not(.news-card--featured) .news-card__bottom {
  display: none;
}

.news-item p {
  margin-top: 8px;
}

.auth-news-tab .news-empty {
  margin-top: 12px;
}

.auth-news-mini {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.auth-news-mini__item {
  padding: 13px;
  border: 1px solid rgba(185, 15, 35, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(185, 15, 35, 0.08), rgba(255, 255, 255, 0.028)),
    rgba(7, 10, 17, 0.72);
}

.auth-news-mini__item span {
  color: #aa7c83;
  font-size: 11px;
  font-weight: 800;
}

.auth-news-mini__item b {
  display: block;
  margin-top: 7px;
  color: #fff;
}

.auth-news-mini__item p {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #c99aa2;
  font-size: 12px;
  line-height: 1.45;
}

.news-empty {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: color-mix(in srgb, var(--paper-2) 78%, transparent);
}

.notif {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.notif-count {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 11px;
  font-weight: 800;
}

.notif-box {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 70;
  width: min(380px, calc(100% - 36px));
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.notif-box.show {
  display: block;
}

.notif-item {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.notif-item:last-child {
  border-bottom: none;
}

.meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.chat {
  max-height: 460px;
  overflow: auto;
  margin: 16px 0;
  padding-right: 6px;
}

.msg {
  max-width: min(74%, 700px);
  margin: 8px 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text);
  background: var(--paper-2);
  font-size: 14px;
  line-height: 1.45;
}

.msg.user {
  margin-left: auto;
  border-color: rgba(var(--primary-rgb), 0.28);
  background: rgba(var(--primary-rgb), 0.09);
}

.msg.support,
.msg.bot {
  border-color: color-mix(in srgb, var(--violet) 18%, var(--line));
  background: color-mix(in srgb, var(--paper-2) 84%, #e9e4ff);
}

.reply-form {
  margin-bottom: 10px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 38;
  display: none;
  background: rgba(12, 12, 10, 0.52);
}

body.sidebar-open .sidebar-overlay {
  display: block;
}

.page-admin .sidebar {
  width: 320px;
}

.page-admin .topbar {
  left: 352px;
}

.page-admin .main {
  margin-left: 352px;
}

.page-admin .sidebar .item {
  margin-top: 10px;
}

.page-admin .sidebar .item a {
  display: block;
}

/* Auth redesign */
.sidebar-brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper-2) 76%, transparent);
}

.sidebar-brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2) 58%, var(--accent));
  font-family: var(--font-title);
  font-weight: 800;
}

.sidebar-brand__text {
  min-width: 0;
}

.sidebar-brand__text b {
  display: block;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 15px;
}

.sidebar-brand__text span {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.app-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 22px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    linear-gradient(120deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary2-rgb), 0.1), rgba(var(--accent-rgb), 0.12));
}

.app-hero::after {
  content: '7z';
  position: absolute;
  right: 22px;
  bottom: -38px;
  color: rgba(255, 255, 255, 0.045);
  font-family: var(--font-title);
  font-size: 170px;
  font-weight: 800;
  line-height: 1;
}

.app-hero__content,
.app-hero__aside {
  position: relative;
  z-index: 1;
}

.app-hero__content h2 {
  max-width: 760px;
  margin-top: 10px;
  font-size: 38px;
}

.app-hero__content p {
  max-width: 680px;
  margin-top: 12px;
  font-size: 16px;
}

.app-eyebrow {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(var(--primary2-rgb), 0.32);
  border-radius: 999px;
  color: color-mix(in srgb, var(--primary-2) 76%, var(--ink));
  background: rgba(var(--primary2-rgb), 0.1);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.app-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary-2);
  box-shadow: 0 0 16px rgba(var(--primary2-rgb), 0.48);
}

.app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.app-hero__aside {
  display: grid;
  gap: 10px;
  align-content: center;
}

.signal-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
}

.signal-card__top,
.status-line,
.license-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signal-card b {
  color: var(--ink);
}

.signal-card span,
.status-line span,
.license-row span {
  color: var(--muted);
  font-size: 13px;
}

.signal-meter {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
}

.signal-meter::before {
  content: '';
  display: block;
  width: var(--meter, 72%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-2), var(--primary), var(--accent));
}

.app-kpis--large .item {
  position: relative;
  overflow: hidden;
}

.app-kpis--large .item::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--primary2-rgb), 0.12), rgba(var(--accent-rgb), 0.1));
}

.dashboard-grid,
.product-workspace,
.profile-workspace,
.ticket-desk,
.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.dashboard-news,
.ticket-thread-card {
  min-height: 100%;
}

.status-board {
  display: grid;
  gap: 10px;
}

.status-line,
.license-row {
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--paper-2) 78%, transparent);
}

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

.quick-action-grid .btn {
  width: 100%;
}

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

.product-plan {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.16), rgba(var(--primary2-rgb), 0.04) 52%, rgba(var(--accent-rgb), 0.1));
}

.product-plan--featured {
  border-color: rgba(var(--primary2-rgb), 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(var(--primary2-rgb), 0.18), rgba(var(--primary-rgb), 0.18), rgba(var(--accent-rgb), 0.1));
}

.product-plan__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-plan__price {
  margin-top: auto;
  padding-top: 18px;
}

.product-plan__price strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 34px;
  line-height: 1;
}

.product-plan__price span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.license-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.activation-card form .btn,
.ticket-compose-card form .btn {
  margin-top: 12px;
}

.profile-identity {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
}

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

.ticket-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ticket-list__item {
  display: block;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ticket-list__item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--paper);
}

.ticket-list__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ticket-subject {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.ticket-thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: var(--paper-2);
  text-align: center;
}

.admin-ticket-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-ticket-link {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-2);
}

.admin-ticket-link:hover {
  border-color: var(--line-strong);
  background: var(--paper);
}

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

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

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-list--scroll {
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.admin-list-item {
  display: block;
  padding: 13px;
  border: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 16px;
  color: #ffd0d8;
  background: rgba(255, 255, 255, 0.045);
}

.admin-list-item:hover,
.admin-list-item.is-active {
  border-color: rgba(255, 51, 78, 0.68);
  background: rgba(255, 51, 78, 0.12);
}

.admin-list-item b,
.admin-list-item span {
  display: block;
}

.admin-list-item span,
.admin-list-item p {
  margin-top: 7px;
  color: #a97980;
  font-size: 13px;
}

.admin-table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0 9px;
}

.admin-table th {
  padding: 0 12px 4px;
  color: #a97980;
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
}

.admin-table td {
  padding: 12px;
  color: #ffd0d8;
  background: rgba(255, 255, 255, 0.045);
  border-top: 1px solid rgba(45, 52, 68, 0.92);
  border-bottom: 1px solid rgba(45, 52, 68, 0.92);
  vertical-align: top;
}

.admin-table td:first-child {
  border-left: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 14px 0 0 14px;
}

.admin-table td:last-child {
  border-right: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 0 14px 14px 0;
}

.admin-table code {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.admin-details {
  min-width: 230px;
}

.admin-details summary {
  width: fit-content;
  cursor: pointer;
  color: #ff7a8a;
  font-weight: 900;
}

.admin-mini-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-inline-actions,
.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.auth-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 16, 14, 0.12), rgba(15, 16, 14, 0.82)),
    #11100e;
  box-shadow: var(--shadow-strong);
}

.auth-showcase video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.auth-showcase__content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.auth-showcase h1 {
  max-width: 520px;
  color: #fff;
  font-size: 44px;
}

.auth-showcase p {
  max-width: 500px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
}

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

.auth-showcase__stats div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.auth-showcase__stats b {
  display: block;
  color: #fff;
  font-family: var(--font-title);
  font-size: 22px;
}

.auth-showcase__stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* 404 */
.error-404 {
  width: min(900px, calc(100% - 40px));
  min-height: calc(100svh - 180px);
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 54px 0;
}

.error-container {
  width: min(680px, 100%);
  text-align: center;
}

.error-code {
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 118px;
  font-weight: 800;
  line-height: 0.95;
}

.error-title {
  margin-top: 14px;
  font-size: 34px;
}

.error-message {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.error-actions,
.suggestion-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.error-actions {
  margin-top: 26px;
}

.suggestion {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.suggestion-text {
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 14px;
}

.suggestion-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--paper-2);
  font-weight: 700;
}

.suggestion-links a:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* Page transition */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  background: rgba(17, 16, 14, 0.72);
  backdrop-filter: blur(10px);
  transition: opacity 0.18s ease;
}

.page-transition.is-active {
  opacity: 1;
}

.page-transition__gif {
  width: 160px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.page-transition__gif::before {
  content: '';
  display: block;
  width: 52px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: transition-bar 0.72s ease-in-out infinite;
}

@keyframes transition-bar {
  0% {
    transform: translateX(-60px);
  }
  100% {
    transform: translateX(170px);
  }
}

/* Dark refinements */
body.theme-dark .card,
body.theme-dark .surface,
body.theme-dark .item,
body.theme-dark .page-landing header,
body.theme-dark .page-app .sidebar,
body.theme-dark .page-app .topbar,
body.theme-dark .notif-box,
body.theme-dark .page-landing .faq-item {
  background-color: color-mix(in srgb, var(--paper) 92%, transparent);
}

body.theme-dark .btn:not(.btn--primary):not(.btn--danger),
body.theme-dark .input,
body.theme-dark .textarea {
  color: var(--text);
  background: var(--paper);
}

body.theme-dark .page-landing .hero-visual__frame {
  border-color: rgba(255, 255, 255, 0.15);
}

body.theme-dark .msg.support,
body.theme-dark .msg.bot {
  background: #16070b;
}

body.theme-dark .page-transition {
  background: rgba(0, 0, 0, 0.72);
}

/* Responsive */
@media (max-width: 1080px) {
  .page-landing .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .page-landing .hero h1 {
    font-size: 50px;
  }

  .page-landing .hero-copy {
    max-width: 820px;
  }

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

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

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

@media (max-width: 900px) {
  .grid,
  .page-landing .grid,
  .product-plans {
    grid-template-columns: 1fr;
  }

  .page-landing header {
    flex-wrap: wrap;
  }

  .page-landing .landing-header__left,
  .page-landing .landing-header__right {
    width: 100%;
  }

  .page-landing .landing-header__left {
    justify-content: space-between;
  }

  .page-landing .landing-header__right {
    justify-content: flex-end;
  }

  .page-app .sidebar,
  .page-admin .sidebar {
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  body.sidebar-open.page-app .sidebar {
    transform: translateX(0);
  }

  .page-app .topbar,
  .page-admin .topbar {
    left: 14px;
    right: 14px;
  }

  .page-app .main,
  .page-admin .main {
    margin-left: 0;
    padding: 96px 14px 34px;
  }

  .page-app .container {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .container,
  .page-landing header,
  .page-landing .hero,
  .page-landing .section,
  .error-404 {
    width: calc(100% - 28px);
  }

  .card,
  .page-app .card,
  .page-auth .auth-card {
    padding: 18px;
  }

  .page-landing nav {
    width: 100%;
    justify-content: space-between;
  }

  .page-landing nav a {
    flex: 1;
    justify-content: center;
    padding: 8px 7px;
    font-size: 13px;
  }

  .page-landing .landing-header__right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .page-landing .landing-header__right .btn {
    width: 100%;
  }

  .page-landing .hero {
    margin-top: 16px;
    gap: 24px;
  }

  .page-landing .hero h1 {
    font-size: 38px;
  }

  .page-landing .hero p {
    font-size: 16px;
  }

  .page-landing .hero-actions .btn {
    width: 100%;
  }

  .page-landing .hero-metrics,
  .page-landing .hero-visual__panel,
  .page-app .app-kpis {
    grid-template-columns: 1fr;
  }

  .page-landing .section {
    margin: 56px auto;
  }

  .page-landing .section-head {
    display: block;
  }

  .page-landing .section-title {
    font-size: 28px;
  }

  .page-app .topbar {
    flex-wrap: wrap;
  }

  .page-app .topbar__right {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .page-app h2 {
    font-size: 26px;
  }

  .msg {
    max-width: 92%;
  }

  .error-code {
    font-size: 84px;
  }

  .error-title {
    font-size: 28px;
  }
}

/* Forum readability reset */
.page-forum .container {
  width: min(1480px, calc(100% - 24px));
}

.page-forum .forum-layout {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 16px;
}

.page-forum .forum-main {
  min-width: 0;
}

.page-forum .forum-right-card {
  grid-column: 2;
  border-radius: 16px;
}

.page-forum-topic .forum-layout {
  grid-template-columns: minmax(0, 1fr);
}

.page-forum-topic .forum-sidebar-card,
.page-forum-topic .forum-right-card {
  display: none;
}

.page-forum .forum-hero,
.page-forum .forum-sidebar-card,
.page-forum .forum-right-card,
.page-forum .forum-topic-card,
.page-forum .forum-board,
.page-forum .forum-category-link,
.page-forum .forum-board-row,
.page-forum .forum-topic-link,
.page-forum .forum-post {
  border-color: rgba(73, 85, 116, 0.56);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(8, 11, 18, 0.9);
}

.page-forum .forum-hero {
  min-height: 142px;
  padding: 22px;
}

.page-forum .forum-sidebar-card,
.page-forum .forum-right-card,
.page-forum .forum-board,
.page-forum .forum-topic-card {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.page-forum .forum-board-row {
  grid-template-columns: 44px minmax(0, 1fr) 58px minmax(160px, 0.52fr);
}

.page-forum .forum-topic-link {
  align-items: flex-start;
}

.page-forum .forum-topic-link b,
.page-forum .forum-board-row b,
.page-forum .forum-side-list b,
.page-forum .forum-topic-head h3 {
  overflow-wrap: anywhere;
  word-break: normal;
}

.page-forum .forum-topic-right {
  min-width: 128px;
}

.page-forum-topic .forum-topic-card,
.page-forum-topic .forum-post {
  max-width: none;
}

.page-forum .forum-post {
  min-height: 0;
  display: block;
  overflow: hidden;
}

.page-forum .forum-author-card {
  min-height: 0;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border-right: 0;
  border-bottom: 1px solid rgba(73, 85, 116, 0.5);
  text-align: left;
}

.page-forum .forum-author-card__avatar {
  order: 1;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  font-size: 18px;
}

.page-forum .forum-author-card__name {
  order: 2;
  max-width: min(260px, 100%);
  font-size: 15px;
}

.page-forum .forum-author-card__role,
.page-forum .forum-author-card__rank {
  order: 3;
  width: auto;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
}

.page-forum .forum-author-card__stats {
  order: 4;
  width: auto;
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-forum .forum-author-card__stats div {
  gap: 5px;
  white-space: nowrap;
}

.page-forum .forum-post__body {
  padding: 22px 24px 20px;
  display: block;
}

.page-forum .forum-post__body > p {
  max-width: 100%;
  color: #dce3f4;
  font-size: 16px;
  line-height: 1.78;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-forum .forum-post__meta {
  margin-bottom: 14px;
}

.page-forum .forum-reactions {
  margin-top: 18px;
}

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

  .page-forum .forum-right-card {
    grid-column: auto;
  }

  .page-forum-topic .forum-sidebar-card,
  .page-forum-topic .forum-right-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-forum .container {
    width: 100%;
  }

  .page-forum .forum-author-card {
    align-items: flex-start;
  }

  .page-forum .forum-author-card__stats {
    width: 100%;
    margin-left: 0;
  }

  .page-forum .forum-post__body {
    padding: 18px 16px;
  }
}

/* Final profile and notification overrides. */
.page-app .profile-hero-card {
  min-height: 238px;
  padding: 28px;
  border-color: rgba(69, 82, 116, 0.62);
  border-radius: 22px;
  background-size: cover;
  background-position: center;
}

.page-app img.cabinet-avatar,
.page-app img.profile-avatar,
.page-forum img.forum-author-card__avatar {
  display: block;
  object-fit: cover;
  background: rgba(10, 13, 22, 0.88);
}

.page-app .profile-badge,
.page-forum .profile-badge {
  width: auto;
  min-height: 26px;
  padding: 5px 10px;
  border-color: color-mix(in srgb, var(--badge-color, #d0142c) 58%, rgba(255, 255, 255, 0.22));
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--badge-color, #d0142c) 40%, transparent), rgba(255, 255, 255, 0.05)),
    rgba(7, 10, 17, 0.78);
  font-size: 12px;
}

.page-forum .forum-profile-badge {
  order: 3;
}

/* Ultimate forum redesign: keep these last. */
.page-forum {
  background:
    linear-gradient(180deg, rgba(18, 29, 32, 0.98), rgba(13, 22, 24, 0.98)),
    #211014;
}

.page-forum .sidebar,
.page-forum .topbar {
  display: none;
}

.page-forum .main {
  margin-left: 0;
  padding: 24px 0 52px;
}

.page-forum .container {
  width: min(1120px, calc(100% - 28px));
}

.page-forum .forum-hero {
  min-height: 76px;
  margin-bottom: 14px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-forum .forum-hero h2 {
  color: #fff0f2;
  font-size: 22px;
}

.page-forum .forum-hero p {
  max-width: 760px;
  color: #91a2aa;
  font-size: 13px;
}

.page-forum .forum-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 12px;
}

.page-forum-topic .forum-layout {
  grid-template-columns: minmax(0, 1fr);
}

.page-forum-index .forum-right-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-forum-topic .forum-sidebar-card,
.page-forum-topic .forum-right-card {
  display: none;
}

.page-forum .forum-sidebar-card,
.page-forum .forum-right-card,
.page-forum .forum-topic-card,
.page-forum .forum-toolbar,
.page-forum .forum-board,
.page-forum .forum-post {
  border: 1px solid #3a1d22;
  border-radius: 4px;
  background: #281318;
  box-shadow: none;
}

.page-forum .forum-sidebar-card,
.page-forum .forum-right-card,
.page-forum .forum-topic-card,
.page-forum .forum-toolbar {
  padding: 12px;
}

.page-forum .forum-topic-card h3 {
  color: #fff0f2;
  font-size: 19px;
}

.page-forum-topic .forum-topic-card:first-of-type {
  padding: 18px;
  background: #223036;
}

.page-forum-topic .forum-post {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  min-height: 220px;
}

.page-forum-topic .forum-author-card {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 12px 10px;
  border-right: 1px solid #3a1d22;
  border-bottom: 0;
  background: #251116;
  text-align: center;
}

.page-forum-topic .forum-author-card__name {
  order: 1;
  max-width: 100%;
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 1000;
}

.page-forum-topic .forum-author-card__role {
  order: 2;
  width: 100%;
  min-height: 22px;
  justify-content: center;
  border-radius: 2px;
  color: #fff;
  background: #ff5a3d;
}

.page-forum-topic .forum-author-card__avatar-link {
  order: 3;
  width: 142px;
  height: 142px;
  flex: 0 0 142px;
  margin-top: 6px;
}

.page-forum-topic .forum-author-card__avatar-link .forum-author-card__avatar,
.page-forum-topic .forum-author-card__avatar {
  width: 142px;
  height: 142px;
  border-radius: 2px;
  font-size: 42px;
}

.page-forum-topic .forum-profile-badge {
  order: 4;
  max-width: 100%;
}

.page-forum-topic .forum-author-card__rank {
  order: 5;
  width: 100%;
  justify-content: center;
  border-radius: 2px;
}

.page-forum-topic .forum-author-card__stats {
  order: 6;
  width: 100%;
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
}

.page-forum-topic .forum-author-card__stats div {
  display: flex;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
}

.page-forum-topic .forum-author-card__stats dt,
.page-forum-topic .forum-author-card__stats dd {
  color: #cfe6ff;
  font-size: 12px;
}

.page-forum-topic .forum-post__body {
  min-width: 0;
  padding: 18px 18px 16px;
  background: #281318;
}

.page-forum-topic .forum-post__meta {
  margin: -18px -18px 14px;
  padding: 10px 18px;
  border-bottom: 1px solid #3a1d22;
  background: #31171d;
}

.page-forum-topic .forum-post__body > p {
  color: #ffe3e7;
  font-size: 15px;
  line-height: 1.7;
}

.page-forum .forum-topic-link {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 18px;
  padding: 18px;
  border-radius: 3px;
  background: #2a1419;
}

.page-forum .forum-topic-link:hover {
  background: #233137;
}

.page-forum .forum-topic-right {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: #aa7c83;
  font-size: 12px;
  font-weight: 850;
}

.page-forum-topic .forum-topic-card:has(.forum-form) {
  padding: 10px;
}

.page-forum-topic .forum-topic-card .forum-form {
  gap: 0;
  overflow: hidden;
  border: 1px solid #4b242b;
  border-radius: 3px;
  background: #241116;
}

.page-forum-topic .forum-topic-card .forum-form::before {
  content: "Text  B  I  U  Link  List  Quote  Image  Code";
  display: block;
  min-height: 34px;
  padding: 8px 10px;
  border-top: 2px solid #c90f25;
  border-bottom: 1px solid #4b242b;
  color: #c89da4;
  background: #432128;
  font-size: 13px;
  letter-spacing: 0;
}

.page-forum-topic .forum-topic-card .forum-form .textarea {
  min-height: 96px;
  border: 0;
  border-radius: 0;
  background: #241116;
}

.page-forum-topic .forum-topic-card .forum-form .btn {
  width: auto;
  justify-self: end;
  margin: 10px;
}

@media (max-width: 900px) {
  .page-forum .forum-layout,
  .page-forum-index .forum-right-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .page-forum-topic .forum-post,
  .page-forum .forum-topic-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-forum-topic .forum-author-card {
    border-right: 0;
    border-bottom: 1px solid #3a1d22;
  }

  .page-forum .forum-topic-right {
    justify-items: start;
  }
}

/* Forum parity override, intentionally last. */
@media (min-width: 901px) {
  .page-forum .sidebar {
    position: fixed !important;
    top: 26px !important;
    right: 310px !important;
    bottom: auto !important;
    left: 56px !important;
    z-index: 60 !important;
    width: auto !important;
    min-height: 68px !important;
    max-width: none !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 18px !important;
  }

  .page-forum .sidebar h3 {
    display: none !important;
  }

  .page-forum .sidebar-brand {
    flex: 0 0 auto !important;
    min-width: 212px !important;
    margin-right: 14px !important;
    padding: 0 12px 0 0 !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    border: 0 !important;
    background: transparent !important;
  }

  .page-forum .sidebar-brand__mark {
    width: 40px !important;
    height: 40px !important;
  }

  .page-forum .sidebar-brand__text span {
    max-width: 138px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .page-forum .sidebar > a {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 15px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #a77d84 !important;
    background: transparent !important;
  }

  .page-forum .sidebar > a:hover,
  .page-forum .sidebar > a.is-active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
  }

  .page-forum .sidebar > a[href$="ILoader.rar"] {
    color: #fff !important;
    background: rgba(255, 51, 78, 0.2) !important;
  }

  .page-forum .topbar {
    position: fixed !important;
    top: 26px !important;
    right: 56px !important;
    left: auto !important;
    z-index: 70 !important;
    width: 238px !important;
    min-height: 68px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .page-forum .topbar__left {
    display: none !important;
  }

  .page-forum .main {
    margin-left: 0 !important;
    padding: 128px 56px 52px !important;
  }

  .page-forum .container {
    width: min(1130px, 100%) !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 900px) {
  .page-forum .sidebar {
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    bottom: auto !important;
    left: 14px !important;
    z-index: 60 !important;
    width: auto !important;
    max-width: none !important;
    max-height: 174px !important;
    padding: 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: auto !important;
    border-radius: 18px !important;
    transform: none !important;
  }

  .page-forum .sidebar h3,
  .page-forum .topbar__left {
    display: none !important;
  }

  .page-forum .sidebar-brand {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 52px 2px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .page-forum .sidebar > a {
    min-height: 36px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }

  .page-forum .topbar {
    position: fixed !important;
    top: 20px !important;
    right: 24px !important;
    left: auto !important;
    z-index: 70 !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .page-forum .topbar__right .btn,
  .page-forum .topbar__right .badge {
    display: none !important;
  }

  .page-forum .main {
    margin-left: 0 !important;
    padding: 212px 14px 34px !important;
  }
}

.page-forum .forum-form::before {
  content: none !important;
  display: none !important;
}

.page-forum .forum-topic-card .forum-form {
  gap: 10px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.page-forum .forum-topic-card .forum-form .btn {
  margin: 0 !important;
}

.forum-editor {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(143, 160, 255, 0.22);
  border-radius: 10px;
  background: rgba(7, 10, 18, 0.74);
}

.forum-editor__toolbar {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.forum-editor__toolbar button,
.forum-editor__toolbar label {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: #ffdfe4;
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.forum-editor__toolbar button:hover,
.forum-editor__toolbar label:hover {
  color: #fff;
  border-color: rgba(143, 160, 255, 0.42);
  background: rgba(143, 160, 255, 0.14);
}

.forum-editor__toolbar input[type="color"] {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.forum-editor .textarea {
  min-height: 148px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(9, 12, 22, 0.72) !important;
}

.forum-rich-text {
  color: #d6dbea;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.forum-rich-text a {
  color: #ff9a7a;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forum-rich-text blockquote,
.forum-quote {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid #ff7a8a;
  border-radius: 8px;
  color: #ffe9ec;
  background: rgba(143, 160, 255, 0.1);
}

.forum-code {
  max-width: 100%;
  margin: 10px 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffe8eb;
  background: rgba(2, 4, 10, 0.82);
}

.forum-code code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  white-space: pre;
}

.forum-spoiler {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.forum-spoiler summary {
  cursor: pointer;
  color: #f4f6ff;
  font-weight: 900;
}

.forum-spoiler div {
  margin-top: 8px;
}

.forum-list {
  margin: 10px 0;
  padding-left: 22px;
}

.forum-inline-image {
  display: block;
  max-width: min(100%, 680px);
  max-height: 520px;
  margin: 12px auto;
  border-radius: 8px;
}

.forum-author-card__name--admin,
.forum-user-name--admin {
  color: #c11226 !important;
}

.page-forum .forum-author-card__rank {
  width: auto !important;
  min-height: 0 !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #c99aa2 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.page-forum .profile-rank,
.page-forum .profile-rank--forum {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-height: 22px !important;
  padding: 2px 8px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  line-height: 1.25 !important;
}

/* Public profile ban card: compact status block for user.php. */
.public-ban-card {
  width: min(760px, 100%);
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 14px auto 0;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 77, 95, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 77, 95, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(7, 10, 18, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.public-ban-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #c90f25, #ff9aad);
}

.public-ban-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 95, 0.22), transparent 68%);
  pointer-events: none;
}

.public-ban-card__mark {
  position: relative;
  width: 48px;
  aspect-ratio: 1;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(255, 77, 95, 0.16);
  box-shadow: 0 0 0 7px rgba(255, 77, 95, 0.08);
}

.public-ban-card__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 15%;
  width: 70%;
  height: 5px;
  border-radius: 999px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.public-ban-card__content {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 9px;
}

.public-ban-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.public-ban-card__top span {
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1.15;
}

.public-ban-card__top b {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffdbe1;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.public-ban-card p {
  margin: 0;
  color: #ffd3da !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.public-ban-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.public-ban-card__meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #9fa9c4;
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 850;
}

.public-ban-card__meta b {
  color: #f3f6ff;
  font-weight: 950;
}

@media (max-width: 620px) {
  .public-ban-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .public-ban-card__top,
  .public-ban-card__meta {
    justify-content: center;
  }
}

/* Final ban view redesign. */
.page-ban,
.page-auth.page-ban {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 67, 101, 0.13), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(216, 58, 36, 0.11), transparent 30%),
    linear-gradient(180deg, rgba(7, 8, 18, 0.62), rgba(7, 8, 18, 0.98) 72%),
    linear-gradient(135deg, #070203 0%, #120408 45%, #230711 100%);
}

.ban-page-main {
  width: 100%;
  min-height: 100vh;
  padding: 48px 18px;
}

.auth-ban-card {
  width: min(920px, 100%) !important;
  margin: 0 auto !important;
}

.ban-layout {
  position: relative !important;
  display: grid !important;
  gap: 12px !important;
  color: #e8edff !important;
}

.ban-layout__header {
  width: fit-content !important;
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 7px 13px !important;
  border: 1px solid rgba(255, 77, 95, 0.36) !important;
  border-radius: 999px !important;
  color: #ffdbe1 !important;
  background:
    linear-gradient(135deg, rgba(255, 77, 95, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(10, 12, 21, 0.9) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

.ban-layout__header::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c90f25;
  box-shadow: 0 0 18px rgba(255, 54, 93, 0.85);
}

.ban-panel {
  position: relative !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 116px minmax(0, 1fr) !important;
  justify-items: stretch !important;
  align-items: start !important;
  gap: 10px 22px !important;
  overflow: hidden !important;
  padding: 30px !important;
  border: 1px solid rgba(255, 51, 78, 0.2) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(9, 12, 22, 0.94) !important;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.45) !important;
  text-align: left !important;
}

.ban-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #c90f25, #c90f25, #d83a24);
}

.ban-panel__glow {
  position: absolute;
  right: -120px;
  top: -150px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 54, 93, 0.22), transparent 68%);
  pointer-events: none;
}

.ban-panel__icon {
  position: relative !important;
  grid-row: 1 / span 4 !important;
  width: 104px !important;
  margin: 2px auto 0 !important;
  aspect-ratio: 1 !important;
  border: 9px solid rgba(255, 255, 255, 0.96) !important;
  border-radius: 50% !important;
  background:
    linear-gradient(145deg, rgba(255, 54, 93, 0.18), rgba(201, 15, 37, 0.14)),
    rgba(255, 255, 255, 0.04) !important;
  box-shadow:
    0 0 0 10px rgba(255, 77, 95, 0.09),
    0 20px 42px rgba(255, 54, 93, 0.18) !important;
}

.ban-panel__icon::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 15% !important;
  width: 70% !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: #fff !important;
  transform: translateY(-50%) rotate(45deg) !important;
}

.ban-panel__eyebrow {
  position: relative;
  width: fit-content;
  margin-top: 2px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffb9c4;
  background: rgba(255, 77, 95, 0.12);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.ban-panel h2 {
  position: relative !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(28px, 4vw, 48px) !important;
  font-weight: 1000 !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

.ban-panel__lead,
.ban-panel p {
  position: relative !important;
  max-width: 680px !important;
  margin: 0 !important;
  color: #c99aa2 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.ban-panel__details {
  position: relative !important;
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
}

.ban-panel__details div {
  min-width: 0 !important;
  display: grid !important;
  justify-content: stretch !important;
  gap: 5px !important;
  padding: 13px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.ban-panel__details dt {
  margin: 0 !important;
  color: #7f8daa !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.ban-panel__details dd {
  min-width: 0 !important;
  margin: 0 !important;
  color: #edf3ff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  overflow-wrap: anywhere !important;
}

.ban-panel__divider {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  height: 1px !important;
  margin: 8px 0 0 !important;
  border: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent) !important;
}

.ban-panel__profile {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  color: #c99aa2 !important;
}

.ban-panel__profile span,
.ban-panel__profile b,
.ban-panel__profile a {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  color: #dce4ff !important;
  background: rgba(255, 255, 255, 0.055) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.ban-panel__profile a {
  color: #89ebff !important;
}

.ban-panel__contact {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-top: 2px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(216, 58, 36, 0.24) !important;
  border-radius: 14px !important;
  color: #c99aa2 !important;
  background: rgba(216, 58, 36, 0.06) !important;
}

.ban-panel__contact b {
  color: #fff !important;
}

.ban-panel-actions {
  justify-content: flex-start !important;
}

.ban-panel-actions .auth-v-forgot {
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.ban-layout--embedded .ban-panel {
  grid-template-columns: 82px minmax(0, 1fr) !important;
  padding: 22px !important;
}

.ban-layout--embedded .ban-panel__icon {
  width: 76px !important;
  border-width: 7px !important;
}

.ban-layout--embedded .ban-panel__icon::after {
  height: 7px !important;
}

.ban-layout--embedded .ban-panel h2 {
  font-size: clamp(22px, 3vw, 34px) !important;
}

@media (max-width: 720px) {
  .ban-page-main {
    padding: 28px 12px;
  }

  .ban-panel,
  .ban-layout--embedded .ban-panel {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 22px 16px !important;
    text-align: center !important;
  }

  .ban-panel__icon {
    grid-row: auto !important;
    width: 86px !important;
  }

  .ban-panel__eyebrow,
  .ban-layout__header {
    margin-inline: auto !important;
  }

  .ban-panel__details {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .ban-panel__profile {
    justify-content: center !important;
  }

  .ban-panel__contact {
    justify-content: center !important;
  }
}

/* Ban screen */
.auth-ban-card {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
}

.ban-layout {
  width: 100%;
  display: grid;
  gap: 12px;
  color: #ffd0d8;
}

.ban-layout__header,
.ban-panel {
  border: 1px solid rgba(128, 149, 177, 0.28);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(31, 43, 49, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.ban-layout__header {
  padding: 16px 18px;
  color: #fff;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 850;
  letter-spacing: 0;
}

.ban-panel {
  min-height: 430px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  padding: 28px 10px 26px;
  text-align: center;
}

.ban-panel__icon {
  position: relative;
  width: clamp(104px, 10vw, 146px);
  aspect-ratio: 1;
  border: 14px solid #fff;
  border-radius: 50%;
}

.ban-panel__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 12%;
  width: 76%;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
}

.ban-panel h2 {
  margin: 0;
  color: #ff245a;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 950;
  letter-spacing: 0;
}

.ban-panel__details {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #cfe4ff;
  font-size: 15px;
  line-height: 1.25;
}

.ban-panel__details div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.ban-panel__details dt {
  margin: 0;
  color: #d9ecff;
  font-weight: 950;
}

.ban-panel__details dd {
  margin: 0;
  color: #b8efff;
  overflow-wrap: anywhere;
}

.ban-panel__divider {
  width: calc(100% - 12px);
  height: 1px;
  margin: 8px 0 4px;
  border-top: 1px dotted rgba(184, 198, 217, 0.24);
}

.ban-panel__profile {
  display: grid;
  gap: 5px;
  color: #c9ecff;
}

.ban-panel__profile span,
.ban-panel p {
  margin: 0;
  color: #ffdde3;
  font-size: 15px;
}

.ban-panel__profile a {
  color: #84eaff;
  font-weight: 800;
  text-decoration: none;
}

.ban-panel__profile a:hover {
  color: #fff;
}

.ban-panel__profile b {
  color: #ffdde3;
  font-weight: 800;
}

.ban-panel__contact {
  width: calc(100% - 20px);
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  border: 1px solid rgba(128, 149, 177, 0.24);
  border-radius: 4px;
  color: #ffdde3;
  background: rgba(255, 255, 255, 0.025);
}

.ban-panel__contact b {
  color: #fff;
}

.ban-panel-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.ban-panel-actions .auth-v-forgot {
  width: auto;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ban-layout--embedded {
  width: min(960px, 100%);
  margin: 16px auto 0;
}

.ban-layout--embedded .ban-layout__header {
  padding: 13px 16px;
  font-size: 20px;
}

.ban-layout--embedded .ban-panel {
  min-height: 0;
  padding: 22px 10px 20px;
}

.ban-layout--embedded .ban-panel__icon {
  width: 92px;
  border-width: 10px;
}

.ban-layout--embedded .ban-panel__icon::after {
  height: 10px;
}

.ban-layout--embedded .ban-panel h2 {
  font-size: 22px;
}

.profile-hero-card .ban-layout {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .auth-ban-card {
    width: 100%;
  }

  .ban-layout__header {
    padding: 14px;
    font-size: 20px;
  }

  .ban-panel {
    min-height: 0;
    padding: 22px 8px;
  }

  .ban-panel__details {
    font-size: 14px;
  }

  .ban-panel__contact,
  .ban-panel__divider {
    width: 100%;
  }
}

.forum-online-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 22px;
  color: #9fa9c6;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.forum-online-status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #7c849c;
  box-shadow: 0 0 0 3px rgba(124, 132, 156, 0.12);
}

.forum-online-status.is-online {
  color: #8ff0b5;
}

.forum-online-status.is-online::before {
  background: #b90f23;
  box-shadow: 0 0 0 3px rgba(185, 15, 35, 0.14), 0 0 18px rgba(185, 15, 35, 0.34);
}

.forum-online-status--author {
  justify-self: center;
}

.forum-online-status--topic,
.forum-online-status--inline,
.forum-online-status--profile {
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.page-forum .forum-hero {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 20px !important;
  padding: 22px 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    rgba(16, 19, 31, 0.88) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26) !important;
}

.forum-hero__copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.forum-hero__label {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  color: #b9c3df;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-forum .forum-hero h2 {
  margin: 0 !important;
  color: #fff3f4 !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
}

.page-forum .forum-hero p {
  max-width: 650px !important;
  margin: 0 !important;
  color: #c99aa2 !important;
  font-size: 14px !important;
}

.page-forum .forum-hero__stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(82px, 1fr)) !important;
  gap: 8px !important;
}

.page-forum .forum-hero__stats span {
  min-height: 54px !important;
  display: grid !important;
  align-content: center !important;
  gap: 2px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  color: #dfe5fb !important;
  background: rgba(255, 255, 255, 0.065) !important;
  text-align: left !important;
}

.page-forum .forum-hero__stats b {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.page-forum .forum-hero__stats em {
  color: #9da8c6;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.page-forum .forum-reaction-btn {
  gap: 8px !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.page-forum .forum-reaction-btn span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 900px) {
  .page-forum .forum-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    padding: 18px !important;
  }

  .page-forum .forum-hero__stats {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Forum final fixes: keep the app navigation identical to profile/dashboard. */
@media (min-width: 901px) {
  .page-forum .sidebar {
    position: fixed !important;
    top: 26px !important;
    right: 310px !important;
    bottom: auto !important;
    left: 56px !important;
    z-index: 60 !important;
    width: auto !important;
    min-height: 68px !important;
    max-width: none !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 18px !important;
  }

  .page-forum .sidebar h3 {
    display: none !important;
  }

  .page-forum .sidebar-brand {
    flex: 0 0 auto !important;
    min-width: 212px !important;
    margin-right: 14px !important;
    padding: 0 12px 0 0 !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    border: 0 !important;
    background: transparent !important;
  }

  .page-forum .sidebar-brand__mark {
    width: 40px !important;
    height: 40px !important;
  }

  .page-forum .sidebar-brand__text span {
    max-width: 138px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .page-forum .sidebar > a {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 15px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #a77d84 !important;
    background: transparent !important;
  }

  .page-forum .sidebar > a:hover,
  .page-forum .sidebar > a.is-active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
  }

  .page-forum .sidebar > a[href$="ILoader.rar"] {
    color: #fff !important;
    background: rgba(255, 51, 78, 0.2) !important;
  }

  .page-forum .topbar {
    position: fixed !important;
    top: 26px !important;
    right: 56px !important;
    left: auto !important;
    z-index: 70 !important;
    width: 238px !important;
    min-height: 68px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .page-forum .topbar__left {
    display: none !important;
  }

  .page-forum .main {
    margin-left: 0 !important;
    padding: 128px 56px 52px !important;
  }

  .page-forum .container {
    width: min(1130px, 100%) !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 900px) {
  .page-forum .sidebar {
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    bottom: auto !important;
    left: 14px !important;
    z-index: 60 !important;
    width: auto !important;
    max-width: none !important;
    max-height: 174px !important;
    padding: 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: auto !important;
    border-radius: 18px !important;
    transform: none !important;
  }

  .page-forum .sidebar h3,
  .page-forum .topbar__left {
    display: none !important;
  }

  .page-forum .sidebar-brand {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 52px 2px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .page-forum .sidebar > a {
    min-height: 36px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }

  .page-forum .topbar {
    position: fixed !important;
    top: 20px !important;
    right: 24px !important;
    left: auto !important;
    z-index: 70 !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .page-forum .topbar__right .btn,
  .page-forum .topbar__right .badge {
    display: none !important;
  }

  .page-forum .main {
    margin-left: 0 !important;
    padding: 212px 14px 34px !important;
  }
}

.page-forum .forum-form::before {
  content: none !important;
  display: none !important;
}

.page-forum .forum-topic-card .forum-form {
  gap: 10px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.page-forum .forum-topic-card .forum-form .btn {
  margin: 0 !important;
}

.forum-editor {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(143, 160, 255, 0.22);
  border-radius: 10px;
  background: rgba(7, 10, 18, 0.74);
}

.forum-editor__toolbar {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.forum-editor__toolbar button,
.forum-editor__toolbar label {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: #ffdfe4;
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.forum-editor__toolbar button:hover,
.forum-editor__toolbar label:hover {
  color: #fff;
  border-color: rgba(143, 160, 255, 0.42);
  background: rgba(143, 160, 255, 0.14);
}

.forum-editor__toolbar input[type="color"] {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.forum-editor .textarea {
  min-height: 148px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(9, 12, 22, 0.72) !important;
}

.forum-rich-text {
  color: #d6dbea;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.forum-rich-text a {
  color: #ff9a7a;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forum-rich-text blockquote,
.forum-quote {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid #ff7a8a;
  border-radius: 8px;
  color: #ffe9ec;
  background: rgba(143, 160, 255, 0.1);
}

.forum-code {
  max-width: 100%;
  margin: 10px 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffe8eb;
  background: rgba(2, 4, 10, 0.82);
}

.forum-code code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  white-space: pre;
}

.forum-spoiler {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.forum-spoiler summary {
  cursor: pointer;
  color: #f4f6ff;
  font-weight: 900;
}

.forum-spoiler div {
  margin-top: 8px;
}

.forum-list {
  margin: 10px 0;
  padding-left: 22px;
}

.forum-inline-image {
  display: block;
  max-width: min(100%, 680px);
  max-height: 520px;
  margin: 12px auto;
  border-radius: 8px;
}

.forum-author-card__name--admin,
.forum-user-name--admin {
  color: #c11226 !important;
}

.page-forum .forum-author-card__rank {
  width: auto !important;
  min-height: 0 !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #c99aa2 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.page-forum .profile-rank,
.page-forum .profile-rank--forum {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-height: 22px !important;
  padding: 2px 8px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  line-height: 1.25 !important;
}

.page-forum .forum-hero {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 20px !important;
  padding: 22px 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    rgba(16, 19, 31, 0.88) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26) !important;
}

.forum-hero__copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.forum-hero__label {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  color: #b9c3df;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-forum .forum-hero h2 {
  margin: 0 !important;
  color: #fff3f4 !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
}

.page-forum .forum-hero p {
  max-width: 650px !important;
  margin: 0 !important;
  color: #c99aa2 !important;
  font-size: 14px !important;
}

.page-forum .forum-hero__stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(82px, 1fr)) !important;
  gap: 8px !important;
}

.page-forum .forum-hero__stats span {
  min-height: 54px !important;
  display: grid !important;
  align-content: center !important;
  gap: 2px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  color: #dfe5fb !important;
  background: rgba(255, 255, 255, 0.065) !important;
  text-align: left !important;
}

.page-forum .forum-hero__stats b {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.page-forum .forum-hero__stats em {
  color: #9da8c6;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.page-forum .forum-reaction-btn {
  gap: 8px !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.page-forum .forum-reaction-btn span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 900px) {
  .page-forum .forum-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    padding: 18px !important;
  }

  .page-forum .forum-hero__stats {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final repair: forum uses the same app shell behavior as the other pages. */
.page-forum {
  background:
    linear-gradient(180deg, rgba(4, 1, 2, 0.74), rgba(4, 1, 2, 0.99) 72%),
    linear-gradient(135deg, #070203 0%, #120408 45%, #230711 100%);
}

.page-forum .sidebar {
  display: block;
}

.page-forum .topbar {
  display: flex;
}

.page-forum .main {
  margin-left: 332px;
  padding: 112px 20px 44px 0;
}

.page-forum .container {
  width: min(1160px, 100%);
}

.page-forum-index .forum-layout {
  display: block;
}

.page-forum-index .forum-sidebar-card,
.page-forum-index .forum-right-card {
  display: none;
}

.page-forum-index .forum-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-forum-index .forum-board {
  order: 1;
}

.page-forum-index .forum-toolbar {
  order: 2;
}

.page-forum-index .forum-topic-card {
  order: 3;
}

.page-forum .forum-board,
.page-forum .forum-topic-card,
.page-forum .forum-toolbar,
.page-forum .forum-post,
.page-forum .forum-hero {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(15, 18, 32, 0.88);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

.page-forum .forum-board,
.page-forum .forum-topic-card {
  overflow: hidden;
  padding: 0;
}

.page-forum .forum-board .forum-topic-head,
.page-forum .forum-topic-card > .forum-topic-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.page-forum .forum-board-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 46px minmax(240px, 1fr) 90px minmax(220px, 0.9fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
}

.page-forum .forum-topic-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(150px, 180px);
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
}

.profile-rank {
  --rank-color: #d0142c;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 0;
  border-radius: 7px;
  color: color-mix(in srgb, var(--rank-color) 70%, #fff);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.profile-rank--hero {
  min-height: 22px;
  padding: 2px 8px;
}

.profile-rank--forum {
  width: auto;
}

.rank-color-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.rank-color-field span {
  color: #c99aa2;
  font-size: 12px;
  font-weight: 800;
}

.rank-color-field input[type="color"] {
  width: 46px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.rank-color-field b {
  color: color-mix(in srgb, var(--rank-color) 72%, #fff);
}

@media (max-width: 980px) {
  .page-forum .main {
    margin-left: 0;
    padding: 96px 16px 34px;
  }

  .page-forum .topbar {
    left: 16px;
  }

  .page-forum .forum-board-row,
  .page-forum .forum-topic-link {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Final forum override: keep the app navigation and the site background. */
.page-forum {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(4, 1, 2, 0.74), rgba(4, 1, 2, 0.99) 72%),
    linear-gradient(135deg, #070203 0%, #120408 45%, #230711 100%);
}

.page-forum .sidebar {
  display: block;
}

.page-forum .topbar {
  display: flex;
}

.page-forum .main {
  margin-left: 332px;
  padding: 112px 20px 44px 0;
}

.page-forum .container {
  width: min(1160px, 100%);
}

.page-forum-index .forum-layout {
  display: block;
}

.page-forum-index .forum-sidebar-card,
.page-forum-index .forum-right-card {
  display: none;
}

.page-forum-index .forum-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-forum-index .forum-board { order: 1; }
.page-forum-index .forum-toolbar { order: 2; }
.page-forum-index .forum-topic-card { order: 3; }

.page-forum .forum-hero,
.page-forum .forum-board,
.page-forum .forum-topic-card,
.page-forum .forum-toolbar,
.page-forum .forum-post {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(15, 18, 32, 0.88);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

.page-forum .forum-hero {
  min-height: auto;
  padding: 18px;
}

.page-forum .forum-board,
.page-forum .forum-topic-card {
  overflow: hidden;
  padding: 0;
}

.page-forum .forum-board .forum-topic-head,
.page-forum .forum-topic-card > .forum-topic-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.page-forum .forum-board--subcategories .forum-topic-head .app-eyebrow,
.page-forum .forum-board--subcategories .forum-topic-head h3 {
  font-size: 0;
}

.page-forum .forum-board--subcategories .forum-topic-head .app-eyebrow::after {
  content: "подкатегории";
  font-size: 11px;
}

.page-forum .forum-board--subcategories .forum-topic-head h3::after {
  content: "Подкатегории";
  font-size: 22px;
}

.page-forum .forum-board-list,
.page-forum .forum-topic-list {
  display: grid;
  gap: 0;
}

.page-forum .forum-board-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 46px minmax(220px, 1fr) minmax(260px, 1.1fr) 86px minmax(190px, 0.8fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
}

.page-forum .forum-board-row--subcat {
  grid-template-columns: 46px minmax(0, 1fr) 90px minmax(190px, 0.8fr);
}

.page-forum .forum-board-row:hover,
.page-forum .forum-topic-link:hover {
  background: rgba(216, 58, 36, 0.08);
}

.page-forum .forum-board-row:last-child,
.page-forum .forum-topic-link:last-child {
  border-bottom: 0;
}

.page-forum .forum-board-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c90f25, #d83a24);
  color: #fff;
  font-weight: 900;
}

.page-forum .forum-board-subcats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  min-width: 0;
}

.page-forum .forum-board-subcats span {
  position: relative;
  min-width: 0;
  padding-left: 14px;
  overflow: hidden;
  color: #ffd0d8;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-forum .forum-board-subcats span::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid #d83a24;
  border-radius: 50%;
}

.page-forum .forum-board-row b,
.page-forum .forum-topic-link b {
  color: #fff2f4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.page-forum .forum-board-last b,
.page-forum .forum-board-last span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-forum .forum-topic-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(150px, 180px);
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
}

.page-forum .forum-topic-avatar,
.page-forum .forum-topic-avatar__image {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
}

.page-forum .forum-topic-summary {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.page-forum .forum-topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.page-forum .forum-topic-right {
  display: grid;
  gap: 2px;
  justify-items: end;
  color: #c99aa2;
  font-size: 12px;
  text-align: right;
}

.forum-ban-badge,
.profile-ban-pill,
.forum-author-card__ban {
  border: 1px solid rgba(255, 77, 95, 0.42);
  border-radius: 999px;
  color: #ffc6ce;
  background: rgba(255, 77, 95, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.forum-ban-badge,
.profile-ban-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
}

.page-forum-topic .forum-author-card__ban {
  order: 3;
  width: 100%;
  padding: 4px 8px;
  text-align: center;
}

.page-forum-topic .forum-author-card__ban-reason {
  order: 4;
  max-width: 100%;
  color: #ffb5bf;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.page-forum-topic .forum-author-card__avatar-link { order: 5; }
.page-forum-topic .forum-profile-badge { order: 6; }
.page-forum-topic .forum-author-card__rank { order: 7; }
.page-forum-topic .forum-author-card__stats { order: 8; }

.profile-ban-alert {
  width: min(720px, 100%);
  display: grid;
  gap: 4px;
  margin: 12px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 77, 95, 0.34);
  border-radius: 12px;
  color: #ffc6ce;
  background: rgba(255, 77, 95, 0.12);
}

.profile-ban-alert b {
  color: #fff;
}

@media (max-width: 980px) {
  .page-forum .main {
    margin-left: 0;
    padding: 96px 16px 34px;
  }

  .page-forum .topbar {
    left: 16px;
  }

  .page-forum .forum-board-row,
  .page-forum .forum-board-row--subcat,
  .page-forum .forum-topic-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-forum .forum-board-subcats {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-forum .forum-topic-right {
    justify-items: start;
    text-align: left;
  }
}

/* Forum app-shell restore and board/table layout. */
.page-forum {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(4, 1, 2, 0.74), rgba(4, 1, 2, 0.99) 72%),
    linear-gradient(135deg, #070203 0%, #120408 45%, #230711 100%);
}

.page-forum .sidebar {
  display: block;
}

.page-forum .topbar {
  display: flex;
}

.page-forum .main {
  margin-left: 332px;
  padding: 112px 20px 44px 0;
}

.page-forum .container {
  width: min(1160px, 100%);
}

.page-forum .forum-hero {
  min-height: auto;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(15, 18, 32, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.page-forum .forum-hero h2 {
  color: #fff;
}

.page-forum .forum-hero p {
  max-width: 760px;
  color: #c99aa2;
}

.page-forum-index .forum-layout {
  display: block;
}

.page-forum-index .forum-sidebar-card,
.page-forum-index .forum-right-card {
  display: none;
}

.page-forum-index .forum-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-forum-index .forum-board {
  order: 1;
}

.page-forum-index .forum-toolbar {
  order: 2;
}

.page-forum-index .forum-topic-card {
  order: 3;
}

.page-forum .forum-board,
.page-forum .forum-topic-card,
.page-forum .forum-toolbar,
.page-forum .forum-post {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(15, 18, 32, 0.88);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

.page-forum .forum-board {
  overflow: hidden;
  padding: 0;
}

.page-forum .forum-board .forum-topic-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.page-forum .forum-board--subcategories .forum-topic-head .app-eyebrow,
.page-forum .forum-board--subcategories .forum-topic-head h3 {
  font-size: 0;
}

.page-forum .forum-board--subcategories .forum-topic-head .app-eyebrow::after {
  content: "подкатегории";
  font-size: 11px;
}

.page-forum .forum-board--subcategories .forum-topic-head h3::after {
  content: "Подкатегории";
  font-size: 22px;
}

.page-forum .forum-board-list,
.page-forum .forum-topic-list {
  display: grid;
  gap: 0;
}

.page-forum .forum-board-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 46px minmax(220px, 1fr) minmax(260px, 1.1fr) 86px minmax(190px, 0.8fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
}

.page-forum .forum-board-row:last-child,
.page-forum .forum-topic-link:last-child {
  border-bottom: 0;
}

.page-forum .forum-board-row:hover,
.page-forum .forum-topic-link:hover {
  background: rgba(216, 58, 36, 0.08);
}

.page-forum .forum-board-row--subcat {
  grid-template-columns: 46px minmax(0, 1fr) 90px minmax(190px, 0.8fr);
}

.page-forum .forum-board-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c90f25, #d83a24);
  color: #fff;
  font-weight: 900;
}

.page-forum .forum-board-row b,
.page-forum .forum-topic-link b {
  min-width: 0;
  color: #fff2f4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.page-forum .forum-board-row span,
.page-forum .forum-topic-summary > span,
.page-forum .forum-topic-head p {
  color: #a96f7a;
}

.page-forum .forum-board-subcats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  min-width: 0;
}

.page-forum .forum-board-subcats span {
  position: relative;
  min-width: 0;
  padding-left: 14px;
  overflow: hidden;
  color: #ffd0d8;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-forum .forum-board-subcats span::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid #d83a24;
  border-radius: 50%;
}

.page-forum .forum-board-stats,
.page-forum .forum-board-last,
.page-forum .forum-topic-right {
  min-width: 0;
}

.page-forum .forum-board-last b,
.page-forum .forum-board-last span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-forum .forum-topic-card {
  overflow: hidden;
  padding: 0;
}

.page-forum .forum-topic-card > .forum-topic-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.page-forum .forum-topic-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(150px, 180px);
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
}

.page-forum .forum-topic-avatar,
.page-forum .forum-topic-avatar__image {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
}

.page-forum .forum-topic-summary {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.page-forum .forum-topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.page-forum .forum-topic-right {
  display: grid;
  gap: 2px;
  justify-items: end;
  color: #c99aa2;
  font-size: 12px;
  text-align: right;
}

.forum-ban-badge,
.profile-ban-pill,
.forum-author-card__ban {
  border: 1px solid rgba(255, 77, 95, 0.42);
  border-radius: 999px;
  color: #ffc6ce;
  background: rgba(255, 77, 95, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.forum-ban-badge,
.profile-ban-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
}

.page-forum-topic .forum-author-card__ban {
  order: 3;
  width: 100%;
  padding: 4px 8px;
  text-align: center;
}

.page-forum-topic .forum-author-card__ban-reason {
  order: 4;
  max-width: 100%;
  color: #ffb5bf;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.page-forum-topic .forum-author-card__avatar-link {
  order: 5;
}

.page-forum-topic .forum-profile-badge {
  order: 6;
}

.page-forum-topic .forum-author-card__rank {
  order: 7;
}

.page-forum-topic .forum-author-card__stats {
  order: 8;
}

.profile-ban-alert {
  width: min(720px, 100%);
  display: grid;
  gap: 4px;
  margin: 12px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 77, 95, 0.34);
  border-radius: 12px;
  color: #ffc6ce;
  background: rgba(255, 77, 95, 0.12);
}

.profile-ban-alert b {
  color: #fff;
}

@media (max-width: 980px) {
  .page-forum .main {
    margin-left: 0;
    padding: 96px 16px 34px;
  }

  .page-forum .topbar {
    left: 16px;
  }

  .page-forum .forum-board-row,
  .page-forum .forum-board-row--subcat,
  .page-forum .forum-topic-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-forum .forum-board-subcats {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-forum .forum-topic-right {
    justify-items: start;
    text-align: left;
  }
}

/* Usability pass for forum and profile editing. */
.page-forum-index .forum-layout {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
}

.page-forum-index .forum-main {
  min-width: 0;
}

.page-forum-index .forum-right-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-forum .forum-toolbar,
.page-forum .forum-topic-card,
.page-forum .forum-board {
  border-radius: 16px;
  border-color: rgba(75, 91, 128, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(8, 10, 15, 0.92);
}

.page-forum .forum-toolbar {
  padding: 16px;
}

.page-forum .forum-search {
  grid-template-columns: minmax(0, 1fr) auto;
}

.page-forum .forum-filter-tabs {
  overflow-x: auto;
  padding-bottom: 2px;
}

.page-forum .forum-topic-link {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 18px;
  padding: 18px;
  border-radius: 14px;
}

.page-forum .forum-topic-link > div:first-child,
.page-forum .forum-topic-link b,
.page-forum .forum-topic-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-forum .forum-topic-right {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: #aa7c83;
  font-size: 12px;
  font-weight: 850;
}

.page-forum .forum-author-card__avatar-link {
  order: 1;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  color: inherit;
}

.page-forum .forum-author-card__avatar-link .forum-author-card__avatar {
  width: 42px;
  height: 42px;
}

.page-forum .forum-author-card__name {
  color: #fff;
  text-decoration: none;
}

.page-forum .forum-author-card__name:hover {
  color: #ff9aa5;
}

.admin-profile-editor {
  padding: 12px;
  border: 1px solid rgba(255, 51, 78, 0.2);
  border-radius: 14px;
  background: rgba(255, 51, 78, 0.055);
}

.admin-profile-editor input[type="file"],
.compact-form input[type="file"] {
  padding: 10px 12px;
  color: #c99aa2;
}

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

@media (max-width: 1080px) {
  .page-forum-index .forum-layout,
  .public-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-forum-index .forum-right-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .page-forum .forum-search,
  .page-forum .forum-topic-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-forum .forum-topic-right {
    justify-items: start;
  }
}

/* Media picker slider */
.media-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(74, 88, 124, 0.46);
  border-radius: 16px;
  background: rgba(8, 11, 19, 0.72);
}

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

.media-picker__head b {
  color: #fff;
  font-size: 13px;
}

.media-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 51, 78, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.media-switch button {
  min-height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: #aa7c83;
  background: transparent;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.media-switch button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #d83a24);
}

.media-pane {
  display: none;
}

.media-pane.is-active {
  display: block;
}

.file-drop {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px dashed rgba(143, 160, 255, 0.42);
  border-radius: 14px;
  color: #ffd0d8;
  background:
    linear-gradient(135deg, rgba(255, 51, 78, 0.12), rgba(216, 58, 36, 0.05)),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.file-drop:hover {
  border-color: rgba(216, 58, 36, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 51, 78, 0.18), rgba(216, 58, 36, 0.09)),
    rgba(255, 255, 255, 0.055);
}

.file-drop input {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  opacity: 0;
  cursor: pointer;
}

.file-drop {
  position: relative;
  overflow: hidden;
}

.file-drop__icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #d83a24);
  font-size: 20px;
  font-weight: 1000;
}

.file-drop b,
.file-drop em {
  display: block;
}

.file-drop b {
  color: #fff;
  font-size: 13px;
}

.file-drop em {
  margin-top: 4px;
  color: #aa7c83;
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.media-picker--admin {
  padding: 10px;
}

/* Radical forum redesign */
.page-forum {
  background:
    linear-gradient(180deg, rgba(18, 29, 32, 0.98), rgba(13, 22, 24, 0.98)),
    #211014;
}

.page-forum .sidebar,
.page-forum .topbar {
  display: none;
}

.page-forum .main {
  margin-left: 0;
  padding: 24px 0 52px;
}

.page-forum .container {
  width: min(1120px, calc(100% - 28px));
}

.page-forum .forum-hero {
  min-height: 76px;
  margin-bottom: 14px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-forum .forum-hero h2 {
  color: #fff0f2;
  font-size: 22px;
}

.page-forum .forum-hero p {
  max-width: 760px;
  color: #91a2aa;
  font-size: 13px;
}

.page-forum .forum-hero__stats {
  justify-content: flex-start;
}

.page-forum .forum-hero__stats span,
.page-forum .forum-breadcrumbs,
.page-forum .forum-filter-tabs a,
.page-forum .forum-topic-badges span {
  border-radius: 4px;
}

.page-forum .forum-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 12px;
}

.page-forum-topic .forum-layout {
  grid-template-columns: minmax(0, 1fr);
}

.page-forum-index .forum-right-card {
  grid-column: 1 / -1;
}

.page-forum .forum-sidebar-card,
.page-forum .forum-right-card,
.page-forum .forum-topic-card,
.page-forum .forum-toolbar,
.page-forum .forum-board,
.page-forum .forum-post {
  border: 1px solid #3a1d22;
  border-radius: 4px;
  background: #281318;
  box-shadow: none;
}

.page-forum .forum-sidebar-card,
.page-forum .forum-right-card,
.page-forum .forum-topic-card,
.page-forum .forum-toolbar {
  padding: 12px;
}

.page-forum .forum-topic-card h3 {
  color: #fff0f2;
  font-size: 19px;
}

.page-forum-topic .forum-topic-card:first-of-type {
  padding: 18px;
  background: #223036;
}

.page-forum .forum-topic-head {
  gap: 16px;
}

.page-forum .forum-topic-head p,
.page-forum .forum-post__meta,
.page-forum .forum-category-link span,
.page-forum .forum-side-list span {
  color: #9fb1ba;
}

.page-forum-topic .forum-post {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  min-height: 220px;
}

.page-forum-topic .forum-author-card {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 12px 10px;
  border-right: 1px solid #3a1d22;
  border-bottom: 0;
  background: #251116;
  text-align: center;
}

.page-forum-topic .forum-author-card__name {
  order: 1;
  max-width: 100%;
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 1000;
}

.page-forum-topic .forum-author-card__role {
  order: 2;
  width: 100%;
  min-height: 22px;
  justify-content: center;
  border-radius: 2px;
  color: #fff;
  background: #ff5a3d;
}

.page-forum-topic .forum-author-card__avatar-link {
  order: 3;
  width: 142px;
  height: 142px;
  flex: 0 0 142px;
  margin-top: 6px;
}

.page-forum-topic .forum-author-card__avatar-link .forum-author-card__avatar,
.page-forum-topic .forum-author-card__avatar {
  width: 142px;
  height: 142px;
  border-radius: 2px;
  font-size: 42px;
}

.page-forum-topic .forum-profile-badge {
  order: 4;
  max-width: 100%;
}

.page-forum-topic .forum-author-card__rank {
  order: 5;
  width: 100%;
  justify-content: center;
  border-radius: 2px;
}

.page-forum-topic .forum-author-card__stats {
  order: 6;
  width: 100%;
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
}

.page-forum-topic .forum-author-card__stats div {
  display: flex;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
}

.page-forum-topic .forum-author-card__stats dt,
.page-forum-topic .forum-author-card__stats dd {
  color: #cfe6ff;
  font-size: 12px;
}

.page-forum-topic .forum-post__body {
  min-width: 0;
  padding: 18px 18px 16px;
  background: #281318;
}

.page-forum-topic .forum-post__meta {
  margin: -18px -18px 14px;
  padding: 10px 18px;
  border-bottom: 1px solid #3a1d22;
  background: #31171d;
}

.page-forum-topic .forum-post__body > p {
  color: #ffe3e7;
  font-size: 15px;
  line-height: 1.7;
}

.page-forum .forum-reactions {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #3a1d22;
}

.page-forum-topic .forum-topic-card:has(.forum-form) {
  padding: 10px;
}

.page-forum-topic .forum-topic-card .forum-form {
  gap: 0;
  overflow: hidden;
  border: 1px solid #4b242b;
  border-radius: 3px;
  background: #241116;
}

.page-forum-topic .forum-topic-card .forum-form::before {
  content: "Text  B  I  U  Link  List  Quote  Image  Code";
  display: block;
  min-height: 34px;
  padding: 8px 10px;
  border-top: 2px solid #c90f25;
  border-bottom: 1px solid #4b242b;
  color: #c89da4;
  background: #432128;
  font-size: 13px;
  letter-spacing: 0;
}

.page-forum-topic .forum-topic-card .forum-form .textarea {
  min-height: 96px;
  border: 0;
  border-radius: 0;
  background: #241116;
}

.page-forum-topic .forum-topic-card .forum-form .btn {
  width: auto;
  justify-self: end;
  margin: 10px;
}

.page-forum .forum-topic-link {
  border-radius: 3px;
  background: #2a1419;
}

.page-forum .forum-topic-link:hover {
  background: #233137;
}

@media (max-width: 780px) {
  .page-forum-topic .forum-post {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-forum-topic .forum-author-card {
    border-right: 0;
    border-bottom: 1px solid #3a1d22;
  }
}

.page-app .notif-box {
  width: min(460px, calc(100% - 36px));
  border-color: rgba(255, 51, 78, 0.3);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(16, 21, 36, 0.98), rgba(7, 9, 15, 0.98)),
    rgba(8, 10, 15, 0.96);
}

.page-app .notif-item {
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

/* Profile, badges, notifications and audit UI */
.profile-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 28px;
  border: 1px solid rgba(69, 82, 116, 0.62);
  border-radius: 22px;
  background:
    linear-gradient(140deg, rgba(255, 51, 78, 0.16), rgba(216, 58, 36, 0.08) 48%, rgba(185, 15, 35, 0.08)),
    rgba(8, 10, 15, 0.92);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.profile-hero-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 12, 0.72));
  pointer-events: none;
}

.profile-hero-card > * {
  position: relative;
  z-index: 1;
}

.cabinet-avatar,
.profile-avatar,
.forum-author-card__avatar {
  object-fit: cover;
}

img.cabinet-avatar,
img.profile-avatar,
img.forum-author-card__avatar {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-badge-row {
  min-height: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.profile-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--badge-color, #d0142c) 58%, rgba(255, 255, 255, 0.22));
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--badge-color, #d0142c) 40%, transparent), rgba(255, 255, 255, 0.05)),
    rgba(7, 10, 17, 0.78);
  box-shadow: 0 0 22px color-mix(in srgb, var(--badge-color, #d0142c) 30%, transparent);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.profile-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--badge-color, #d0142c);
  box-shadow: 0 0 12px var(--badge-color, #d0142c);
}

.profile-badge--inline {
  margin-right: 6px;
}

.profile-mini-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(137, 150, 190, 0.26);
  border-radius: 999px;
  color: #c5cde6;
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 850;
}

.profile-bio {
  width: min(680px, 100%);
  margin-top: 12px;
  color: #d8def3;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.forum-profile-badge {
  justify-self: center;
}

.notif {
  min-height: 42px;
  border-color: rgba(255, 51, 78, 0.32);
  border-radius: 14px;
  color: #ffd0d8;
  background:
    linear-gradient(135deg, rgba(255, 51, 78, 0.16), rgba(216, 58, 36, 0.08)),
    rgba(13, 16, 27, 0.88);
}

.notif__icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #d0142c;
  font-size: 11px;
  font-weight: 1000;
}

.notif-box {
  width: min(460px, calc(100% - 36px));
  border-color: rgba(255, 51, 78, 0.3);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(16, 21, 36, 0.98), rgba(7, 9, 15, 0.98)),
    rgba(8, 10, 15, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.notif-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-box__head b {
  display: block;
  color: #fff;
  font-size: 16px;
}

.notif-box__head span,
.notif-box__head a {
  color: #aa7c83;
  font-size: 12px;
  font-weight: 900;
}

.notif-list {
  max-height: 430px;
  overflow: auto;
  padding: 10px;
}

.notif-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px;
  border: 1px solid rgba(70, 84, 120, 0.46);
  border-radius: 15px;
  color: #ffd0d8;
  background: rgba(255, 255, 255, 0.04);
}

.notif-item:hover {
  border-color: rgba(255, 51, 78, 0.58);
  background: rgba(255, 51, 78, 0.11);
}

.notif-item.is-unread {
  box-shadow: inset 3px 0 0 #b90f23;
}

.notif-item__icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #d83a24);
  font-weight: 1000;
}

.notif-item--ticket .notif-item__icon { background: linear-gradient(135deg, #d0142c, #ff7a8a); }
.notif-item--forum .notif-item__icon { background: linear-gradient(135deg, #ff6242, #b90f23); }
.notif-item--subscription .notif-item__icon { background: linear-gradient(135deg, #ffd166, #ff7a59); }
.notif-item--news .notif-item__icon { background: linear-gradient(135deg, #b90f23, #d83a24); }
.notif-item--admin .notif-item__icon { background: linear-gradient(135deg, #ff5fa2, #8f63ff); }

.notif-item__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.notif-item__body b {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

.notif-item__body span {
  color: #c99aa2;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.notif-item__meta {
  color: #9f737a !important;
  font-weight: 900;
  text-transform: uppercase;
}

.notif-empty {
  padding: 24px;
  color: #aa7c83;
  text-align: center;
  font-weight: 800;
}

.admin-mini-form .textarea {
  min-height: 84px;
}

@media (max-width: 720px) {
  .profile-hero-card {
    padding: 22px 16px;
  }

  .notif-box {
    top: 84px;
    right: 10px;
    width: calc(100% - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .page-landing .card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 7z premium landing */
.z7-page {
  color: #fff3f4;
  background:
    radial-gradient(circle at 18% 8%, rgba(97, 60, 255, 0.26), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(24, 199, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #080a13 0%, #0b0d19 48%, #070203 100%);
}

.z7-page::before {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
}

.page-landing .z7-header {
  position: sticky;
  top: 20px;
  z-index: 30;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 20px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(9, 11, 23, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(24px);
}

.z7-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
}

.z7-brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #7d5cff, #20d6ff 64%, #a8062d);
  font-size: 15px;
  box-shadow: 0 0 34px rgba(95, 91, 255, 0.44);
}

.z7-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: auto;
}

.page-landing .z7-nav a {
  min-height: auto;
  padding: 0;
  border: 0;
  color: #d8def6;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.page-landing .z7-nav a:hover {
  color: #fff;
  background: transparent;
}

.z7-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.z7-lang,
.z7-login,
.z7-create,
.z7-primary,
.z7-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
  cursor: pointer;
}

.z7-create,
.z7-primary {
  border-color: rgba(107, 89, 255, 0.72);
  background: linear-gradient(135deg, #ff4058, #d83a24);
  box-shadow: 0 18px 46px rgba(75, 85, 255, 0.34);
}

.z7-secondary {
  color: #dce3ff;
}

.z7-hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 112px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 48px;
  padding: 74px 0 52px;
}

.z7-hero__copy {
  max-width: 640px;
}

.z7-pill,
.z7-label {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(40, 231, 175, 0.3);
  border-radius: 999px;
  color: #ff9aa5;
  background: rgba(40, 231, 175, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.z7-pill::before,
.z7-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b90f23;
  box-shadow: 0 0 18px rgba(185, 15, 35, 0.8);
}

.z7-hero h1 {
  max-width: 720px;
  margin-top: 22px;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(46px, 6.7vw, 86px);
  font-weight: 800;
  line-height: 0.98;
}

.z7-hero p {
  max-width: 560px;
  margin-top: 22px;
  color: #c99aa2;
  font-size: 18px;
}

.z7-hero__actions,
.z7-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.z7-social {
  margin-top: 28px;
  color: #9a6e76;
  font-size: 14px;
  font-weight: 800;
}

.z7-social a {
  color: #ffd0d8;
}

.z7-hero__preview {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(122, 92, 255, 0.18), rgba(216, 58, 36, 0.08)),
    #1d0d12;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.5);
}

.z7-hero__preview img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
  opacity: 0.86;
}

.z7-hero__preview::after,
.z7-product-card::after,
.z7-compare > div::after,
.z7-video-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 10, 19, 0.04), rgba(8, 10, 19, 0.72));
}

.z7-hero__preview-fallback,
.z7-product-card__fallback,
.z7-image-fallback {
  display: none;
}

.z7-hero__preview.is-missing-image img,
.z7-product-card.is-missing-image img,
.z7-compare .is-missing-image img {
  display: none;
}

.z7-hero__preview.is-missing-image .z7-hero__preview-fallback,
.z7-product-card.is-missing-image .z7-product-card__fallback,
.z7-compare .is-missing-image .z7-image-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 30px;
  color: #c99aa2;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(216, 58, 36, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(122, 92, 255, 0.18), rgba(255, 76, 141, 0.08));
}

.z7-hero__preview-fallback b {
  display: block;
  color: #fff;
  font-family: var(--font-title);
  font-size: 34px;
}

.z7-preview-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  min-width: 230px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(9, 11, 23, 0.72);
  backdrop-filter: blur(18px);
}

.z7-preview-card span,
.z7-product-card__content span {
  color: #ff9aa5;
  font-size: 13px;
  font-weight: 900;
}

.z7-preview-card b,
.z7-product-card__content h3 {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 42px;
  line-height: 1;
}

.z7-preview-card small,
.z7-product-card__content p {
  display: block;
  margin-top: 8px;
  color: #c99aa2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.z7-section,
.z7-stats,
.z7-duo,
.z7-discord,
.z7-esp,
.z7-media,
.z7-faq,
.z7-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 86px;
}

.z7-advantages {
  display: grid;
  grid-template-columns: 1.42fr 0.8fr 0.8fr;
  gap: 18px;
}

.z7-feature {
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(15, 18, 32, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.z7-feature--wide {
  display: grid;
  grid-template-columns: minmax(230px, 0.95fr) minmax(220px, 0.85fr);
  gap: 34px;
}

.z7-feature--wide > div:first-child {
  padding-right: 24px;
}

.z7-feature h2,
.z7-section__head h2,
.z7-discord h2,
.z7-esp h2,
.z7-media h2,
.z7-faq h2 {
  margin-top: 14px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 38px;
  line-height: 1.08;
}

.z7-feature p,
.z7-section__head p,
.z7-discord p,
.z7-esp p,
.z7-media p {
  margin-top: 12px;
  color: #c99aa2;
}

.z7-tags {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 220px;
}

.z7-tags span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #ffd0d8;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
}

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

.z7-stats div {
  min-height: 134px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.z7-stats b {
  color: #fff;
  font-family: var(--font-title);
  font-size: 52px;
}

.z7-stats span {
  color: #a77b84;
  font-weight: 800;
}

.z7-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}

.z7-section__head h2,
.z7-esp h2,
.z7-faq h2 {
  margin: 0;
  font-size: 44px;
}

.z7-section__head p {
  grid-column: 1;
  max-width: 560px;
}

.z7-section__head a {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #ffd0d8;
  font-weight: 900;
}

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

.z7-product-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 18%, rgba(122, 92, 255, 0.28), transparent 46%),
    #1d0d12;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.z7-product-card img,
.z7-product-card video {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(1.12) contrast(1.08);
}

.z7-product-card__content {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 2;
}

.z7-product-card__content b {
  display: block;
  margin-top: 28px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 22px;
}

.z7-product-card__content em {
  width: fit-content;
  display: block;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff4058, #d83a24);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

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

.z7-big-link,
.z7-discord,
.z7-media {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(122, 92, 255, 0.2), rgba(216, 58, 36, 0.06)),
    rgba(15, 18, 32, 0.86);
}

.z7-big-link--accent {
  background:
    linear-gradient(135deg, rgba(255, 76, 141, 0.18), rgba(216, 58, 36, 0.08)),
    rgba(15, 18, 32, 0.86);
}

.z7-big-link span {
  color: #c99aa2;
  font-weight: 900;
}

.z7-big-link b {
  display: block;
  max-width: 380px;
  margin-top: 12px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 1.08;
}

.z7-discord {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.z7-discord p {
  max-width: 640px;
}

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

.z7-compare > div,
.z7-video-preview {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: #1d0d12;
}

.z7-compare video,
.z7-compare img,
.z7-video-preview video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
}

.z7-compare > div > span {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 11, 23, 0.72);
  font-weight: 900;
}

.z7-media {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.z7-media ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.z7-media li {
  color: #ffd0d8;
  font-weight: 800;
}

.z7-faq .faq {
  margin-top: 24px;
}

.z7-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #a77b84;
}

.z7-footer b {
  color: #fff;
}

.z7-footer p {
  max-width: 540px;
  margin-top: 8px;
  color: #a77b84;
}

.z7-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

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

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

@media (max-width: 760px) {
  .page-landing .z7-header,
  .z7-header__actions,
  .z7-nav,
  .z7-discord,
  .z7-footer,
  .z7-section__head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .z7-nav {
    gap: 10px;
  }

  .z7-header__actions {
    width: 100%;
  }

  .z7-lang,
  .z7-login,
  .z7-create,
  .z7-primary,
  .z7-secondary {
    width: 100%;
  }

  .z7-hero,
  .z7-section,
  .z7-stats,
  .z7-duo,
  .z7-discord,
  .z7-esp,
  .z7-media,
  .z7-faq,
  .z7-footer {
    width: calc(100% - 28px);
  }

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

  .z7-hero h1 {
    font-size: 42px;
  }

  .z7-products,
  .z7-stats,
  .z7-duo,
  .z7-compare {
    grid-template-columns: 1fr;
  }

  .z7-feature--wide {
    grid-template-columns: 1fr;
  }

  .z7-feature--wide > div:first-child {
    padding-right: 0;
  }

  .z7-section__head a {
    grid-column: auto;
    grid-row: auto;
  }

  .z7-feature h2,
  .z7-section__head h2,
  .z7-discord h2,
  .z7-esp h2,
  .z7-media h2,
  .z7-faq h2 {
    font-size: 30px;
  }
}

/* 7z premium auth and cabinet */
.z7-auth,
.page-app {
  color: #fff3f4;
  background:
    radial-gradient(circle at 14% 0%, rgba(97, 60, 255, 0.24), transparent 34%),
    radial-gradient(circle at 86% 6%, rgba(24, 199, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #080a13 0%, #0b0d19 48%, #070203 100%);
}

.z7-auth::before,
.page-app::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
}

.page-auth.z7-auth {
  min-height: 100vh;
  display: block;
  padding: 20px;
}

.page-auth.z7-auth::after {
  content: '7z Client';
  right: 28px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.035);
  font-size: min(15vw, 180px);
}

.auth-z7-header {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  min-height: 72px;
  margin: 0 auto 28px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(9, 11, 23, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(24px);
}

.page-auth .auth-shell {
  width: min(1180px, 100%);
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: stretch;
}

.page-auth .auth-card,
.page-auth .auth-showcase {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(15, 18, 32, 0.86);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.42);
}

.page-auth .auth-card {
  min-height: 610px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-auth .auth-title {
  margin-top: 18px;
  color: #fff;
  font-size: 44px;
  line-height: 1;
}

.page-auth .auth-subtitle {
  max-width: 420px;
  margin-top: 14px;
  color: #c99aa2;
  font-size: 16px;
}

.page-auth form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.page-auth .input,
.page-auth .textarea,
.page-app .input,
.page-app .textarea {
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.page-auth .input::placeholder,
.page-auth .textarea::placeholder,
.page-app .input::placeholder,
.page-app .textarea::placeholder {
  color: #7580a6;
}

.page-auth .btn,
.page-app .btn {
  border-radius: 14px;
}

.page-auth .btn--primary,
.page-app .btn--primary {
  border-color: rgba(107, 89, 255, 0.72);
  background: linear-gradient(135deg, #ff4058, #d83a24);
  box-shadow: 0 18px 46px rgba(75, 85, 255, 0.34);
}

.page-auth .btn--ghost,
.page-app .btn--ghost {
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffd0d8;
  background: rgba(255, 255, 255, 0.055);
}

.page-auth .switch {
  width: fit-content;
  margin: 18px auto 0;
  color: #ff9a7a;
  font-weight: 900;
}

.page-auth .auth-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.page-auth .auth-feature-list .item {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.page-auth .footer {
  margin-top: 26px;
  color: #9a6e76;
}

.page-auth .auth-showcase {
  position: relative;
  overflow: hidden;
  padding: 34px;
  min-height: 610px;
  color: #fff;
}

.page-auth .auth-showcase img,
.page-auth .auth-showcase video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-auth .auth-showcase img {
  z-index: 0;
  opacity: 0.78;
}

.page-auth .auth-showcase video {
  z-index: 0;
  opacity: 0.38;
}

.page-auth .auth-showcase.is-missing-image img {
  display: none;
}

.page-auth .auth-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 10, 19, 0.08), rgba(8, 10, 19, 0.88)),
    radial-gradient(circle at 68% 30%, rgba(216, 58, 36, 0.18), transparent 38%);
}

.page-auth .auth-showcase__content {
  position: relative;
  z-index: 2;
}

.page-auth .auth-showcase h1 {
  max-width: 600px;
  color: #fff;
  font-size: 56px;
  line-height: 0.98;
}

.page-auth .auth-showcase p {
  max-width: 520px;
  color: #c0c9e8;
}

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

.page-auth .auth-showcase__stats div {
  min-height: 92px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(9, 11, 23, 0.68);
  backdrop-filter: blur(16px);
}

.page-app .sidebar {
  top: 20px;
  left: 20px;
  bottom: 20px;
  width: 292px;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(9, 11, 23, 0.82);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px);
}

.page-app .sidebar h3 {
  color: #9a6e76;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-brand {
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.sidebar-brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff4058, #d83a24 64%, #a8062d);
  box-shadow: 0 0 34px rgba(95, 91, 255, 0.44);
}

.sidebar-brand__text b {
  color: #fff;
  font-size: 16px;
}

.sidebar-brand__text span {
  color: #7f8aaf;
}

.page-app .sidebar > a {
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #c99aa2;
}

.page-app .sidebar > a:hover,
.page-app .sidebar > a.is-active {
  color: #fff;
  border-color: rgba(216, 58, 36, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

.page-app .sidebar > a.is-active {
  color: #ff9a7a;
  background: rgba(216, 58, 36, 0.1);
}

.page-app .topbar {
  top: 20px;
  right: 20px;
  left: 332px;
  min-height: 72px;
  padding: 12px 14px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(9, 11, 23, 0.74);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
}

.page-app .topbar__title {
  color: #fff;
  font-size: 22px;
}

.page-app .main {
  margin-left: 332px;
  padding: 112px 20px 44px 0;
}

.page-app .container {
  width: min(1160px, 100%);
}

.page-app .card,
.page-app .item,
.page-app .surface,
.page-app .notif-box,
.page-app .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(15, 18, 32, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.page-app .app-hero {
  min-height: 310px;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 18%, rgba(216, 58, 36, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(122, 92, 255, 0.22), rgba(255, 76, 141, 0.08)),
    rgba(15, 18, 32, 0.88);
}

.page-app .app-hero::after {
  content: '7z';
  right: 28px;
  bottom: -34px;
  color: rgba(255, 255, 255, 0.04);
  font-size: 178px;
}

.page-app .app-hero__content h2 {
  color: #fff;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.98;
}

.page-app .app-hero__content p {
  color: #c99aa2;
}

.page-app .app-eyebrow {
  border-color: rgba(40, 231, 175, 0.3);
  color: #ff9aa5;
  background: rgba(40, 231, 175, 0.08);
}

.page-app .app-eyebrow::before {
  background: #b90f23;
  box-shadow: 0 0 18px rgba(185, 15, 35, 0.8);
}

.page-app .signal-card,
.page-app .status-line,
.page-app .license-row,
.page-app .news-empty,
.page-app .ticket-list__item {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.page-app .signal-card b,
.page-app .status-line b,
.page-app .license-row b,
.page-app .item b {
  color: #fff;
}

.page-app .signal-card span,
.page-app .status-line span,
.page-app .license-row span,
.page-app .muted,
.page-app .muted2 {
  color: #c99aa2;
}

.page-app .signal-meter {
  background: rgba(255, 255, 255, 0.08);
}

.page-app .signal-meter::before {
  background: linear-gradient(90deg, #b90f23, #d83a24, #ff4058);
}

.page-app .app-kpis .item {
  min-height: 112px;
  padding: 20px;
  border-radius: 24px;
}

.page-app .app-kpis b {
  color: #fff;
  font-size: 34px;
}

.page-app .badge {
  border-color: rgba(216, 58, 36, 0.28);
  color: #ff9a7a;
  background: rgba(216, 58, 36, 0.1);
}

.page-app .badge--success {
  border-color: rgba(185, 15, 35, 0.34);
  color: #ff9aa5;
  background: rgba(185, 15, 35, 0.1);
}

.page-app .badge--warning {
  border-color: rgba(255, 200, 87, 0.36);
  color: #ffd479;
  background: rgba(255, 200, 87, 0.1);
}

.page-app .badge--danger {
  border-color: rgba(255, 77, 95, 0.34);
  color: #ff8b99;
  background: rgba(255, 77, 95, 0.1);
}

.page-app .flash {
  border-color: rgba(255, 200, 87, 0.22);
  border-radius: 18px;
  color: #ffe0a3;
  background: rgba(255, 200, 87, 0.08);
}

.page-app .product-plan {
  min-height: 390px;
  isolation: isolate;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 12%, rgba(122, 92, 255, 0.26), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #1d0d12;
}

.page-app .product-plan::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background:
    linear-gradient(180deg, transparent, rgba(8, 10, 19, 0.86)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 12px);
}

.page-app .product-plan:nth-child(2)::before {
  opacity: 0.46;
  background:
    linear-gradient(180deg, rgba(8, 10, 19, 0.08), rgba(8, 10, 19, 0.88)),
    url("../screen1.png") center / cover;
}

.page-app .product-plan h3 {
  color: #fff;
  font-size: 30px;
}

.page-app .product-plan__price strong {
  color: #fff;
  font-size: 40px;
}

.page-app .features li {
  color: #c0c9e8;
}

.page-app .features li::before {
  background: linear-gradient(135deg, #d83a24, #ff4058);
  box-shadow: 0 0 16px rgba(216, 58, 36, 0.42);
}

.page-app .chat {
  padding: 8px;
}

.page-app .msg {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: #eaf0ff;
  background: rgba(255, 255, 255, 0.06);
}

.page-app .msg.user {
  border-color: rgba(216, 58, 36, 0.22);
  background: rgba(216, 58, 36, 0.09);
}

.page-app .msg.support,
.page-app .msg.bot {
  border-color: rgba(117, 88, 255, 0.24);
  background: rgba(117, 88, 255, 0.1);
}

.page-app .profile-avatar {
  border-radius: 20px;
  background: linear-gradient(135deg, #ff4058, #d83a24 64%, #a8062d);
  box-shadow: 0 0 34px rgba(95, 91, 255, 0.34);
}

.page-admin .sidebar .item {
  border-radius: 18px;
}

.page-admin .sidebar .item a {
  color: #ffd0d8;
}

body.theme-dark .page-app .sidebar,
body.theme-dark .page-app .topbar,
body.theme-dark .page-app .card,
body.theme-dark .page-app .item,
body.theme-dark .page-auth .auth-card,
body.theme-dark .page-auth .auth-showcase {
  background-color: transparent;
}

body.theme-dark .page-app .btn:not(.btn--primary):not(.btn--danger),
body.theme-dark .page-auth .btn:not(.btn--primary):not(.btn--danger),
body.theme-dark .page-app .input,
body.theme-dark .page-auth .input,
body.theme-dark .page-app .textarea,
body.theme-dark .page-auth .textarea {
  color: #fff3f4;
  background: rgba(255, 255, 255, 0.055);
}

@media (max-width: 1080px) {
  .page-auth .auth-shell {
    grid-template-columns: 1fr;
  }

  .page-auth .auth-showcase {
    min-height: 460px;
  }
}

@media (max-width: 900px) {
  .page-app .sidebar,
  .page-admin .sidebar {
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    border-radius: 0 26px 26px 0;
  }

  .page-app .topbar,
  .page-admin .topbar {
    left: 14px;
    right: 14px;
  }

  .page-app .main,
  .page-admin .main {
    margin-left: 0;
    padding: 106px 14px 34px;
  }
}

@media (max-width: 640px) {
  .page-auth.z7-auth {
    padding: 14px;
  }

  .auth-z7-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-auth .auth-card {
    min-height: auto;
    padding: 24px;
  }

  .page-auth .auth-title {
    font-size: 34px;
  }

  .page-auth .auth-showcase h1 {
    font-size: 34px;
  }

  .page-app .app-hero {
    padding: 24px;
  }
}

/* 7z official dark shell */
.z7-page,
.z7-auth,
.page-app {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 220px),
    linear-gradient(180deg, #12151c 0%, #0b0d12 48%, #07080c 100%);
}

.z7-page::before,
.z7-auth::before,
.page-app::before {
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
}

.page-landing .z7-header,
.auth-z7-header {
  border-radius: 16px;
  border-color: rgba(62, 71, 96, 0.54);
  background: rgba(14, 16, 23, 0.86);
}

.z7-brand__mark,
.sidebar-brand__mark,
.page-app .profile-avatar {
  border-radius: 11px;
  background: linear-gradient(135deg, #d0142c, #e53946 58%, #ff6242);
  box-shadow: 0 0 28px rgba(255, 51, 78, 0.34);
}

.z7-pill,
.z7-label,
.page-app .app-eyebrow {
  border-color: rgba(255, 51, 78, 0.38);
  color: #fff0f2;
  background: rgba(255, 51, 78, 0.14);
}

.z7-pill::before,
.z7-label::before,
.page-app .app-eyebrow::before {
  background: #d0142c;
  box-shadow: 0 0 18px rgba(255, 51, 78, 0.76);
}

.z7-hero__preview,
.z7-feature,
.z7-product-card,
.z7-big-link,
.z7-discord,
.z7-media,
.z7-compare > div,
.z7-video-preview,
.page-auth .auth-card,
.page-auth .auth-showcase {
  border-radius: 18px;
  border-color: rgba(62, 71, 96, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(11, 13, 19, 0.88);
}

.page-app .card,
.page-app .item,
.page-app .surface,
.page-app .notif-box,
.page-app .faq-item,
.page-app .signal-card,
.page-app .status-line,
.page-app .license-row,
.page-app .news-empty,
.page-app .ticket-list__item {
  border-radius: 16px;
  border-color: rgba(62, 71, 96, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.025)),
    rgba(10, 12, 18, 0.88);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.page-app .app-hero {
  min-height: 270px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 51, 78, 0.16), rgba(32, 209, 255, 0.07)),
    rgba(10, 12, 18, 0.9);
}

.page-app .app-hero::after {
  color: rgba(255, 51, 78, 0.06);
  font-size: 150px;
}

.page-app .btn--primary,
.page-auth .btn--primary,
.z7-create,
.z7-primary {
  border-color: rgba(255, 51, 78, 0.76);
  background: linear-gradient(135deg, #d0142c, #e53946 64%, #ff6242);
  box-shadow: 0 16px 36px rgba(255, 51, 78, 0.28);
}

.page-app .btn--ghost,
.page-auth .btn--ghost,
.z7-lang,
.z7-login,
.z7-secondary {
  border-color: rgba(62, 71, 96, 0.54);
  background: rgba(255, 255, 255, 0.055);
}

.z7-hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  gap: 36px;
}

.z7-hero h1 {
  max-width: 600px;
  font-size: clamp(42px, 5.1vw, 68px);
  line-height: 1.04;
}

.z7-hero p {
  max-width: 610px;
}

@media (min-width: 901px) {
  .page-app .sidebar {
    position: fixed;
    top: 26px;
    left: 56px;
    right: 310px;
    bottom: auto;
    z-index: 60;
    width: auto;
    min-height: 68px;
    max-width: none;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 18px;
    border-color: rgba(62, 71, 96, 0.54);
    background: rgba(14, 16, 23, 0.86);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(22px);
  }

  .page-app .sidebar::-webkit-scrollbar {
    display: none;
  }

  .page-app .sidebar h3 {
    display: none;
  }

  .page-app .sidebar-brand {
    flex: 0 0 auto;
    min-width: 212px;
    margin-right: 14px;
    padding: 0 12px 0 0;
    grid-template-columns: 40px minmax(0, 1fr);
    border: 0;
    background: transparent;
  }

  .page-app .sidebar-brand__mark {
    width: 40px;
    height: 40px;
  }

  .page-app .sidebar-brand__text span {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-app .sidebar > a {
    flex: 0 0 auto;
    min-height: 42px;
    margin: 0;
    padding: 10px 15px;
    border: 0;
    border-radius: 999px;
    color: #a77d84;
    background: transparent;
  }

  .page-app .sidebar > a:hover,
  .page-app .sidebar > a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
  }

  .page-app .sidebar > a[href$="ILoader.rar"] {
    color: #fff;
    background: rgba(255, 51, 78, 0.2);
  }

  .page-app .sidebar > a[href$="logout.php"] {
    color: #a0a7b8;
  }

  .page-admin .sidebar .item {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-admin .sidebar .item a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 999px;
    color: #ffd0d8;
    background: rgba(255, 255, 255, 0.055);
  }

  .page-app .topbar {
    position: fixed;
    top: 26px;
    right: 56px;
    left: auto;
    z-index: 70;
    width: 238px;
    min-height: 68px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .page-app .topbar__left {
    display: none;
  }

  .page-app .topbar__right {
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }

  .page-app .topbar__right .btn,
  .page-app .topbar__right .badge {
    max-width: 160px;
    overflow: hidden;
    border-radius: 999px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-app .notif {
    min-height: 42px;
    border-radius: 999px;
    border-color: rgba(62, 71, 96, 0.54);
    color: #ffd0d8;
    background: rgba(8, 10, 15, 0.82);
  }

  .page-app .notif-box {
    top: 104px;
    right: 56px;
  }

  .page-app .main,
  .page-admin .main {
    margin-left: 0;
    padding: 128px 56px 52px;
  }

  .page-app .container {
    width: min(1130px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .page-app .sidebar,
  .page-admin .sidebar {
    position: fixed;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: auto;
    z-index: 60;
    width: auto;
    max-height: 174px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    overflow: auto;
    border-radius: 18px;
    border-color: rgba(62, 71, 96, 0.54);
    background: rgba(14, 16, 23, 0.9);
    transform: none;
  }

  .page-app .sidebar h3,
  .page-admin .sidebar h3,
  .page-app .topbar__left,
  .page-admin .topbar__left {
    display: none;
  }

  .page-app .sidebar-brand,
  .page-admin .sidebar-brand {
    width: 100%;
    min-width: 0;
    margin: 0 52px 2px 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .page-app .sidebar > a,
  .page-admin .sidebar > a {
    min-height: 36px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 13px;
  }

  .page-admin .sidebar .item {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-admin .sidebar .item a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    color: #ffd0d8;
    background: rgba(255, 255, 255, 0.055);
    font-size: 13px;
  }

  .page-app .topbar,
  .page-admin .topbar {
    position: fixed;
    top: 20px;
    right: 24px;
    left: auto;
    z-index: 70;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }


  .page-app .notif {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(8, 10, 15, 0.82);
  }

  .page-app .main,
  .page-admin .main {
    margin-left: 0;
    padding: 212px 14px 34px;
  }

  .page-app .app-hero,
  .admin-grid,
  .dashboard-grid,
  .product-workspace,
  .profile-workspace,
  .ticket-desk,
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .news-list--vanish {
    grid-template-columns: 1fr;
  }

  .news-card--featured {
    grid-row: auto;
    min-height: 260px;
  }
}

/* 7z cabinet screens */
.auth-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-app .theme-toggle {
  display: none !important;
}

.page-dashboard .app-hero,
.page-dashboard .app-kpis,
.page-dashboard .dashboard-grid,
.page-profile .app-hero,
.page-profile .app-kpis,
.page-profile .profile-workspace,
.page-products .app-hero,
.page-products .app-kpis,
.page-products .product-plans,
.page-products .product-workspace,
.page-tickets .app-hero,
.page-tickets .app-kpis,
.page-tickets .ticket-desk,
.page-tickets .ticket-thread-card {
  display: none;
}

.page-dashboard .container,
.page-profile .container,
.page-products .container,
.page-tickets .container,
.page-docs .container {
  width: min(1160px, 100%);
}

.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a77d84;
  font-size: 15px;
  font-weight: 800;
}

.app-breadcrumb b {
  color: #fff;
}

.cabinet-profile-head {
  min-height: 164px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.cabinet-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #e53946 58%, #ff6242);
  box-shadow: 0 0 38px rgba(255, 51, 78, 0.42);
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 900;
}

.cabinet-profile-head h2 {
  margin-top: 15px;
  color: #fff;
  font-size: 20px;
}

.cabinet-profile-head p {
  margin-top: 4px;
  color: #677083;
  font-weight: 800;
}

.cabinet-meta {
  width: 100%;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #a97980;
  font-size: 13px;
  font-weight: 700;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(270px, 304px) minmax(360px, 1fr);
  gap: 16px;
  align-items: start;
}

.cabinet-grid--profile {
  grid-template-columns: minmax(300px, 380px) minmax(280px, 320px) minmax(340px, 1fr);
}

.cabinet-left,
.cabinet-right {
  display: grid;
  gap: 16px;
}

.cabinet-tab-panel {
  display: none;
}

.cabinet-tab-panel.is-active {
  display: grid;
  gap: 16px;
}

.cabinet-tabs,
.market-tabs,
.docs-tabs {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 18px;
  background: rgba(8, 10, 15, 0.84);
}

.cabinet-tabs button,
.cabinet-tabs a,
.market-tabs button,
.market-tabs a,
.docs-tabs a {
  min-height: 36px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 13px;
  color: #858da0;
  background: transparent;
  font-weight: 900;
}

.cabinet-tabs .is-active,
.market-tabs .is-active,
.docs-tabs .is-active {
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #e53946);
}

.soft-panel,
.daily-card,
.ref-card,
.ticket-sidebar-card,
.ticket-stage-card,
.market-filter,
.market-owned,
.docs-manager,
.docs-card {
  border: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 20px;
  background: rgba(9, 11, 16, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.soft-panel,
.daily-card,
.ref-card,
.docs-manager,
.docs-card {
  padding: 22px;
}

.soft-panel__title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.soft-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: #8f98ad;
  font-weight: 900;
}

.soft-panel h3,
.daily-card h3,
.ref-card h3,
.docs-card h2,
.docs-manager h3 {
  color: #fff;
  font-size: 18px;
}

.soft-panel p,
.daily-card p,
.ref-card p,
.docs-card p,
.docs-manager p {
  margin-top: 12px;
  color: #a77d84;
  font-size: 14px;
}

.soft-input,
.market-search {
  min-height: 46px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 13px;
  color: #878fa3;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
}

.market-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #f7f8ff;
  background: transparent;
  font: inherit;
}

.market-search input::placeholder {
  color: #878fa3;
}

.soft-button {
  min-height: 38px;
  width: 100%;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  color: #929aaa;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.soft-button--primary {
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #e53946);
}

.daily-card {
  min-height: 452px;
}

.daily-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.daily-note div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-weight: 900;
}

.daily-note div span {
  color: #a97980;
}

.progress-label,
.mini-product p {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #a77d84;
  font-size: 13px;
  font-weight: 800;
}

.soft-progress {
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #111621;
}

.soft-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d0142c, #ff6242);
}

.cabinet-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.balance-card,
.script-card {
  min-height: 120px;
  padding: 18px;
  display: grid;
  align-content: end;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #e53946 64%, #ff6242);
  overflow: hidden;
  position: relative;
}

.script-card {
  background:
    linear-gradient(135deg, rgba(255, 51, 78, 0.88), rgba(64, 84, 244, 0.68)),
    url("../screen1.png") center / cover;
}

.balance-card span,
.script-card span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.balance-card b,
.script-card b {
  margin-top: 6px;
  color: #fff;
  font-size: 20px;
}

.product-status-stack {
  display: grid;
  gap: 16px;
}

.mini-product {
  padding: 16px;
  border: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 18px;
  background: rgba(9, 11, 16, 0.88);
}

.mini-product > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-product b {
  color: #fff;
}

.mini-product p b.muted {
  color: #a97980;
}

.mini-product > a,
.ref-card a,
.market-card-bottom a {
  color: #ff7a8a;
  font-weight: 900;
}

.mini-logo {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.mini-logo--blue { color: #6680ff; }
.mini-logo--green { color: #28dc73; }
.mini-logo--yellow { color: #ffc64d; }
.ok { color: #31d767 !important; }
.danger { color: #ff4b58 !important; }

.ref-card {
  min-height: 112px;
}

.compact-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ticket-screen,
.docs-screen {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  min-height: 706px;
}

.ticket-sidebar-card,
.ticket-stage-card {
  padding: 13px;
}

.ticket-create-line {
  display: grid;
  grid-template-columns: 1fr 32px;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(45, 52, 68, 0.92);
}

.ticket-create-line a,
.ticket-create-line span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #8d95a8;
  background: rgba(255, 255, 255, 0.075);
  font-weight: 900;
}

.ticket-mini-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.ticket-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ticket-mini-item {
  padding: 13px;
  display: grid;
  gap: 5px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.ticket-mini-item span,
.ticket-mini-item em {
  color: #a97980;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.empty-compact {
  min-height: 102px;
  margin-top: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 14px;
  color: #8d95a8;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.empty-compact div {
  font-size: 28px;
}

.ticket-stage-card {
  min-height: 706px;
  display: grid;
}

.empty-stage {
  place-self: center;
  color: #f3f5fb;
  font-size: 16px;
  font-weight: 900;
}

.market-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
}

.app-market-head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #a97980;
  font-size: 12px;
  font-weight: 800;
}

.market-filter {
  padding: 18px;
  align-self: start;
}

.seller-strip {
  min-height: 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #e53946 64%, #ff6242);
}

.seller-strip a {
  color: #fff;
  font-weight: 900;
}

.market-tabs,
.market-search,
.market-segment,
.market-two,
.market-toggle,
.market-stars,
.market-activate {
  margin-top: 12px;
}

.market-segment,
.market-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.market-segment button,
.market-two div,
.market-two button {
  min-height: 42px;
  border: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 16px;
  color: #a97980;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
  cursor: pointer;
}

.market-segment .is-active,
.market-two .is-active {
  color: #fff;
  background: #d0142c;
}

.market-two div,
.market-two button {
  display: grid;
  place-items: center;
}

.market-toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  position: relative;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.market-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.market-toggle span {
  width: 42px;
  height: 24px;
  position: relative;
  border-radius: 999px;
  background: #202838;
  transition: background 0.16s ease;
}

.market-toggle span::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: #a97980;
  transition: transform 0.16s ease, background 0.16s ease;
}

.market-toggle input:checked + span {
  background: #d0142c;
}

.market-toggle input:checked + span::after {
  transform: translateX(16px);
  background: #fff;
}

.market-stars {
  display: flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 28px;
}

.market-stars button {
  border: 0;
  color: rgba(255, 255, 255, 0.08);
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.market-stars button.is-active {
  color: #ffc64d;
}

.market-activate {
  display: grid;
  gap: 10px;
}

.market-content {
  display: grid;
  gap: 16px;
}

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

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

.market-product-card {
  min-height: 224px;
  position: relative;
  overflow: hidden;
  padding: 26px 18px 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(9, 11, 16, 0.9);
}

.market-product-card[hidden] {
  display: none;
}

.market-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 16px;
  color: #a97980;
  background: rgba(9, 11, 16, 0.88);
  font-weight: 900;
}

.market-empty[hidden] {
  display: none;
}

.market-product-card--featured {
  border-color: #d0142c;
  background:
    linear-gradient(180deg, rgba(255, 51, 78, 0.16), rgba(9, 11, 16, 0.92)),
    url("../screen1.png") center / cover;
}

.market-product-card--gold {
  border-color: rgba(255, 198, 77, 0.75);
  background:
    linear-gradient(180deg, rgba(255, 198, 77, 0.15), rgba(9, 11, 16, 0.94)),
    rgba(9, 11, 16, 0.9);
}

.market-product-card--image {
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.16), rgba(8, 10, 15, 0.94)),
    url("../screen1.png") center / cover;
}

.market-ribbon {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 0 0 12px 12px;
  color: #fff;
  background: #d0142c;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.market-product-card--gold .market-ribbon {
  background: #d9a832;
}

.market-card-meta {
  color: #a97980;
  font-size: 12px;
  font-weight: 800;
}

.market-product-card h3 {
  margin-top: 18px;
  color: #fff;
  font-size: 18px;
}

.market-product-card p {
  margin-top: 10px;
  color: #ad858a;
  font-size: 13px;
}

.market-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.market-tags span {
  padding: 3px 7px;
  border: 1px solid rgba(75, 85, 105, 0.72);
  border-radius: 6px;
  color: #ad858a;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 800;
}

.market-card-bottom {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #a97980;
  border-top: 1px solid rgba(45, 52, 68, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.market-card-bottom b {
  color: #fff;
}

.market-owned {
  padding: 18px;
}

.docs-screen {
  grid-template-columns: 320px minmax(0, 1fr);
}

.docs-manager {
  align-self: start;
}

.docs-nav-pill {
  min-height: 40px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 13px;
  color: #a97980;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.docs-nav-pill.is-active {
  color: #fff;
  background: #d0142c;
}

.docs-main {
  display: grid;
  gap: 14px;
}

.docs-card {
  min-height: 190px;
}

.docs-kicker {
  color: #ff7a8a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.docs-card h2 {
  margin-top: 8px;
  font-size: 26px;
}

.docs-steps,
.docs-product-map,
.docs-faq-list,
.docs-error-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.docs-steps div,
.docs-product-map div,
.docs-faq-list div,
.docs-error-list div,
.docs-callout {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  color: #ad858a;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
}

.docs-steps b,
.docs-product-map b {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #d0142c;
}

.docs-faq-list div {
  display: grid;
  align-items: start;
}

.docs-faq-list b {
  color: #fff;
}

.docs-error-list div {
  display: grid;
  align-items: start;
}

.docs-error-list b {
  color: #fff;
}

.docs-error-list code {
  padding: 2px 7px;
  border: 1px solid rgba(255, 51, 78, 0.26);
  border-radius: 8px;
  color: #fff3f4;
  background: rgba(255, 51, 78, 0.14);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.docs-callout a {
  color: #fff3f4;
  font-weight: 900;
}

.forum-user-card {
    width: 180px;
    background: #1f1f2e;
    border-radius: 12px;
    padding: 12px;
    margin-right: 16px;
    text-align: center;
    display: inline-block;
    vertical-align: top;
}

.forum-user-card__avatar {
    position: relative;
}

.forum-user-card__avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.forum-user-role {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #7b5fff;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

.forum-user-card__info b {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.forum-user-card__info p {
    margin: 2px 0;
    font-size: 12px;
    color: #aaa;
}

.page-forum .container {
  width: min(1340px, calc(100% - 44px));
}

.forum-hero,
.forum-sidebar-card,
.forum-right-card,
.forum-topic-card,
.forum-board,
.forum-category-link,
.forum-board-row,
.forum-topic-link,
.forum-post {
  border: 1px solid rgba(45, 52, 68, 0.92);
  background: rgba(9, 11, 16, 0.88);
}

.forum-hero {
  min-height: 168px;
  padding: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  border-radius: 20px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.forum-hero h2 {
  margin-top: 10px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.forum-hero p {
  max-width: 650px;
  margin-top: 12px;
  color: #ad858a;
  font-weight: 800;
  line-height: 1.55;
}

.forum-hero__stats {
  min-width: 230px;
  display: grid;
  gap: 8px;
}

.forum-hero__stats span {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 12px;
  color: #fff0f2;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 900;
}

.forum-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(260px, 300px);
  gap: 16px;
  align-items: start;
}

.page-forum-topic .forum-layout {
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
}

.page-forum-topic .forum-right-card {
  grid-column: 1 / -1;
}

.forum-main,
.forum-sidebar-card,
.forum-right-card,
.forum-board,
.forum-topic-card,
.forum-category-link,
.forum-board-row,
.forum-topic-link,
.forum-post,
.forum-post__body,
.forum-side-list a {
  min-width: 0;
}

.forum-sidebar-card,
.forum-right-card,
.forum-board,
.forum-topic-card {
  border-radius: 20px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.forum-sidebar-card,
.forum-right-card,
.forum-board {
  padding: 18px;
}

.forum-sidebar-card h3,
.forum-right-card h3,
.forum-board h3,
.forum-topic-card h3 {
  color: #fff;
  font-size: 18px;
}

.forum-category-list,
.forum-topic-list,
.forum-post-list,
.forum-side-list,
.forum-board-list,
.forum-main {
  display: grid;
  gap: 12px;
}

.forum-category-list,
.forum-topic-list,
.forum-post-list,
.forum-side-list,
.forum-board-list {
  margin-top: 14px;
}

.forum-breadcrumbs,
.forum-filter-tabs,
.forum-pagination,
.forum-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.forum-breadcrumbs {
  color: #a97980;
  font-size: 13px;
  font-weight: 900;
}

.forum-breadcrumbs a,
.forum-breadcrumbs b {
  color: #e8ecff;
}

.forum-toolbar {
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 18px;
  background: rgba(9, 11, 16, 0.88);
}

.forum-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.forum-filter-tabs a,
.forum-pagination a,
.forum-pagination span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 999px;
  color: #ad858a;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 900;
}

.forum-filter-tabs a.is-active,
.forum-pagination a:hover {
  border-color: rgba(255, 51, 78, 0.72);
  color: #fff;
  background: rgba(255, 51, 78, 0.18);
}

.forum-category-link,
.forum-board-row,
.forum-topic-link,
.forum-post {
  border-radius: 15px;
}

.forum-category-link,
.forum-board-row,
.forum-topic-link {
  min-height: 68px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
}

.forum-category-link {
  display: grid;
  justify-content: stretch;
}

.forum-category-link:hover,
.forum-category-link.is-active,
.forum-board-row:hover,
.forum-topic-link:hover {
  border-color: rgba(255, 51, 78, 0.72);
  background: rgba(255, 51, 78, 0.14);
}

.forum-category-link span,
.forum-topic-link span,
.forum-topic-head p,
.forum-post__meta {
  color: #a97980;
  font-size: 13px;
  font-weight: 800;
}

.forum-board-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 64px minmax(170px, 0.55fr);
  align-items: center;
}

.forum-board-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #e53946);
  font-weight: 1000;
}

.forum-board-row b,
.forum-side-list b {
  color: #fff;
  overflow-wrap: anywhere;
}

.forum-category-link b {
  overflow-wrap: anywhere;
}

.forum-board-row span,
.forum-board-last span,
.forum-side-list span {
  display: block;
  margin-top: 4px;
  color: #a97980;
  font-size: 12px;
  font-weight: 800;
}

.forum-board-stats {
  display: grid;
  justify-items: center;
}

.forum-board-stats b {
  font-size: 18px;
}

.forum-board-last {
  min-width: 0;
}

.forum-board-last b,
.forum-side-list b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.forum-side-list a {
  min-height: 58px;
  display: block;
  padding: 12px;
  border: 1px solid rgba(45, 52, 68, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.forum-topic-card {
  padding: 20px;
}

.forum-topic-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.forum-topic-head h3 {
  margin-top: 8px;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.forum-topic-head p {
  margin-top: 8px;
}

.forum-post {
  padding: 16px;
  color: #c5ccdd;
  line-height: 1.6;
}

.forum-post--topic {
  margin-top: 16px;
}

.forum-post p + .forum-file {
  margin-top: 12px;
}

.forum-post__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.forum-post__meta b {
  color: #fff;
}

.forum-file {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 51, 78, 0.34);
  border-radius: 12px;
  color: #fff0f2;
  background: rgba(255, 51, 78, 0.14);
  font-size: 13px;
  font-weight: 900;
}

.forum-file::before {
  content: "↧";
  color: #ff7a8a;
}

.forum-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.forum-form .textarea {
  min-height: 112px;
}

.page-forum .empty-state {
  min-height: 110px;
}

.forum-topic-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.forum-pin-form {
  margin: 0;
}

.forum-pin-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-right: 8px;
  padding: 0 9px;
  border: 1px solid rgba(255, 198, 77, 0.45);
  border-radius: 999px;
  color: #ffd166;
  background: rgba(255, 198, 77, 0.12);
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

.forum-topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 7px;
}

.forum-topic-badges span:not(.forum-pin-badge):not(.forum-lock-badge) {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #c99aa2;
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 900;
}

.forum-lock-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-right: 8px;
  padding: 0 9px;
  border: 1px solid rgba(255, 75, 88, 0.38);
  border-radius: 999px;
  color: #ff8b94;
  background: rgba(255, 75, 88, 0.12);
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

.forum-topic-link.is-pinned {
  border-color: rgba(255, 198, 77, 0.45);
  background:
    linear-gradient(90deg, rgba(255, 198, 77, 0.08), transparent 52%),
    rgba(9, 11, 16, 0.88);
}

.forum-topic-right {
  min-width: 112px;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.forum-topic-link > div:first-child {
  min-width: 0;
}

.forum-topic-link b {
  display: block;
  overflow-wrap: anywhere;
}

.forum-tags {
  margin-top: 8px;
}

.forum-tags span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 51, 78, 0.26);
  border-radius: 999px;
  color: #c99aa2;
  background: rgba(255, 51, 78, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.forum-post {
  min-height: 244px;
  padding: 0;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  color: #c5ccdd;
}

.forum-author-card {
  min-height: 100%;
  padding: 16px 14px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  border-right: 1px solid rgba(45, 52, 68, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(15, 18, 27, 0.94);
  text-align: center;
}

.forum-author-card__name {
  max-width: 100%;
  overflow: hidden;
  color: #f7f8ff;
  font-size: 16px;
  font-weight: 1000;
  text-overflow: ellipsis;
}

.forum-author-card__role {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #d8def1;
  background: rgba(255, 255, 255, 0.075);
  font-size: 12px;
  font-weight: 900;
}

.forum-author-card__role--moderator {
  color: #cce8ff;
  background: rgba(32, 209, 255, 0.14);
}

.forum-author-card__role--admin {
  color: #fff0bd;
  background: rgba(255, 198, 77, 0.16);
}

.forum-author-card__avatar {
  width: 118px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 51, 78, 0.26);
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 42% 25%, rgba(255, 51, 78, 0.46), transparent 35%),
    linear-gradient(135deg, #161b27, #0b0e15);
  box-shadow: inset 0 0 40px rgba(255, 51, 78, 0.08);
  font-size: 54px;
  font-weight: 1000;
}

.forum-author-card__rank {
  width: 100%;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 1000;
}

.forum-author-card__stats {
  width: 100%;
  display: grid;
  gap: 6px;
  margin: 0;
}

.forum-author-card__stats div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #ad858a;
  font-size: 12px;
  font-weight: 800;
}

.forum-author-card__stats dt,
.forum-author-card__stats dd {
  margin: 0;
}

.forum-author-card__stats dd {
  color: #e8ecff;
  font-weight: 900;
}

.forum-post__body {
  min-width: 0;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.forum-post__body > p {
  margin: 0;
  color: #d6dbea;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.forum-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(45, 52, 68, 0.75);
}

.forum-reactions form {
  margin: 0;
}

.forum-reaction-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 999px;
  color: #ad858a;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.forum-reaction-btn b {
  color: #fff3f4;
}

.forum-reaction-btn:hover,
.forum-reaction-btn.is-active {
  border-color: rgba(255, 51, 78, 0.72);
  color: #fff;
  background: rgba(255, 51, 78, 0.18);
}

.forum-manage {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(45, 52, 68, 0.75);
}

.forum-manage summary {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: #c99aa2;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.forum-manage[open] summary {
  color: #fff;
  background: rgba(255, 51, 78, 0.16);
}

.forum-inline-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.legal-main {
  width: min(980px, calc(100% - 40px));
  margin: 54px auto 90px;
}

.legal-shell {
  padding: 34px;
  border: 1px solid rgba(62, 71, 96, 0.54);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(11, 13, 19, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.legal-kicker {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 51, 78, 0.38);
  border-radius: 999px;
  color: #fff0f2;
  background: rgba(255, 51, 78, 0.14);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-shell h1 {
  margin-top: 18px;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.legal-shell > p {
  max-width: 720px;
  margin-top: 14px;
  color: #c99aa2;
  font-size: 16px;
}

.legal-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.legal-list section {
  padding: 18px;
  border: 1px solid rgba(45, 52, 68, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.legal-list h2 {
  color: #fff;
  font-size: 19px;
}

.legal-list p,
.legal-list li {
  margin-top: 9px;
  color: #ad858a;
  line-height: 1.65;
}

.legal-list ul {
  margin: 10px 0 0 18px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Auth screen in compact dark product style */
body.page-auth.z7-auth {
  min-height: 100vh;
  padding: 0;
  display: block;
  overflow-x: hidden;
  color: #f7f8ff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 51, 78, 0.08), transparent 30%),
    linear-gradient(180deg, #101219 0%, #080a0f 52%, #0d0507 100%),
    #0d0507;
}

body.page-auth.z7-auth::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.82), rgba(5, 6, 10, 0.28) 48%, rgba(5, 6, 10, 0.82)),
    linear-gradient(180deg, rgba(5, 6, 10, 0.22), rgba(5, 6, 10, 0.92)),
    rgba(5, 6, 10, 0.42);
  backdrop-filter: blur(3px);
}

body.page-auth.z7-auth::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: 0;
  height: 42vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #0d0507 80%);
}

.auth-v-header {
  position: relative;
  z-index: 2;
  width: min(1210px, calc(100% - 42px));
  min-height: 64px;
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  align-items: center;
  gap: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-v-brand,
.auth-v-actions,
.auth-v-nav,
.auth-v-mode {
  display: flex;
  align-items: center;
}

.auth-v-brand {
  gap: 9px;
  color: #fff;
  font-weight: 900;
}

.auth-v-brand__mark,
.auth-v-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px 12px 12px 4px;
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #e53946);
  box-shadow: 0 0 28px rgba(255, 51, 78, 0.22);
  font-size: 13px;
  font-weight: 1000;
}

.auth-v-brand__name {
  font-size: 18px;
  letter-spacing: 0;
}

.auth-v-product {
  margin-left: 12px;
  color: #ffc33f;
  font-size: 21px;
  line-height: 1;
}

.auth-v-product::after {
  content: "⌄";
  margin-left: 7px;
  color: #8d94a7;
  font-size: 13px;
}

.auth-v-nav {
  justify-content: center;
  gap: 34px;
}

.auth-v-nav a {
  color: #828899;
  font-size: 15px;
  font-weight: 800;
}

.auth-v-nav a:hover {
  color: #f7f8ff;
}

.auth-v-actions {
  justify-content: flex-end;
  gap: 14px;
}

.auth-v-gear {
  color: #a97980;
  font-size: 18px;
}

.auth-v-mode {
  min-height: 36px;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(58, 64, 82, 0.72);
  border-radius: 999px;
  background: rgba(9, 10, 15, 0.68);
}

.auth-v-mode button {
  min-width: 72px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  color: #8e95a7;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.auth-v-mode button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-v-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 78px;
}

.auth-v-card {
  width: min(416px, 100%);
  padding: 26px 24px 25px;
  border: 1px solid rgba(42, 49, 65, 0.76);
  border-radius: 17px;
  background: rgba(8, 10, 15, 0.86);
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.45);
}

.auth-v-card .auth-v-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: transparent;
  background:
    linear-gradient(135deg, rgba(190, 196, 216, 0.98), rgba(119, 126, 149, 0.98));
  box-shadow: none;
  position: relative;
}

.auth-v-card .auth-v-logo::before {
  content: "7";
  color: #0b0d13;
  font-size: 22px;
  font-weight: 1000;
}

.auth-v-card .auth-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.16;
}

.auth-v-card .auth-subtitle {
  max-width: 360px;
  margin: 5px 0 0;
  color: #a7afc7;
  font-size: 14px;
  line-height: 1.55;
}

.auth-v-card .auth-subtitle a,
.auth-v-forgot span,
.auth-v-terms a {
  color: #6377ff;
  font-weight: 900;
}

.auth-v-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.auth-v-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 17px;
  border: 1px solid rgba(28, 33, 45, 0.9);
  border-radius: 13px;
  color: #a77d84;
  background: rgba(22, 25, 34, 0.78);
}

.auth-v-field:focus-within {
  border-color: rgba(255, 51, 78, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 51, 78, 0.1);
}

.auth-v-field span {
  min-width: 24px;
  color: #a77d84;
  font-size: 13px;
  font-weight: 1000;
}

.auth-v-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
}

.auth-v-field input::placeholder {
  color: #9299aa;
}

.auth-v-eye {
  width: 24px;
  height: 24px;
  border: 0;
  color: #838b9f;
  background: transparent;
  cursor: pointer;
}

.auth-v-submit {
  min-height: 47px;
  margin-top: 0;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #5a6dff;
  box-shadow: 0 16px 42px rgba(255, 51, 78, 0.26);
  font-size: 15px;
  font-weight: 1000;
  cursor: pointer;
}

.auth-v-submit:hover {
  background: #6577ff;
}

.auth-v-forgot {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  border: 0;
  color: #a77d84;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-v-card .flash {
  margin-top: 14px;
  border-color: rgba(255, 51, 78, 0.26);
  color: #fff;
  background: rgba(255, 51, 78, 0.14);
}

.auth-v-terms {
  width: min(360px, calc(100% - 24px));
  margin: 18px auto 0;
  color: #858b9b;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .auth-v-header {
    width: min(100% - 28px, 520px);
    grid-template-columns: 1fr auto;
  }

  .auth-v-nav {
    display: none;
  }

  .auth-v-main {
    min-height: calc(100vh - 72px);
    padding-top: 34px;
  }
}

@media (max-width: 560px) {
  .auth-v-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auth-v-actions {
    justify-content: space-between;
  }

  .auth-v-card {
    padding: 22px 16px;
  }

  .auth-v-mode {
    width: 100%;
  }

  .auth-v-mode button {
    flex: 1;
  }
}

@media (max-width: 1080px) {
  .cabinet-grid,
  .cabinet-grid--profile,
  .market-shell,
  .ticket-screen,
  .docs-screen,
  .forum-layout {
    grid-template-columns: 1fr;
  }

  .market-feature-grid,
  .market-grid,
  .cabinet-banners {
    grid-template-columns: 1fr;
  }

  .forum-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .forum-hero__stats {
    width: 100%;
    min-width: 0;
  }

  .forum-right-card {
    order: 3;
  }

  .forum-board-row {
    grid-template-columns: 46px minmax(0, 1fr) 74px;
  }

  .forum-board-last {
    grid-column: 2 / -1;
  }
}

@media (max-width: 640px) {
  .forum-hero,
  .forum-topic-card,
  .forum-sidebar-card {
    padding: 16px;
  }

  .forum-hero h2 {
    font-size: 28px;
  }

  .forum-topic-head,
  .forum-topic-link,
  .forum-post__meta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .forum-author-card {
    border-right: 0;
    border-bottom: 1px solid rgba(45, 52, 68, 0.92);
  }

  .forum-topic-right {
    justify-items: start;
  }

  .forum-search,
  .forum-board-row {
    grid-template-columns: 1fr;
  }

  .forum-board-icon,
  .forum-board-stats,
  .forum-board-last {
    justify-self: start;
    grid-column: auto;
  }
}

/* Final forum fix: keep reading pages wide and posts readable. */
.page-forum .container {
  width: min(1480px, calc(100% - 24px));
}

.page-forum .forum-layout {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 16px;
}

.page-forum .forum-right-card {
  grid-column: 2;
}

.page-forum-topic .forum-layout {
  grid-template-columns: minmax(0, 1fr);
}

.page-forum-topic .forum-sidebar-card,
.page-forum-topic .forum-right-card {
  display: none;
}

.page-forum .forum-hero,
.page-forum .forum-sidebar-card,
.page-forum .forum-right-card,
.page-forum .forum-topic-card,
.page-forum .forum-board,
.page-forum .forum-category-link,
.page-forum .forum-board-row,
.page-forum .forum-topic-link,
.page-forum .forum-post {
  border-color: rgba(73, 85, 116, 0.56);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(8, 11, 18, 0.9);
}

.page-forum .forum-board-row {
  grid-template-columns: 44px minmax(0, 1fr) 58px minmax(160px, 0.52fr);
}

.page-forum .forum-topic-link b,
.page-forum .forum-board-row b,
.page-forum .forum-side-list b,
.page-forum .forum-topic-head h3,
.page-forum .forum-post__body > p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-forum .forum-post {
  min-height: 0;
  display: block;
  overflow: hidden;
}

.page-forum .forum-author-card {
  min-height: 0;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border-right: 0;
  border-bottom: 1px solid rgba(73, 85, 116, 0.5);
  text-align: left;
}

.page-forum .forum-author-card__avatar {
  order: 1;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  font-size: 18px;
}

.page-forum .forum-author-card__name {
  order: 2;
  max-width: min(260px, 100%);
  font-size: 15px;
}

.page-forum .forum-author-card__role,
.page-forum .forum-author-card__rank {
  order: 3;
  width: auto;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
}

.page-forum .forum-author-card__stats {
  order: 4;
  width: auto;
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-forum .forum-post__body {
  padding: 22px 24px 20px;
  display: block;
}

.page-forum .forum-post__body > p {
  max-width: 100%;
  color: #dce3f4;
  font-size: 16px;
  line-height: 1.78;
}

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

  .page-forum .forum-right-card {
    grid-column: auto;
  }

  .page-forum-topic .forum-sidebar-card,
  .page-forum-topic .forum-right-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-forum .container {
    width: 100%;
  }

  .page-forum .forum-author-card__stats {
    width: 100%;
    margin-left: 0;
  }

  .page-forum .forum-post__body {
    padding: 18px 16px;
  }
}

/* Final profile and notification overrides after forum reset. */
.page-app .profile-hero-card {
  min-height: 238px;
  padding: 28px;
  border-color: rgba(69, 82, 116, 0.62);
  border-radius: 22px;
  background-size: cover;
  background-position: center;
}

.page-app img.cabinet-avatar,
.page-app img.profile-avatar,
.page-forum img.forum-author-card__avatar {
  display: block;
  object-fit: cover;
  background: rgba(10, 13, 22, 0.88);
}

.page-app .profile-badge,
.page-forum .profile-badge {
  width: auto;
  min-height: 26px;
  padding: 5px 10px;
  border-color: color-mix(in srgb, var(--badge-color, #d0142c) 58%, rgba(255, 255, 255, 0.22));
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--badge-color, #d0142c) 40%, transparent), rgba(255, 255, 255, 0.05)),
    rgba(7, 10, 17, 0.78);
  font-size: 12px;
}

.page-app .notif-box {
  width: min(460px, calc(100% - 36px));
  border-color: rgba(255, 51, 78, 0.3);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(16, 21, 36, 0.98), rgba(7, 9, 15, 0.98)),
    rgba(8, 10, 15, 0.96);
}

.page-app .notif-item {
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.page-forum .forum-profile-badge {
  order: 3;
}

/* Ultimate forum redesign after all legacy forum rules. */
/* Final app-shell lock: this beats the legacy forum block below. */
.page-forum {
  min-height: 100vh !important;
  background:
    linear-gradient(180deg, rgba(4, 1, 2, 0.74), rgba(4, 1, 2, 0.99) 72%),
    linear-gradient(135deg, #070203 0%, #120408 45%, #230711 100%) !important;
}

.page-forum .sidebar {
  display: block !important;
  position: fixed !important;
  top: 20px !important;
  right: auto !important;
  bottom: 20px !important;
  left: 20px !important;
  width: 292px !important;
  max-width: 292px !important;
}

.page-forum .topbar {
  display: flex !important;
  top: 20px !important;
  right: 20px !important;
  left: 332px !important;
}

.page-forum .main {
  margin-left: 332px !important;
  padding: 112px 20px 44px 0 !important;
}

.page-forum .container {
  width: min(1160px, 100%) !important;
}

.page-forum-index .forum-layout {
  display: block !important;
}

.page-forum-index .forum-sidebar-card,
.page-forum-index .forum-right-card {
  display: none !important;
}

.page-forum-index .forum-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.page-forum-index .forum-board { order: 1 !important; }
.page-forum-index .forum-toolbar { order: 2 !important; }
.page-forum-index .forum-topic-card { order: 3 !important; }

.page-forum .forum-board,
.page-forum .forum-topic-card,
.page-forum .forum-toolbar,
.page-forum .forum-post,
.page-forum .forum-hero {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(15, 18, 32, 0.88) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28) !important;
}

.page-forum .forum-board,
.page-forum .forum-topic-card {
  overflow: hidden !important;
  padding: 0 !important;
}

.page-forum .forum-board .forum-topic-head,
.page-forum .forum-topic-card > .forum-topic-head {
  padding: 16px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.page-forum .forum-board-row {
  min-height: 82px !important;
  display: grid !important;
  grid-template-columns: 46px minmax(220px, 1fr) minmax(260px, 1.1fr) 86px minmax(190px, 0.8fr) !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.page-forum .forum-board-row--subcat {
  grid-template-columns: 46px minmax(0, 1fr) 90px minmax(190px, 0.8fr) !important;
}

.page-forum .forum-topic-link {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) minmax(150px, 180px) !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 13px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.025) !important;
}

.page-forum .forum-board--subcategories .forum-topic-head .app-eyebrow,
.page-forum .forum-board--subcategories .forum-topic-head h3 {
  font-size: 0 !important;
}

.page-forum .forum-board--subcategories .forum-topic-head .app-eyebrow::after {
  content: "подкатегории";
  font-size: 11px !important;
}

.page-forum .forum-board--subcategories .forum-topic-head h3::after {
  content: "Подкатегории";
  font-size: 22px !important;
}

.page-forum .forum-topic-right {
  display: grid !important;
  gap: 2px !important;
  justify-items: end !important;
  color: #c99aa2 !important;
  font-size: 12px !important;
  text-align: right !important;
}

@media (max-width: 980px) {
  .page-forum .main {
    margin-left: 0 !important;
    padding: 96px 16px 34px !important;
  }

  .page-forum .topbar {
    left: 16px !important;
  }

  .page-forum .forum-board-row,
  .page-forum .forum-board-row--subcat,
  .page-forum .forum-topic-link {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .page-forum .forum-board-subcats {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .page-forum .forum-topic-right {
    justify-items: start !important;
    text-align: left !important;
  }
}

.page-forum {
  background: linear-gradient(180deg, rgba(18, 29, 32, 0.98), rgba(13, 22, 24, 0.98)), #211014;
}

.page-forum .sidebar,
.page-forum .topbar {
  display: none;
}

.page-forum .main {
  margin-left: 0;
  padding: 24px 0 52px;
}

.page-forum .container {
  width: min(1120px, calc(100% - 28px));
}

.page-forum .forum-hero {
  min-height: 76px;
  margin-bottom: 14px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-forum .forum-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 12px;
}

.page-forum-topic .forum-layout {
  grid-template-columns: minmax(0, 1fr);
}

.page-forum-index .forum-right-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-forum-topic .forum-sidebar-card,
.page-forum-topic .forum-right-card {
  display: none;
}

.page-forum .forum-sidebar-card,
.page-forum .forum-right-card,
.page-forum .forum-topic-card,
.page-forum .forum-toolbar,
.page-forum .forum-board,
.page-forum .forum-post {
  border: 1px solid #3a1d22;
  border-radius: 4px;
  background: #281318;
  box-shadow: none;
}

.page-forum-topic .forum-post {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  min-height: 220px;
}

.page-forum-topic .forum-author-card {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 12px 10px;
  border-right: 1px solid #3a1d22;
  border-bottom: 0;
  background: #251116;
  text-align: center;
}

.page-forum-topic .forum-author-card__name {
  order: 1;
  max-width: 100%;
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 1000;
}

.page-forum-topic .forum-author-card__role {
  order: 2;
  width: 100%;
  min-height: 22px;
  justify-content: center;
  border-radius: 2px;
  color: #fff;
  background: #ff5a3d;
}

.page-forum-topic .forum-author-card__avatar-link {
  order: 3;
  width: 142px;
  height: 142px;
  flex: 0 0 142px;
  margin-top: 6px;
}

.page-forum-topic .forum-author-card__avatar-link .forum-author-card__avatar,
.page-forum-topic .forum-author-card__avatar {
  width: 142px;
  height: 142px;
  border-radius: 2px;
  font-size: 42px;
}

.page-forum-topic .forum-profile-badge {
  order: 4;
  max-width: 100%;
}

.page-forum-topic .forum-author-card__rank {
  order: 5;
  width: 100%;
  justify-content: center;
  border-radius: 2px;
}

.page-forum-topic .forum-author-card__stats {
  order: 6;
  width: 100%;
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
}

.page-forum-topic .forum-author-card__stats div {
  display: flex;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
}

.page-forum-topic .forum-post__body {
  min-width: 0;
  padding: 18px 18px 16px;
  background: #281318;
}

.page-forum-topic .forum-post__meta {
  margin: -18px -18px 14px;
  padding: 10px 18px;
  border-bottom: 1px solid #3a1d22;
  background: #31171d;
}

.page-forum-topic .forum-post__body > p {
  color: #ffe3e7;
  font-size: 15px;
  line-height: 1.7;
}

.page-forum .forum-topic-link {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 18px;
  padding: 18px;
  border-radius: 3px;
  background: #2a1419;
}

.page-forum .forum-topic-right {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: #aa7c83;
  font-size: 12px;
  font-weight: 850;
}

.page-forum-topic .forum-topic-card .forum-form {
  gap: 0;
  overflow: hidden;
  border: 1px solid #4b242b;
  border-radius: 3px;
  background: #241116;
}

.page-forum-topic .forum-topic-card .forum-form::before {
  content: "Text  B  I  U  Link  List  Quote  Image  Code";
  display: block;
  min-height: 34px;
  padding: 8px 10px;
  border-top: 2px solid #c90f25;
  border-bottom: 1px solid #4b242b;
  color: #c89da4;
  background: #432128;
  font-size: 13px;
  letter-spacing: 0;
}

.page-forum-topic .forum-topic-card .forum-form .textarea {
  min-height: 96px;
  border: 0;
  border-radius: 0;
  background: #241116;
}

.page-forum-topic .forum-topic-card .forum-form .btn {
  width: auto;
  justify-self: end;
  margin: 10px;
}

@media (max-width: 900px) {
  .page-forum .forum-layout,
  .page-forum-index .forum-right-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .page-forum-topic .forum-post,
  .page-forum .forum-topic-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-forum-topic .forum-author-card {
    border-right: 0;
    border-bottom: 1px solid #3a1d22;
  }

  .page-forum .forum-topic-right {
    justify-items: start;
  }
}

/* Forum parity override, intentionally last. */
@media (min-width: 901px) {
  .page-forum .sidebar {
    position: fixed !important;
    top: 26px !important;
    right: 310px !important;
    bottom: auto !important;
    left: 56px !important;
    z-index: 60 !important;
    width: auto !important;
    min-height: 68px !important;
    max-width: none !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 18px !important;
  }

  .page-forum .sidebar h3 {
    display: none !important;
  }

  .page-forum .sidebar-brand {
    flex: 0 0 auto !important;
    min-width: 212px !important;
    margin-right: 14px !important;
    padding: 0 12px 0 0 !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    border: 0 !important;
    background: transparent !important;
  }

  .page-forum .sidebar-brand__mark {
    width: 40px !important;
    height: 40px !important;
  }

  .page-forum .sidebar-brand__text span {
    max-width: 138px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .page-forum .sidebar > a {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 15px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #a77d84 !important;
    background: transparent !important;
  }

  .page-forum .sidebar > a:hover,
  .page-forum .sidebar > a.is-active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
  }

  .page-forum .sidebar > a[href$="ILoader.rar"] {
    color: #fff !important;
    background: rgba(255, 51, 78, 0.2) !important;
  }

  .page-forum .topbar {
    position: fixed !important;
    top: 26px !important;
    right: 56px !important;
    left: auto !important;
    z-index: 70 !important;
    width: 238px !important;
    min-height: 68px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .page-forum .topbar__left {
    display: none !important;
  }

  .page-forum .main {
    margin-left: 0 !important;
    padding: 128px 56px 52px !important;
  }

  .page-forum .container {
    width: min(1130px, 100%) !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 900px) {
  .page-forum .sidebar {
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    bottom: auto !important;
    left: 14px !important;
    z-index: 60 !important;
    width: auto !important;
    max-width: none !important;
    max-height: 174px !important;
    padding: 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: auto !important;
    border-radius: 18px !important;
    transform: none !important;
  }

  .page-forum .sidebar h3,
  .page-forum .topbar__left {
    display: none !important;
  }

  .page-forum .sidebar-brand {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 52px 2px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .page-forum .sidebar > a {
    min-height: 36px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }

  .page-forum .topbar {
    position: fixed !important;
    top: 20px !important;
    right: 24px !important;
    left: auto !important;
    z-index: 70 !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .page-forum .topbar__right .btn,
  .page-forum .topbar__right .badge {
    display: none !important;
  }

  .page-forum .main {
    margin-left: 0 !important;
    padding: 212px 14px 34px !important;
  }
}

.page-forum .forum-form::before {
  content: none !important;
  display: none !important;
}

.page-forum .forum-topic-card .forum-form {
  gap: 10px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.page-forum .forum-topic-card .forum-form .btn {
  margin: 0 !important;
}

.forum-editor {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(143, 160, 255, 0.22);
  border-radius: 10px;
  background: rgba(7, 10, 18, 0.74);
}

.forum-editor__toolbar {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.forum-editor__toolbar button,
.forum-editor__toolbar label {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: #ffdfe4;
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.forum-editor__toolbar button:hover,
.forum-editor__toolbar label:hover {
  color: #fff;
  border-color: rgba(143, 160, 255, 0.42);
  background: rgba(143, 160, 255, 0.14);
}

.forum-editor__toolbar input[type="color"] {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.forum-editor .textarea {
  min-height: 148px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(9, 12, 22, 0.72) !important;
}

.forum-rich-text {
  color: #d6dbea;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.forum-rich-text a {
  color: #ff9a7a;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forum-rich-text blockquote,
.forum-quote {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid #ff7a8a;
  border-radius: 8px;
  color: #ffe9ec;
  background: rgba(143, 160, 255, 0.1);
}

.forum-code {
  max-width: 100%;
  margin: 10px 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffe8eb;
  background: rgba(2, 4, 10, 0.82);
}

.forum-code code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  white-space: pre;
}

.forum-spoiler {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.forum-spoiler summary {
  cursor: pointer;
  color: #f4f6ff;
  font-weight: 900;
}

.forum-spoiler div {
  margin-top: 8px;
}

.forum-list {
  margin: 10px 0;
  padding-left: 22px;
}

.forum-inline-image {
  display: block;
  max-width: min(100%, 680px);
  max-height: 520px;
  margin: 12px auto;
  border-radius: 8px;
}

.forum-author-card__name--admin,
.forum-user-name--admin {
  color: #c11226 !important;
}

.page-forum .forum-author-card__rank {
  width: auto !important;
  min-height: 0 !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #c99aa2 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.page-forum .profile-rank,
.page-forum .profile-rank--forum {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-height: 22px !important;
  padding: 2px 8px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  line-height: 1.25 !important;
}

/* Public profile ban card: final override for user.php. */
.public-ban-card {
  width: min(760px, 100%) !important;
  position: relative !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 14px !important;
  margin: 14px auto 0 !important;
  padding: 15px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 77, 95, 0.34) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, rgba(255, 77, 95, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(7, 10, 18, 0.78) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28) !important;
  text-align: left !important;
}

.public-ban-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 4px !important;
  background: linear-gradient(180deg, #c90f25, #ff9aad) !important;
}

.public-ban-card::after {
  content: "" !important;
  position: absolute !important;
  right: -80px !important;
  top: -90px !important;
  width: 190px !important;
  height: 190px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(255, 77, 95, 0.22), transparent 68%) !important;
  pointer-events: none !important;
}

.public-ban-card__mark {
  position: relative !important;
  width: 48px !important;
  aspect-ratio: 1 !important;
  border: 5px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 50% !important;
  background: rgba(255, 77, 95, 0.16) !important;
  box-shadow: 0 0 0 7px rgba(255, 77, 95, 0.08) !important;
}

.public-ban-card__mark::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 15% !important;
  width: 70% !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: #fff !important;
  transform: translateY(-50%) rotate(45deg) !important;
}

.public-ban-card__content {
  position: relative !important;
  z-index: 1 !important;
  min-width: 0 !important;
  display: grid !important;
  gap: 9px !important;
}

.public-ban-card__top {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}

.public-ban-card__top span {
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 1000 !important;
  line-height: 1.15 !important;
}

.public-ban-card__top b {
  min-height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  color: #ffdbe1 !important;
  background: rgba(255, 255, 255, 0.07) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

.public-ban-card p {
  margin: 0 !important;
  color: #ffd3da !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.48 !important;
  overflow-wrap: anywhere !important;
}

.public-ban-card__meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

.public-ban-card__meta span {
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
  color: #9fa9c4 !important;
  background: rgba(255, 255, 255, 0.055) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.public-ban-card__meta b {
  color: #f3f6ff !important;
  font-weight: 950 !important;
}

@media (max-width: 620px) {
  .public-ban-card {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .public-ban-card__top,
  .public-ban-card__meta {
    justify-content: center !important;
  }
}

/* Ban UX cleanup: profile cards and standalone blocked page. */
.profile-hero-card .public-ban-card {
  width: min(560px, 100%) !important;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  gap: 11px !important;
  margin: 12px auto 0 !important;
  padding: 12px 13px !important;
  border: 1px solid rgba(255, 83, 112, 0.26) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(255, 83, 112, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(9, 12, 22, 0.62) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(16px) !important;
  text-align: left !important;
}

.profile-hero-card .public-ban-card::before,
.profile-hero-card .public-ban-card::after {
  content: none !important;
}

.profile-hero-card .public-ban-card__mark {
  width: 36px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(255, 71, 103, 0.92), rgba(201, 15, 37, 0.58)) !important;
  box-shadow: 0 12px 26px rgba(255, 54, 93, 0.18) !important;
}

.profile-hero-card .public-ban-card__mark::before {
  content: "!";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 1000;
}

.profile-hero-card .public-ban-card__mark::after {
  content: none !important;
}

.profile-hero-card .public-ban-card__content {
  gap: 6px !important;
}

.profile-hero-card .public-ban-card__top {
  gap: 7px !important;
}

.profile-hero-card .public-ban-card__top span {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

.profile-hero-card .public-ban-card__top b {
  min-height: 20px !important;
  padding: 3px 7px !important;
  color: #ffccd5 !important;
  background: rgba(255, 255, 255, 0.07) !important;
  font-size: 10px !important;
}

.profile-hero-card .public-ban-card p {
  margin: 0 !important;
  color: #c8d0e8 !important;
  font-size: 13px !important;
  font-weight: 780 !important;
  line-height: 1.42 !important;
}

.profile-hero-card .public-ban-card p strong {
  color: #ffb6c2 !important;
}

.profile-hero-card .public-ban-card__meta {
  gap: 6px !important;
}

.profile-hero-card .public-ban-card__meta span {
  min-height: 22px !important;
  padding: 3px 7px !important;
  color: #8f99b6 !important;
  background: rgba(255, 255, 255, 0.045) !important;
  font-size: 11px !important;
}

.profile-hero-card .public-ban-card__meta b {
  color: #ffe9ec !important;
}

.page-ban .auth-ban-card {
  width: min(760px, 100%) !important;
}

.page-ban .ban-layout {
  gap: 14px !important;
}

.page-ban .ban-layout__header {
  margin: 0 auto !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.page-ban .ban-panel {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  gap: 12px !important;
  padding: 30px !important;
  border-radius: 24px !important;
  text-align: center !important;
}

.page-ban .ban-panel__icon {
  grid-row: auto !important;
  width: 74px !important;
  margin: 0 !important;
  border-width: 7px !important;
}

.page-ban .ban-panel__icon::after {
  height: 7px !important;
}

.page-ban .ban-panel h2 {
  font-size: clamp(26px, 4vw, 40px) !important;
}

.page-ban .ban-panel__lead,
.page-ban .ban-panel > p {
  grid-column: 1 / -1 !important;
  width: min(560px, 100%) !important;
  max-width: 100% !important;
  color: #c99aa2 !important;
  text-align: center !important;
}

.page-ban .ban-panel__details {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  margin-top: 8px !important;
}

.page-ban .ban-panel__profile {
  width: 100% !important;
  justify-content: center !important;
}

.page-ban .ban-panel__contact {
  width: min(560px, 100%) !important;
  justify-content: center !important;
}

@media (max-width: 640px) {
  .profile-hero-card .public-ban-card,
  .page-ban .ban-panel__details {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .profile-hero-card .public-ban-card {
    justify-items: center !important;
    text-align: center !important;
  }

  .profile-hero-card .public-ban-card__top,
  .profile-hero-card .public-ban-card__meta {
    justify-content: center !important;
  }
}

/* Ban polish v3 */
.daily-card .quick-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.daily-card .quick-action-grid .soft-button {
  min-width: 0 !important;
  min-height: 34px !important;
  margin-top: 0 !important;
  padding: 0 9px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.daily-card .quick-action-grid .soft-button[href$="docs.php"] {
  grid-column: 1 / -1 !important;
}

.profile-hero-card .profile-ban-mini {
  width: min(520px, 100%) !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 12px auto 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 77, 95, 0.24) !important;
  border-radius: 14px !important;
  color: #d9def0 !important;
  background:
    linear-gradient(135deg, rgba(255, 77, 95, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(8, 11, 20, 0.58) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(14px) !important;
  text-align: left !important;
}

.profile-ban-mini__icon {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 11px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #ff4268, #8a6cff) !important;
  font-size: 16px !important;
  font-weight: 1000 !important;
}

.profile-ban-mini__text {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

.profile-ban-mini__text b {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 1000 !important;
  line-height: 1.15 !important;
}

.profile-ban-mini__text span {
  color: #aeb8d4 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

.auth-ban-card .ban-layout:not(.ban-layout--embedded) {
  gap: 12px !important;
}

.auth-ban-card .ban-layout:not(.ban-layout--embedded) .ban-layout__header {
  margin: 0 auto !important;
  text-transform: none !important;
}

.auth-ban-card .ban-layout:not(.ban-layout--embedded) .ban-panel {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 30px !important;
  border-radius: 24px !important;
  text-align: center !important;
}

.auth-ban-card .ban-layout:not(.ban-layout--embedded) .ban-panel__icon {
  grid-row: auto !important;
  width: 76px !important;
  margin: 0 !important;
  border-width: 7px !important;
}

.auth-ban-card .ban-layout:not(.ban-layout--embedded) .ban-panel__icon::after {
  height: 7px !important;
}

.auth-ban-card .ban-layout:not(.ban-layout--embedded) .ban-panel__lead,
.auth-ban-card .ban-layout:not(.ban-layout--embedded) .ban-panel > p {
  grid-column: 1 / -1 !important;
  width: min(560px, 100%) !important;
  color: #c99aa2 !important;
  text-align: center !important;
}

.auth-ban-card .ban-layout:not(.ban-layout--embedded) .ban-panel__details {
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin-top: 8px !important;
}

.auth-ban-card .ban-layout:not(.ban-layout--embedded) .ban-panel__profile {
  width: 100% !important;
  justify-content: center !important;
}

.auth-ban-card .ban-layout:not(.ban-layout--embedded) .ban-panel__contact {
  width: min(560px, 100%) !important;
  justify-content: center !important;
}

.page-forum-topic .forum-author-card__role--banned,
.page-forum .forum-author-card__role--banned {
  color: #9aa3b8 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 2px !important;
  text-decoration-color: rgba(154, 163, 184, 0.72) !important;
}

.forum-post__deal-warning {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 10px 0 14px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 77, 95, 0.28) !important;
  border-radius: 10px !important;
  color: #ffc2cd !important;
  background:
    linear-gradient(90deg, rgba(255, 77, 95, 0.15), rgba(255, 77, 95, 0.05)),
    rgba(20, 24, 34, 0.74) !important;
  box-shadow: inset 3px 0 0 rgba(255, 77, 95, 0.72) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

.forum-post__deal-warning::before {
  content: "!";
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: rgba(255, 77, 95, 0.74) !important;
  font-size: 13px !important;
  font-weight: 1000 !important;
}

@media (max-width: 640px) {
  .auth-ban-card .ban-layout:not(.ban-layout--embedded) .ban-panel__details,
  .profile-hero-card .profile-ban-mini {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .profile-hero-card .profile-ban-mini {
    justify-items: center !important;
    text-align: center !important;
  }
}

/* Landing refresh v20260524 */
body.page-landing.z7-landing-refresh {
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff3f4;
  background-color: #070910;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #16080b 0%, #0d111a 46%, #06070c 100%);
  background-size: 40px 40px, 40px 40px, auto;
}

body.page-landing.z7-landing-refresh::before {
  opacity: 0.32;
  background:
    linear-gradient(135deg, rgba(46, 232, 174, 0.08), transparent 36%),
    linear-gradient(225deg, rgba(255, 77, 95, 0.07), transparent 34%);
}

.z7-landing-refresh main {
  position: relative;
  z-index: 1;
}

.page-landing.z7-landing-refresh .z7-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  width: min(1220px, calc(100% - 32px));
  min-height: 64px;
  margin: 14px auto 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 10, 17, 0.84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.z7-landing-refresh .z7-brand {
  flex: 0 0 auto;
  color: #fff;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 900;
}

.z7-landing-refresh .z7-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f6dff, #ff5a4f);
  box-shadow: 0 12px 26px rgba(36, 213, 182, 0.18);
}

.z7-landing-refresh .z7-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 5px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.page-landing.z7-landing-refresh .z7-nav a {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 7px;
  color: #c599a0;
  font-size: 13px;
  font-weight: 850;
}

.page-landing.z7-landing-refresh .z7-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
}

.z7-landing-refresh .z7-header__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.z7-landing-refresh .z7-login,
.z7-landing-refresh .z7-create,
.z7-landing-refresh .z7-primary,
.z7-landing-refresh .z7-secondary {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.z7-landing-refresh .z7-create,
.z7-landing-refresh .z7-primary {
  border-color: rgba(36, 213, 182, 0.5);
  background: linear-gradient(135deg, #4f6dff, #20c7a8);
  box-shadow: 0 16px 36px rgba(32, 199, 168, 0.18);
}

.z7-landing-refresh .z7-secondary,
.z7-landing-refresh .z7-login {
  color: #dce3f7;
  background: rgba(255, 255, 255, 0.06);
}

.z7-landing-refresh .z7-hero {
  width: min(1220px, calc(100% - 32px));
  height: 560px;
  min-height: 500px;
  max-height: calc(100svh - 158px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin: 18px auto 28px;
  padding: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #10141d;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.46);
}

.z7-landing-refresh .z7-hero__media,
.z7-landing-refresh .z7-hero__overlay,
.z7-landing-refresh .z7-hero__fallback {
  position: absolute;
  inset: 0;
}

.z7-landing-refresh .z7-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.z7-landing-refresh .z7-hero__overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.94) 0%, rgba(5, 7, 12, 0.74) 42%, rgba(5, 7, 12, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.08) 0%, rgba(5, 7, 12, 0.86) 100%);
}

.z7-landing-refresh .z7-hero__content {
  position: relative;
  z-index: 2;
  width: min(660px, 100%);
}

.z7-landing-refresh .z7-pill,
.z7-landing-refresh .z7-label {
  min-height: 30px;
  padding: 6px 10px;
  border-color: rgba(36, 213, 182, 0.32);
  border-radius: 8px;
  color: #9af6df;
  background: rgba(36, 213, 182, 0.09);
  font-size: 11px;
  letter-spacing: 0;
}

.z7-landing-refresh .z7-pill::before,
.z7-landing-refresh .z7-label::before {
  background: #ff5a4f;
  box-shadow: 0 0 14px rgba(36, 213, 182, 0.72);
}

.z7-landing-refresh .z7-hero h1 {
  margin: 18px 0 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: 78px;
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.z7-landing-refresh .z7-hero p {
  max-width: 590px;
  margin: 18px 0 0;
  color: #c3cbdd;
  font-size: 18px;
  line-height: 1.6;
}

.z7-landing-refresh .z7-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.z7-landing-refresh .z7-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.z7-landing-refresh .z7-hero__stats span {
  min-width: 132px;
  min-height: 58px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.z7-landing-refresh .z7-hero__stats b {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.z7-landing-refresh .z7-hero__stats small {
  color: #9fa9c0;
  font-size: 12px;
  font-weight: 850;
}

.z7-landing-refresh .z7-hero__fallback {
  z-index: 0;
  display: none;
  place-items: center;
  padding: 26px;
  color: #c599a0;
  text-align: center;
  background: linear-gradient(135deg, rgba(79, 109, 255, 0.12), rgba(36, 213, 182, 0.08)), #10141d;
}

.z7-landing-refresh .z7-hero.is-missing-image .z7-hero__media {
  display: none;
}

.z7-landing-refresh .z7-hero.is-missing-image .z7-hero__fallback {
  display: grid;
}

.z7-landing-refresh .z7-section,
.z7-landing-refresh .z7-stats,
.z7-landing-refresh .z7-duo,
.z7-landing-refresh .z7-discord,
.z7-landing-refresh .z7-esp,
.z7-landing-refresh .z7-media,
.z7-landing-refresh .z7-faq,
.z7-landing-refresh .z7-footer {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.z7-landing-refresh .z7-quick-routes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: -14px;
}

.z7-landing-refresh .z7-quick-routes a {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.z7-landing-refresh .z7-quick-routes a:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 213, 182, 0.38);
  background: rgba(36, 213, 182, 0.08);
}

.z7-landing-refresh .z7-quick-routes span,
.z7-landing-refresh .z7-big-link span {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.z7-landing-refresh .z7-quick-routes b {
  color: #98a3ba;
  font-size: 13px;
  line-height: 1.38;
}

.z7-landing-refresh .z7-advantages {
  display: grid;
  grid-template-columns: 1.35fr 0.82fr 0.82fr;
  gap: 12px;
}

.z7-landing-refresh .z7-feature,
.z7-landing-refresh .z7-product-card,
.z7-landing-refresh .z7-big-link,
.z7-landing-refresh .z7-discord,
.z7-landing-refresh .z7-media,
.z7-landing-refresh .z7-compare > div,
.z7-landing-refresh .z7-video-preview,
.z7-landing-refresh .z7-stats div,
.z7-landing-refresh .faq-item {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(14, 17, 25, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.z7-landing-refresh .z7-feature {
  min-height: 250px;
  padding: 24px;
}

.z7-landing-refresh .z7-feature--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
}

.z7-landing-refresh .z7-feature--wide > div:first-child {
  padding: 0;
}

.z7-landing-refresh .z7-feature h2,
.z7-landing-refresh .z7-section__head h2,
.z7-landing-refresh .z7-discord h2,
.z7-landing-refresh .z7-esp h2,
.z7-landing-refresh .z7-media h2,
.z7-landing-refresh .z7-faq h2 {
  margin: 12px 0 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.z7-landing-refresh .z7-feature p,
.z7-landing-refresh .z7-section__head p,
.z7-landing-refresh .z7-discord p,
.z7-landing-refresh .z7-esp p,
.z7-landing-refresh .z7-media p {
  margin-top: 12px;
  color: #c599a0;
  line-height: 1.62;
}

.z7-landing-refresh .z7-tags {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: center;
}

.z7-landing-refresh .z7-tags span {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 7px;
  color: #e8edf8;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
}

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

.z7-landing-refresh .z7-stats div {
  min-height: 114px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.z7-landing-refresh .z7-stats b {
  color: #fff;
  font-family: var(--font-title);
  font-size: 42px;
  line-height: 1;
}

.z7-landing-refresh .z7-stats span {
  color: #98a3ba;
  font-weight: 850;
}

.z7-landing-refresh .z7-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 18px;
}

.z7-landing-refresh .z7-section__head h2,
.z7-landing-refresh .z7-esp h2,
.z7-landing-refresh .z7-faq h2 {
  margin: 0;
  font-size: 40px;
}

.z7-landing-refresh .z7-section__head p {
  max-width: 650px;
  grid-column: 1;
}

.z7-landing-refresh .z7-section__head a {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.z7-landing-refresh .z7-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.z7-landing-refresh .z7-product-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: #111620;
}

.z7-landing-refresh .z7-product-card img,
.z7-landing-refresh .z7-product-card video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(1.08) contrast(1.05);
  transform: none;
}

.z7-landing-refresh .z7-product-card::after,
.z7-landing-refresh .z7-compare > div::after,
.z7-landing-refresh .z7-video-preview::after {
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.05), rgba(6, 8, 12, 0.88));
}

.z7-landing-refresh .z7-product-card__content {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
}

.z7-landing-refresh .z7-product-card__content span,
.z7-landing-refresh .z7-preview-card span {
  color: #9af6df;
  font-size: 12px;
  font-weight: 950;
}

.z7-landing-refresh .z7-product-card__content h3 {
  margin-top: 8px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
}

.z7-landing-refresh .z7-product-card__content p {
  margin-top: 7px;
  color: #c3cbdd;
  font-size: 13px;
  letter-spacing: 0;
}

.z7-landing-refresh .z7-product-card__content b {
  margin-top: 24px;
  color: #fff;
  font-size: 20px;
}

.z7-landing-refresh .z7-product-card__content em {
  margin-top: 10px;
  border-radius: 7px;
  background: rgba(36, 213, 182, 0.18);
  color: #bafbed;
}

.z7-landing-refresh .z7-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.z7-landing-refresh .z7-big-link,
.z7-landing-refresh .z7-discord,
.z7-landing-refresh .z7-media {
  min-height: 170px;
  padding: 24px;
}

.z7-landing-refresh .z7-big-link b {
  max-width: 460px;
  margin-top: 10px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 30px;
  line-height: 1.12;
}

.z7-landing-refresh .z7-big-link--accent {
  background:
    linear-gradient(135deg, rgba(255, 77, 95, 0.13), rgba(36, 213, 182, 0.06)),
    rgba(14, 17, 25, 0.9);
}

.z7-landing-refresh .z7-discord {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.z7-landing-refresh .z7-discord p {
  max-width: 680px;
}

.z7-landing-refresh .z7-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.z7-landing-refresh .z7-compare > div,
.z7-landing-refresh .z7-video-preview {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.z7-landing-refresh .z7-compare img,
.z7-landing-refresh .z7-video-preview video {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
  object-fit: cover;
}

.z7-landing-refresh .z7-compare > div > span {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 7px;
  color: #fff;
  background: rgba(8, 10, 17, 0.78);
  font-weight: 900;
}

.z7-landing-refresh .z7-media {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: center;
}

.z7-landing-refresh .z7-media ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.z7-landing-refresh .z7-media li {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  color: #ffd0d8;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 850;
}

.z7-landing-refresh .z7-media li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-right: 9px;
  border-radius: 50%;
  background: #ff5a4f;
}

.z7-landing-refresh .z7-faq .faq {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.z7-landing-refresh .faq-item {
  overflow: hidden;
}

.z7-landing-refresh .faq-header {
  min-height: 58px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.z7-landing-refresh .faq-header span {
  color: #fff;
  font-weight: 950;
}

.z7-landing-refresh .icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.z7-landing-refresh .faq-body {
  max-height: 0;
  padding: 0 18px;
  color: #c599a0;
  line-height: 1.58;
  overflow: hidden;
  transition: max-height 0.24s ease, padding 0.24s ease;
}

.z7-landing-refresh .faq-item.active .faq-body {
  max-height: 220px;
  padding: 0 18px 18px;
}

.z7-landing-refresh .faq-item.active .icon {
  transform: rotate(45deg);
}

.z7-landing-refresh .z7-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 0;
  padding: 30px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8792aa;
}

.z7-landing-refresh .z7-footer b {
  color: #fff;
}

.z7-landing-refresh .z7-footer p {
  max-width: 560px;
  margin-top: 8px;
  color: #8792aa;
}

.z7-landing-refresh .z7-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.z7-landing-refresh .z7-footer a {
  color: #b8c1d6;
  font-weight: 850;
}

@media (max-width: 1080px) {
  .page-landing.z7-landing-refresh .z7-header,
  .z7-landing-refresh .z7-header__actions {
    flex-wrap: wrap;
  }

  .z7-landing-refresh .z7-brand {
    margin-right: auto;
  }

  .z7-landing-refresh .z7-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .z7-landing-refresh .z7-hero {
    height: 560px;
    padding: 42px;
  }

  .z7-landing-refresh .z7-hero h1 {
    font-size: 58px;
  }

  .z7-landing-refresh .z7-quick-routes,
  .z7-landing-refresh .z7-products,
  .z7-landing-refresh .z7-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .z7-landing-refresh .z7-advantages,
  .z7-landing-refresh .z7-media {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-landing.z7-landing-refresh .z7-header {
    width: calc(100% - 24px);
    position: relative;
    top: auto;
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .z7-landing-refresh .z7-header__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .z7-landing-refresh .z7-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .page-landing.z7-landing-refresh .z7-nav a {
    justify-content: center;
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
  }

  .z7-landing-refresh .z7-login,
  .z7-landing-refresh .z7-create,
  .z7-landing-refresh .z7-primary,
  .z7-landing-refresh .z7-secondary {
    width: 100%;
  }

  .z7-landing-refresh .z7-hero,
  .z7-landing-refresh .z7-section,
  .z7-landing-refresh .z7-stats,
  .z7-landing-refresh .z7-duo,
  .z7-landing-refresh .z7-discord,
  .z7-landing-refresh .z7-esp,
  .z7-landing-refresh .z7-media,
  .z7-landing-refresh .z7-faq,
  .z7-landing-refresh .z7-footer {
    width: calc(100% - 24px);
  }

  .z7-landing-refresh .z7-hero {
    height: auto;
    min-height: 480px;
    max-height: none;
    margin-top: 12px;
    padding: 28px;
  }

  .z7-landing-refresh .z7-hero__overlay {
    background:
      linear-gradient(180deg, rgba(5, 7, 12, 0.54), rgba(5, 7, 12, 0.94)),
      linear-gradient(90deg, rgba(5, 7, 12, 0.72), rgba(5, 7, 12, 0.4));
  }

  .z7-landing-refresh .z7-hero h1 {
    font-size: 40px;
  }

  .z7-landing-refresh .z7-hero p {
    font-size: 15px;
  }

  .z7-landing-refresh .z7-hero__stats,
  .z7-landing-refresh .z7-duo,
  .z7-landing-refresh .z7-compare,
  .z7-landing-refresh .z7-quick-routes,
  .z7-landing-refresh .z7-products,
  .z7-landing-refresh .z7-stats,
  .z7-landing-refresh .z7-feature--wide {
    grid-template-columns: 1fr;
  }

  .z7-landing-refresh .z7-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .z7-landing-refresh .z7-hero__stats span {
    min-width: 0;
    min-height: 56px;
    padding: 8px;
  }

  .z7-landing-refresh .z7-hero__stats b {
    font-size: 18px;
  }

  .z7-landing-refresh .z7-hero__stats small {
    font-size: 10px;
    line-height: 1.2;
  }

  .z7-landing-refresh .z7-section__head,
  .z7-landing-refresh .z7-discord,
  .z7-landing-refresh .z7-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .z7-landing-refresh .z7-section__head a {
    grid-column: auto;
    grid-row: auto;
  }

  .z7-landing-refresh .z7-section__head h2,
  .z7-landing-refresh .z7-esp h2,
  .z7-landing-refresh .z7-faq h2,
  .z7-landing-refresh .z7-feature h2,
  .z7-landing-refresh .z7-discord h2,
  .z7-landing-refresh .z7-media h2 {
    font-size: 28px;
  }

  .z7-landing-refresh .z7-product-card,
  .z7-landing-refresh .z7-product-card img,
  .z7-landing-refresh .z7-product-card video {
    min-height: 340px;
  }

  .z7-landing-refresh .z7-product-card img,
  .z7-landing-refresh .z7-product-card video {
    transform: none;
  }

  .z7-landing-refresh .z7-footer nav {
    justify-content: flex-start;
  }
}

/* Vanish-style landing v20260524 */
body.page-landing.z7-vanish-style {
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff3f4;
  background:
    radial-gradient(circle at 8% 4%, rgba(34, 211, 238, 0.1), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(255, 70, 96, 0.08), transparent 28%),
    linear-gradient(180deg, #081014 0%, #0f191d 45%, #071013 100%);
}

body.page-landing.z7-vanish-style::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

.z7-vanish-style main {
  position: relative;
  z-index: 1;
}

.vc-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px max(28px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 16, 20, 0.84);
  backdrop-filter: blur(18px);
}

.vc-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 23px;
  font-weight: 1000;
}

.vc-brand__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #4b6dff, #1fd7a6);
  box-shadow: 0 0 32px rgba(31, 215, 166, 0.22);
  font-size: 15px;
  font-weight: 1000;
}

.vc-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.page-landing .vc-nav a {
  min-height: auto;
  padding: 0;
  border: 0;
  color: #c8d0df;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.page-landing .vc-nav a:hover {
  color: #fff;
}

.vc-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc-link,
.vc-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  font-size: 14px;
  font-weight: 950;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.vc-button:hover,
.vc-link:hover {
  transform: translateY(-1px);
}

.vc-button--primary {
  border-color: rgba(31, 215, 166, 0.52);
  background: linear-gradient(135deg, #4d6fff, #ff4f5f);
  box-shadow: 0 16px 38px rgba(32, 211, 159, 0.18);
}

.vc-button--ghost {
  color: #dfe6f4;
  background: rgba(255, 255, 255, 0.055);
}

.vc-hero,
.vc-benefits,
.vc-stats,
.vc-banner,
.vc-products,
.vc-duo,
.vc-community,
.vc-media,
.vc-partner,
.vc-faq,
.vc-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.vc-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 136px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.64fr);
  align-items: center;
  gap: 34px;
  padding: 42px 0 38px;
}

.vc-hero__bg,
.vc-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.vc-hero__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(1.06) contrast(1.08);
}

.vc-hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 16, 20, 0.96) 0%, rgba(8, 16, 20, 0.78) 45%, rgba(8, 16, 20, 0.92) 100%),
    linear-gradient(180deg, rgba(8, 16, 20, 0.12), #081014 92%);
}

.vc-hero.is-missing-image .vc-hero__bg {
  display: none;
}

.vc-hero__content {
  min-width: 0;
}

.vc-kicker,
.vc-section-label {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border: 1px solid rgba(31, 215, 166, 0.3);
  border-radius: 7px;
  color: #9af7dc;
  background: rgba(31, 215, 166, 0.08);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.vc-kicker::before,
.vc-section-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #24d7a8;
  box-shadow: 0 0 14px rgba(36, 215, 168, 0.75);
}

.vc-hero h1 {
  max-width: 790px;
  margin: 22px 0 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: 74px;
  font-weight: 1000;
  line-height: 0.98;
  letter-spacing: 0;
}

.vc-hero p {
  max-width: 610px;
  margin-top: 20px;
  color: #b9c3d3;
  font-size: 18px;
  line-height: 1.62;
}

.vc-hero__buttons,
.vc-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.vc-social {
  margin-top: 24px;
  color: #aa7c83;
  font-size: 14px;
  font-weight: 900;
}

.vc-social a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.vc-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(13, 23, 27, 0.78);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.vc-hero-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vc-hero-panel__head span {
  color: #94a0b2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.vc-hero-panel__head b {
  color: #fff;
  font-family: var(--font-title);
  font-size: 28px;
}

.vc-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.vc-feature-list span {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  color: #dce4f2;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 900;
}

.vc-hero-panel__preview {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  overflow: hidden;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #101a20;
}

.vc-hero-panel__preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.78;
}

.vc-hero-panel__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8, 16, 20, 0.78));
  pointer-events: none;
}

.vc-hero-panel__preview b,
.vc-product-card__fallback,
.vc-compare b {
  display: none;
}

.vc-hero-panel__preview.is-missing-image b,
.vc-product-card.is-missing-image .vc-product-card__fallback,
.vc-compare .is-missing-image b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #aeb8ca;
  background: rgba(255, 255, 255, 0.04);
}

.vc-benefits {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 12px;
  margin-bottom: 52px;
}

.vc-benefit,
.vc-banner,
.vc-community,
.vc-partner,
.vc-duo a,
.vc-stats div,
.vc-product-card,
.vc-compare > div,
.vc-video,
.vc-faq .faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03)),
    rgba(13, 23, 27, 0.88);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.25);
}

.vc-benefit {
  min-height: 258px;
  padding: 26px;
}

.vc-benefit--large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.76fr);
  gap: 26px;
}

.vc-benefit h2,
.vc-banner h2,
.vc-community h2,
.vc-partner h2,
.vc-section-head h2,
.vc-faq h2 {
  margin: 14px 0 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.vc-benefit p,
.vc-banner p,
.vc-community p,
.vc-partner p,
.vc-section-head p {
  margin-top: 12px;
  color: #aab5c5;
  line-height: 1.62;
}

.vc-benefit-tags {
  display: grid;
  gap: 8px;
  align-content: center;
}

.vc-benefit-tags span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 7px;
  color: #e8eef8;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  font-weight: 900;
}

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

.vc-stats div {
  min-height: 126px;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.vc-stats b {
  color: #fff;
  font-family: var(--font-title);
  font-size: 48px;
  line-height: 1;
}

.vc-stats span {
  color: #9aa6b8;
  font-weight: 900;
}

.vc-banner,
.vc-community {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(31, 215, 166, 0.12), rgba(255, 74, 105, 0.08)),
    rgba(13, 23, 27, 0.9);
}

.vc-banner p,
.vc-community p {
  max-width: 680px;
}

.vc-products,
.vc-media,
.vc-faq {
  margin-bottom: 60px;
}

.vc-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.vc-section-head h2,
.vc-faq h2 {
  font-size: 42px;
}

.vc-section-head p {
  max-width: 620px;
}

.vc-more {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 950;
  white-space: nowrap;
}

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

.vc-product-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: #111c22;
}

.vc-product-card img,
.vc-product-card video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(1.08) contrast(1.06);
}

.vc-product-card::after,
.vc-compare > div::after,
.vc-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 20, 0.03), rgba(8, 16, 20, 0.9));
  pointer-events: none;
}

.vc-product-card.is-missing-image img {
  display: none;
}

.vc-product-card__content {
  position: absolute;
  inset: auto 20px 20px;
  z-index: 2;
}

.vc-product-card__content span {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 6px;
  color: #bcfff0;
  background: rgba(31, 215, 166, 0.16);
  font-size: 12px;
  font-weight: 950;
}

.vc-product-card__content h3 {
  margin-top: 12px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 48px;
  line-height: 1;
}

.vc-product-card__content p {
  margin-top: 6px;
  color: #b8c3d4;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.vc-product-card__content b {
  display: block;
  margin-top: 28px;
  color: #fff;
  font-size: 21px;
}

.vc-product-card__content em {
  width: fit-content;
  display: block;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #4d6fff, #ff4f5f);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.vc-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 60px;
}

.vc-duo a {
  min-height: 170px;
  display: grid;
  align-content: center;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(77, 111, 255, 0.14), rgba(31, 215, 166, 0.07)),
    rgba(13, 23, 27, 0.88);
}

.vc-duo a:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(255, 74, 105, 0.12), rgba(31, 215, 166, 0.07)),
    rgba(13, 23, 27, 0.88);
}

.vc-duo span {
  color: #aeb9ca;
  font-weight: 950;
}

.vc-duo b {
  max-width: 450px;
  margin-top: 10px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 1.12;
}

.vc-community {
  margin-bottom: 60px;
}

.vc-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vc-compare > div,
.vc-video {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: #111c22;
}

.vc-compare img,
.vc-video video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
}

.vc-compare > div > span {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(8, 16, 20, 0.8);
  font-weight: 950;
}

.vc-partner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 60px;
  padding: 28px;
}

.vc-partner ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.vc-partner li {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  color: #e5ebf6;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.vc-partner li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-right: 9px;
  border-radius: 50%;
  background: #ff4f5f;
}

.vc-video {
  min-height: 330px;
}

.vc-video video {
  min-height: 330px;
}

.vc-faq .faq {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.vc-faq .faq-item {
  overflow: hidden;
}

.vc-faq .faq-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}

.vc-faq .faq-header span {
  color: #fff;
  font-weight: 950;
}

.vc-faq .icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.vc-faq .faq-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: #aeb8c8;
  line-height: 1.6;
  transition: max-height 0.24s ease, padding 0.24s ease;
}

.vc-faq .faq-item.active .faq-body {
  max-height: 220px;
  padding: 0 18px 18px;
}

.vc-faq .faq-item.active .icon {
  transform: rotate(45deg);
}

.vc-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #aa7c83;
}

.vc-footer b {
  color: #fff;
}

.vc-footer p {
  max-width: 560px;
  margin-top: 8px;
  color: #aa7c83;
}

.vc-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.vc-footer a {
  color: #c3ccdb;
  font-weight: 900;
}

@media (max-width: 1060px) {
  .vc-header {
    flex-wrap: wrap;
  }

  .vc-brand {
    margin-right: auto;
  }

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

  .vc-hero,
  .vc-benefits,
  .vc-partner {
    grid-template-columns: 1fr;
  }

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

  .vc-hero-panel {
    min-height: 430px;
  }

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

@media (max-width: 720px) {
  .page-landing.z7-vanish-style .vc-header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 12px;
  }

  .vc-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .vc-link,
  .vc-button {
    width: 100%;
    padding-inline: 10px;
  }

  .page-landing.z7-vanish-style .vc-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
    overflow: hidden !important;
    width: 100%;
  }

  .page-landing.z7-vanish-style .vc-nav a {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 7px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 11px;
    text-align: center;
    white-space: normal;
  }

  .vc-hero,
  .vc-benefits,
  .vc-stats,
  .vc-banner,
  .vc-products,
  .vc-duo,
  .vc-community,
  .vc-media,
  .vc-partner,
  .vc-faq,
  .vc-footer {
    width: calc(100% - 24px);
  }

  .vc-hero {
    gap: 16px;
    padding: 26px 0 26px;
  }

  .vc-hero h1 {
    font-size: 38px;
  }

  .vc-hero p {
    font-size: 15px;
  }

  .vc-hero__buttons,
  .vc-social,
  .vc-banner,
  .vc-community,
  .vc-section-head,
  .vc-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vc-hero-panel {
    display: none;
  }

  .vc-benefit--large,
  .vc-product-grid,
  .vc-stats,
  .vc-duo,
  .vc-compare {
    grid-template-columns: 1fr;
  }

  .vc-benefit,
  .vc-banner,
  .vc-community,
  .vc-partner,
  .vc-duo a {
    padding: 20px;
  }

  .vc-benefit h2,
  .vc-banner h2,
  .vc-community h2,
  .vc-partner h2,
  .vc-section-head h2,
  .vc-faq h2 {
    font-size: 28px;
  }

  .vc-product-card,
  .vc-product-card img,
  .vc-product-card video {
    min-height: 340px;
  }

  .vc-compare > div,
  .vc-compare img,
  .vc-video,
  .vc-video video {
    min-height: 280px;
  }

  .vc-footer nav {
    justify-content: flex-start;
  }
}

/* Private messages */
.page-messages .messages-hero {
  overflow: hidden;
}

.pm-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pm-sidebar,
.pm-thread {
  min-height: 660px;
}

.pm-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.pm-start-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.pm-start-form label {
  display: grid;
  gap: 8px;
}

.pm-start-form label span {
  color: #fff3f4;
  font-size: 13px;
  font-weight: 950;
}

.pm-conversation-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.pm-conversation {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #dfe6f6;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.pm-conversation:hover,
.pm-conversation.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 51, 78, 0.48);
  background: rgba(255, 51, 78, 0.12);
}

.pm-conversation__avatar,
.pm-peer__avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #ff5a3d);
  font-size: 14px;
  font-weight: 1000;
  object-fit: cover;
}

.pm-conversation__body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pm-conversation__top {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pm-conversation__top b {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-conversation__top em {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #d0142c, #ff5a3d);
  font-size: 11px;
  font-style: normal;
  font-weight: 1000;
}

.pm-conversation small,
.pm-conversation__body > span:last-child {
  min-width: 0;
  overflow: hidden;
  color: #8f9ab6;
  font-size: 12px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-thread {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0;
  overflow: hidden;
}

.pm-thread__head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.pm-peer {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
}

.pm-peer span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pm-peer b {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-peer small {
  display: inline-flex;
}

.pm-messages {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  overflow: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(7, 10, 18, 0.42);
  background-size: 34px 34px;
}

.pm-message {
  display: flex;
  max-width: 78%;
}

.pm-message.is-mine {
  justify-self: end;
}

.pm-message.is-theirs {
  justify-self: start;
}

.pm-message__bubble {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  color: #dfe6f6;
  background: rgba(255, 255, 255, 0.07);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.pm-message.is-mine .pm-message__bubble {
  border-color: rgba(255, 51, 78, 0.35);
  background: linear-gradient(135deg, rgba(255, 51, 78, 0.32), rgba(36, 200, 255, 0.18));
}

.pm-message__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.pm-message__meta b {
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
}

.pm-message__meta span {
  color: #b68c94;
  font-size: 11px;
  font-weight: 760;
}

.pm-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.pm-compose .textarea {
  min-height: 58px;
  max-height: 160px;
  resize: vertical;
}

.pm-empty {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #b68c94;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.pm-empty b {
  color: #fff;
}

.pm-empty--thread {
  align-self: center;
  justify-self: center;
  max-width: 360px;
}

.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.page-forum-topic .forum-author-card__pm {
  order: 4;
  width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 51, 78, 0.28);
  border-radius: 9px;
  color: #ffd0d8;
  background: rgba(255, 51, 78, 0.11);
  font-size: 12px;
  font-weight: 950;
}

.page-forum-topic .forum-author-card__pm:hover {
  color: #fff;
  border-color: rgba(255, 51, 78, 0.54);
  background: rgba(255, 51, 78, 0.18);
}

.notif-item--message .notif-item__icon {
  background: linear-gradient(135deg, #d0142c, #ff5a3d);
}

/* Forum hidden replies */
.page-forum-topic .forum-private-compose {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(255, 51, 78, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 51, 78, 0.12), rgba(36, 200, 255, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.page-forum-topic .forum-private-compose p {
  grid-column: 1 / -1;
  margin: 0;
  color: #b68c94;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.page-forum-topic .forum-private-toggle,
.page-forum-topic .forum-private-target {
  display: grid;
  gap: 8px;
  color: #e8edff;
  font-size: 13px;
  font-weight: 950;
}

.page-forum-topic .forum-private-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.page-forum-topic .forum-private-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #d0142c;
}

.page-forum-topic .forum-private-target > span {
  color: #b68c94;
  font-size: 12px;
  font-weight: 900;
}

.page-forum-topic .forum-private-placeholder,
.page-forum-topic .forum-private-visible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 10px 0 12px;
  padding: 11px 12px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.page-forum-topic .forum-private-placeholder {
  border: 1px solid rgba(255, 202, 87, 0.24);
  color: #ffe3a6;
  background:
    linear-gradient(90deg, rgba(255, 202, 87, 0.14), rgba(255, 202, 87, 0.045)),
    rgba(17, 21, 32, 0.82);
  box-shadow: inset 3px 0 0 rgba(255, 202, 87, 0.72);
}

.page-forum-topic .forum-private-placeholder::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #10131d;
  background: #ffca57;
  font-size: 13px;
  font-weight: 1000;
}

.page-forum-topic .forum-private-visible {
  border: 1px solid rgba(255, 51, 78, 0.28);
  color: #ffd0d8;
  background:
    linear-gradient(90deg, rgba(255, 51, 78, 0.16), rgba(36, 200, 255, 0.06)),
    rgba(17, 21, 32, 0.78);
}

.page-forum-topic .forum-private-visible span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 51, 78, 0.28);
  font-size: 11px;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .page-forum-topic .forum-private-compose {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .pm-sidebar,
  .pm-thread {
    min-height: auto;
  }

  .pm-thread {
    min-height: 620px;
  }
}

@media (max-width: 620px) {
  .pm-thread__head,
  .pm-compose {
    grid-template-columns: minmax(0, 1fr);
  }

  .pm-thread__head {
    display: grid;
  }

  .pm-message {
    max-width: 94%;
  }
}

/* Android/mobile adaptation */
@media (max-width: 1024px) {
  html {
    min-width: 0;
    -webkit-text-size-adjust: 100%;
  }

  body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    font-size: 14px;
  }

  body::before {
    opacity: 0.24;
    background-size: 32px 32px;
  }

  img,
  video,
  canvas,
  iframe {
    max-width: 100%;
  }

  .btn,
  .soft-button,
  .z7-login,
  .z7-create,
  .z7-primary,
  .z7-secondary,
  .vc-button,
  .vc-link,
  button,
  .input,
  .textarea,
  select {
    min-height: 44px;
  }

  .input,
  .textarea,
  select {
    width: 100%;
    max-width: 100%;
  }

  .row,
  .space-between,
  .app-hero__actions,
  .cabinet-meta,
  .profile-badge-row,
  .forum-topic-actions,
  .forum-reactions,
  .admin-inline-actions,
  .admin-actions-cell {
    flex-wrap: wrap;
  }

  .grid,
  .dashboard-grid,
  .cabinet-grid,
  .cabinet-grid--profile,
  .cabinet-banners,
  .profile-workspace,
  .admin-workspace,
  .admin-grid,
  .product-workspace,
  .market-shell,
  .market-feature-grid,
  .market-grid,
  .ticket-screen,
  .ticket-desk,
  .docs-screen,
  .pm-layout,
  .forum-layout,
  .page-forum .forum-layout,
  .page-forum-topic .forum-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .card,
  .page-app .card,
  .page-app .item,
  .soft-panel,
  .daily-card,
  .ref-card,
  .ticket-sidebar-card,
  .ticket-stage-card,
  .market-filter,
  .market-owned,
  .docs-manager,
  .docs-card,
  .forum-hero,
  .forum-sidebar-card,
  .forum-right-card,
  .forum-topic-card,
  .forum-board,
  .forum-post {
    border-radius: 14px !important;
    padding: 14px !important;
  }

  .page-app .topbar,
  .page-admin .topbar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 950 !important;
    width: 100% !important;
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(62, 71, 96, 0.58) !important;
    border-radius: 0 !important;
    background: rgba(8, 10, 16, 0.94) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: blur(18px) !important;
  }

  .page-app .topbar__left,
  .page-admin .topbar__left {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .page-app .topbar__title,
  .page-admin .topbar__title {
    min-width: 0;
    max-width: 52vw;
    display: block !important;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-app .icon-btn,
  .page-admin .icon-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  .page-app .topbar__right,
  .page-admin .topbar__right {
    min-width: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-left: auto !important;
  }

  .page-app .notif {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
  }

  .page-app .notif-box {
    position: fixed !important;
    top: 70px !important;
    right: 10px !important;
    width: min(460px, calc(100% - 20px)) !important;
    max-height: min(72vh, 560px) !important;
    overflow: auto !important;
  }

  .page-app .sidebar,
  .page-admin .sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 1100 !important;
    width: min(86vw, 320px) !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 100dvh !important;
    display: block !important;
    padding: calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-right: 1px solid rgba(62, 71, 96, 0.62) !important;
    border-radius: 0 18px 18px 0 !important;
    background: rgba(10, 12, 18, 0.97) !important;
    box-shadow: 22px 0 70px rgba(0, 0, 0, 0.5) !important;
    transform: translateX(-105%) !important;
    transition: transform 0.22s ease !important;
  }

  body.sidebar-open.page-app .sidebar,
  body.sidebar-open.page-admin .sidebar {
    transform: translateX(0) !important;
  }

  .sidebar-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: rgba(0, 0, 0, 0.58) !important;
    backdrop-filter: blur(2px) !important;
    transition: opacity 0.18s ease !important;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .page-app .sidebar h3,
  .page-admin .sidebar h3 {
    display: block !important;
    margin: 14px 0 10px !important;
  }

  .page-app .sidebar-brand,
  .page-admin .sidebar-brand {
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 0 14px !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .page-app .sidebar > a,
  .page-admin .sidebar > a,
  .page-admin .sidebar .item a {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 0 7px !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  .page-app .main,
  .page-admin .main {
    margin-left: 0 !important;
    padding: 76px 10px calc(24px + env(safe-area-inset-bottom)) !important;
  }

  .page-app .container,
  .page-admin .container,
  .page-forum .container,
  .page-dashboard .container,
  .page-profile .container,
  .page-products .container,
  .page-tickets .container,
  .page-docs .container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .app-breadcrumb {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .page-app .app-hero {
    min-height: auto !important;
    padding: 16px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .page-app .app-hero::after {
    display: none !important;
  }

  .page-app .app-hero__content h2 {
    font-size: clamp(24px, 8vw, 30px) !important;
  }

  .page-app .app-hero__content p {
    font-size: 14px !important;
  }

  .page-app .app-hero__aside,
  .profile-facts,
  .product-status-stack,
  .notif-list {
    min-width: 0;
  }

  .cabinet-profile-head,
  .profile-hero-card {
    min-height: auto !important;
    padding: 18px 14px !important;
    text-align: center !important;
  }

  .cabinet-avatar,
  .profile-avatar,
  img.profile-avatar {
    width: 58px !important;
    height: 58px !important;
    border-radius: 16px !important;
  }

  .cabinet-tabs,
  .market-tabs,
  .docs-tabs,
  .forum-filter-tabs,
  .forum-pagination {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
  }

  .cabinet-tabs button,
  .cabinet-tabs a,
  .market-tabs button,
  .market-tabs a,
  .docs-tabs a,
  .forum-filter-tabs a,
  .forum-pagination a,
  .forum-pagination span {
    flex: 0 0 auto !important;
    white-space: nowrap;
  }

  .daily-card {
    min-height: auto !important;
  }

  .market-filter,
  .market-segment,
  .market-two,
  .market-activate,
  .ticket-create-line,
  .ticket-thread-head,
  .docs-card,
  .docs-callout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .market-product-card {
    min-height: 220px !important;
  }

  .market-product-card h3 {
    font-size: 24px !important;
  }

  .market-card-bottom {
    gap: 8px;
    flex-wrap: wrap;
  }

  .ticket-list__item,
  .ticket-mini-item,
  .admin-list-item {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .docs-manager {
    position: static !important;
  }

  .docs-nav-pill {
    min-height: 42px;
  }

  .admin-toolbar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 760px;
  }

  .admin-mini-form,
  .admin-profile-editor {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .pm-sidebar,
  .pm-thread {
    min-height: auto !important;
  }

  .pm-conversation-list {
    max-height: 300px;
  }

  .pm-thread {
    min-height: 62vh !important;
  }

  .pm-thread__head,
  .pm-compose {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .pm-message {
    max-width: 100% !important;
  }

  .page-forum .main {
    padding: 76px 8px calc(24px + env(safe-area-inset-bottom)) !important;
  }

  .page-forum .forum-hero {
    min-height: auto !important;
    display: grid !important;
    gap: 14px !important;
  }

  .page-forum .forum-hero h2 {
    font-size: 25px !important;
  }

  .page-forum .forum-hero__stats {
    min-width: 0 !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .page-forum .forum-search {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .page-forum .forum-topic-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .page-forum .forum-topic-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .page-forum .forum-topic-actions form,
  .page-forum .forum-topic-actions .btn {
    width: 100% !important;
  }

  .page-forum .forum-board-row {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .page-forum .forum-board-stats,
  .page-forum .forum-board-last {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  .page-forum .forum-topic-link {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .page-forum .forum-topic-avatar {
    grid-row: 1 / span 2;
  }

  .page-forum .forum-topic-summary {
    min-width: 0;
  }

  .page-forum .forum-topic-summary > span,
  .page-forum .forum-topic-summary b,
  .page-forum .forum-topic-head h3,
  .page-forum .forum-rich-text,
  .page-forum .forum-post__body {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .page-forum .forum-topic-right {
    grid-column: 2 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    justify-items: start !important;
    gap: 8px !important;
  }

  .page-forum .forum-post {
    display: block !important;
    padding: 0 !important;
  }

  .page-forum .forum-author-card,
  .page-forum-topic .forum-author-card {
    min-height: 0 !important;
    padding: 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(73, 85, 116, 0.5) !important;
    text-align: left !important;
  }

  .page-forum .forum-author-card__avatar,
  .page-forum .forum-author-card__avatar-link .forum-author-card__avatar {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  .page-forum .forum-author-card__name {
    max-width: calc(100% - 54px) !important;
  }

  .page-forum .forum-author-card__stats {
    width: 100% !important;
    margin-left: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .page-forum .forum-author-card__pm {
    width: auto !important;
    min-height: 32px !important;
  }

  .page-forum .forum-post__body {
    padding: 14px !important;
  }

  .page-forum .forum-post__meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .forum-rich-text {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .forum-editor__toolbar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .forum-editor__toolbar button,
  .forum-editor__toolbar label {
    flex: 0 0 auto !important;
  }

  .forum-editor .textarea {
    min-height: 138px !important;
  }

  .forum-reactions {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }

  .forum-reactions form,
  .forum-reaction-btn {
    flex: 0 0 auto;
  }

  .page-forum-topic .forum-private-compose {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .page-forum-topic .forum-private-placeholder,
  .page-forum-topic .forum-private-visible,
  .forum-post__deal-warning {
    align-items: flex-start !important;
  }

  .page-landing.z7-page .z7-header,
  .page-landing.z7-landing-refresh .z7-header,
  .page-landing.z7-vanish-style .vc-header {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    border-radius: 0 !important;
  }

  .page-landing.z7-page .z7-nav,
  .page-landing.z7-landing-refresh .z7-nav,
  .page-landing.z7-vanish-style .vc-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  .page-landing.z7-page .z7-nav a,
  .page-landing.z7-landing-refresh .z7-nav a,
  .page-landing.z7-vanish-style .vc-nav a {
    min-height: 36px !important;
    justify-content: center !important;
    padding: 8px 6px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    text-align: center !important;
    font-size: 12px !important;
  }

  .z7-header__actions,
  .vc-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .z7-lang,
  .z7-login,
  .z7-create,
  .vc-link,
  .vc-button {
    width: 100% !important;
    justify-content: center !important;
  }

  .z7-hero,
  .z7-section,
  .z7-stats,
  .z7-duo,
  .z7-discord,
  .z7-esp,
  .z7-media,
  .z7-faq,
  .z7-footer,
  .vc-hero,
  .vc-benefits,
  .vc-stats,
  .vc-banner,
  .vc-products,
  .vc-duo,
  .vc-community,
  .vc-media,
  .vc-partner,
  .vc-faq,
  .vc-footer {
    width: calc(100% - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .z7-hero,
  .z7-advantages,
  .z7-products,
  .z7-stats,
  .z7-duo,
  .z7-compare,
  .z7-media,
  .vc-hero,
  .vc-benefits,
  .vc-product-grid,
  .vc-stats,
  .vc-duo,
  .vc-compare,
  .vc-partner {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .z7-hero,
  .vc-hero {
    min-height: auto !important;
    padding: 22px 16px !important;
  }

  .z7-hero h1,
  .vc-hero h1 {
    font-size: clamp(32px, 11vw, 42px) !important;
  }

  .z7-hero p,
  .vc-hero p {
    font-size: 15px !important;
  }

  .z7-hero__actions,
  .vc-hero__buttons {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .z7-hero__preview,
  .z7-product-card,
  .z7-product-card img,
  .z7-product-card video,
  .vc-hero-panel,
  .vc-product-card,
  .vc-product-card img,
  .vc-product-card video {
    min-height: 260px !important;
  }

  .z7-feature,
  .z7-big-link,
  .z7-discord,
  .z7-media,
  .vc-benefit,
  .vc-banner,
  .vc-community,
  .vc-partner,
  .vc-duo a {
    padding: 18px !important;
  }

  .z7-section__head,
  .z7-discord,
  .z7-footer,
  .vc-section-head,
  .vc-banner,
  .vc-community,
  .vc-footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    text-align: left !important;
  }

  .z7-feature h2,
  .z7-section__head h2,
  .z7-discord h2,
  .z7-esp h2,
  .z7-media h2,
  .z7-faq h2,
  .vc-benefit h2,
  .vc-banner h2,
  .vc-community h2,
  .vc-partner h2,
  .vc-section-head h2,
  .vc-faq h2 {
    font-size: clamp(24px, 8vw, 30px) !important;
  }

  .page-auth.z7-auth {
    padding: 10px !important;
  }

  .auth-v-header {
    position: static !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .auth-v-actions,
  .auth-v-mode {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .auth-v-main {
    min-height: auto !important;
    padding: 0 !important;
  }

  .auth-v-card {
    width: 100% !important;
    padding: 20px 14px !important;
  }

  .auth-v-card .auth-title {
    font-size: clamp(28px, 9vw, 36px) !important;
  }
}

.page-forum .forum-topic-badges .forum-topic-type,
.page-forum .forum-topic-head .forum-topic-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(215, 35, 52, 0.34);
  background: rgba(185, 14, 34, 0.16);
  color: #ffd0d8;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.page-forum .forum-topic-type--important {
  border-color: rgba(220, 34, 64, 0.42);
  background: rgba(185, 14, 44, 0.16);
  color: #ffc2cd;
}

.page-forum .forum-topic-type--release,
.page-forum .forum-topic-type--update {
  border-color: rgba(210, 28, 48, 0.40);
  background: rgba(185, 14, 34, 0.14);
  color: #ffc6ce;
}

.page-forum .forum-topic-type--faq,
.page-forum .forum-topic-type--guide {
  border-color: rgba(220, 58, 36, 0.38);
  background: rgba(185, 40, 24, 0.14);
  color: #ffd1d6;
}


/* Darker red tuning */
:root,
body.theme-dark,
body.theme-light {
  --bg: #070203;
  --bg-2: #0d0306;
  --paper: #14060a;
  --paper-2: #1d080f;
  --ink: #fff2f4;
  --text: #f6cbd2;
  --muted: #a96f7a;
  --muted-2: #7c4e56;
  --line: rgba(255, 155, 165, 0.10);
  --line-strong: rgba(255, 155, 165, 0.17);
  --primary: #c90f25;
  --primary-2: #d83a24;
  --accent: #a8062d;
  --violet: #981d31;
  --success: #b90f23;
  --danger: #c11226;
  --primary-rgb: 201, 15, 37;
  --primary2-rgb: 216, 58, 36;
  --accent-rgb: 168, 6, 45;
  --success-rgb: 185, 15, 35;
  --danger-rgb: 193, 18, 38;
  --shadow-soft: 0 20px 52px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 28px 74px rgba(0, 0, 0, 0.52);
  --shadow-strong: 0 38px 104px rgba(0, 0, 0, 0.68);
}

body,
body.theme-dark,
body.theme-light {
  background:
    linear-gradient(180deg, rgba(4, 1, 2, 0.78), rgba(4, 1, 2, 0.995) 72%),
    linear-gradient(135deg, #070203 0%, #120408 46%, #230711 100%);
}

body::before,
body.theme-dark::before,
body.theme-light::before {
  opacity: 0.34;
}

.card,
.surface,
.item,
.page-landing header,
.page-app .sidebar,
.page-app .topbar,
.notif-box,
.page-landing .faq-item,
.ticket-list__item,
.admin-ticket-link,
.sidebar-brand {
  border-color: rgba(255, 155, 165, 0.10);
  background-color: rgba(20, 6, 10, 0.88);
}

.btn:not(.btn--primary):not(.btn--danger),
.input,
.textarea,
.status-line,
.license-row,
.empty-state {
  background: rgba(18, 5, 9, 0.88);
  border-color: rgba(255, 155, 165, 0.13);
}

.btn--primary,
.sidebar-brand__mark,
.profile-avatar,
.signal-meter::before,
.features li::before {
  background: linear-gradient(135deg, #a8062d, #c90f25 58%, #d83a24);
}

.page-app .sidebar > a:hover,
.page-app .sidebar > a.is-active {
  background: rgba(185, 15, 35, 0.13);
  border-color: rgba(216, 58, 36, 0.28);
}

.news-card,
.auth-news-mini__item,
.news-panel__head--hero {
  background: linear-gradient(145deg, rgba(185, 15, 35, 0.11), rgba(8, 2, 4, 0.96));
  border-color: rgba(216, 58, 36, 0.18);
}

/* ================================================================
   SEASONAL THEMES
   ================================================================ */

/* --- WINTER --- */
body.season--winter {
  --bg: #050918;
  --bg-2: #080f22;
  --paper: #0c1428;
  --paper-2: #10182e;
  --primary: #4a9eff;
  --primary-2: #7ec8ff;
  --accent: #b0dcff;
  --violet: #6fa8ff;
  --primary-rgb: 74,158,255;
  --primary2-rgb: 126,200,255;
  --accent-rgb: 176,220,255;
  background:
    linear-gradient(180deg,rgba(4,8,26,.72),rgba(4,8,26,.97) 72%),
    linear-gradient(135deg,#040818 0%,#081526 45%,#06102a 100%);
}
body.season--winter::before {
  background-image:
    linear-gradient(rgba(100,170,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(100,170,255,.04) 1px,transparent 1px),
    linear-gradient(135deg,rgba(74,158,255,.12),transparent 34%,rgba(126,200,255,.06));
  background-size:44px 44px;
}
body.season--winter .sidebar { border-color:rgba(74,158,255,.1); }
body.season--winter .card { border-color:rgba(74,158,255,.08); }

/* --- SPRING --- */
body.season--spring {
  --bg: #050e0a;
  --bg-2: #081510;
  --paper: #0c1c14;
  --paper-2: #102218;
  --primary: #28d88a;
  --primary-2: #ff9de2;
  --accent: #ff79c6;
  --violet: #bd93f9;
  --primary-rgb: 40,216,138;
  --primary2-rgb: 255,157,226;
  --accent-rgb: 255,121,198;
  background:
    linear-gradient(180deg,rgba(4,12,8,.72),rgba(4,12,8,.97) 72%),
    linear-gradient(135deg,#040c08 0%,#0a1c10 45%,#050e0a 100%);
}
body.season--spring::before {
  background-image:
    linear-gradient(rgba(40,216,138,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(40,216,138,.04) 1px,transparent 1px),
    linear-gradient(135deg,rgba(40,216,138,.10),transparent 34%,rgba(255,157,226,.08));
  background-size:44px 44px;
}
body.season--spring .sidebar { border-color:rgba(40,216,138,.1); }
body.season--spring .card { border-color:rgba(40,216,138,.08); }

/* --- SUMMER --- */
body.season--summer {
  --bg: #130806;
  --bg-2: #1e0d08;
  --paper: #221008;
  --paper-2: #2a140a;
  --primary: #ff6b35;
  --primary-2: #ffb347;
  --accent: #ffd166;
  --violet: #ff8c69;
  --warning: #ffd166;
  --primary-rgb: 255,107,53;
  --primary2-rgb: 255,179,71;
  --accent-rgb: 255,209,102;
  background:
    linear-gradient(180deg,rgba(18,8,4,.72),rgba(18,8,4,.97) 72%),
    linear-gradient(135deg,#130806 0%,#200f06 45%,#180a06 100%);
}
body.season--summer::before {
  background-image:
    linear-gradient(rgba(255,107,53,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,107,53,.04) 1px,transparent 1px),
    linear-gradient(135deg,rgba(255,107,53,.10),transparent 34%,rgba(255,209,102,.06));
  background-size:44px 44px;
}
body.season--summer .sidebar { border-color:rgba(255,107,53,.1); }
body.season--summer .card { border-color:rgba(255,107,53,.08); }

/* --- AUTUMN --- */
body.season--autumn {
  --bg: #100904;
  --bg-2: #180e05;
  --paper: #1e1208;
  --paper-2: #26170a;
  --primary: #e07b39;
  --primary-2: #f4a261;
  --accent: #e9c46a;
  --violet: #f07f3e;
  --warning: #e9c46a;
  --primary-rgb: 224,123,57;
  --primary2-rgb: 244,162,97;
  --accent-rgb: 233,196,106;
  background:
    linear-gradient(180deg,rgba(14,9,3,.72),rgba(14,9,3,.97) 72%),
    linear-gradient(135deg,#100904 0%,#1e1206 45%,#160e05 100%);
}
body.season--autumn::before {
  background-image:
    linear-gradient(rgba(224,123,57,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(224,123,57,.04) 1px,transparent 1px),
    linear-gradient(135deg,rgba(224,123,57,.10),transparent 34%,rgba(233,196,106,.06));
  background-size:44px 44px;
}
body.season--autumn .sidebar { border-color:rgba(224,123,57,.1); }
body.season--autumn .card { border-color:rgba(224,123,57,.08); }

/* Season canvas overlay */
#season-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ================================================================
   REDESIGNED PROFILE PAGE  (.pf-*)
   ================================================================ */

.pf-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 0 48px;
}

/* --- Cover + Identity header --- */
.pf-header {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.pf-cover {
  height: 210px;
  background: linear-gradient(135deg,rgba(var(--primary-rgb),.35) 0%,rgba(var(--accent-rgb),.18) 100%);
  background-size: cover;
  background-position: center top;
  position: relative;
}

.pf-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(0,0,0,.65) 0%,rgba(0,0,0,.10) 60%);
}

.pf-header__inner {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 0 28px 18px;
  margin-top: -48px;
  position: relative;
  flex-wrap: wrap;
}

.pf-avatar-frame {
  position: relative;
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid var(--paper);
  background: var(--paper-2);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
}

.pf-avatar-frame img,
.pf-avatar-frame .cabinet-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.pf-avatar-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-title);
}

.pf-online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  background: var(--muted-2);
}

.pf-online-dot.is-online { background: var(--success); }

.pf-header__identity {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}

.pf-username {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-title);
  line-height: 1.2;
}

.pf-role-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.pf-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  /* Участник — оранжевый */
  background: rgba(255,140,0,.22);
  color: #ff8c00;
}

.pf-role-badge--admin  { background: rgba(220,38,38,.25);  color: #ff4444; }
.pf-role-badge--mod    { background: rgba(59,130,246,.22);  color: #60a5fa; }
.pf-role-badge--banned { background: rgba(100,100,100,.22); color: #9ca3af; }

.pf-join-date {
  font-size: 13px;
  color: var(--muted);
}

.pf-bio {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 520px;
}

.pf-header__actions {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding-bottom: 4px;
  margin-left: auto;
}

/* --- Stats bar --- */
.pf-stats {
  display: flex;
  border-top: 1px solid var(--line);
}

.pf-stat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  transition: background .15s;
}

.pf-stat + .pf-stat {
  border-left: 1px solid var(--line);
}

.pf-stat:hover {
  background: rgba(var(--primary-rgb),.04);
}

.pf-stat b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-title);
  line-height: 1;
  margin-bottom: 4px;
}

.pf-stat span {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* --- Profile tabs --- */
.pf-tabs {
  display: flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 4px;
  gap: 2px;
}

.pf-tabs button {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  font: 600 13px/1 var(--font-body);
  padding: 9px 16px;
  cursor: pointer;
  border-radius: 9px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.pf-tabs button:hover { color: var(--text); background: rgba(var(--primary-rgb),.06); }
.pf-tabs button.is-active { background: rgba(var(--primary-rgb),.14); color: var(--primary); }

/* --- Profile body layout --- */
.pf-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 800px) {
  .pf-body { grid-template-columns: 1fr; }
  .pf-header__inner { padding: 0 18px 16px; }
  .pf-stats .pf-stat { padding: 10px 4px; }
  .pf-stat b { font-size: 17px; }
}

/* --- Profile card --- */
.pf-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.pf-card:last-child { margin-bottom: 0; }

.pf-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.pf-card h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 18px 10px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

/* --- Info list inside card --- */
.pf-info-list { padding: 6px 0; }

.pf-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 18px;
  font-size: 13px;
  gap: 12px;
}

.pf-info-row span:first-child,
.pf-info-row > span:not(.badge) { color: var(--muted); flex-shrink: 0; }

.pf-info-row b { color: var(--text); font-weight: 500; text-align: right; }

/* --- Panel visibility --- */
.pf-panel { display: none; }
.pf-panel.is-active { display: block; }

/* --- Activity feed --- */
.pf-activity-feed { display: flex; flex-direction: column; gap: 10px; }

.pf-activity-item {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  transition: border-color .15s, background .15s;
}

.pf-activity-item:hover {
  border-color: rgba(var(--primary-rgb),.3);
  background: rgba(var(--primary-rgb),.03);
}

.pf-activity-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  background: rgba(var(--primary-rgb),.10);
  color: var(--primary);
}

.pf-activity-item__badge--post {
  background: rgba(var(--primary2-rgb),.10);
  color: var(--primary-2);
}

.pf-activity-item__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.pf-activity-item__preview {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-activity-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 8px;
}

/* --- Edit form sections --- */
.pf-edit-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
}

.pf-edit-section:last-child { margin-bottom: 0; }

.pf-edit-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  font-family: var(--font-title);
}

/* --- Profile ban alert --- */
.pf-ban-notice {
  background: rgba(var(--danger-rgb),.08);
  border: 1px solid rgba(var(--danger-rgb),.22);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-ban-notice b { color: var(--danger); font-size: 14px; }
.pf-ban-notice span { color: var(--muted); font-size: 13px; }

/* --- Online indicator on profile --- */
.pf-online-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.pf-online-status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}

.pf-online-status.is-online::before { background: var(--success); }
.pf-online-status.is-online { color: var(--success); }
.pf-online-status.is-offline { color: var(--muted); }

/* --- Visitor list --- */
.pf-visitor-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}

.pf-visitor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  transition: background .15s;
  border-radius: 0;
}

.pf-visitor-item:hover { background: rgba(var(--primary-rgb),.04); }

.pf-visitor-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.pf-visitor-info { flex: 1; min-width: 0; }
.pf-visitor-name { font-size: 13px; font-weight: 600; color: var(--text); display: block; }
.pf-visitor-time { font-size: 11px; color: var(--muted-2); }

/* ================================================================
   ADMIN APPEARANCE SECTION
   ================================================================ */

.season-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.season-card {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: center;
  user-select: none;
}

.season-card:hover { border-color: var(--primary); background: rgba(var(--primary-rgb),.04); }
.season-card.is-active { border-color: var(--primary); background: rgba(var(--primary-rgb),.08); }

.season-card__icon { font-size: 32px; margin-bottom: 8px; display: block; }
.season-card__name { font-size: 14px; font-weight: 700; color: var(--ink); }
.season-card__desc { font-size: 12px; color: var(--muted); margin-top: 4px; }

.season-card__radio {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper-2);
  transition: border-color .15s, background .15s;
}

.season-card.is-active .season-card__radio {
  border-color: var(--primary);
  background: var(--primary);
}

/* ================================================================
   IMPROVED FORUM STYLES (LolzTeam-inspired)
   ================================================================ */

/* Forum board grid with bigger category cards */
.forum-board-row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}

.forum-board-row:last-child { border-bottom: none; }
.forum-board-row:hover { background: rgba(var(--primary-rgb),.03); }

.forum-board-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb),.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.forum-board-stats {
  text-align: center;
  min-width: 64px;
}

.forum-board-stats b { display: block; font-size: 18px; font-weight: 700; color: var(--ink); }
.forum-board-stats span { font-size: 11px; color: var(--muted-2); text-transform: uppercase; }

.forum-board-last { text-align: right; max-width: 200px; min-width: 120px; }
.forum-board-last b { display: block; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.forum-board-last span { font-size: 12px; color: var(--muted-2); }

/* Better forum topic row */
.forum-topic-link {
  position: relative;
  transition: background .15s, border-left-color .15s;
  border-left: 3px solid transparent;
}

.forum-topic-link.is-pinned { border-left-color: var(--primary); }
.forum-topic-link:hover { background: rgba(var(--primary-rgb),.03); border-left-color: rgba(var(--primary-rgb),.4); }

/* Better forum stats in topic right column */
.forum-topic-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 80px;
}

.forum-topic-right span:first-child { color: var(--text); font-weight: 600; font-size: 13px; }

/* Forum hero improvement */
.forum-hero {
  background: linear-gradient(135deg,rgba(var(--primary-rgb),.10) 0%,rgba(var(--accent-rgb),.04) 100%);
  border: 1px solid rgba(var(--primary-rgb),.12);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.forum-hero__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
}

.forum-hero__copy h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  font-family: var(--font-title);
}

.forum-hero__copy p { color: var(--muted); margin: 0; font-size: 14px; }

.forum-hero__stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.forum-hero__stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.forum-hero__stats b {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-title);
  line-height: 1;
}

.forum-hero__stats em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Better pagination */
.forum-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.forum-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(var(--primary-rgb),.08);
  color: var(--primary);
  transition: background .15s;
  border: 1px solid rgba(var(--primary-rgb),.12);
}

.forum-pagination a:hover { background: rgba(var(--primary-rgb),.16); }
.forum-pagination span { font-size: 13px; color: var(--muted); padding: 0 8px; }

/* Forum quick-action bar */
.forum-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font: 600 14px var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}

.forum-new-btn:hover { opacity: .85; }

/* Forum category link improvement */
.forum-category-link {
  border-radius: 8px;
  margin-bottom: 2px;
  padding: 8px 12px;
  display: block;
  transition: background .15s;
  border-left: 3px solid transparent;
}

.forum-category-link.is-active {
  background: rgba(var(--primary-rgb),.1);
  border-left-color: var(--primary);
}

.forum-category-link b { display: block; font-size: 13px; }
.forum-category-link span { font-size: 12px; color: var(--muted-2); }

/* Post number badge */
.forum-post-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(var(--primary-rgb),.10);
  color: var(--primary);
  margin-left: 6px;
}

/* Admin appearance section preview */
.season-preview-bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
}

.season-preview-bar--winter { background: linear-gradient(90deg,#4a9eff,#7ec8ff); }
.season-preview-bar--spring { background: linear-gradient(90deg,#28d88a,#ff9de2); }
.season-preview-bar--summer { background: linear-gradient(90deg,#ff6b35,#ffd166); }
.season-preview-bar--autumn { background: linear-gradient(90deg,#e07b39,#e9c46a); }
.season-preview-bar--none   { background: linear-gradient(90deg,#7c5cff,#23d5ff); }

/* Season canvas - behind all content */
#season-canvas { z-index: 0; }

/* ================================================================
   SEASONAL OVERRIDES — полностью заменяют красную тему
   Переопределяем ВСЕ :root переменные + фон body
   ================================================================ */

/* ---- ЗИМА ---- */
body.season--winter {
  --bg: #050918; --bg-2: #080f22; --paper: #0c1428; --paper-2: #10182e;
  --ink: #eef4ff; --text: #ccdcff; --muted: #7a9acc; --muted-2: #4d6e99;
  --line: rgba(100,170,255,.10); --line-strong: rgba(100,170,255,.18);
  --primary: #4a9eff; --primary-2: #7ec8ff; --accent: #b0dcff; --violet: #6fa8ff;
  --warning: #ffc857; --success: #35e59a; --danger: #ff4d5f;
  --primary-rgb: 74,158,255; --primary2-rgb: 126,200,255; --accent-rgb: 176,220,255;
  --warning-rgb: 255,200,87; --danger-rgb: 255,77,95; --success-rgb: 53,229,154;
  color: var(--text);
  background: linear-gradient(180deg,rgba(4,8,26,.75),rgba(4,8,26,.98) 75%),
              linear-gradient(135deg,#040818 0%,#081526 50%,#06102a 100%);
}
body.season--winter::before {
  background-image:
    linear-gradient(rgba(74,158,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(74,158,255,.04) 1px,transparent 1px),
    linear-gradient(135deg,rgba(74,158,255,.10),transparent 35%,rgba(126,200,255,.05));
  background-size: 44px 44px;
}

/* ---- ВЕСНА ---- */
body.season--spring {
  --bg: #050e0a; --bg-2: #081510; --paper: #0c1c14; --paper-2: #102218;
  --ink: #eeffee; --text: #c8f0d8; --muted: #6db890; --muted-2: #428060;
  --line: rgba(40,216,138,.10); --line-strong: rgba(40,216,138,.18);
  --primary: #28d88a; --primary-2: #ff9de2; --accent: #ff79c6; --violet: #bd93f9;
  --warning: #ffc857; --success: #28d88a; --danger: #ff4d5f;
  --primary-rgb: 40,216,138; --primary2-rgb: 255,157,226; --accent-rgb: 255,121,198;
  --warning-rgb: 255,200,87; --danger-rgb: 255,77,95; --success-rgb: 40,216,138;
  color: var(--text);
  background: linear-gradient(180deg,rgba(4,12,8,.75),rgba(4,12,8,.98) 75%),
              linear-gradient(135deg,#040c08 0%,#0a1c10 50%,#050e0a 100%);
}
body.season--spring::before {
  background-image:
    linear-gradient(rgba(40,216,138,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(40,216,138,.04) 1px,transparent 1px),
    linear-gradient(135deg,rgba(40,216,138,.10),transparent 35%,rgba(255,157,226,.06));
  background-size: 44px 44px;
}

/* ---- ЛЕТО ---- */
body.season--summer {
  --bg: #130806; --bg-2: #1e0d08; --paper: #221008; --paper-2: #2a140a;
  --ink: #fff8ee; --text: #ffecd8; --muted: #c48860; --muted-2: #8a5a38;
  --line: rgba(255,107,53,.10); --line-strong: rgba(255,107,53,.18);
  --primary: #ff6b35; --primary-2: #ffb347; --accent: #ffd166; --violet: #ff8c69;
  --warning: #ffd166; --success: #35e59a; --danger: #ff4d5f;
  --primary-rgb: 255,107,53; --primary2-rgb: 255,179,71; --accent-rgb: 255,209,102;
  --warning-rgb: 255,209,102; --danger-rgb: 255,77,95; --success-rgb: 53,229,154;
  color: var(--text);
  background: linear-gradient(180deg,rgba(18,8,4,.75),rgba(18,8,4,.98) 75%),
              linear-gradient(135deg,#130806 0%,#200f06 50%,#180a06 100%);
}
body.season--summer::before {
  background-image:
    linear-gradient(rgba(255,107,53,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,107,53,.04) 1px,transparent 1px),
    linear-gradient(135deg,rgba(255,107,53,.10),transparent 35%,rgba(255,209,102,.06));
  background-size: 44px 44px;
}

/* ---- ОСЕНЬ ---- */
body.season--autumn {
  --bg: #100904; --bg-2: #180e05; --paper: #1e1208; --paper-2: #26170a;
  --ink: #fff8ee; --text: #ffe8c0; --muted: #b88a50; --muted-2: #7a5830;
  --line: rgba(224,123,57,.10); --line-strong: rgba(224,123,57,.18);
  --primary: #e07b39; --primary-2: #f4a261; --accent: #e9c46a; --violet: #f07f3e;
  --warning: #e9c46a; --success: #35e59a; --danger: #ff4d5f;
  --primary-rgb: 224,123,57; --primary2-rgb: 244,162,97; --accent-rgb: 233,196,106;
  --warning-rgb: 233,196,106; --danger-rgb: 255,77,95; --success-rgb: 53,229,154;
  color: var(--text);
  background: linear-gradient(180deg,rgba(14,9,3,.75),rgba(14,9,3,.98) 75%),
              linear-gradient(135deg,#100904 0%,#1e1206 50%,#160e05 100%);
}
body.season--autumn::before {
  background-image:
    linear-gradient(rgba(224,123,57,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(224,123,57,.04) 1px,transparent 1px),
    linear-gradient(135deg,rgba(224,123,57,.10),transparent 35%,rgba(233,196,106,.06));
  background-size: 44px 44px;
}

/* Заменяем красные хардкоды в sidebar/card/button для сезонных тем */
body[class*="season--"] .page-app .sidebar > a.is-active,
body[class*="season--"] .page-app .sidebar > a:hover {
  background: rgba(var(--primary-rgb),.14) !important;
  border-color: rgba(var(--primary-rgb),.28) !important;
  color: var(--primary) !important;
  box-shadow: inset 3px 0 0 rgba(var(--primary-rgb),.7) !important;
}
body[class*="season--"] .btn--primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
body[class*="season--"] .notif {
  border-color: rgba(var(--primary-rgb),.32) !important;
  color: var(--text) !important;
}
body[class*="season--"] .news-card,
body[class*="season--"] .auth-news-mini__item,
body[class*="season--"] .news-panel__head--hero {
  background: linear-gradient(145deg,rgba(var(--primary-rgb),.11),rgba(var(--bg-2), .96)) !important;
  border-color: rgba(var(--primary-rgb),.18) !important;
}
body[class*="season--"] .forum-topic-type--important,
body[class*="season--"] .forum-topic-type--release {
  background: rgba(var(--primary-rgb),.14) !important;
  color: var(--primary) !important;
}
body[class*="season--"] .badge--success { background: rgba(var(--success-rgb),.14); color: var(--success); }
body[class*="season--"] .badge--danger  { background: rgba(var(--danger-rgb),.14);  color: var(--danger); }
body[class*="season--"] .sidebar-brand__mark { background: var(--primary) !important; }

/* ================================================================
   ФОРУМ — СТИЛЬ LOLZTEAM / YOUGAME
   ================================================================ */

/* --- Общий layout форума --- */
.lz-forum-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Шапка категории (board header) --- */
.lz-board {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.lz-board__head {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--primary-rgb),.04);
}

.lz-board__head-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted-2);
  flex: 1;
}

.lz-board__head-stats {
  display: flex;
  gap: 32px;
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.lz-board__head-stats span { min-width: 60px; }

/* --- Строка категории --- */
.lz-category-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.lz-category-row:last-child { border-bottom: none; }
.lz-category-row:hover { background: rgba(var(--primary-rgb),.03); }

.lz-category-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb),.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  border: 1px solid rgba(var(--primary-rgb),.15);
}

.lz-category-info { min-width: 0; }
.lz-category-name {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin-bottom: 3px; display: block;
}
.lz-category-desc { font-size: 12px; color: var(--muted); }

.lz-category-stat {
  text-align: center; min-width: 64px;
}
.lz-category-stat b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.lz-category-stat span { font-size: 11px; color: var(--muted-2); }

.lz-category-last { text-align: right; max-width: 200px; }
.lz-category-last b { display: block; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.lz-category-last em { font-style: normal; font-size: 11px; color: var(--muted-2); }

/* --- Topic list rows --- */
.lz-topic-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.lz-topic-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--primary-rgb),.04);
}

.lz-topic-head h3 { font-size: 14px; font-weight: 700; margin: 0; }

.lz-topic-row {
  display: grid;
  grid-template-columns: 44px 1fr 70px 70px 160px;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
}
.lz-topic-row:last-child { border-bottom: none; }
.lz-topic-row:hover { background: rgba(var(--primary-rgb),.03); }
.lz-topic-row.is-pinned { border-left-color: var(--primary); background: rgba(var(--primary-rgb),.02); }
.lz-topic-row.is-locked { opacity: .75; }

.lz-topic-avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
}
.lz-topic-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lz-topic-avatar-letter {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--primary);
  background: rgba(var(--primary-rgb),.12);
}

.lz-topic-main { min-width: 0; }
.lz-topic-badges { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; flex-wrap: wrap; }
.lz-topic-title { font-size: 14px; font-weight: 600; color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lz-topic-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lz-topic-meta .lz-author { color: var(--primary); font-weight: 600; }
.lz-topic-meta .lz-author--admin { color: #ff4d5f; }

.lz-topic-stat { text-align: center; }
.lz-topic-stat b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.lz-topic-stat span { font-size: 11px; color: var(--muted-2); }

.lz-topic-last { text-align: right; min-width: 0; }
.lz-topic-last b { display: block; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lz-topic-last em { font-style: normal; font-size: 11px; color: var(--muted-2); }
.lz-topic-last small { display: block; font-size: 11px; color: var(--muted-2); }

/* --- Badges в темах --- */
.lz-pin-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 4px; background: rgba(var(--primary-rgb),.12); color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.lz-lock-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 4px; background: rgba(var(--muted-2),.15); color: var(--muted);
  text-transform: uppercase;
}

/* --- Sidebar форума (правый) --- */
.lz-sidebar {
  display: flex; flex-direction: column; gap: 12px;
}

.lz-sidebar-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.lz-sidebar-card h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted-2);
  padding: 10px 16px; border-bottom: 1px solid var(--line); margin: 0;
}
.lz-sidebar-item {
  display: block; padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  transition: background .15s; text-decoration: none;
}
.lz-sidebar-item:last-child { border-bottom: none; }
.lz-sidebar-item:hover { background: rgba(var(--primary-rgb),.04); }
.lz-sidebar-item b { display: block; font-size: 13px; color: var(--text); line-height: 1.3; margin-bottom: 2px; }
.lz-sidebar-item span { font-size: 11px; color: var(--muted-2); }

/* Forum layout */
.lz-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 16px;
  align-items: start;
}
.lz-categories { grid-column: 1 / 3; }

@media (max-width: 800px) {
  .lz-layout { grid-template-columns: 1fr; }
  .lz-categories { grid-column: 1 / 2; }
  .lz-topic-row { grid-template-columns: 36px 1fr 50px; }
  .lz-topic-stat:nth-child(4), .lz-topic-last { display: none; }
  .lz-category-row { grid-template-columns: 44px 1fr; }
  .lz-category-stat, .lz-category-last { display: none; }
}

/* Forum hero LZ-style */
.lz-hero {
  background: linear-gradient(135deg, rgba(var(--primary-rgb),.12) 0%, rgba(var(--accent-rgb),.04) 100%);
  border: 1px solid rgba(var(--primary-rgb),.15);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.lz-hero__title { font-size: 22px; font-weight: 800; margin: 0 0 4px; font-family: var(--font-title); }
.lz-hero__sub { color: var(--muted); font-size: 13px; margin: 0; }
.lz-hero__stats { display: flex; gap: 20px; flex-wrap: wrap; }
.lz-hero__stat { text-align: center; }
.lz-hero__stat b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); font-family: var(--font-title); }
.lz-hero__stat em { font-style: normal; font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.5px; }

/* Forum pagination LZ */
.lz-pagination {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 14px; border-top: 1px solid var(--line);
}
.lz-pagination a, .lz-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px;
  border-radius: 7px; font-size: 13px; font-weight: 600;
}
.lz-pagination a {
  background: rgba(var(--primary-rgb),.10); color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb),.15); transition: background .15s;
  text-decoration: none;
}
.lz-pagination a:hover { background: rgba(var(--primary-rgb),.18); }
.lz-pagination span { color: var(--muted); }

/* ================================================================
   СТЕНА КОММЕНТАРИЕВ ПРОФИЛЯ
   ================================================================ */

.pf-wall { display: flex; flex-direction: column; gap: 10px; }

.pf-wall-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.pf-wall-form__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: rgba(var(--primary-rgb),.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--primary);
}
.pf-wall-form__input { flex: 1; }
.pf-wall-form__input textarea {
  width: 100%; resize: none; min-height: 60px;
}

.pf-wall-comment {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.pf-wall-comment__avatar {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; background: rgba(var(--primary-rgb),.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--primary);
}
.pf-wall-comment__body { flex: 1; min-width: 0; }
.pf-wall-comment__head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.pf-wall-comment__author { font-size: 13px; font-weight: 700; color: var(--primary); }
.pf-wall-comment__author--admin { color: #ff4d5f; }
.pf-wall-comment__time { font-size: 11px; color: var(--muted-2); }
.pf-wall-comment__text { font-size: 14px; color: var(--text); line-height: 1.5; }

/* Forum cat icon colors по очереди */
.lz-category-icon:nth-child(1) { background: rgba(74,158,255,.12); color: #4a9eff; }
.lz-board:nth-child(1) .lz-category-icon { background: rgba(var(--primary-rgb),.12); color: var(--primary); }
.lz-board:nth-child(2) .lz-category-icon { background: rgba(40,216,138,.12); color: #28d88a; }
.lz-board:nth-child(3) .lz-category-icon { background: rgba(255,107,53,.12); color: #ff6b35; }
.lz-board:nth-child(4) .lz-category-icon { background: rgba(233,196,106,.12); color: #e9c46a; }

/* ================================================================
   FORUM v2 — LolzTeam/YouGame style (читабельный)
   Префикс: .fz- (forum-zen)
   ================================================================ */

/* --- Layout: 2 колонки, sidebar + main --- */
.fz-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px) {
  .fz-wrap { grid-template-columns: 1fr; }
}

.fz-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fz-side { display: flex; flex-direction: column; gap: 14px; }

/* --- HERO --- */
.fz-hero {
  background: linear-gradient(135deg, rgba(var(--primary-rgb),.14) 0%, rgba(var(--accent-rgb),.06) 100%);
  border: 1px solid rgba(var(--primary-rgb),.18);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.fz-hero h1 {
  font-size: 24px; font-weight: 800; margin: 0 0 6px;
  font-family: var(--font-title); color: var(--ink);
}
.fz-hero p { color: var(--muted); margin: 0; font-size: 14px; }
.fz-hero__stats { display: flex; gap: 28px; flex-wrap: wrap; }
.fz-hero__stat { text-align: center; }
.fz-hero__stat b {
  display: block; font-size: 22px; font-weight: 800;
  color: var(--ink); font-family: var(--font-title); line-height: 1.1;
}
.fz-hero__stat em {
  font-style: normal; font-size: 11px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.6px;
}

/* --- CARD (общий контейнер) --- */
.fz-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.fz-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--primary-rgb),.04);
}
.fz-card__head h2 {
  font-size: 15px; font-weight: 700; margin: 0;
  color: var(--ink); font-family: var(--font-title);
}
.fz-card__head-info {
  font-size: 12px; color: var(--muted);
}

/* --- Категория (board row) --- */
.fz-board { display: flex; flex-direction: column; }

.fz-board-row {
  display: grid;
  grid-template-columns: 56px 1fr 90px 200px;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.fz-board-row:last-child { border-bottom: none; }
.fz-board-row:hover { background: rgba(var(--primary-rgb),.04); }

.fz-board-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb),.14);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  font-family: var(--font-title);
  flex-shrink: 0;
}

.fz-board-info { min-width: 0; }
.fz-board-name {
  display: block;
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.fz-board-desc {
  font-size: 13px; color: var(--muted);
  line-height: 1.4;
}

.fz-board-count {
  text-align: center;
}
.fz-board-count b {
  display: block; font-size: 18px; font-weight: 700;
  color: var(--ink); font-family: var(--font-title);
  line-height: 1;
}
.fz-board-count span {
  font-size: 11px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.5px;
}

.fz-board-last { min-width: 0; }
.fz-board-last b {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.fz-board-last span {
  font-size: 12px; color: var(--muted-2);
}
.fz-board-last .fz-author { color: var(--primary); font-weight: 600; }

@media (max-width: 700px) {
  .fz-board-row { grid-template-columns: 44px 1fr; padding: 14px 16px; }
  .fz-board-count, .fz-board-last { display: none; }
}

/* --- Toolbar (фильтры/поиск) --- */
.fz-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.fz-toolbar form {
  display: flex; gap: 8px; flex: 1; min-width: 240px; margin: 0;
}
.fz-toolbar .input {
  flex: 1; min-width: 0;
}

.fz-filters {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}
.fz-filter {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px; font-weight: 600;
  background: rgba(var(--primary-rgb),.06);
  color: var(--muted);
  text-decoration: none;
  transition: background .15s, color .15s;
  border: 1px solid transparent;
}
.fz-filter:hover { background: rgba(var(--primary-rgb),.12); color: var(--text); }
.fz-filter.is-active {
  background: rgba(var(--primary-rgb),.18);
  color: var(--primary);
  border-color: rgba(var(--primary-rgb),.30);
}

.fz-filters-sep {
  width: 1px; height: 22px; background: var(--line);
  margin: 0 4px; align-self: center;
}

/* --- TOPICS table --- */
.fz-topics { display: flex; flex-direction: column; }

.fz-topics-header {
  display: grid;
  grid-template-columns: 48px 1fr 80px 80px 180px;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--primary-rgb),.025);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--muted-2);
}
.fz-topics-header > span:nth-child(3),
.fz-topics-header > span:nth-child(4) { text-align: center; }
.fz-topics-header > span:nth-child(5) { text-align: left; }

.fz-topic {
  display: grid;
  grid-template-columns: 48px 1fr 80px 80px 180px;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: background .15s, border-left-color .15s;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.fz-topic:last-child { border-bottom: none; }
.fz-topic:hover {
  background: rgba(var(--primary-rgb),.04);
  border-left-color: rgba(var(--primary-rgb),.4);
}
.fz-topic.is-pinned {
  border-left-color: var(--primary);
  background: rgba(var(--primary-rgb),.03);
}

.fz-topic-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(var(--primary-rgb),.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  color: var(--primary);
  font-family: var(--font-title);
}
.fz-topic-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.fz-topic-main { min-width: 0; }
.fz-topic-badges {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.fz-topic-title {
  display: block;
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.fz-topic:hover .fz-topic-title { color: var(--primary); }

.fz-topic-meta {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.fz-topic-meta .fz-author { color: var(--primary); font-weight: 600; }
.fz-topic-meta .fz-author--admin { color: #ff4d5f; }
.fz-topic-meta .fz-dot { color: var(--muted-2); }
.fz-topic-meta .fz-cat { color: var(--muted); }
.fz-topic-meta .fz-time { color: var(--muted-2); }

.fz-topic-tags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.fz-topic-tag {
  display: inline-flex; align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px; font-weight: 500;
  background: rgba(var(--primary-rgb),.08);
  color: var(--muted);
}

.fz-topic-stat {
  text-align: center;
}
.fz-topic-stat b {
  display: block;
  font-size: 16px; font-weight: 700;
  color: var(--text);
  font-family: var(--font-title);
  line-height: 1.1;
}
.fz-topic-stat span {
  font-size: 10px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.5px;
}

.fz-topic-last { min-width: 0; }
.fz-topic-last b {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.fz-topic-last small {
  font-size: 11px; color: var(--muted-2);
}

/* --- Badges --- */
.fz-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.fz-badge--type {
  background: rgba(var(--primary-rgb),.12);
  color: var(--primary);
}
.fz-badge--pinned {
  background: rgba(var(--warning-rgb),.14);
  color: var(--warning);
}
.fz-badge--locked {
  background: rgba(var(--muted-2),.18);
  color: var(--muted);
}

/* --- Mobile topics table --- */
@media (max-width: 800px) {
  .fz-topics-header { display: none; }
  .fz-topic {
    grid-template-columns: 44px 1fr 56px;
    padding: 12px 16px; gap: 12px;
  }
  .fz-topic > .fz-topic-stat:nth-child(4), 
  .fz-topic > .fz-topic-last { display: none; }
  .fz-topic-title { font-size: 14px; }
  .fz-topic-avatar { width: 40px; height: 40px; font-size: 16px; }
}

/* --- Empty state --- */
.fz-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* --- Pagination --- */
.fz-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.fz-pagination a, .fz-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
}
.fz-pagination a {
  background: rgba(var(--primary-rgb),.10);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb),.18);
  text-decoration: none;
  transition: background .15s;
}
.fz-pagination a:hover { background: rgba(var(--primary-rgb),.20); }
.fz-pagination span { color: var(--muted); }

/* --- Sidebar --- */
.fz-sidebar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.fz-sidebar-card h3 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--muted-2);
  padding: 13px 16px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--primary-rgb),.04);
}
.fz-sidebar-link {
  display: block;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .15s;
  border-left: 3px solid transparent;
}
.fz-sidebar-link:last-child { border-bottom: none; }
.fz-sidebar-link:hover {
  background: rgba(var(--primary-rgb),.06);
  border-left-color: rgba(var(--primary-rgb),.3);
}
.fz-sidebar-link.is-active {
  background: rgba(var(--primary-rgb),.10);
  border-left-color: var(--primary);
}
.fz-sidebar-link b {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 3px;
}
.fz-sidebar-link span {
  font-size: 11px;
  color: var(--muted-2);
}

/* --- Create-topic card --- */
.fz-create-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
}
.fz-create-card h2 {
  font-size: 16px; font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
}
.fz-create-card .input,
.fz-create-card .textarea {
  margin-bottom: 10px;
}
.fz-create-row {
  display: flex; gap: 10px; margin-bottom: 10px;
}
.fz-create-row .input:first-child { flex: 0 0 180px; }
.fz-create-row .input:last-child { flex: 1; margin-bottom: 0; }

/* ================================================================
   LEVELS + BADGES
   ================================================================ */
.z7-level {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(var(--primary-rgb),.10);
  border: 1px solid rgba(var(--primary-rgb),.20);
}
.z7-level--compact { font-size: 11px; padding: 2px 6px; }

.z7-level-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
}
.z7-level-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.z7-level-card__icon { font-size: 32px; line-height: 1; flex-shrink: 0; }
.z7-level-card__info { flex: 1; min-width: 0; }
.z7-level-card__name { display: block; font-size: 16px; font-weight: 800; font-family: var(--font-title); line-height: 1.2; }
.z7-level-card__xp { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.z7-level-card__bar {
  position: relative; height: 8px; border-radius: 99px;
  background: rgba(var(--primary-rgb),.10); overflow: hidden;
}
.z7-level-card__bar > span {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 99px; transition: width .6s ease;
  box-shadow: 0 0 12px rgba(var(--primary-rgb),.45);
}

.z7-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.z7-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 9px; border-radius: 6px;
  background: color-mix(in srgb, var(--bcolor, var(--primary)) 14%, transparent);
  color: var(--bcolor, var(--primary));
  border: 1px solid color-mix(in srgb, var(--bcolor, var(--primary)) 30%, transparent);
}

/* ================================================================
   ULTRA EDITOR — большие кнопки + dropdown
   ================================================================ */
.uedit {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.uedit__bar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 10px; flex-wrap: wrap;
  background: rgba(var(--primary-rgb),.04);
  border-bottom: 1px solid var(--line);
}
.uedit__btn {
  background: transparent; border: 1px solid transparent;
  color: var(--text); font-size: 14px; font-weight: 600;
  padding: 7px 10px; border-radius: 7px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, border-color .15s, color .15s;
  min-width: 36px; min-height: 36px; justify-content: center;
  font-family: inherit;
}
.uedit__btn:hover {
  background: rgba(var(--primary-rgb),.12);
  border-color: rgba(var(--primary-rgb),.22);
  color: var(--primary);
}
.uedit__btn b { font-weight: 800; }
.uedit__btn i { font-style: italic; }
.uedit__btn s { text-decoration: line-through; }
.uedit__btn u { text-decoration: underline; }

.uedit__sep {
  width: 1px; height: 22px; background: var(--line); margin: 0 4px;
}

.uedit__dd { position: relative; display: inline-block; }
.uedit__dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 6px; min-width: 180px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  z-index: 50; display: none;
}
.uedit__dd.is-open .uedit__dd-menu { display: block; }
.uedit__dd-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 11px; border-radius: 7px; cursor: pointer;
  font-size: 13px; color: var(--text); transition: background .12s;
}
.uedit__dd-item:hover { background: rgba(var(--primary-rgb),.10); color: var(--primary); }
.uedit__dd-item__icon { width: 18px; text-align: center; }

.uedit__colors {
  display: grid; grid-template-columns: repeat(8, 24px); gap: 5px; padding: 4px;
}
.uedit__color {
  width: 24px; height: 24px; border-radius: 6px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.1); transition: transform .12s, border-color .12s;
}
.uedit__color:hover { transform: scale(1.15); border-color: var(--ink); }

.uedit textarea {
  width: 100%; border: none; outline: none;
  background: transparent; padding: 16px;
  font-size: 14px; line-height: 1.6; color: var(--text);
  min-height: 220px; resize: vertical;
  font-family: var(--font-body);
}

/* ================================================================
   CREATE-TOPIC PAGE — отдельная страница
   ================================================================ */
.create-topic {
  max-width: 920px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
}
.create-topic__head {
  background: linear-gradient(135deg, rgba(var(--primary-rgb),.16), rgba(var(--accent-rgb),.05));
  border: 1px solid rgba(var(--primary-rgb),.22);
  border-radius: 14px; padding: 22px 26px;
}
.create-topic__head h1 {
  font-size: 24px; font-weight: 800; margin: 0 0 6px;
  font-family: var(--font-title); color: var(--ink);
}
.create-topic__head p { margin: 0; color: var(--muted); font-size: 13px; }

.create-topic__card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.create-topic__field { display: flex; flex-direction: column; gap: 6px; }
.create-topic__label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--muted-2);
}
.create-topic__row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; }
@media (max-width: 600px) {
  .create-topic__row { grid-template-columns: 1fr; }
}

.create-topic__actions {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.create-topic__tip {
  font-size: 12px; color: var(--muted);
}

/* Просто текстовый уровень рядом с ролью */
.pf-level-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* ================================================================
   DASHBOARD NEWS — новый дизайн
   ================================================================ */
.dn-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- Шапка --- */
.dn-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.dn-head__label {
  display: block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary); margin-bottom: 5px;
}
.dn-head__title {
  font-size: 22px; font-weight: 800;
  font-family: var(--font-title); color: var(--ink);
  margin: 0;
}
.dn-live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(var(--primary-rgb),.10);
  border: 1px solid rgba(var(--primary-rgb),.25);
  font-size: 12px; font-weight: 700; color: var(--primary);
  white-space: nowrap; flex-shrink: 0;
}
.dn-live-pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb),.8);
  animation: pulse-dot 1.8s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.7); }
}

/* --- Shared atoms --- */
.dn-issue {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary); opacity: .75;
}
.dn-time {
  font-size: 11px; color: var(--muted-2);
}
.dn-tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 5px;
  font-size: 11px; font-weight: 700;
  background: rgba(var(--primary-rgb),.10);
  color: var(--primary);
}
.dn-link {
  font-size: 13px; font-weight: 600;
  color: var(--primary); text-decoration: none;
  opacity: .85; transition: opacity .15s;
}
.dn-link:hover { opacity: 1; text-decoration: underline; }

/* --- Featured card --- */
.dn-featured {
  position: relative; overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(var(--primary-rgb),.28);
  background:
    linear-gradient(140deg,
      rgba(var(--primary-rgb),.18) 0%,
      rgba(var(--primary-rgb),.06) 45%,
      rgba(var(--accent-rgb),.04) 100%),
    var(--paper);
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 8px 40px rgba(var(--primary-rgb),.10),
              inset 0 1px 0 rgba(255,255,255,.05);
}
.dn-featured::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--primary-rgb),.10), transparent 60%);
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  pointer-events: none;
}
.dn-featured__badge {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: 6px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .6px;
  background: rgba(var(--primary-rgb),.18);
  color: var(--primary);
  width: fit-content;
}
.dn-featured__meta {
  display: flex; align-items: center; gap: 10px;
}
.dn-featured__title {
  font-size: 21px; font-weight: 800;
  font-family: var(--font-title); color: var(--ink);
  line-height: 1.25; margin: 0;
}
.dn-featured__text {
  font-size: 14px; color: var(--text);
  line-height: 1.65; margin: 0;
  max-width: 620px;
}
.dn-featured__footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--primary-rgb),.14);
  margin-top: 4px;
}

/* --- List of other news --- */
.dn-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.dn-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
  border-left: 3px solid rgba(var(--primary-rgb),.35);
  transition: background .15s, border-color .15s, transform .15s;
  cursor: default;
}
.dn-card:hover {
  background: rgba(var(--primary-rgb),.05);
  border-left-color: var(--primary);
  transform: translateY(-2px);
}
.dn-card__top {
  display: flex; align-items: center; gap: 8px;
}
.dn-card__title {
  font-size: 14px; font-weight: 700;
  color: var(--ink); margin: 0; line-height: 1.35;
}
.dn-card__text {
  font-size: 12px; color: var(--muted);
  line-height: 1.55; margin: 0;
}

/* --- Empty --- */
.dn-empty {
  padding: 30px; text-align: center;
  color: var(--muted); font-size: 13px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px;
}

/* ================================================================
   NEWS SLIDER
   ================================================================ */
.dn-slider {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid rgba(var(--primary-rgb),.22);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
}

.dn-slides { position: relative; min-height: 180px; }

.dn-slide {
  display: none;
  animation: dn-fadein .25s ease;
}
.dn-slide--active { display: block; }

@keyframes dn-fadein {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}

.dn-slide__inner {
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg,
    rgba(var(--primary-rgb),.10) 0%,
    rgba(var(--primary-rgb),.03) 50%,
    transparent 100%);
}

.dn-slide__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.dn-slide__title {
  font-size: 20px; font-weight: 800;
  font-family: var(--font-title); color: var(--ink);
  line-height: 1.25; margin: 0;
}

.dn-slide__body { display: flex; flex-direction: column; gap: 10px; }

.dn-slide__text {
  font-size: 14px; color: var(--text);
  line-height: 1.7; margin: 0;
}

.dn-expand-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(var(--primary-rgb),.10);
  border: 1px solid rgba(var(--primary-rgb),.20);
  color: var(--primary);
  border-radius: 7px; padding: 6px 12px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  width: fit-content; transition: background .15s;
}
.dn-expand-btn:hover { background: rgba(var(--primary-rgb),.18); }
.dn-expand-btn svg { transition: transform .2s; }
.dn-expand-btn.is-open svg { transform: rotate(180deg); }

.dn-slide__footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--primary-rgb),.12);
  margin-top: 4px;
}

/* --- Navigation --- */
.dn-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: rgba(var(--primary-rgb),.03);
}

.dn-nav__btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(var(--primary-rgb),.10);
  border: 1px solid rgba(var(--primary-rgb),.18);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background .15s, opacity .15s;
}
.dn-nav__btn:hover:not(:disabled) { background: rgba(var(--primary-rgb),.22); }
.dn-nav__btn:disabled { opacity: .3; cursor: default; }

.dn-nav__dots {
  display: flex; align-items: center; gap: 5px; flex: 1; justify-content: center;
}
.dn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(var(--primary-rgb),.22);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s, width .2s;
}
.dn-dot.is-active {
  background: var(--primary);
  width: 20px; border-radius: 4px;
  transform: none;
}

.dn-nav__counter {
  font-size: 12px; font-weight: 700;
  color: var(--muted-2); flex-shrink: 0;
}

/* Profile banner reset: old cover look, slightly lower crop */
.page-profile .pf-cover {
  height: 230px !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center 38% !important;
  background-color: transparent !important;
}

.page-profile .pf-cover__overlay {
  background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.10) 60%) !important;
}

.page-profile .pf-header__inner {
  margin-top: -48px !important;
}

@media (max-width: 720px) {
  .page-profile .pf-cover {
    height: 220px !important;
    background-position: center 38% !important;
  }
}

/* Profile comments */
.page-profile .pf-header {
  border-radius: 18px !important;
}

.page-profile .pf-cover {
  height: 230px !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center 38% !important;
  background-color: transparent !important;
}

.page-profile .pf-cover__overlay {
  background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.10) 60%) !important;
}

.page-profile .pf-header__inner {
  margin-top: -48px !important;
}

.page-profile .pf-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-profile .pf-tabs button {
  min-width: max-content;
}

.page-profile .pf-wall {
  gap: 12px !important;
}

.page-profile .pf-wall-comment {
  border-color: rgba(184, 103, 33, 0.16) !important;
  background:
    linear-gradient(145deg, rgba(155, 11, 31, 0.07), rgba(184, 103, 33, 0.035)),
    rgba(10, 8, 12, 0.72) !important;
}

.page-profile .pf-wall-comment__avatar {
  border-radius: 12px !important;
  background: linear-gradient(135deg, #7f081a, #b86721) !important;
  color: #fff2e9 !important;
}

.page-profile .pf-wall-comment__text {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .page-profile .pf-cover {
    height: 220px !important;
    background-position: center 38% !important;
  }

  .page-profile .pf-header__inner {
    margin-top: -48px !important;
  }
}
