body {
  background: #16202d;
  color: #c7d5e0;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.main-header {
  background: #1b2838;
  box-shadow: 0 2px 12px rgba(20,40,80,0.18);
  padding: 0;
  position: relative;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  position: relative;
}
.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: filter 0.2s;
  margin-right: 36px;
}
.logo-block:hover .site-logo {
  color: #66c0f4;
  filter: drop-shadow(0 0 6px #66c0f4cc);
}
.logo-bar {
  width: 4px;
  height: 32px;
  background: #66c0f4;
  border-radius: 2px;
  margin-right: 8px;
}
.site-logo {
  font-size: 2.2em;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  transition: color 0.2s;
  text-decoration: none !important;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  padding: 0;
  margin: 0;
  height: 72px;
}
.main-nav li {
  display: flex;
  align-items: center;
}
.nav-link {
  color: #c7d5e0 !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 1.08em;
  padding: 0 2px 0 2px;
  border-radius: 4px;
  position: relative;
  transition: color 0.18s;
  line-height: 1.1;
  display: inline-block;
}
.nav-link.active,
.nav-link:hover,
.nav-link:focus {
  color: #66c0f4 !important;
}
.nav-link::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: #66c0f4 !important;
  border-radius: 2px;
  width: 0%;
  opacity: 0;
  transition: width 0.22s cubic-bezier(.4,0,.2,1), opacity 0.18s;
}
.nav-link.active::after,
.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
  opacity: 1;
}
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 18px;
  z-index: 20;
}
.burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #66c0f4;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.2s;
}
.header-shadow {
  width: 100%;
  height: 7px;
  background: linear-gradient(180deg, #1b2838 60%, #223a5e00 100%);
  box-shadow: 0 4px 24px #223a5e55;
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  z-index: 1;
}
.auth-profile {
  margin-left: 18px;
}
@media (max-width: 900px) {
  .header-inner { padding: 0 8px; }
  .main-nav ul { gap: 12px; }
  .site-logo { font-size: 1.1em; }
}
@media (max-width: 700px) {
  .main-header { position: sticky; top: 0; z-index: 1000; }
  .header-inner { flex-direction: row; height: 56px; gap: 8px; padding: 0 4px; }
  .main-nav ul { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: #1b2838; z-index: 100; box-shadow: 0 8px 32px #223a5e55; }
  .mobile-nav.show { display: block; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
  .mobile-nav li { border-bottom: 1px solid #223a5e; }
  .mobile-nav .nav-link { display: block; padding: 16px 24px; font-size: 1.1em; }
}
@media (min-width: 701px) {
  .mobile-nav {
    display: none !important;
  }
}

.deck {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
}
.debate-card {
  position: relative;
  width: 320px;
  min-height: 340px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px #223a5e99, 0 1.5px 0 #66c0f4;
  background: #1b2838cc;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 2.5px solid #223a5e;
}
.debate-card:hover {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 16px 48px #66c0f4cc, 0 2px 0 #66c0f4;
  z-index: 2;
}
.card-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.32;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: blur(0.5px) grayscale(0.1) brightness(0.85);
}
.debate-card .card-content {
  position: relative;
  z-index: 1;
  padding: 28px 22px 22px 22px;
  background: linear-gradient(0deg, #16202de0 80%, #223a5e88 100%, #223a5e00 100%);
  border-radius: 0 0 16px 16px;
}
.debate-card h2 {
  margin: 0 0 10px 0;
  font-size: 1.35em;
  color: #66c0f4;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #223a5e99;
}
.debate-card p {
  font-size: 1em;
  margin: 0 0 12px 0;
  color: #e6f0fa;
}
.debate-card ul {
  margin: 0;
  padding-left: 18px;
  color: #c7d5e0;
  font-size: 0.98em;
}

/* Уникальные фоны для каждой темы (Freepik, можно заменить) */
.politics .card-bg {
  background-image: url('https://img.freepik.com/free-vector/flat-design-politics-concept_23-2149190852.jpg');
}
.science .card-bg {
  background-image: url('https://img.freepik.com/free-vector/hand-drawn-science-education-background_23-2148499329.jpg');
}
.tech .card-bg {
  background-image: url('https://img.freepik.com/free-vector/technology-background-with-circuit-board-design_1017-19366.jpg');
}
.culture .card-bg {
  background-image: url('https://img.freepik.com/free-vector/hand-drawn-flat-design-culture-concept_23-2149190856.jpg');
}
.education .card-bg {
  background-image: url('https://img.freepik.com/free-vector/hand-drawn-flat-design-education-background_23-2149485846.jpg');
}
.economy .card-bg {
  background-image: url('https://img.freepik.com/free-vector/flat-design-economy-concept_23-2149190854.jpg');
}
.society .card-bg {
  background-image: url('https://img.freepik.com/free-vector/hand-drawn-flat-design-society-concept_23-2149190858.jpg');
}

@media (max-width: 900px) {
  .deck {
    gap: 18px;
  }
  .debate-card {
    width: 98vw;
    max-width: 370px;
  }
}
@media (max-width: 600px) {
  .deck {
    flex-direction: column;
    align-items: center;
  }
  .debate-card {
    width: 98vw;
    min-height: 220px;
    padding: 0;
  }
  .debate-card .card-content {
    padding: 16px 8px 12px 8px;
  }
}

.category-deck {
  margin-bottom: 36px;
}
.category-deck h2 {
  color: #e6f0fa;
  margin-bottom: 18px;
  text-align: left;
  font-size: 1.3em;
  letter-spacing: 0.5px;
}
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}
.debate-card {
  background: #1b2838ee;
  border-radius: 18px;
  box-shadow: 0 0 24px 4px #66c0f455, 0 2px 0 #66c0f4;
  border: 2px solid #223a5e;
  padding: 0;
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow 0.2s, transform 0.18s;
  cursor: pointer;
  overflow: hidden;
}
.debate-card:hover, .debate-card.open {
  box-shadow: 0 0 32px 8px #66c0f4cc, 0 2px 0 #66c0f4;
  transform: translateY(-2px) scale(1.025);
}
.card-title {
  font-size: 1.08em;
  font-weight: 600;
  color: #66c0f4;
  text-align: center;
  padding: 22px 16px 18px 16px;
  background: none;
  transition: color 0.18s;
  user-select: none;
}
.debate-card.open .card-title {
  color: #fff;
}
.card-details {
  color: #e6f0fa;
  font-size: 1em;
  padding: 0 18px 18px 18px;
  background: linear-gradient(0deg, #16202de0 80%, #223a5e88 100%, #223a5e00 100%);
  border-radius: 0 0 16px 16px;
  margin: 0;
  line-height: 1.5;
}
.table-card .card-details {
  padding: 0 0 18px 0;
}
@media (max-width: 900px) {
  .card-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.wiki-main {
  max-width: 900px;
  margin: 60px auto 0 auto;
  padding-bottom: 90px;
}
.wiki-title {
  color: #e6f0fa;
  font-size: 2.1em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 38px;
  letter-spacing: 0.5px;
}
.wiki-section {
  background: rgba(27,40,56,0.98);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(34,58,94,0.18);
  margin-bottom: 36px;
  padding: 32px 36px;
  color: #e6f0fa;
}
.wiki-section h2 {
  color: #66c0f4;
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.25em;
  font-weight: 700;
}
.wiki-section ul {
  margin-bottom: 0;
  padding-left: 22px;
  font-size: 1.08em;
  line-height: 1.7;
}
.wiki-note {
  margin-top: 22px;
  border-left: 4px solid #66c0f4;
  background: #223a5e33;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 1em;
  color: #b8e0ff;
}
.wiki-example {
  border-left-color: #4be0a5;
  background: #1b2838cc;
  color: #b8ffd6;
}
.wiki-important {
  border-left-color: #ffb84b;
  background: #2d2a1bcc;
  color: #ffe6b8;
}
.wiki-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  background: #16202d;
  border-radius: 12px;
  overflow: hidden;
  font-size: 1em;
}
.wiki-table th, .wiki-table td {
  border: 1px solid #223a5e;
  padding: 12px 10px;
  text-align: left;
}
.wiki-table th {
  background: #223a5e;
  color: #66c0f4;
  font-weight: 700;
}
.wiki-table tr:nth-child(even) { background: rgba(34,58,94,0.18); }
@media (max-width: 700px) {
  .wiki-section, .wiki-table { padding: 12px 4px; font-size: 0.98em; }
  .wiki-table th, .wiki-table td { padding: 7px 4px; }
}

.auth-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.auth-profile .profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #223a5e;
  border-radius: 20px;
  padding: 6px 16px 6px 8px;
  box-shadow: 0 2px 8px #223a5e55;
}
.auth-profile .profile-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #66c0f4;
  background: #fff;
}
.auth-profile .profile-info .profile-name {
  color: #e6f0fa;
  font-weight: 600;
  font-size: 1.05em;
}
.auth-profile .profile-info .profile-email {
  color: #7a97b8;
  font-size: 0.98em;
  margin-left: 8px;
}
.auth-btn {
  background: #243647;
  color: #fff !important;
  font-weight: 900;
  font-size: 0.98em;
  border: 1.5px solid #fff3;
  border-radius: 8px;
  padding: 7px 16px;
  box-shadow: 0 2px 8px #223a5e33;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  margin: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  outline: none;
  z-index: 10;
}
.auth-btn svg {
  width: 16px;
  height: 16px;
}
.auth-btn span {
  color: #fff !important;
  font-weight: 900;
  font-size: 0.98em;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px #223a5e33, 0 0 2px #0006;
}
.auth-btn:hover, .auth-btn:focus {
  background: #223a5e;
  box-shadow: 0 4px 12px #223a5e55, 0 0 0 2px #fff5;
  transform: translateY(-1px) scale(1.02);
}

.profile-card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #223a5e;
  background: #223a5e;
}

/* .profile-avatar — только для header, маленький размер */
.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #223a5e;
  background: #223a5e;
}

