:root {
  --bg: #08131f;
  --bg-soft: #0f1b2b;
  --bg-card: #101f31;
  --bg-card-hover: #16253a;
  --text: #f4f7fb;
  --text-muted: #98a8bb;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(248, 165, 27, 0.28);
  --accent: #f8a51b;
  --accent-strong: #ffbf38;
  --accent-red: #e35d37;
  --accent-orange: #ff8f28;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --container: 1240px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(248, 165, 27, 0.08), transparent 28%),
    linear-gradient(180deg, #07111d 0%, #091522 100%);
  color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, sans-serif;
}

[hidden] {
  display: none !important;
}

.loading-placeholder {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.loading-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  animation: skeleton-shimmer 1.35s infinite;
}

.loading-placeholder-posts,
.loading-placeholder-vip {
  margin-top: 18px;
}

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

.loading-card,
.loading-line,
.loading-avatar {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.loading-card {
  min-height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.loading-placeholder-posts .loading-card {
  min-height: 280px;
}

.loading-placeholder-chat {
  margin-top: 14px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.36);
}

.loading-line {
  height: 16px;
}

.loading-line-strong {
  width: 46%;
  height: 18px;
}

.loading-line-title {
  width: min(320px, 72%);
  height: 42px;
}

.loading-line-short {
  width: 34%;
}

.loading-line-mid {
  width: 62%;
}

.loading-placeholder-profile {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(12, 27, 45, 0.72);
}

.admin-container {
  display: block;
}

.admin-lock-panel,
.admin-panel {
  width: 100%;
}

.admin-muted {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.admin-lock-form {
  max-width: 520px;
}

.admin-lock-form .form-actions {
  margin-top: 24px;
}

.admin-panel-head,
.admin-toolbar,
.admin-search,
.admin-user-main,
.admin-user-title,
.admin-user-meta,
.admin-user-actions,
.admin-pagination {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-panel-head,
.admin-toolbar,
.admin-user-main,
.admin-pagination {
  justify-content: space-between;
}

.admin-toolbar {
  margin: 22px 0;
  flex-wrap: wrap;
}

.admin-search {
  flex: 1 1 420px;
}

.admin-search .form-input {
  min-width: min(360px, 100%);
}

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

.admin-user-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.34);
}

.admin-user-title {
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
}

.admin-user-title a {
  color: var(--text);
  text-decoration: none;
}

.admin-user-title a:hover {
  color: var(--accent);
}

.admin-user-meta {
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(248, 165, 27, 0.28);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.admin-badge-danger {
  border-color: rgba(255, 118, 118, 0.45);
  color: #ff8f8f;
}

.admin-user-editor,
.admin-password-form,
.admin-rank-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.admin-check-field {
  justify-content: space-between;
}

.admin-check-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.admin-user-actions,
.admin-pagination {
  margin-top: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .admin-panel-head,
  .admin-user-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-search .form-input,
  .admin-search .secondary-btn,
  .admin-toolbar .secondary-btn,
  .admin-user-toggle {
    width: 100%;
  }
}

.loading-profile-head {
  display: flex;
  align-items: center;
  gap: 24px;
}

.loading-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.loading-profile-main {
  display: grid;
  gap: 14px;
  flex: 1 1 auto;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 17, 29, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo img {
  width: 40px;
  height: 40px;
}

.logo span {
  color: var(--accent);
  font-size: 22px;
}

.menu ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  color: rgba(244, 247, 251, 0.82);
  font-weight: 600;
  transition: color var(--transition);
}

.menu a:hover,
.menu .is-active a {
  color: var(--accent);
}

.menu-auth {
  display: none;
}

.header-actions,
.header-auth {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions {
  gap: 38px;
}

.header-auth {
  color: var(--text-muted);
}

.header-auth a {
  color: var(--text);
}

.auth-username-link {
  color: inherit;
  text-decoration: none;
}

.auth-username-link:hover {
  color: var(--accent);
}

.download-btn,
.primary-btn,
.auth-btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8e0d 100%);
  color: #111;
  font-weight: 800;
  transition: transform var(--transition), filter var(--transition);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgba(248, 165, 27, 0.34);
  border-radius: 14px;
  background: rgba(248, 165, 27, 0.06);
  color: var(--accent);
  font-weight: 700;
}

.download-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.download-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.cta-button:hover,
.auth-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), opacity var(--transition);
}

.header-divider {
  height: 2px;
  background: rgba(248, 165, 27, 0.82);
}

.burger span {
  width: 24px;
  height: 3px;
  margin: 0;
  background: var(--accent);
  border-radius: 4px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  padding: 110px 0 56px;
  background:
    linear-gradient(90deg, rgba(7, 17, 29, 0.78), rgba(7, 17, 29, 0.42)),
    url("../images/banner-bg.jpg") center/cover no-repeat;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 64% 34%, rgba(255, 191, 56, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 44%);
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: rgba(248, 165, 27, 0.82);
}

.hero-banner-compact {
  padding: 86px 0 58px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: none;
}

.hero-content > :not(.hero-actions) {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-banner h1,
.section-heading h2,
.cta-strip h2,
.faq-section h2,
.error-404 h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  text-wrap: balance;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-title-main {
  font-size: clamp(28px, 4.8vw, 48px) !important;
}

.hero-text {
  max-width: 640px;
  margin: 20px 0 0;
  color: #d9e2ee;
  font-size: 18px;
}

.hero-page-title {
  margin: 0;
  max-width: 700px;
  color: var(--accent);
  font-size: clamp(28px, 4.8vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

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

.main-section {
  padding: 34px 0 68px;
}

.main-section-inner {
  padding-top: 44px;
}

.main-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.content,
.sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-panel,
.sidebar-block,
.cta-strip,
.faq-item {
  background: linear-gradient(180deg, rgba(16, 31, 49, 0.98), rgba(11, 21, 34, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-panel,
.sidebar-block {
  padding: 24px;
}

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

.section-heading h2,
.cta-strip h2,
.faq-section h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-heading-center {
  text-align: center;
}

.vip-list,
.entries-list {
  display: grid;
  gap: 24px;
}

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

.entries-list {
  gap: 34px;
}

.vip-card,
.entry-card {
  position: relative;
  padding: 20px;
  background: linear-gradient(180deg, rgba(17, 32, 51, 0.98), rgba(13, 25, 40, 0.98));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
}

.vip-card {
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.entry-card {
  border-color: rgba(255, 255, 255, 0.08);
  padding: 28px 30px;
  transition:
    background-color var(--transition),
    border-color var(--transition);
}

.vip-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(248, 165, 27, 0.45);
  box-shadow:
    0 0 34px rgba(248, 165, 27, 0.3),
    0 0 0 1px rgba(248, 165, 27, 0.24),
    0 18px 40px rgba(0, 0, 0, 0.34);
}

.entry-card:hover {
  background: rgba(17, 32, 51, 1);
  border-color: rgba(255, 255, 255, 0.12);
}

.vip-badge,
.entry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(248, 165, 27, 0.18);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vip-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(248, 165, 27, 0.34);
  color: #ffbe45;
}

.entry-badge.is-orange {
  color: #ffb15c;
  background: rgba(255, 143, 40, 0.16);
}

.entry-badge.is-red {
  color: #ff9078;
  background: rgba(227, 93, 55, 0.18);
}

.vip-title,
.entry-title-link {
  color: #fff;
  font-weight: 800;
  transition: color var(--transition);
}

.vip-title {
  display: inline-block;
  padding-right: 46px;
  font-size: 16px;
  line-height: 1.35;
}

.entry-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.vip-title:hover,
.entry-title-link:hover {
  color: var(--accent);
}

.vip-text,
.entry-message,
.cta-text,
.chat-text,
.footer-brand p,
.faq-item p {
  color: #d0d9e5;
}

.vip-text,
.entry-message {
  margin: 12px 0 0;
}

.vip-text {
  font-size: 14px;
  line-height: 1.5;
}

.entry-message {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #d7e1ec;
}

.news-poster-link,
.news-detail-poster-wrap {
  display: block;
}

.entry-poster-link {
  display: block;
  margin: 12px 0 18px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.news-poster-link {
  margin: 10px -6px 18px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.news-poster,
.news-detail-poster {
  width: 100%;
  display: block;
  object-fit: cover;
}

.entry-poster {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 6.8;
  filter: saturate(1.01) contrast(1.03);
}

.news-poster {
  aspect-ratio: 16 / 7.5;
  transition: transform var(--transition), filter var(--transition);
  filter: saturate(1.02) contrast(1.04);
}

.news-card:hover .news-poster {
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.06);
}

.news-detail-poster-wrap {
  margin: 14px 0 26px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-detail-poster-wrap-article {
  margin-top: 0;
}

.news-detail-poster {
  aspect-ratio: 16 / 7;
}

.news-page .entry-message + .entry-message {
  margin-top: 18px;
}

.entry-card-header,
.entry-card-footer,
.vip-meta,
.chat-head,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entry-card-header {
  align-items: flex-start;
  margin-bottom: 18px;
}

.entry-card-footer,
.vip-meta {
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.entry-card-footer {
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.news-admin-create {
  margin-top: 12px;
  width: fit-content;
}

.news-edit-link {
  width: fit-content;
  margin: 8px 0 18px;
}

.news-create-form {
  display: grid;
  gap: 18px;
}

.news-create-form .form-textarea {
  min-height: 170px;
}

.news-create-form textarea[name="body"] {
  min-height: 320px;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(221, 232, 247, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.news-tag:hover,
.news-tag:focus-visible {
  background: rgba(255, 167, 23, 0.12);
  color: #ffd08a;
}

.news-related {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(187, 215, 255, 0.1);
}

.news-related-title {
  margin: 0 0 14px;
  color: #eef5ff;
  font-size: 22px;
}

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

.news-related-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(4, 14, 25, 0.34);
  color: #eef5ff;
  text-decoration: none;
}

.news-related-link small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.news-related-link:hover,
.news-related-link:focus-visible {
  background: rgba(255, 167, 23, 0.08);
  color: #ffb13b;
}

.entry-detail {
  color: var(--text-muted);
}

.entry-detail-link {
  color: #c5d1de;
  transition: color var(--transition);
}

.entry-detail-link:hover {
  color: #eef3f8;
}

.entry-author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.entry-author-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.entry-author-icon::before,
.entry-author-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.entry-author-icon::before {
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.entry-author-icon::after {
  bottom: 0;
  width: 10px;
  height: 6px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: 0;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
}

.sidebar-title,
.cta-title {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 22px;
}

.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  background: rgba(7, 17, 29, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  height: min(520px, 58vh);
  min-height: 280px;
  max-height: min(520px, 58vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 165, 27, 0.34) rgba(255, 255, 255, 0.04);
}

.chat-feed::-webkit-scrollbar {
  width: 8px;
}

.chat-feed::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.chat-feed::-webkit-scrollbar-thumb {
  background: rgba(248, 165, 27, 0.34);
  border-radius: 999px;
}

.chat-message {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.chat-message:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.chat-user {
  color: var(--accent);
  font-weight: 700;
}

.chat-time {
  color: var(--text-muted);
  font-size: 13px;
}

.chat-login {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.chat-empty {
  margin-top: 14px;
  padding: 20px 16px;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.chat-input {
  width: 100%;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 17, 29, 0.8);
  color: var(--text);
  resize: vertical;
  outline: none;
}

.chat-input:focus {
  border-color: rgba(248, 165, 27, 0.5);
  box-shadow: 0 0 0 3px rgba(248, 165, 27, 0.1);
}

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

.chat-submit-btn {
  min-width: 148px;
}

.search-box input,
.auth-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 17, 29, 0.8);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.search-box input:focus,
.auth-field input:focus {
  border-color: rgba(248, 165, 27, 0.5);
  box-shadow: 0 0 0 3px rgba(248, 165, 27, 0.1);
}

.filter-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-links a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 165, 27, 0.06);
  border: 1px solid rgba(248, 165, 27, 0.14);
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition);
}

.filter-links a:hover {
  background: rgba(248, 165, 27, 0.18);
  color: #fff;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-links a {
  color: #d2dceb;
  transition: color var(--transition);
}

.sidebar-links a:hover {
  color: var(--accent);
}

.sidebar-cta {
  background: linear-gradient(135deg, #ffb400 0%, #ff7b00 100%);
  color: #121212;
}

.sidebar-cta .cta-title,
.sidebar-cta .cta-text {
  color: #121212;
}

.cta-button {
  background: #111;
  color: var(--accent);
}

.faq-section {
  padding: 0 0 72px;
}

.faq-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.faq-item {
  padding: 20px 24px;
}

.faq-item summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 12px 0 0;
}

.footer {
  background:
    linear-gradient(rgba(9, 16, 25, 0.86), rgba(7, 12, 19, 0.96)),
    url("../images/footer-bg.jpg") center/cover no-repeat;
  border-top: 1px solid var(--line);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(248, 165, 27, 0.82);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 58px 0 34px;
}

.footer-column-brand {
  display: flex;
  align-items: center;
}

.footer-column-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: center;
  min-width: 170px;
}

.footer-column-social {
  display: flex;
  justify-content: flex-end;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.footer-logo img {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.footer-column-nav a {
  color: #d4ddea;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-column-nav a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
}

.footer-social img {
  width: auto;
  height: 27px;
  object-fit: contain;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 860px;
  font-size: 11px;
  line-height: 1.5;
}

.footer-legal p {
  margin: 0;
  color: rgba(207, 214, 224, 0.82);
}

.footer-legal p:first-child {
  font-size: 13px;
  font-weight: 600;
  color: rgba(228, 235, 243, 0.92);
}

.back-to-top {
  border: 1px solid rgba(248, 165, 27, 0.22);
  border-radius: 999px;
  background: rgba(248, 165, 27, 0.06);
  color: var(--accent);
  padding: 8px 16px;
  font-size: 13px;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
  cursor: pointer;
}

.back-to-top:hover {
  background: rgba(248, 165, 27, 0.18);
  border-color: rgba(248, 165, 27, 0.5);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 9, 16, 0.82);
  z-index: 100;
  padding: 20px;
}

.auth-overlay.active {
  display: flex;
}

.auth-modal {
  width: min(100%, 380px);
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, #101f31, #0b1523);
  border: 1px solid rgba(248, 165, 27, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.auth-title {
  margin: 0 0 18px;
  font-size: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field label {
  display: block;
  margin-bottom: 6px;
  color: #d8e0ec;
  font-size: 14px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.auth-links {
  margin-top: 16px;
  color: var(--text-muted);
  text-align: center;
}

.auth-links a {
  color: var(--accent);
}

.page-404 {
  background: #08121d;
}

.error-404 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.error-404-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 29, 0.52), rgba(8, 18, 29, 0.82)),
    url("../images/pubg404.jpg") center/cover no-repeat;
}

.error-404-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 40px 24px;
  text-align: center;
}

.error-code {
  font-size: clamp(92px, 20vw, 170px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: #cad4e0;
}

.ad-page-title {
  margin: 12px 0 0;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
}

.ad-page-topline,
.ad-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ad-page-meta {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.ad-meta-divider {
  margin: 24px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-page-badge {
  background: rgba(248, 165, 27, 0.16);
}

.ad-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.ad-main-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.ad-poster {
  margin-bottom: 22px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 17, 29, 0.5);
}

.ad-poster img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.ad-main-card p {
  margin: 0 0 16px;
  color: #d7e1ec;
  line-height: 1.75;
}

.ad-page-list {
  margin: 0;
  padding-left: 18px;
  color: #d7e1ec;
}

.ad-page-list li + li {
  margin-top: 10px;
}

.ad-side-card,
.comment-card,
.comment-form-card {
  background: rgba(7, 17, 29, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.ad-side-card {
  padding: 20px;
  align-self: start;
}

.ad-side-card h3,
.comment-form-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.ad-side-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-side-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-side-label {
  color: var(--text-muted);
  font-size: 13px;
}

.ad-side-btn {
  margin-top: 22px;
  width: 100%;
}

.comments-panel {
  margin-top: 28px;
}

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

.comment-card {
  padding: 18px 20px;
}

.comment-card-header,
.comment-actions,
.comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-date {
  color: var(--text-muted);
  font-size: 13px;
}

.comment-text {
  margin: 14px 0 0;
  color: #d7e1ec;
  line-height: 1.7;
}

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

.comment-reply-button,
.comment-replies-toggle,
.profile-wall-reply {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.comment-replies {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-left: 18px;
  border-left: 1px solid rgba(248, 165, 27, 0.22);
}

.comment-card-reply {
  padding: 14px;
  background: rgba(7, 17, 29, 0.28);
}

.comment-replies-hidden {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-replies-hidden[hidden] {
  display: none !important;
}

.profile-wall-replies {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-left: 18px;
  border-left: 1px solid rgba(248, 165, 27, 0.22);
}

.profile-wall-item-reply {
  padding: 14px;
  background: rgba(7, 17, 29, 0.28);
}

.comment-form-card {
  margin-top: 20px;
  padding: 20px;
}

.comment-smiles-wrap,
.comment-smiles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.comment-smiles-wrap {
  position: relative;
  justify-content: flex-start;
  min-width: 0;
}

.comment-smile,
.comment-more-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(7, 17, 29, 0.56);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

.comment-smile:hover,
.comment-more-btn:hover {
  border-color: rgba(248, 165, 27, 0.4);
  background: rgba(248, 165, 27, 0.1);
  transform: translateY(-1px);
}

.comment-more-btn {
  width: auto;
  padding: 0 14px;
  color: #d5dfeb;
}

.comment-more-wrap {
  position: relative;
}

.comment-more-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(8, 38px);
  gap: 8px;
  padding: 12px;
  width: max-content;
  max-width: min(calc(100vw - 24px), 416px);
  background: rgba(7, 17, 29, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  z-index: 4;
}

.comment-more-panel[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .comment-more-panel {
    grid-template-columns: repeat(4, 38px);
  }
}

.comment-textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 17, 29, 0.8);
  color: var(--text);
  outline: none;
}

.comment-form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  width: 100%;
}

.comment-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  width: 100%;
}

.comment-submit-btn {
  flex: 0 0 auto;
  justify-self: end;
}

.comment-auth-hint {
  color: #cbd6e2;
  align-self: start;
}

.form-page {
  padding-bottom: 30px;
}

.profile-edit-avatar-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-edit-avatar-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.profile-edit-avatar-preview-shell {
  width: 148px;
  height: 148px;
  flex-basis: 148px;
  border: 1px solid rgba(248, 165, 27, 0.24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.profile-edit-avatar-caption {
  margin: 0;
  color: #d7e0ea;
  text-align: center;
}

.profile-edit-avatar-caption strong {
  color: #fff;
}

.profile-background-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.profile-background-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.42);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.profile-background-card.is-selected {
  border-color: rgba(248, 165, 27, 0.42);
  box-shadow: 0 0 0 1px rgba(248, 165, 27, 0.18);
}

.profile-background-card:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 165, 27, 0.28);
}

.profile-background-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 8.8;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-background-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-background-thumb-empty {
  background:
    linear-gradient(135deg, rgba(248, 165, 27, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 18px,
      rgba(7, 17, 29, 0.16) 18px,
      rgba(7, 17, 29, 0.16) 36px
    );
  position: relative;
}

.profile-background-empty-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: rgba(244, 247, 251, 0.56);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.profile-background-thumb-empty::after {
  content: none !important;
}

.profile-background-thumb-empty::after {
  content: "Без фона";
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: rgba(244, 247, 251, 0.56);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.profile-background-thumb-empty::after {
  content: none !important;
}

.profile-background-card-body h3 {
  display: none !important;
}

.profile-background-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248, 165, 27, 0.92);
  color: #121212;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-background-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.profile-background-card-body h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.profile-background-select-btn {
  width: 100%;
}

.profile-background-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 22px;
}

.profile-background-page-btn {
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(248, 165, 27, 0.24);
  border-radius: 12px;
  background: rgba(248, 165, 27, 0.06);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.profile-background-page-btn:hover,
.profile-background-page-btn.is-active {
  border-color: rgba(248, 165, 27, 0.4);
  background: rgba(248, 165, 27, 0.18);
  color: var(--accent);
}

.ad-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-full {
  width: 100%;
}

.form-field label {
  color: #dbe4ee;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 17, 29, 0.78);
  color: var(--text);
  padding: 14px;
  outline: none;
}

.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(248, 165, 27, 0.88) 50%),
    linear-gradient(135deg, rgba(248, 165, 27, 0.88) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 17px) calc(50% - 3px);
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 46px;
}

.form-field input[type="file"] {
  padding: 12px 14px;
  cursor: pointer;
}

.form-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: rgba(248, 165, 27, 0.18);
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color var(--transition),
    transform var(--transition);
}

.form-field select[multiple] {
  min-height: 188px;
  padding: 10px;
  background-image: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 165, 27, 0.55) rgba(255, 255, 255, 0.05);
}

.form-field select[multiple] option {
  margin: 4px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(9, 18, 31, 0.88);
  color: #dbe5ef;
}

.form-field select[multiple] option:checked {
  background: linear-gradient(135deg, rgba(248, 165, 27, 0.32), rgba(255, 143, 40, 0.22));
  color: #fff;
}

.form-field select[multiple]::-webkit-scrollbar {
  width: 10px;
}

.form-field select[multiple]::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.form-field select[multiple]::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(248, 165, 27, 0.72), rgba(255, 143, 40, 0.58));
  border: 2px solid rgba(7, 17, 29, 0.88);
  border-radius: 999px;
}

.form-field input[type="file"]:hover::file-selector-button {
  background: rgba(248, 165, 27, 0.24);
  transform: translateY(-1px);
}

.form-field-admin {
  justify-content: flex-end;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(248, 165, 27, 0.24);
  border-radius: 18px;
  background: rgba(255, 167, 23, 0.07);
  color: #eef5ff;
  cursor: pointer;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-check strong,
.form-check small {
  display: block;
}

.form-check small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.multi-select {
  position: relative;
}

.multi-select summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 46px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 17, 29, 0.78);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.multi-select summary::-webkit-details-marker {
  display: none;
}

.multi-select summary::before,
.multi-select summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(248, 165, 27, 0.88);
  border-bottom: 2px solid rgba(248, 165, 27, 0.88);
  pointer-events: none;
  transition: transform var(--transition);
}

.multi-select summary::before {
  transform: translateY(-70%) rotate(45deg);
}

.multi-select[open] summary::before {
  transform: translateY(-30%) rotate(-135deg);
}

.multi-select:focus-within summary,
.multi-select summary:hover {
  border-color: rgba(248, 165, 27, 0.45);
  box-shadow: 0 0 0 3px rgba(248, 165, 27, 0.1);
}

.multi-select-label {
  overflow: hidden;
  color: #e7eef6;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  padding: 10px;
  overflow-y: auto;
  background: rgba(9, 18, 31, 0.98);
  border: 1px solid rgba(248, 165, 27, 0.22);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 165, 27, 0.55) rgba(255, 255, 255, 0.05);
}

.multi-select-menu::-webkit-scrollbar {
  width: 10px;
}

.multi-select-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.multi-select-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(248, 165, 27, 0.72), rgba(255, 143, 40, 0.58));
  border: 2px solid rgba(7, 17, 29, 0.88);
  border-radius: 999px;
}