.profile-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,32,45,0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-modal .modal-content {
  background: #1b2838;
  border-radius: 16px;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 8px 32px #223a5e99;
  min-width: 320px;
  max-width: 95vw;
  color: #e6f0fa;
}
.profile-modal label {
  font-size: 1.05em;
  color: #c7d5e0;
}
.profile-modal input, .profile-modal textarea {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #223a5e;
  background: #16202d;
  color: #e6f0fa;
  font-size: 1em;
  resize: none;
}
.profile-modal button.auth-btn {
  margin-right: 10px;
  margin-top: 8px;
}

.steam-profile-modal {
  min-width: 340px;
  max-width: 98vw;
  background: linear-gradient(120deg, #1b2838 70%, #223a5e 100%);
  border-radius: 18px;
  box-shadow: 0 8px 48px #223a5e99, 0 1.5px 0 #66c0f4;
  padding: 36px 32px 28px 32px;
  color: #e6f0fa;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.profile-modal-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #66c0f4;
  box-shadow: 0 4px 24px #223a5e77;
  background: #fff;
}
.profile-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-modal-nickname {
  font-size: 1.5em;
  font-weight: 700;
  color: #66c0f4;
  text-shadow: 0 2px 8px #223a5e99;
}
.profile-modal-email {
  font-size: 1em;
  color: #7a97b8;
  word-break: break-all;
}
.profile-form-steam label {
  display: block;
  margin-bottom: 16px;
  color: #c7d5e0;
  font-size: 1.08em;
  font-weight: 500;
}
.profile-form-steam input,
.profile-form-steam textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 7px;
  border: 1.5px solid #223a5e;
  background: #16202d;
  color: #e6f0fa;
  font-size: 1.08em;
  resize: none;
  box-shadow: 0 2px 8px #223a5e22;
  transition: border 0.2s;
}
.profile-form-steam input:focus,
.profile-form-steam textarea:focus {
  border: 1.5px solid #66c0f4;
  outline: none;
}
.profile-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 600px) {
  .steam-profile-modal {
    padding: 12px 4px 8px 4px;
    min-width: 0;
  }
  .profile-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .profile-modal-avatar {
    width: 64px;
    height: 64px;
  }
  .profile-modal-nickname {
    font-size: 1.1em;
  }
}