.multi-select-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color var(--transition);
}

.multi-select-option:hover {
  background: rgba(248, 165, 27, 0.08);
}

.multi-select-option input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(7, 17, 29, 0.78);
  position: relative;
  flex: 0 0 18px;
}

.multi-select-option input:checked {
  border-color: rgba(248, 165, 27, 0.52);
  background: linear-gradient(135deg, rgba(248, 165, 27, 0.28), rgba(255, 143, 40, 0.18));
}

.multi-select-option input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border-right: 2px solid #fff3d7;
  border-bottom: 2px solid #fff3d7;
  transform: rotate(40deg);
}

.multi-select-option span {
  color: #dbe5ef;
  font-weight: 500;
}

.form-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-counter {
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.form-field input:focus,
.form-field select:focus,
.form-textarea:focus {
  border-color: rgba(248, 165, 27, 0.45);
  box-shadow: 0 0 0 3px rgba(248, 165, 27, 0.1);
}

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

.form-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.sidebar-links-muted {
  gap: 12px;
}

.sidebar-links-muted span {
  color: #d6deea;
  line-height: 1.55;
}

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

.profile-edit-form .form-actions,
.profile-avatar-form .form-actions,
.profile-password-form .form-actions {
  margin-top: 24px;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.register-form .form-actions {
  margin-top: 22px;
}

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.45);
}

.profile-panel h2,
.profile-panel h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 32px);
}

.profile-panel h3 {
  font-size: 28px;
}

.profile-panel-guest {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-panel-guest h2 {
  margin: 0;
}

.profile-panel-guest p:not(.section-kicker) {
  margin: 0;
  color: #d2dce7;
}

.profile-panel-guest .form-actions {
  justify-content: flex-start;
  margin-top: 6px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.45);
}

.profile-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  flex: 0 0 82px;
  border: 2px solid rgba(248, 165, 27, 0.45);
  background: linear-gradient(180deg, rgba(248, 165, 27, 0.18), rgba(248, 165, 27, 0.05));
}

.profile-avatar-empty::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,0.85) 0 12px, transparent 13px),
    radial-gradient(circle at 50% 92%, rgba(255,255,255,0.85) 0 26px, transparent 27px);
  opacity: 0.5;
}

.profile-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  flex: 0 1 420px;
}

.profile-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  flex: 0 1 520px;
}

.profile-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-bottom: 20px;
  position: relative;
  z-index: 80;
}

.profile-identity-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.profile-main-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-main-top-stack {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.profile-name {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
}

.profile-name-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(7, 17, 29, 0.45);
}

.profile-status-online {
  background: #38d66b;
}

.profile-status-offline {
  background: #d34c4c;
}

.profile-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(248, 165, 27, 0.28);
  background: rgba(248, 165, 27, 0.14);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-role-badge-user {
  border-color: rgba(167, 176, 189, 0.22);
  background: rgba(167, 176, 189, 0.08);
  color: #b8c2cf;
}

.profile-role-badge-vip {
  border-color: rgba(248, 165, 27, 0.28);
  background: rgba(248, 165, 27, 0.14);
  color: var(--accent);
}

.profile-role-badge-admin {
  border-color: rgba(222, 89, 89, 0.28);
  background: rgba(222, 89, 89, 0.14);
  color: #ff8f8f;
}

.profile-subtitle {
  margin: 0;
  color: #cfd6e0;
}

.profile-card-main {
  align-items: flex-start;
  position: relative;
}

.profile-card-cover {
  overflow: visible;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  align-content: start;
  background: rgba(7, 17, 29, 0.74);
  border-color: rgba(255, 255, 255, 0.04);
  min-height: 330px;
  gap: 34px;
  padding-top: 36px;
  box-shadow:
    inset 0 18px 28px rgba(6, 13, 23, 0.08),
    inset 0 -30px 42px rgba(6, 13, 23, 0.22),
    inset 12px 0 20px rgba(6, 13, 23, 0.14),
    inset -12px 0 20px rgba(6, 13, 23, 0.14);
}

.profile-card-cover-background {
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(6, 13, 23, 0.2) 0%, rgba(6, 13, 23, 0.7) 48%, rgba(6, 13, 23, 0.88) 100%),
    url("../images/banner-bg.jpg") center/cover no-repeat;
  transform: translateZ(0);
  z-index: 0;
}

.profile-card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(6, 13, 23, 0.3) 0%, rgba(6, 13, 23, 0) 18%),
    radial-gradient(circle at top right, rgba(6, 13, 23, 0.3) 0%, rgba(6, 13, 23, 0) 18%),
    linear-gradient(180deg, rgba(6, 13, 23, 0.1) 0%, rgba(6, 13, 23, 0.06) 24%, rgba(6, 13, 23, 0.22) 72%, rgba(6, 13, 23, 0.44) 100%),
    linear-gradient(90deg, rgba(8, 18, 31, 0.48) 0%, rgba(8, 18, 31, 0.18) 55%, rgba(8, 18, 31, 0.32) 100%);
  box-shadow:
    inset 0 12px 18px rgba(6, 13, 23, 0.08),
    inset 0 -28px 38px rgba(6, 13, 23, 0.26),
    inset 8px 0 16px rgba(6, 13, 23, 0.12),
    inset -8px 0 16px rgba(6, 13, 23, 0.12);
  pointer-events: none;
  z-index: 1;
}

.profile-card-cover::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 12px;
  border-radius: 0 0 inherit inherit;
  background: linear-gradient(180deg, rgba(6, 13, 23, 0) 0%, rgba(6, 13, 23, 0.34) 100%);
  pointer-events: none;
  z-index: 1;
}

.profile-card-cover > :not(.profile-card-cover-background) {
  position: relative;
  z-index: 2;
}

.profile-card-cover > .profile-top-row {
  z-index: 120;
}

.profile-card-cover > .profile-bottom-info {
  z-index: 3;
}

.profile-card-cover.profile-card-no-cover,
.profile-demo-page .profile-card-cover.profile-card-no-cover {
  min-height: auto;
  background: rgba(7, 17, 29, 0.45) !important;
}

.profile-card-cover.profile-card-no-cover::before,
.profile-demo-page .profile-card-cover.profile-card-no-cover::before {
  display: none;
}

.profile-card-cover.profile-card-no-cover::after,
.profile-demo-page .profile-card-cover.profile-card-no-cover::after {
  display: none;
}

.profile-card-cover.profile-card-no-cover .profile-card-cover-background,
.profile-demo-page .profile-card-cover.profile-card-no-cover .profile-card-cover-background {
  display: none;
}

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

.profile-stat-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.profile-stat-value {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--accent);
}

.profile-stat-label {
  color: #d2dce7;
  font-size: 15px;
}

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

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-list-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.profile-list-item strong,
.profile-roadmap-item strong {
  font-size: 18px;
}

.profile-list-item span,
.profile-roadmap-item span,
.profile-empty-box p {
  color: #d2dce7;
}

.profile-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.profile-empty-inline {
  min-width: 100%;
}

.profile-panel-actions {
  padding-top: 14px;
}

.profile-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.profile-panel-wide {
  padding-top: 26px;
}

.profile-avatar-image {
  overflow: hidden;
}

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

.profile-avatar-profile {
  width: 108px;
  height: 108px;
  flex-basis: 108px;
}