/* --- Стили для страницы пользователей --- */
.users-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 0;
}
.user-card {
  background: var(--card-bg, #181f2a);
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  transition: box-shadow 0.2s;
  margin: 0;
}
.user-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.user-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1.5rem;
  background: #222e3c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.user-info {
  flex: 1;
}
.user-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2em;
}
.user-email {
  font-size: 0.95rem;
  color: #7fa7e6;
  margin-bottom: 0.3em;
  display: block;
}
.user-about {
  font-size: 0.98rem;
  color: #b0b8c9;
  margin-bottom: 0.4em;
}
.user-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
  margin-top: 0.5em;
}
.user-topic {
  display: inline-block;
  background: #1a4b8a;
  color: #fff;
  border-radius: 1em;
  padding: 0.25em 1em;
  font-size: 1em;
  margin: 0 0.2em 0.2em 0;
  box-shadow: 0 1px 4px #223a5e44;
  transition: background 0.2s;
}
.user-topic:hover {
  background: #2566c1;
}
.user-search {
  width: 100%;
  max-width: 320px;
  padding: 0.7em 1em;
  border-radius: 0.7em;
  border: none;
  font-size: 1.1em;
  background: #232e41;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
@media (max-width: 700px) {
  .users-list {
    flex-direction: column;
    gap: 1.2rem;
  }
  .user-card {
    min-width: 0;
    max-width: 100%;
    padding: 1.2rem 1rem;
  }
  .user-avatar {
    width: 56px;
    height: 56px;
    margin-right: 1rem;
  }
}

.user-avatar.user-avatar-small {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
}

/* --- Публичный профиль пользователя --- */
.profile-public {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em 0 1em 0;
}
.profile-public .user-avatar {
  width: 96px;
  height: 96px;
  margin-bottom: 1.2em;
  border-radius: 50%;
  overflow: hidden;
  background: #222e3c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.profile-public .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-public .user-name {
  font-size: 1.5em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3em;
}
.profile-public .user-about {
  font-size: 1.08em;
  color: #b0b8c9;
  margin-bottom: 0.7em;
  text-align: center;
  max-width: 420px;
}
.profile-public .user-topics {
  margin-top: 0.5em;
  text-align: center;
}
.profile-public .user-topic {
  display: inline-block;
  background: #1a4b8a;
  color: #fff;
  border-radius: 0.6em;
  padding: 0.2em 0.8em;
  font-size: 1em;
  margin: 0 0.2em 0.2em 0;
  transition: background 0.2s;
}
.profile-public .user-topic:hover {
  background: #2566c1;
}

.error {
  color: #ff6b6b;
  background: #232e41;
  border-radius: 0.5em;
  padding: 0.7em 1em;
  margin: 1em 0;
  font-weight: 600;
  text-align: center;
}

/* --- Темы-баблы в профиле --- */
.topics-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
  margin-bottom: 0.5em;
}
.topic-bubble {
  display: inline-flex;
  align-items: center;
  background: #1a4b8a;
  color: #fff;
  border-radius: 1em;
  padding: 0.25em 0.9em 0.25em 0.8em;
  font-size: 1em;
  margin: 0 0.2em 0.2em 0;
  position: relative;
  box-shadow: 0 1px 4px #223a5e44;
  transition: background 0.2s;
}
.topic-bubble .remove-topic {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1em;
  margin-left: 0.4em;
  cursor: pointer;
  padding: 0 0.2em;
  border-radius: 50%;
  transition: background 0.2s;
}
.topic-bubble .remove-topic:hover {
  background: #2566c1;
}
.topic-input {
  background: #232e41;
  color: #fff;
  border: none;
  border-radius: 0.7em;
  padding: 0.3em 0.9em;
  font-size: 1em;
  outline: none;
  margin: 0.2em 0;
  min-width: 120px;
  max-width: 180px;
}