.profile-rank-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-rank-line-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.profile-rank-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}

.profile-rank-icon-large {
  width: 60px;
  height: 60px;
  flex-basis: 60px;
}

.profile-rank-text {
  color: var(--accent);
  font-weight: 700;
}

.profile-upper-right {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 0 0 auto;
  position: relative;
  z-index: 130;
}

.profile-more {
  position: relative;
  z-index: 140;
}

.profile-more-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(7, 17, 29, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}

.profile-bottom-info {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 72px;
  width: 100%;
  grid-row: 2;
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.profile-info-column {
  flex: 0 1 360px;
}

.profile-info-column-social {
  display: flex;
  align-items: flex-start;
  margin-left: 72px;
}

.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-info-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-info-list span {
  color: #aab7c8;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.profile-info-list strong {
  color: #f5f7fb;
  font-weight: 600;
  line-height: 1.45;
}

.profile-social-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-social-lines li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-social-lines img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
}

.profile-social-lines a {
  color: #f5f7fb;
  font-weight: 600;
}

.profile-social-lines span {
  color: #f5f7fb;
  font-weight: 600;
}

.profile-social-lines a:hover {
  color: var(--accent);
}

.profile-message-button {
  width: fit-content;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(248, 165, 27, 0.28);
}

.profile-rank-corner {
  display: flex;
  align-items: center;
  min-width: 120px;
  text-align: center;
}

.profile-rank-link {
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.profile-rank-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

@media (max-width: 1100px) {
  .profile-card-cover {
    gap: 18px;
    padding: 28px 22px 22px;
    min-height: auto;
    background-position: center;
  }

  .profile-top-row,
  .profile-bottom-info {
    flex-direction: column;
  }

  .profile-bottom-info {
    gap: 24px;
  }

  .profile-identity,
  .profile-main,
  .profile-info-column,
  .profile-info-column-social {
    width: 100%;
    flex-basis: auto;
  }

  .profile-identity-top {
    width: 100%;
  }

  .profile-upper-right {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
  }

  .profile-rank-line-stack {
    flex-direction: row;
    align-items: center;
  }

  .profile-info-column-social {
    margin-left: 0;
  }

  .profile-bottom-info {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-info-column,
  .profile-info-column-social {
    max-width: none;
  }

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

  .profile-social-lines {
    padding-top: 0;
  }

  .rank-grid,
  .rank-rules-list {
    grid-template-columns: 1fr;
  }
}

.profile-more-toggle::before {
  content: "\2699";
  color: #f5f7fb;
  font-size: 18px;
  line-height: 1;
}

.profile-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 17, 29, 0.96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 150;
}

.profile-more.is-open .profile-more-menu {
  display: flex;
}

.profile-more.is-open .profile-more-toggle {
  border-color: rgba(248, 165, 27, 0.38);
  background: rgba(248, 165, 27, 0.12);
}

.profile-more-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #e8eef5;
}

.profile-more-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

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

.rank-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(8, 20, 34, 0.82);
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.rank-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex: 0 0 auto;
}

.rank-card > div {
  min-width: 0;
}

.rank-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.rank-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.rank-info-panel {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(8, 20, 34, 0.82);
}

.section-heading-compact {
  margin-bottom: 18px;
}

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

.rank-rule-card {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.56);
}

.rank-rule-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.rank-rule-card p,
.rank-season-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .rank-grid,
  .rank-rules-list {
    grid-template-columns: 1fr;
  }

  .rank-card {
    padding: 22px 20px;
  }
}

@media (max-width: 640px) {
  .rank-card {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }

  .rank-card img {
    width: 68px;
    height: 68px;
  }

  .rank-card > div {
    text-align: center;
  }

  .rank-card h2 {
    font-size: 22px;
  }

  .rank-rule-card h3 {
    font-size: 20px;
  }

  .rank-info-panel {
    padding: 22px 18px;
  }
}

@media (max-width: 420px) {
  .rank-card {
    padding: 18px 16px;
  }

  .rank-card h2 {
    font-size: 20px;
  }

  .rank-card p,
  .rank-season-text,
  .rank-rule-card p {
    font-size: 15px;
    line-height: 1.6;
  }

  .rank-rule-card {
    padding: 16px;
  }

  .rank-rule-card h3 {
    font-size: 18px;
  }

  .rank-info-panel {
    padding: 18px 16px;
  }
}

.profile-post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-panel-head h3 {
  margin-bottom: 0;
}

.profile-gifts-carousel {
  position: relative;
}

.profile-gifts-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 46px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.profile-gifts-track::-webkit-scrollbar {
  display: none;
}

.profile-gifts-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 38px;
  height: 72px;
  border: 0;
  border-radius: 14px;
  background: rgba(7, 17, 29, 0.58);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 2;
  transition: opacity .2s ease, visibility .2s ease;
}

.profile-gifts-arrow::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  border-top: 2px solid #f5f7fb;
  border-right: 2px solid #f5f7fb;
}

.profile-gifts-arrow-left {
  left: 0;
}

.profile-gifts-arrow-left::before {
  transform: rotate(-135deg);
}

.profile-gifts-arrow-right {
  right: 0;
}

.profile-gifts-arrow-right::before {
  transform: rotate(45deg);
}

.profile-gifts-arrow[hidden] {
  display: none !important;
}

.profile-gift-card {
  min-width: 112px;
  width: 112px;
  height: 112px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 112px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.profile-gift-icon {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.profile-gift-card:hover {
  border-color: rgba(248, 165, 27, 0.45);
  background: rgba(248, 165, 27, 0.1);
  transform: translateY(-2px);
}

.profile-tabs-block {
  padding-top: 18px;
}

.profile-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-tab {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(7, 17, 29, 0.45);
  color: #dce5ef;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.profile-tab:hover,
.profile-tab.is-active {
  color: #08121d;
  background: var(--accent);
  border-color: var(--accent);
}

.profile-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-wall-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.45);
}

.profile-wall-textarea {
  min-height: 120px;
}

.profile-wall-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-wall-smiles {
  justify-content: flex-start;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.profile-wall-list,
.profile-comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-wall-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-wall-page-indicator {
  color: #aab7c8;
  font-size: 14px;
  text-align: center;
}

.profile-wall-page-button {
  min-width: 120px;
  justify-content: center;
}

.profile-wall-item,
.profile-comment-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.45);
}

.profile-wall-head,
.profile-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-wall-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aab7c8;
  font-size: 14px;
}

.profile-wall-item p,
.profile-comment-item p {
  margin: 0;
  color: #d2dce7;
  line-height: 1.6;
}

.profile-wall-delete {
  border: 0;
  background: transparent;
  color: #ff8f8f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.profile-wall-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.gift-modal[aria-hidden="true"] {
  display: none;
}

.gift-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 13, 0.72);
  backdrop-filter: blur(3px);
}

.gift-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  margin: 10vh auto 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: #0f1b2b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  text-align: center;
}

.gift-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gift-modal-icon {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.gift-modal-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.gift-modal-title {
  margin-bottom: 10px;
  color: #f5f7fb;
  font-size: 30px;
  text-align: center;
}

.gift-modal-from,
.gift-modal-comment {
  margin: 0;
  color: #d3dde8;
  line-height: 1.6;
}

.gift-modal-from {
  margin-bottom: 10px;
  color: #ffbf4d;
  font-weight: 600;
}

.gift-modal-from[hidden],
.gift-modal-comment[hidden] {
  display: none !important;
}

.gift-send-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gift-send-modal[aria-hidden="true"] {
  display: none;
}

.gift-send-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 13, 0.74);
  backdrop-filter: blur(4px);
}

.gift-send-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  margin: 6vh auto 0;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(8, 18, 30, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.gift-send-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #f5f7fb;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.gift-send-modal-title {
  margin: 0 0 8px;
}

.gift-send-modal-text,
.gift-send-label {
  color: #aab7c8;
}

.gift-send-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.gift-send-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 18px;
}

.gift-send-page-indicator {
  color: #aab7c8;
  font-size: 14px;
  text-align: center;
}

.gift-send-page-button {
  min-width: 120px;
  justify-content: center;
}

.gift-send-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.62);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.gift-send-item:hover,
.gift-send-item.is-selected {
  border-color: rgba(248, 165, 27, 0.45);
  background: rgba(248, 165, 27, 0.1);
  transform: translateY(-1px);
}

.gift-send-item img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.gift-send-textarea {
  min-height: 100px;
}

.gift-send-actions {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .gift-send-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .profile-actions-row,
  .gift-send-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-actions-row > *,
  .gift-send-actions > * {
    width: 100%;
  }

  .gift-send-modal-card {
    margin-top: 4vh;
    padding: 20px;
    max-height: calc(100vh - 24px);
  }

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

  .gift-send-pagination {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .gift-send-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gift-send-item {
    min-height: 96px;
    padding: 10px;
  }

  .gift-send-item img {
    max-height: 72px;
  }
}

.profile-comment-item a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
}

.profile-post-item {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.45);
}

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

.profile-post-head h4 {
  margin: 0;
  font-size: 24px;
}

.profile-post-head h4 a {
  color: #f5f7fb;
}

.profile-post-head h4 a:hover {
  color: var(--accent);
}

.profile-post-item p {
  margin: 0;
  color: #d2dce7;
  line-height: 1.6;
}

.profile-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #a8b4c3;
}

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

.profile-roadmap-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.feedback-info-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(7, 17, 29, 0.45);
}

.feedback-info-card h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.2vw, 36px);
}