/* --- Комментарии к профилю --- */
.profile-comments {
  margin-top: 2.5em;
  background: #1b2838;
  border-radius: 1em;
  padding: 1.5em 1.5em 1em 1.5em;
  box-shadow: 0 2px 16px #223a5e33;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.profile-comments-title {
  font-size: 1.15em;
  color: #7fa7e6;
  margin-bottom: 1em;
  font-weight: 600;
}
.comment-list {
  margin: 0 0 1.2em 0;
  padding: 0;
  list-style: none;
}
.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  margin-bottom: 1.1em;
  background: #223a5e44;
  border-radius: 0.7em;
  padding: 0.7em 1em;
  position: relative;
}
.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #222e3c;
  flex-shrink: 0;
}
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.comment-body {
  flex: 1;
}
.comment-author {
  font-weight: 600;
  color: #fff;
  font-size: 1em;
}
.comment-date {
  font-size: 0.92em;
  color: #b0b8c9;
  margin-left: 0.7em;
}
.comment-text {
  margin-top: 0.2em;
  color: #e6f0fa;
  font-size: 1.05em;
}
.comment-delete {
  position: absolute;
  top: 0.5em;
  right: 0.7em;
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 1.1em;
  cursor: pointer;
  padding: 0.1em 0.4em;
  border-radius: 0.5em;
  transition: background 0.2s;
}
.comment-delete:hover {
  background: #2d1a1a;
}
.comment-form {
  display: flex;
  gap: 0.7em;
  margin-top: 0.7em;
}
.comment-form textarea {
  flex: 1;
  border-radius: 0.7em;
  border: none;
  background: #232e41;
  color: #fff;
  font-size: 1em;
  padding: 0.7em 1em;
  resize: none;
  min-height: 2.5em;
}
.comment-form button {
  background: linear-gradient(90deg, #66c0f4 0%, #223a5e 100%);
  color: #fff;
  border: none;
  border-radius: 0.7em;
  padding: 0.7em 1.5em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #223a5e33;
  transition: background 0.2s, transform 0.1s;
}
.comment-form button:hover {
  background: linear-gradient(90deg, #223a5e 0%, #66c0f4 100%);
  transform: translateY(-2px) scale(1.03);
}

/* --- Steam-like профиль --- */
.steam-profile-card {
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 900px;
}
.steam-profile-cover {
  width: 100%;
  height: 180px;
  background: linear-gradient(120deg, #223a5e 60%, #1b2838 100%);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 4px 32px #223a5e55;
  margin-bottom: -90px;
}
.steam-profile-main {
  display: flex;
  gap: 32px;
  background: linear-gradient(120deg, #1b2838 60%, #223a5e 100%);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 32px #223a5e55;
  padding: 40px 36px 36px 36px;
  position: relative;
  z-index: 1;
}
.steam-profile-left {
  min-width: 220px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
}
.steam-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #222e3c;
  box-shadow: 0 2px 16px #223a5e55;
  margin-bottom: 0.5em;
}
.steam-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.steam-profile-nick {
  font-size: 1.5em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1em;
  text-align: center;
}
.steam-profile-country {
  color: #b0b8c9;
  font-size: 1em;
  margin-bottom: 0.2em;
}
.steam-profile-status {
  color: #7fa7e6;
  font-size: 1.08em;
  margin-bottom: 0.2em;
  text-align: center;
}
.steam-profile-contacts {
  margin-top: 0.5em;
  color: #b0b8c9;
  font-size: 1em;
  text-align: left;
}
.steam-profile-contacts a {
  color: #66c0f4;
  text-decoration: underline;
}
.steam-profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  justify-content: flex-start;
}
.steam-profile-about {
  background: #223a5e44;
  border-radius: 0.7em;
  padding: 1.1em 1.3em;
  color: #e6f0fa;
  font-size: 1.08em;
  margin-bottom: 0.5em;
  min-height: 60px;
}
.steam-profile-topics {
  margin-top: 0.2em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.steam-profile-topics .user-topic {
  background: #1a4b8a;
  color: #fff;
  border-radius: 1em;
  padding: 0.25em 1em;
  font-size: 1em;
  margin: 0 0.2em 0.2em 0;
  box-shadow: 0 1px 4px #223a5e44;
  transition: background 0.2s;
}
.steam-profile-topics .user-topic:hover {
  background: #2566c1;
}
@media (max-width: 900px) {
  .steam-profile-main {
    flex-direction: column;
    gap: 18px;
    padding: 24px 8px 18px 8px;
  }
  .steam-profile-left {
    min-width: 0;
    max-width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5em;
  }
  .steam-profile-avatar {
    width: 80px;
    height: 80px;
  }
  .steam-profile-nick {
    font-size: 1.1em;
  }
}

/* --- Бургер-меню и адаптивный хедер --- */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(20,30,50,0.7);
  z-index: 1999;
  transition: opacity 0.2s;
}
.menu-overlay.show { display: block; opacity: 1; }

@media (max-width: 900px) {
  .site-logo { font-size: 1.2em; }
  .main-nav ul { gap: 10px; }
}
@media (max-width: 700px) {
  header { position: sticky; top: 0; z-index: 1000; }
  .main-nav ul { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: none; }
  .mobile-nav.show { display: block; }
}

/* Добавляем новые стили для комнат и улучшений */

/* Стили для комнат */
.room-form, .room-list { 
  max-width: 600px; 
  margin: 2rem auto; 
  background: #1b2838; 
  border-radius: 16px; 
  box-shadow: 0 4px 24px rgba(34,58,94,0.4); 
  padding: 2rem; 
  border: 1px solid #223a5e;
}

.room-form h2 { 
  margin-top: 0; 
  color: #66c0f4;
}

.room-form input, .room-form textarea, .room-form select { 
  width: 100%; 
  margin-bottom: 1rem; 
  border-radius: 8px; 
  border: 1px solid #223a5e; 
  padding: 0.75rem; 
  background: #16202d; 
  color: #c7d5e0; 
  font-size: 1em;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.room-form input:focus, .room-form textarea:focus, .room-form select:focus { 
  outline: none; 
  border-color: #66c0f4; 
  box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.2);
}

.room-form button { 
  background: linear-gradient(90deg, #66c0f4 0%, #223a5e 100%); 
  color: #fff; 
  border: none; 
  border-radius: 8px; 
  padding: 0.75rem 2rem; 
  font-size: 1rem; 
  cursor: pointer; 
  transition: all 0.2s;
}

.room-form button:hover { 
  background: linear-gradient(90deg, #223a5e 0%, #66c0f4 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 192, 244, 0.3);
}

.room-list h3 { 
  margin-top: 0; 
  color: #66c0f4;
}

.room-card { 
  background: #16202d; 
  border-radius: 12px; 
  margin-bottom: 1rem; 
  padding: 1.5rem; 
  box-shadow: 0 2px 8px rgba(34,58,94,0.3); 
  border: 1px solid #223a5e;
  transition: all 0.2s;
}

.room-card:hover { 
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 192, 244, 0.2);
  border-color: #66c0f4;
}

.room-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 1rem;
}

.room-header h4 { 
  margin: 0; 
  color: #66c0f4; 
  font-size: 1.2em;
}

.room-status { 
  padding: 0.3rem 0.8rem; 
  border-radius: 20px; 
  font-size: 0.85em; 
  font-weight: 500;
}

.room-status.open { 
  background: #27ae60; 
  color: white;
}

.room-status.private { 
  background: #f39c12; 
  color: white;
}

.room-status.archived { 
  background: #7f8c8d; 
  color: white;
}

.room-tags { 
  margin: 0.5rem 0; 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.5rem;
}

.room-tag { 
  display: inline-block; 
  background: #313a4d; 
  color: #8ecfff; 
  border-radius: 6px; 
  padding: 0.2em 0.7em; 
  font-size: 0.85em;
  transition: background 0.2s;
}

.room-tag:hover { 
  background: #4a5a6d;
}

.room-actions { 
  display: flex; 
  gap: 0.5rem; 
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-secondary { 
  background: linear-gradient(90deg, #7f8c8d 0%, #95a5a6 100%) !important;
}

.btn-secondary:hover { 
  background: linear-gradient(90deg, #95a5a6 0%, #7f8c8d 100%) !important;
}

.btn-danger { 
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%) !important;
}

.btn-danger:hover { 
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%) !important;
}

/* Стили для сообщений */
.message { 
  padding: 0.75rem 1rem; 
  border-radius: 8px; 
  margin-bottom: 1rem; 
  font-weight: 500;
}

.message.success { 
  background: rgba(39, 174, 96, 0.2); 
  color: #2ecc71; 
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.message.error { 
  background: rgba(231, 76, 60, 0.2); 
  color: #e74c3c; 
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.message.info { 
  background: rgba(102, 192, 244, 0.2); 
  color: #66c0f4; 
  border: 1px solid rgba(102, 192, 244, 0.3);
}

/* Анимации */
@keyframes slideInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
  }
  to { 
    opacity: 1; 
  }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.05); 
  }
}

/* Улучшенные стили для карточек */
.debate-card { 
  animation: slideInUp 0.6s ease-out;
}

.debate-card:hover { 
  animation: pulse 2s infinite;
}

/* Улучшенные стили для кнопок */
.btn, button { 
  position: relative; 
  overflow: hidden;
}

.btn::before, button::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: -100%; 
  width: 100%; 
  height: 100%; 
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); 
  transition: left 0.5s;
}