.feedback-info-card p {
  margin: 0;
  color: #d2dce7;
  line-height: 1.65;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dfe8f4;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-link-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.feedback-main-panel {
  padding-bottom: 42px;
}

.feedback-panel {
  margin-top: 18px;
  padding-bottom: 68px;
}

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

.feedback-code-btn {
  min-width: 170px;
}

.form-helper {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.feedback-email-status {
  margin: 10px 0 0;
}

.feedback-form .form-status {
  margin-top: 6px;
}

.feedback-form .form-actions {
  margin-top: 10px;
}

.feedback-form .form-field[data-feedback-code-field] {
  animation: fade-in-up 0.22s ease;
}

.feedback-form .form-field[data-feedback-code-field][hidden] {
  display: none !important;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.form-status.is-success {
  color: #52d27a;
}

.form-status.is-error {
  color: #ff8d8d;
}

.form-status.is-info {
  color: #cfd6e0;
}

.comment-submit-btn:disabled,
.auth-btn:disabled,
.primary-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: saturate(0.75);
}

.comment-textarea:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .loading-placeholder-vip {
    grid-template-columns: 1fr;
  }

  .chat-feed {
    height: min(420px, 52vh);
    min-height: 220px;
    max-height: min(420px, 52vh);
  }

  .main-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 340px);
    height: 100vh;
    padding: 98px 24px 24px;
    background: linear-gradient(180deg, rgba(13, 26, 43, 0.84), rgba(9, 17, 28, 0.88));
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    transition: right var(--transition);
    z-index: 80;
  }

  .menu.active {
    right: 0;
  }

  .menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .menu-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .menu-auth-link {
    color: var(--accent);
    font-weight: 700;
  }

  .menu-auth .menu-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
  }

  .menu-auth .menu-auth-link::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex: 0 0 20px;
    font-size: 18px;
    line-height: 1;
  }

  .menu-auth[data-auth-guest] .menu-auth-link:first-child::before {
    content: "\1F511";
  }

  .menu-auth[data-auth-guest] .menu-auth-link:last-child::before {
    content: "\1F4DD";
  }

  .menu-auth[data-auth-user] .menu-auth-link:first-child::before {
    content: "\1F464";
  }

  .menu-auth[data-auth-user] .menu-auth-link.logout::before,
  .menu-auth[data-auth-user] [data-auth-logout]::before {
    content: "\2190";
    font-size: 20px;
  }

  .header-auth,
  .download-btn {
    display: none;
  }

  .burger {
    display: flex;
    position: fixed;
    top: 18px;
    right: 16px;
    z-index: 95;
    border: 1px solid rgba(248, 165, 27, 0.18);
    border-radius: 12px;
    background: rgba(7, 17, 29, 0.22);
    backdrop-filter: blur(10px);
    opacity: 0.82;
  }

  .burger:hover,
  .burger:focus-visible {
    opacity: 1;
    background: rgba(7, 17, 29, 0.34);
    border-color: rgba(248, 165, 27, 0.28);
  }

  body.menu-open .burger {
    background: rgba(7, 17, 29, 0.42);
    border-color: rgba(248, 165, 27, 0.3);
    opacity: 1;
  }

  .vip-list,
  .cta-strip {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

  .profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .profile-stats-grid,
  .profile-layout-grid,
  .profile-roadmap {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-avatar-layout {
    grid-template-columns: 1fr;
  }

  .profile-edit-avatar-preview-wrap {
    align-items: flex-start;
  }

  .profile-edit-avatar-caption {
    text-align: left;
  }

  .feedback-email-row {
    grid-template-columns: 1fr;
  }

  .feedback-code-btn {
    width: 100%;
  }

  .feedback-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-column-nav,
  .footer-column-social {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .hero-banner {
    padding: 96px 0 42px;
  }

  .hero-text {
    font-size: 16px;
  }

  .content-panel,
  .sidebar-block,
  .cta-strip,
  .faq-item {
    padding: 18px;
  }

  .vip-list {
    grid-template-columns: 1fr;
  }

  .entry-card,
  .vip-card {
    padding: 18px;
  }

  .entry-card {
    padding: 22px 20px;
  }

  .comment-card-header,
  .comment-actions,
  .comment-form-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .entry-card-header,
  .entry-card-footer,
  .vip-meta,
  .footer-bottom,
  .auth-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-page {
    gap: 18px;
  }

  .profile-panel,
  .profile-card-cover {
    padding: 20px;
  }

  .profile-card-cover {
    gap: 20px;
    padding: 20px;
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(6, 13, 23, 0.46) 0%, rgba(6, 13, 23, 0.9) 42%, rgba(6, 13, 23, 0.98) 100%),
      url("../images/banner-bg.jpg") center/cover no-repeat;
  }

  .profile-top-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 0;
  }

  .profile-identity,
  .profile-main,
  .profile-upper-right,
  .profile-info-column,
  .profile-info-column-social {
    width: 100%;
    flex: 1 1 auto;
  }

  .profile-upper-right {
    justify-content: flex-start;
    align-items: center;
  }

  .profile-bottom-info {
    gap: 18px;
    padding-top: 16px;
  }

  .profile-info-column-social {
    margin-left: 0;
  }

  .profile-info-column,
  .profile-info-column-social {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(7, 17, 29, 0.34);
  }

  .profile-name {
    font-size: 28px;
    line-height: 1.08;
  }

  .profile-name-line {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .profile-message-button {
    width: 100%;
    padding-inline: 18px;
  }

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

  .profile-stat-card {
    min-height: 118px;
  }

  .profile-panel h3 {
    font-size: 24px;
  }

  .profile-tabs {
    gap: 10px;
  }

  .profile-tab {
    flex: 1 1 calc(50% - 5px);
    text-align: center;
  }

  .profile-post-head {
    flex-direction: column;
    gap: 10px;
  }

  .profile-post-head h4 {
    font-size: 21px;
  }

  .profile-gifts-track {
    gap: 12px;
  }

  .profile-gift-card {
    min-width: 96px;
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .profile-gift-icon {
    width: 64px;
    height: 64px;
  }

  .gift-modal-card {
    margin-top: 7vh;
    padding: 24px 18px;
  }

  .gift-modal-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .loading-placeholder-profile {
    padding: 22px;
  }

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

  .loading-avatar {
    width: 92px;
    height: 92px;
  }

  .profile-wall-form-footer,
  .profile-wall-head,
  .profile-comment-head,
  .profile-panel-head,
  .profile-wall-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-wall-form-footer {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .profile-gifts-track {
    padding-inline: 0;
  }

  .profile-gifts-arrow {
    display: none;
  }

  .profile-actions {
    margin-left: 0;
  }

  .footer-bottom {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .error-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .download-btn,
  .cta-button,
  .auth-btn {
    width: 100%;
  }

  .auth-modal {
    padding: 22px 18px;
  }

  .profile-edit-avatar-preview-wrap {
    align-items: center;
  }

  .profile-edit-avatar-caption {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .profile-top-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-card-cover {
    padding: 18px;
  }

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

  .profile-avatar-profile {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }

  .profile-upper-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .profile-rank-line-stack {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .profile-rank-icon-large {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .profile-rank-text {
    font-size: 16px;
  }

  .profile-more-menu {
    min-width: min(230px, calc(100vw - 48px));
    right: 0;
  }

  .profile-info-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .profile-social-lines li {
    align-items: flex-start;
  }

  .profile-social-lines a {
    overflow-wrap: anywhere;
  }

  .profile-tab {
    flex-basis: 100%;
  }

  .profile-wall-form,
  .profile-wall-item,
  .profile-comment-item,
  .profile-post-item {
    padding: 16px;
  }

  .profile-post-meta,
  .profile-wall-meta {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .profile-card-cover,
  .profile-panel {
    padding: 16px;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-upper-right {
    width: 100%;
  }

  .profile-rank-line-stack {
    width: auto;
  }

  .profile-role-badge {
    min-height: 28px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .profile-stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-stat-card {
    min-height: auto;
    padding: 16px;
  }

  .profile-gift-card {
    min-width: 84px;
    width: 84px;
    height: 84px;
    flex-basis: 84px;
  }

  .profile-gift-icon {
    width: 56px;
    height: 56px;
  }

  .profile-post-head h4 {
    font-size: 19px;
  }

  .gift-modal-title {
    font-size: 22px;
  }
}

@media (max-width: 1024px) {
  .profile-card-cover {
    padding: 20px 18px;
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(6, 13, 23, 0.46) 0%, rgba(6, 13, 23, 0.9) 42%, rgba(6, 13, 23, 0.98) 100%),
      url("../images/banner-bg.jpg") center/cover no-repeat;
  }

  .profile-top-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 0;
  }

  .profile-top-row > * {
    min-width: 0;
  }

  .profile-identity,
  .profile-upper-right,
  .profile-info-column,
  .profile-info-column-social,
  .profile-main {
    width: 100%;
    max-width: none;
  }

  .profile-identity {
    gap: 14px;
  }

  .profile-identity-top {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .profile-avatar-profile {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .profile-main {
    gap: 10px;
    flex: 1 1 auto;
  }

  .profile-name {
    font-size: 28px;
    line-height: 1.08;
  }

  .profile-name-line {
    gap: 10px;
    flex-wrap: wrap;
  }

  .profile-message-button {
    width: 100%;
    justify-content: center;
  }

  .profile-upper-right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    align-self: start;
    justify-self: start;
    width: auto;
    max-width: 100%;
    gap: 12px;
  }

  .profile-more {
    margin-left: 0;
  }

  .profile-rank-corner {
    min-width: 0;
  }

  .profile-rank-line-stack {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .profile-rank-icon-large {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .profile-bottom-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 16px;
  }

  .profile-info-column,
  .profile-info-column-social {
    margin-left: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(7, 17, 29, 0.34);
  }
}

@media (max-width: 560px) {
  .profile-identity-top {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

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

  .profile-name {
    font-size: 24px;
  }

  .profile-upper-right {
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .profile-card-cover {
    padding: 18px !important;
    min-height: auto !important;
  }

  .profile-top-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
  }

  .profile-identity {
    width: 100% !important;
    gap: 14px !important;
  }

  .profile-identity-top {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .profile-main {
    width: 100% !important;
    flex: 1 1 auto !important;
    gap: 8px !important;
  }

  .profile-name {
    font-size: 28px !important;
    line-height: 1.08 !important;
  }

  .profile-name-line {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .profile-avatar-profile {
    width: 92px !important;
    height: 92px !important;
    flex-basis: 92px !important;
  }

  .profile-message-button {
    width: 100% !important;
    justify-content: center !important;
  }

  .profile-upper-right {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    justify-self: flex-start !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .profile-rank-line-stack {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .profile-rank-corner {
    min-width: 0 !important;
  }

  .profile-rank-icon-large {
    width: 52px !important;
    height: 52px !important;
    flex-basis: 52px !important;
  }

  .profile-more {
    margin-left: 0 !important;
  }

  .profile-bottom-info {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-top: 16px !important;
  }

  .profile-info-column,
  .profile-info-column-social {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    background: rgba(7, 17, 29, 0.34) !important;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .profile-gifts-arrow {
    display: none !important;
  }

.profile-gifts-track {
    padding-inline: 0 !important;
  }
}

.profile-demo-page,
.profile-demo-page .site-shell {
  overflow-x: hidden;
}

.profile-demo-page .container,
.profile-demo-page .header-inner,
.profile-demo-page .hero-content,
.profile-demo-page .main-container,
.profile-demo-page .content,
.profile-demo-page .sidebar,
.profile-demo-page .content-panel,
.profile-demo-page .sidebar-container {
  min-width: 0;
  max-width: 100%;
}

.profile-demo-page .profile-page,
.profile-demo-page .profile-card-cover,
.profile-demo-page .profile-panel,
.profile-demo-page .profile-tab-panel,
.profile-demo-page .profile-post-item,
.profile-demo-page .profile-comment-item,
.profile-demo-page .profile-wall-item,
.profile-demo-page .profile-stat-card,
.profile-demo-page .profile-info-column,
.profile-demo-page .profile-info-column-social,
.profile-demo-page .profile-more-menu,
.profile-demo-page .gift-modal-card {
  min-width: 0;
}

.profile-demo-page .profile-main,
.profile-demo-page .profile-name-line,
.profile-demo-page .profile-social-lines li,
.profile-demo-page .profile-post-head h4 a,
.profile-demo-page .profile-comment-item a,
.profile-demo-page .profile-wall-item p,
.profile-demo-page .profile-comment-item p,
.profile-demo-page .profile-post-item p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-demo-page .profile-social-lines a,
.profile-demo-page .profile-post-head h4 a,
.profile-demo-page .profile-comment-item a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-demo-page .hero-page-title,
.profile-demo-page .hero-text {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.profile-demo-page .profile-gifts-track {
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.profile-demo-page .profile-gift-card {
  scroll-snap-align: start;
}

.profile-demo-page .profile-wall-form-footer,
.profile-demo-page .profile-wall-meta,
.profile-demo-page .profile-post-meta,
.profile-demo-page .profile-comment-head,
.profile-demo-page .profile-post-head,
.profile-demo-page .profile-panel-head {
  row-gap: 10px;
}

.profile-demo-page .profile-card-cover {
  background:
    linear-gradient(180deg, rgba(13, 22, 34, 0.24) 0%, rgba(11, 21, 33, 0.64) 52%, rgba(8, 17, 28, 0.84) 100%),
    url("../images/banner-bg.jpg") center/cover no-repeat !important;
}

@media (max-width: 1200px) {
  .profile-demo-page .main-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .profile-demo-page .sidebar {
    order: 2;
  }

  .profile-demo-page .sidebar-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .profile-demo-page .sidebar-block {
    height: 100%;
  }
}

@media (max-width: 1024px) {
  .profile-demo-page .menu {
    right: -100% !important;
    max-width: 100vw !important;
  }

  .profile-demo-page .menu.active {
    right: 0 !important;
  }

  .profile-demo-page .profile-card-cover {
    padding: 18px !important;
    min-height: auto !important;
    background:
      linear-gradient(180deg, rgba(13, 22, 34, 0.22) 0%, rgba(10, 20, 31, 0.64) 48%, rgba(8, 16, 27, 0.84) 100%),
      url("../images/banner-bg.jpg") center/cover no-repeat !important;
  }

  .profile-demo-page .profile-top-row {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
  }

  .profile-demo-page .profile-identity,
  .profile-demo-page .profile-main,
  .profile-demo-page .profile-info-column,
  .profile-demo-page .profile-info-column-social {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  .profile-demo-page .profile-identity {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  .profile-demo-page .profile-identity-top {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .profile-demo-page .profile-avatar-profile {
    width: 92px !important;
    height: 92px !important;
    flex-basis: 92px !important;
  }

  .profile-demo-page .profile-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .profile-demo-page .profile-name {
    font-size: 28px !important;
    line-height: 1.08 !important;
    word-break: break-word !important;
  }

  .profile-demo-page .profile-name-line {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    padding-right: 52px !important;
  }

  .profile-demo-page .profile-message-button {
    display: inline-flex !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .profile-demo-page .profile-upper-right {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: auto !important;
    gap: 12px !important;
  }

  .profile-demo-page .profile-rank-corner {
    min-width: 0 !important;
  }

  .profile-demo-page .profile-rank-line-stack {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .profile-demo-page .profile-rank-icon-large {
    width: 52px !important;
    height: 52px !important;
    flex-basis: 52px !important;
  }

  .profile-demo-page .profile-more {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 6 !important;
  }

  .profile-demo-page .profile-more-menu {
    right: 0 !important;
    top: calc(100% + 8px) !important;
    min-width: min(250px, calc(100vw - 48px)) !important;
  }

  .profile-demo-page .profile-bottom-info {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-top: 16px !important;
  }

  .profile-demo-page .profile-info-column,
  .profile-demo-page .profile-info-column-social {
    margin-left: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    background: rgba(7, 17, 29, 0.34) !important;
  }

  .profile-demo-page .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .profile-demo-page .profile-stat-card {
    min-height: 108px !important;
  }

  .profile-demo-page .profile-gifts-arrow {
    display: none !important;
  }

  .profile-demo-page .profile-gifts-track {
    padding-inline: 0 !important;
    gap: 12px !important;
  }

  .profile-demo-page .profile-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 10px !important;
    padding-bottom: 12px !important;
    scrollbar-width: none;
  }

  .profile-demo-page .profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-demo-page .profile-tab {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
  }

  .profile-demo-page .profile-wall-form,
  .profile-demo-page .profile-wall-item,
  .profile-demo-page .profile-comment-item,
  .profile-demo-page .profile-post-item {
    padding: 16px !important;
  }

  .profile-demo-page .profile-wall-form-footer,
  .profile-demo-page .profile-wall-head,
  .profile-demo-page .profile-wall-pagination,
  .profile-demo-page .profile-comment-head,
  .profile-demo-page .profile-panel-head,
  .profile-demo-page .profile-post-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .profile-demo-page .profile-wall-form-footer {
    align-items: stretch !important;
  }

  .profile-demo-page .profile-wall-smiles {
    justify-content: flex-start !important;
  }

  .profile-demo-page .profile-wall-form .secondary-btn,
  .profile-demo-page .profile-wall-page-button,
  .profile-demo-page .profile-post-head .entry-badge,
  .profile-demo-page .profile-comment-head span,
  .profile-demo-page .profile-post-meta span,
  .profile-demo-page .profile-wall-meta span,
  .profile-demo-page .profile-wall-delete {
    align-self: flex-start !important;
  }

  .profile-demo-page .gift-modal-card {
    width: min(100%, 440px) !important;
    margin-top: 8vh !important;
  }
}

@media (max-width: 820px) {
  .profile-demo-page .sidebar-container {
    grid-template-columns: 1fr;
  }

  .profile-demo-page .profile-identity-top {
    align-items: flex-start !important;
  }

  .profile-demo-page .profile-name-line {
    padding-right: 54px !important;
  }

  .profile-demo-page .profile-upper-right {
    gap: 12px !important;
  }

  .profile-demo-page .profile-wall-form .secondary-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 560px) {
  .profile-demo-page .profile-card-cover,
  .profile-demo-page .profile-panel,
  .profile-demo-page .sidebar-block {
    padding: 16px !important;
  }

  .profile-demo-page .profile-identity-top {
    grid-template-columns: 84px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .profile-demo-page .profile-avatar-profile {
    width: 84px !important;
    height: 84px !important;
    flex-basis: 84px !important;
  }

  .profile-demo-page .profile-name {
    font-size: 24px !important;
  }

  .profile-demo-page .profile-name-line {
    padding-right: 46px !important;
  }

  .profile-demo-page .profile-stats-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-demo-page .profile-upper-right {
    justify-content: center !important;
    align-items: center !important;
    padding-top: 4px !important;
  }

  .profile-demo-page .profile-rank-line-stack {
    margin: 0 !important;
    justify-content: center !important;
  }

  .profile-demo-page .profile-wall-form,
  .profile-demo-page .profile-wall-item,
  .profile-demo-page .profile-comment-item,
  .profile-demo-page .profile-post-item {
    padding: 14px !important;
  }

  .profile-demo-page .gift-modal-card {
    margin-top: 6vh !important;
    padding: 24px 16px !important;
  }
}

@media (max-width: 420px) {
  .profile-demo-page .profile-card-cover,
  .profile-demo-page .profile-panel,
  .profile-demo-page .sidebar-block {
    padding: 14px !important;
  }

  .profile-demo-page .profile-identity-top {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .profile-demo-page .profile-avatar-profile {
    width: 76px !important;
    height: 76px !important;
    flex-basis: 76px !important;
  }

  .profile-demo-page .profile-name {
    font-size: 22px !important;
  }

  .profile-demo-page .profile-name-line {
    gap: 8px !important;
    padding-right: 42px !important;
  }

  .profile-demo-page .profile-more-toggle {
    width: 38px !important;
    height: 38px !important;
  }

  .profile-demo-page .profile-more-menu {
    min-width: min(230px, calc(100vw - 28px)) !important;
  }

  .profile-demo-page .profile-gift-card {
    min-width: 82px !important;
    width: 82px !important;
    height: 82px !important;
    flex-basis: 82px !important;
  }

  .profile-demo-page .profile-gift-icon {
    width: 54px !important;
    height: 54px !important;
  }

  .profile-demo-page .profile-tab {
    font-size: 13px !important;
  }

  .profile-demo-page .gift-modal-card {
    width: min(100%, calc(100vw - 20px)) !important;
  }
}

@media (max-width: 360px) {
  .profile-demo-page .profile-identity-top {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }

  .profile-demo-page .profile-avatar-profile {
    width: 68px !important;
    height: 68px !important;
    flex-basis: 68px !important;
  }

  .profile-demo-page .profile-name {
    font-size: 20px !important;
  }

  .profile-demo-page .profile-message-button,
  .profile-demo-page .profile-wall-form .secondary-btn {
    min-height: 52px !important;
  }

  .profile-demo-page .profile-gifts-track {
    gap: 10px !important;
  }
}