.btn:hover::before, button:hover::before { 
  left: 100%;
}

/* Улучшенные стили для навигации */
.main-nav a { 
  position: relative;
}

.main-nav a::after { 
  content: ''; 
  position: absolute; 
  bottom: -4px; 
  left: 50%; 
  width: 0; 
  height: 2px; 
  background: #66c0f4; 
  transition: all 0.3s; 
  transform: translateX(-50%);
}

.main-nav a:hover::after { 
  width: 100%;
}

/* Улучшенные стили для форм */
input, textarea, select { 
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus { 
  transform: translateY(-1px);
}

/* Стили для загрузки */
.loading { 
  display: inline-block; 
  width: 20px; 
  height: 20px; 
  border: 3px solid rgba(102, 192, 244, 0.3); 
  border-radius: 50%; 
  border-top-color: #66c0f4; 
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin { 
  to { 
    transform: rotate(360deg); 
  }
}

/* Улучшенные стили для мобильных устройств */
@media (max-width: 600px) {
  .room-form, .room-list { 
    padding: 1rem; 
    margin: 1rem;
  }
  
  .room-actions { 
    flex-direction: column;
  }
  
  .room-header { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 0.5rem;
  }
  
  .video-controls { 
    flex-wrap: wrap; 
    gap: 0.25rem;
  }
  
  .control-btn { 
    padding: 0.4rem 0.8rem; 
    font-size: 0.8em;
  }
}

/* Темная/светлая тема */
[data-theme="light"] {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --text-primary: #2c3e50;
  --accent: #3498db;
  --border-color: #e9ecef;
}

[data-theme="dark"] {
  --bg-primary: #16202d;
  --bg-secondary: #1b2838;
  --text-primary: #c7d5e0;
  --accent: #66c0f4;
  --border-color: #223a5e;
}

/* Переменные CSS */
:root {
  --bg-primary: #16202d;
  --bg-secondary: #1b2838;
  --text-primary: #c7d5e0;
  --accent: #66c0f4;
  --border-color: #223a5e;
  --shadow-light: rgba(34,58,94,0.2);
  --shadow-medium: rgba(34,58,94,0.4);
  --shadow-heavy: rgba(34,58,94,0.6);
}

/* Применение переменных */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.card, .room-form, .room-list {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.btn, button {
  background: linear-gradient(90deg, var(--accent) 0%, var(--border-color) 100%);
}

/* Улучшенные стили для профилей */
.profile-modal {
  backdrop-filter: blur(10px);
  background: rgba(22, 32, 45, 0.95);
}

.profile-modal .modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-heavy);
}

/* Стили для уведомлений */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  animation: slideInRight 0.3s ease-out;
}

.notification.success {
  background: #27ae60;
}

.notification.error {
  background: #e74c3c;
}

.notification.info {
  background: #3498db;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Стили для скроллбара */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Улучшенные стили для таблиц */
.wiki-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.wiki-table th {
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

.wiki-table td {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

.wiki-table tr:hover td {
  background: rgba(102, 192, 244, 0.1);
}

/* Стили для кода */
code {
  background: var(--bg-primary);
  color: var(--accent);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

pre {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

footer {
  display: block;
  position: static;
  margin-top: 40px;
  background: linear-gradient(90deg, #1b2838 0%, #223a5e 100%);
  color: #7a97b8;
  text-align: center;
  padding: 22px 0 10px 0;
  font-size: 0.95em;
  border-top: 1px solid #223a5e;
}

footer a {
  color: #66c0f4;
  text-decoration: underline;
}

/* --- HERO BLOCK --- */
.hero-block {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #1b2838 60%, #223a5e 100%);
  border-radius: 22px;
  box-shadow: 0 8px 48px #223a5e55;
  margin: 48px auto 36px auto;
  max-width: 1100px;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.hero-img {
  flex: 0 0 380px;
  height: 320px;
  background: #16202d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
  overflow: hidden;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 32px #223a5e88);
}
.hero-content {
  flex: 1 1 0;
  padding: 48px 48px 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-content h1 {
  font-size: 2.6em;
  color: #fff;
  margin: 0 0 18px 0;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero-content p {
  font-size: 1.25em;
  color: #c7d5e0;
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-btn {
  display: inline-block;
  background: #66c0f4;
  color: #16202d;
  font-weight: 700;
  font-size: 1.15em;
  padding: 16px 38px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 16px #223a5e44;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.hero-btn:hover, .hero-btn:focus {
  background: #338edc;
  color: #fff;
  box-shadow: 0 4px 32px #223a5e88;
}

/* --- CARDS GRID --- */
.cards-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 60px auto;
}
.card.big-card {
  grid-row: span 2;
  min-height: 340px;
}
.card {
  background: linear-gradient(120deg, #1b2838 60%, #223a5e 100%);
  border-radius: 18px;
  box-shadow: 0 8px 48px #223a5e55;
  padding: 36px 28px 28px 28px;
  margin: 0;
  min-height: 180px;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card h2 {
  margin-top: 0;
  font-size: 1.5em;
  color: #fff;
  margin-bottom: 18px;
}
.card ul {
  margin: 0;
  padding-left: 18px;
  color: #c7d5e0;
  font-size: 1.08em;
}
.card ul li {
  margin-bottom: 12px;
}
.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 8px;
}
.categories-list span {
  background: #223a5e;
  color: #66c0f4;
  border-radius: 6px;
  padding: 6px 18px;
  font-size: 1.08em;
  font-weight: 500;
  box-shadow: 0 2px 8px #223a5e33;
}

@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .card.big-card {
    grid-row: auto;
    min-height: 220px;
  }
}
@media (max-width: 800px) {
  .hero-block {
    flex-direction: column;
    min-height: 0;
    padding: 0;
    gap: 0;
  }
  .hero-img {
    width: 100%;
    height: 180px;
    border-radius: 0;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
  }
  .hero-content {
    padding: 24px 16px 24px 16px;
    align-items: center;
    text-align: center;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
} 

/* Разделитель секций */
.section-divider {
  border: none;
  border-top: 1px solid #2a3a5e;
  margin: 28px 0 18px 0;
  width: 100%;
  opacity: 0.35;
}

.user-search-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1.5em;
  gap: 0.5em;
}

.users-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 0;
}

.user-card {
  background: var(--card-bg, #181f2a);
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  transition: box-shadow 0.2s;
  margin: 0;
}

.user-search {
  width: 100%;
  max-width: 320px;
  padding: 0.7em 1em;
  border-radius: 0.7em;
  border: none;
  font-size: 1.1em;
  background: #232e41;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Fade-in анимация для карточек */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.user-card.fade-in {
  animation: fadeInUp 0.5s cubic-bezier(.23,1.02,.32,1) both;
}

.user-search-wrap {
  position: relative;
}
.user-search {
  padding-right: 2.2em;
}
.user-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #7fa7e6;
  font-size: 1.2em;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.user-search-clear:hover {
  opacity: 1;
  color: #66c0f4;
}

/* Компактный hero-блок */
.compact-hero {
  padding: 18px 0 8px 0;
  margin-bottom: 0;
  background: linear-gradient(120deg, #1b2838 60%, #223a5e 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #223a5e33;
}
.compact-hero-content {
  padding: 0 32px 0 32px;
  text-align: left;
}
.compact-hero-content h1 {
  font-size: 2.2em;
  margin-bottom: 0.2em;
}
.compact-hero-content p {
  margin-bottom: 1.2em;
}

.users-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 24px 0;
}
.user-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.2em;
  width: 100%;
}
.user-search {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 400px;
}
.search-btn {
  min-width: 90px;
  padding: 0.7em 1.2em;
  font-size: 1.08em;
  border-radius: 0.7em;
  margin: 0;
  box-shadow: none;
}
.section-divider {
  margin: 12px 0 18px 0;
}
.users-list {
  margin-top: 0;
}

/* Убрать глобальный стиль для ссылок в меню */
.main-nav a, .mobile-nav a {
  color: inherit;
}

main {
  margin-top: 32px;
}

/* Минималистичные карточки комнат */
.room-card.minimal {
  background: #192534;
  border-radius: 12px;
  padding: 16px 18px 12px 18px;
  box-shadow: 0 2px 8px rgba(34,58,94,0.08);
  border: 1px solid #223a5e;
  margin-bottom: 0;
  font-size: 1em;
}
.room-card.minimal h4 {
  margin: 0;
  font-weight: 600;
  color: #66c0f4;
}
.room-status-badge {
  font-size: 0.85em;
  padding: 2px 12px;
  border-radius: 12px;
  background: #223a5e;
  color: #aeea7c;
  font-weight: 500;
  margin-left: 8px;
  white-space: nowrap;
}
.room-status-badge.open { background: #223a5e; color: #7cf4a6; }
.room-status-badge.private { background: #3a2e5e; color: #f4e97c; }
.room-status-badge.archived { background: #2e3a5e; color: #b8c6d8; }

.tag-chip {
  display: inline-block;
  background: #223a5e;
  color: #7fc7ff;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 0.93em;
  margin: 0 2px 2px 0;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.tag-chip.selected {
  background: #66c0f4;
  color: #fff;
}
.tag-chip.clear {
  background: #e74c3c;
  color: #fff;
  font-weight: bold;
  padding: 2px 8px;
}

.btn-minimal {
  background: #223a5e;
  color: #66c0f4;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-right: 2px;
}
.btn-minimal:hover {
  background: #66c0f4;
  color: #fff;
}
.btn-minimal.danger {
  background: #e74c3c;
  color: #fff;
}
.btn-minimal.danger:hover {
  background: #c0392b;
  color: #fff;
}

/* TenChat-style user profile */
.profile-tenchat-card {
  display: flex;
  gap: 28px;
  background: #192534;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(34,58,94,0.10);
  padding: 32px 32px 24px 32px;
  align-items: flex-start;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.profile-tenchat-left {
  flex: 0 0 96px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #223a5e;
  background: #223a5e;
}
.profile-tenchat-main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}
.profile-name {
  font-size: 1.35em;
  font-weight: 700;
  color: #66c0f4;
}
.profile-status {
  font-size: 0.98em;
  color: #7cf4a6;
  background: #223a5e;
  border-radius: 8px;
  padding: 2px 10px;
  margin-left: 4px;
}
.profile-location {
  font-size: 1em;
  color: #b8c6d8;
  margin-bottom: 2px;
}
.profile-contacts {
  gap: 8px;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.profile-contact {
  color: #66c0f4;
  font-size: 1.15em;
  margin-right: 8px;
  text-decoration: none;
  transition: color 0.15s;
}
.profile-contact:hover {
  color: #4a9fd8;
}
.profile-bio {
  font-size: 1.05em;
  color: #c7d5e0;
  margin: 8px 0 4px 0;
}
.profile-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0 0;
}
.profile-topic-chip {
  background: #223a5e;
  color: #7fc7ff;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 0.97em;
  border: none;
  cursor: default;
}
.profile-edit-btn {
  background: #223a5e;
  color: #66c0f4;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-edit-btn:hover {
  background: #66c0f4;
  color: #fff;
}
@media (max-width: 700px) {
  .profile-tenchat-card {
    flex-direction: column;
    align-items: center;
    padding: 18px 8px 16px 8px;
    gap: 16px;
  }
  .profile-tenchat-left {
    justify-content: center;
    width: 100%;
  }
  .profile-tenchat-main {
    align-items: center;
    width: 100%;
  }
  .profile-row, .profile-location, .profile-contacts {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

/* --- СЕКЦИЯ ПОСТОВ НА ПРОФИЛЕ --- */
.profile-posts-section {
  max-width: 520px;
  margin: 0 auto 32px auto;
  background: #232c3a;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 #0002;
  padding: 24px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.post-categories-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  justify-content: center;
}
.post-category-tab {
  background: #1a2230;
  color: #6ec1e4;
  border: none;
  border-radius: 16px 16px 0 0;
  padding: 8px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
  box-shadow: 0 2px 8px 0 #0001;
}
.post-category-tab.active, .post-category-tab:hover {
  background: #2b3950;
  color: #fff;
}
.post-category-tab:disabled, .post-category-tab[disabled] {
  background: #e3eaf2 !important;
  color: #2563eb !important;
  opacity: 1 !important;
  cursor: not-allowed;
  border: 2px solid #b8cee4 !important;
  font-weight: 900 !important;
  font-size: 1.08em !important;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px #fff, 0 0 2px #2563eb55;
}
.post-category-content {
  width: 100%;
}
.post-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.post-form textarea {
  flex: 1;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid #2b3950;
  background: #1a2230;
  color: #fff;
  padding: 10px 12px;
  font-size: 1rem;
  resize: vertical;
  transition: border 0.2s;
}
.post-form textarea:focus {
  border: 1.5px solid #6ec1e4;
  outline: none;
}
.post-form button {
  background: linear-gradient(90deg, #6ec1e4 0%, #367fa9 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 #0001;
}
.post-form button:hover {
  background: linear-gradient(90deg, #367fa9 0%, #6ec1e4 100%);
}
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.post-item {
  background: #1a2230;
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 14px 16px 10px 16px;
  box-shadow: 0 1px 6px 0 #0001;
  color: #e3eaf3;
  word-break: break-word;
}
.post-meta {
  font-size: 0.92em;
  color: #6ec1e4;
  margin-bottom: 6px;
}
.no-posts {
  color: #6ec1e4;
  text-align: center;
  margin: 18px 0 0 0;
}
@media (max-width: 600px) {
  .profile-posts-section {
    max-width: 98vw;
    padding: 12px 4vw 10px 4vw;
  }
  .post-form button {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
} 

/* --- Дебат-бот --- */
.bot-page {
  max-width: 700px;
  margin: 2em auto;
  background: #232a36;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0001;
  padding: 2.5em 2em 2em 2em;
  color: #f3f6fa;
}
.bot-page h1 {
  margin-bottom: 1em;
  color: #f3f6fa;
}
#bot-settings {
  display: flex;
  gap: 1em;
  margin-bottom: 0.5em;
  flex-wrap: wrap;
}
#bot-settings label {
  background: #192534;
  color: #f3f6fa;
  border: 1.5px solid #232a36;
  border-radius: 8px;
  padding: 0.4em 1em;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
#bot-settings input[type="radio"] {
  margin-right: 0.5em;
}
#bot-settings input[type="radio"]:checked + label,
#bot-settings label:active,
#bot-settings label:hover {
  background: #232a36;
  border: 1.5px solid #6366f1;
  color: #a5b4fc;
}
#bot-description {
  font-size: 0.98em;
  color: #c7d5e0;
  min-height: 2.2em;
}
.chat-box {
  background: #232a36;
  color: #f3f6fa;
  border-radius: 12px;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 1em;
  padding: 1em 0.7em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  font-size: 1em;
  box-shadow: 0 1px 4px #0001;
  transition: box-shadow 0.2s;
}
.chat-user {
  align-self: flex-end;
  background: linear-gradient(90deg, #e0e7ff 60%, #c7d2fe 100%);
  color: #222;
  border-radius: 14px 14px 4px 14px;
  padding: 0.6em 1em;
  max-width: 80%;
  word-break: break-word;
  box-shadow: 0 1px 2px #0001;
}
.chat-bot {
  align-self: flex-start;
  background: linear-gradient(90deg, #f3f4f6 60%, #e5e7eb 100%);
  color: #333;
  border-radius: 14px 14px 14px 4px;
  padding: 0.6em 1em;
  max-width: 80%;
  word-break: break-word;
  box-shadow: 0 1px 2px #0001;
}
#chat-form {
  display: flex;
  gap: 0.5em;
  margin-top: 0.5em;
  background: none;
}
#user-input {
  flex: 1 1 auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.6em 1em;
  font-size: 1em;
  outline: none;
  transition: border 0.2s;
  background: #192534;
  color: #f3f6fa;
}
#user-input:focus {
  border: 1.5px solid #6366f1;
}
#chat-form button {
  background: linear-gradient(90deg, #6366f1 60%, #818cf8 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6em 1.2em;
  font-size: 1em;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 1px 4px #0001;
  transition: background 0.2s, box-shadow 0.2s;
}
#chat-form button:hover {
  background: linear-gradient(90deg, #4f46e5 60%, #6366f1 100%);
  box-shadow: 0 2px 8px #6366f133;
}
@media (max-width: 600px) {
  .bot-page {
    padding: 1em 0.3em;
    max-width: 100vw;
  }
  .chat-box {
    font-size: 0.97em;
    padding: 0.7em 0.2em;
  }
}

textarea {
  background: #192534;
  color: #f3f6fa;
  border: 1.5px solid #232a36;
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  padding: 1em;
  font-size: 1em;
  resize: vertical;
  margin-bottom: 1em;
}
textarea::placeholder {
  color: #b8c6d8;
}

#bot-cards {
  display: flex;
  gap: 1.2em;
  margin-bottom: 1.2em;
  justify-content: center;
  flex-wrap: wrap;
}
.bot-card {
  background: #192534;
  border: 2px solid #232a36;
  border-radius: 16px;
  padding: 1.1em 1.2em 1em 1.2em;
  min-width: 140px;
  max-width: 180px;
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 2px 8px #0002;
  user-select: none;
}
.bot-card.selected, .bot-card:hover {
  border: 2.5px solid #6366f1;
  background: #232a36;
  box-shadow: 0 4px 16px #6366f133;
}
.bot-avatar {
  font-size: 2.2em;
  margin-bottom: 0.4em;
}
.bot-title {
  font-weight: 600;
  font-size: 1.08em;
  margin-bottom: 0.2em;
  color: #f3f6fa;
}
.bot-desc {
  font-size: 0.97em;
  color: #b8c6d8;
  text-align: center;
}
@media (max-width: 600px) {
  #bot-cards {
    flex-direction: column;
    gap: 0.7em;
    align-items: stretch;
  }
  .bot-card {
    min-width: 0;
    max-width: 100%;
    padding: 1em 0.7em;
  }
}

.new-indicator {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: #f43f5e;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  right: -4px;
  box-shadow: 0 0 6px #f43f5e99;
  border: 2px solid #232a36;
  z-index: 10;
}

.profile-rating-inline {
  display: inline-flex;
  align-items: center;
  background: #273c5f;
  border-radius: 16px;
  padding: 2px 10px 2px 6px;
  font-size: 1.1rem;
  color: #a6bfff;
  box-shadow: 0 1px 4px #0002;
  margin-left: 8px;
  transition: background 0.2s;
  cursor: help;
}
.rating-icon {
  font-size: 1.1rem;
  margin-right: 4px;
  opacity: 0.7;
}
.rating-value {
  font-weight: bold;
  font-size: 1.1rem;
}
.profile-rating-inline:hover {
  background: #3a4e7a;
}

.profile-card-redesign {
  display: flex;
  flex-direction: row;
  background: #202a3a;
  border-radius: 22px;
  box-shadow: 0 4px 32px #0004;
  padding: 2.2em 2.5em 2.2em 2em;
  margin: 2.5em auto 2em auto;
  max-width: 650px;
  min-width: 320px;
  align-items: flex-start;
  gap: 2.2em;
}
.profile-card-left {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.profile-card-avatar-lg {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 16px #0003;
  border: 4px solid #232a36;
  background: #232a36;
}
.profile-card-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.profile-card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.1em;
}
.profile-card-name {
  font-size: 2.1em;
  font-weight: 700;
  color: #a6bfff;
  letter-spacing: 0.01em;
}
.profile-card-status {
  font-size: 1.1em;
  color: #7a97b8;
  margin-bottom: 0.2em;
}
.profile-card-badges, #profile-badges-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 0 0;
  flex-wrap: wrap;
}
.profile-badge {
  display: flex;
  align-items: center;
  background: #232a36;
  color: #fff;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 1em;
  box-shadow: none;
  margin: 0;
  min-width: 0;
  min-height: 0;
}
.profile-badge i, .profile-badge span, .profile-badge svg {
  font-size: 1.1em;
  margin-right: 5px;
}
.profile-card-location {
  font-size: 1.05em;
  color: #b8c6d8;
}
.profile-card-contacts {
  gap: 1.1em;
  margin-bottom: 0.2em;
}
.profile-edit-btn {
  background: transparent;
  color: #a6bfff;
  border: none;
  border-radius: 50%;
  padding: 4px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 1.2em;
  vertical-align: middle;
  transition: background 0.15s;
}
.profile-edit-btn:hover {
  background: #273c5f;
}
.profile-admin-edit-btn {
  background: transparent;
  color: #a6bfff;
  border: none;
  border-radius: 50%;
  padding: 4px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 1.2em;
  vertical-align: middle;
  transition: background 0.15s;
}
.profile-admin-edit-btn:hover {
  background: #273c5f;
}

.profile-block-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 650px;
  margin: 0 auto 2em auto;
  width: 100%;
}
.profile-block-card {
  background: #202a3a;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0003;
  padding: 1.5em 2em 1.5em 2em;
  width: 100%;
  margin-bottom: 1.5em;
}
.profile-block-title {
  text-align: center;
  font-size: 1.25em;
  color: #a6bfff;
  font-weight: 600;
  margin-bottom: 1em;
  margin-top: 0.2em;
}

.post-text {
  white-space: pre-line;
}

.post-category-tab.active {
  color: #fff !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 2px #2563eb55, 0 0 2px #0008;
}