body {
  background-color: rgb(18,18,21);
  font-family: "Montserrat", sans-serif;
}
  
  
header {
  color: #fff;
}




/* Для логина */

.login-form {
  display: flex;
  max-width: 500px;
  max-height: 450px;
  margin: auto;
  margin-top: 100px;
}


.login-form-banner {
  display: flex;
  flex-direction: column;
  width: 500px;
  height: 450px;
  text-align: center;
  border-radius: 15px;
  background-color: rgb(39,41,48);
}


.text-login {
  font-size: 30px;
  font-weight: 750;
  color: #fff;
}


.login-form-banner p {
  font-size: 18px;
  line-height: 30px;
  color: #fff;
}




/* Для регистрации */

.register-form {
  display: flex;
  max-width: 600px;
  max-height: 900px;
  margin: auto;
  margin-top: 10px;
}


.register-form-banner {
  display: flex;
  flex-direction: column;
  width: 500px;
  height: 900px;
  text-align: center;
  border-radius: 15px;
  background-color: rgb(39,41,48);
}


.text-register {
  font-size: 30px;
  font-weight: 750;
  color: #fff;
}


.register-form-banner p {
  font-size: 18px;
  line-height: 30px;
  color: #fff;
}








.text-field {
  margin: 40px;
  margin-bottom: 0.1rem;
  text-align: left;
}

.text-field__label {
  display: flex;
  margin-bottom: 0.25rem;
}

.text-field__input {
  text-align: center;
  margin: auto;
  display: flex;
  width: 80%;
  height: 20px;
  padding: 0.375rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  background-color: rgb(59,62,73);
  background-clip: padding-box;
  border: 1px solid rgb(71,74,88);
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.text-field__input::placeholder {
  color: #fff;
  opacity: 0.4;
}

.text-field__input:focus {
  color: #fff;
  background-color: rgb(59,62,73);
  border-color: rgb(71,74,88);
  outline: 0;
  box-shadow: 0 0 0 0.1rem rgba(158, 158, 158, 0.25);
}






.btn {
	display: flex;
	padding: 0 20px;
	margin: 15px auto;
	border-radius: 4px;
	height: 35px;
	line-height: 35px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.0);
  border: 1px solid #fff;
  border-radius: 0.25rem;
	cursor: pointer;
	user-select: none;
	appearance: none;
	touch-action: manipulation;
  text-align: center;
}

.btn:hover {
	background-color: rgba(99, 99, 99, 0.3);
}


.text-mb-reg {
  text-decoration: underline;
  color: #fff;
}







/* Для профиля / карточка профиля */

.main-profile {
  display: flex;
  max-width: 1000px;
  height: 350px;
  margin: auto;
  margin-top: 10px;
  border-radius: 15px;
  border: 1px solid rgb(52,52,52);
  background-color: rgb(39,41,48);
  overflow: hidden;
}

.profile-banner {
  display: flex;
  width: 1000px;
  height: 250px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.profile {
  display: flex;
  width: 1000px;
  height: 225px;
  margin: auto;
  margin-top: 10em;
  border-radius: 15px;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  margin: 10px;
  flex-direction: column;
}

.avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 100px;
  border: 5px solid rgb(39,41,48);
}

.author-avatar {
  border-radius: 100px;
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 500px;
  height: 150px;
  margin: 10px;
  margin-top: 90px;
  line-height: 0.1;
}

.profile-info h2 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.profile-info p {
  color: #fff;
}




/* БЕЙДЖИ */
.badges {
  display: flex;
  width: 100px;
  align-items: center;
  border-radius: 15px;
}

.badges img {
  margin-top: -8px;
  width: 34px;
  height: 34px;
}

.badge-tooltip-js {
  position: relative;
  cursor: help;
}

.tooltip-popup {
  position: absolute;
  color: #fff;
  height: 50px;
  width: auto;
  align-items: center;
  white-space: nowrap;
  border-radius: 15px;
  border: 1px solid rgb(52,52,52);
  background-color: rgb(59,62,73);
}

.tooltip-content {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.tooltip-content li {
  margin-bottom: 5px;
  margin-top: 13px;
}

.tooltip-hidden {
  visibility: hidden;
  opacity: 0;
}

.tooltip-visible {
  visibility: visible;
  opacity: 1;
}








.profile-sections-gifts {
  display: flex;
  flex-direction: column;
  margin: 0px auto;
  width: 90%;
  max-width: 1000px;
  height: auto;
  max-height: 90vh;
  padding: 20px;
  box-sizing: border-box;
}




/* то что чуть ниже профиля */

.profile-sections {
  display: flex;
  flex-direction: column;
  margin: auto;
  margin-top: 15px;
  max-width: 1000px;
  height: auto;
  max-height: 800px;
  border-radius: 15px;
  border: 1px solid rgb(52,52,52);
  background-color: rgb(39,41,48);
}

.cont {
  padding: 0 10px;
  box-sizing: border-box;
}

.profile-sections div {
  display: flex;
  margin: 10px;
}

.profile-sections h2 {
  margin: 5px 15px;
  text-align: left;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.profile-sections a {
  font-size: 13px;
  color: #aaaaaa;
  text-decoration: none;
}

.profile-sections a:hover {
  cursor: pointer;
  text-shadow: 5px 5px 5px rgba(158, 158, 158);
}

.profile-sections p {
  color: #fff;
  font-size: 13px;
}

.profile-sections span {
  color: #fff;
  font-size: 15px;
  margin: 15px;
}

.profile-comment-gl {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow-y: auto; /* Прокрутка по вертикали */
}

.profile-comment {
  display: flex;
  max-width: 1250px;
  overflow-wrap: break-word;
  white-space: normal;
}

.profile-comment-a {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  margin-top: 0 !important; /* это чтобы текст был на одном уровне с ником комментатора */
}

.profile-comment-a-a {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
}

.author-name { /* имя пользователя при написании комментариев (то что рядом с авой) */
  margin: 5px;
  margin-top: 7px;
}

.name-gl { /* сам сюда вставил, ЭТО ИМЯ НА ГЛАВНОЙ СТРАНИЦЕ */
  margin: 3px;
  font-size: 15px;
  text-decoration: none;
  color: #aaaaaa;
}

.avatar-gl {
  margin: -10px;
  border-radius: 100px;
  width: 28px;
  height: 28px;
  object-fit: cover;
  cursor: pointer;
}

.comment-p { /* текст комма */
  margin: 7px;
}

.comment-time { /* время комма */
  margin: 7px;
  color: gray;
}





/* ФОТОГРАФИИ И ВИДЕО, ИХ ОТОБРАЖЕНИЕ */

.comment-media {
  max-width: 100%;
  margin: 10px 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.responsive-media {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 600px;
}







.text-field-a {
  display: flex;
  flex-direction: column;
}

.text-field__input-a {
  display: flex;
  flex: 1; /* Текстовое поле занимает оставшееся пространство */
  color: #fff;
  resize: none; /* Запрет изменения размера текстового поля */
  height: 25px;
  padding: 20px 15px;
  border: 1px solid rgb(71,74,88);
  border-radius: 5px;
  font-size: 16px;
  background-color: rgb(59,62,73);
}

.text-field__input-a:hover {
  outline: 0;
  box-shadow: 0 0 0 0.1rem rgba(158, 158, 158, 0.25);
}

.file-upload {
  display: flex;
}

.file-upload input[type="file"] {
  opacity: 0; /* Скрываем стандартный вид input */
  position: absolute;
  width: 0px;
  cursor: pointer;
}

.file-upload span {
  display: flex;
  padding: 10px 15px;
  color: #fff;
  border-radius: 5px;
  font-size: 14px;
  background-color: rgb(59,62,73);
  border: 1px solid rgb(71,74,88);
  border-radius: 5px;
  cursor: pointer;
}

.file-upload span:hover {
  outline: 0;
  box-shadow: 0 0 0 0.1rem rgba(158, 158, 158, 0.25);
}

.profile-comment-a .delete-comment-container {
  display: none;
}

.profile-comment-a:hover .delete-comment-container {
  display: flex;
}


/* реакции на коммы */

.comment-reactions {
  display: flex;
  align-items: left;
  width: 45px;
  height: 25px;
  background-color: rgba(49, 45, 62, 0.5);
  border-radius: 50px;
}

.comment-reactions span{
  font-size: 12px;
  margin: 0px;
  padding: 6px;
}

.comment-reactions:hover {
  background-color: rgba(49, 45, 62, 0.9);
}

.reaction-count {
  color: #ff4d4d;
  cursor: pointer;
  text-decoration: none;
}
.reaction-count:hover {
  text-decoration: underline;
}

.add-reaction {
  background: none;
  border: none;
  cursor: pointer;
  color: #ff4d4d;
  font-size: 12px;
}

.add-reaction i {
  transition: transform 0.2s ease;
}

.add-reaction:hover i {
  transform: scale(1.2);
}



/* ГЛАВНАЯ СТРАНИЦА: СПИСОК (КАРТОЧКИ) ПОЛЬЗОВАТЕЛЕЙ */

.user-block {
  margin-bottom: 10px;
  border-radius: 15px;
  width: 260px;
  height: 100px;
  background-color: rgba(0, 0, 0, 0.7);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.main-profile-avatar {
  border-radius: 100px;
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin: 25px 5px;
}













/* ТОПИКИ */


.help-topic-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(114, 149, 226, 0.13) url("/main/icons/background-help-topic.png") repeat center bottom;
  background-size: 220px 100px;
  border-radius: 12px;
  max-width: 1000px;
  min-height: 100px;
  margin: auto;
  margin-top: 15px;
  cursor: pointer;
  border: 1px solid #2a2a2a;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-topic-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.55);
}

.help-topic-icon img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #3b82f6;
  background: #121212;
  margin: 10px;
}

.help-topic-content {
  flex: 1;
  max-width: 500px;
}

.help-topic-content h3 {
  margin: 0 0 6px;
  color: #3b82f6;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-topic-content p {
  margin: 0;
  font-size: 14px;
  color: #ccc;
}

  /* Бейдж "Новое" */
.badge-new {
  background: #ff4757;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  border: 1px solid #ff6b81;
}



































/* мини-профиль */

.user-tooltip {
  position: absolute;
  display: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 250px;
  font-family: 'Montserrat', sans-serif;
}

.tooltip-banner {
  height: 60px;
  background: #ccc;
  background-size: cover;
  background-position: center;
}

.tooltip-content {
  padding: 10px;
  text-align: center;
  position: relative;
}

.tooltip-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid white;
  margin-top: -40px;
  margin-bottom: 10px;
  object-fit: cover;
}

.tooltip-name {
  font-weight: bold;
  font-size: 16px;
  margin-top: 5px;
}

.subscribe-btn {
  display: inline-block;
  padding: 8px 12px;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.btn-change-banner span {
  padding: 6px 10px;
  background-color: #007BFF;
  color: white;
  border-radius: 4px;
}

.last-seen-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #3d3d3d;
  color: #fff;
  font-size: 12px;
  padding: 0px 3px;
  font-weight: 600;
  border-radius: 15px;
  margin-top: 6px;
  margin-left: 5px;
  vertical-align: middle;
  height: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: 1px solid #555;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.last-seen-badge.online {
  background-color: #2ecc71;
  border-color: #27ae60;
}
































.header {
  overflow: hidden;
  background-color: rgb(25,26,31);
  padding: 10px 20px;
  font-weight: 600;
}

.header-a {
  float: left;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 18px;
  line-height: 25px;
  border-radius: 4px;
}

.header a.logo {
  font-size: 25px;
  font-weight: bold;
  font-weight: 1000;
  /* ТО ЧТО СНИЗУ, СКОПИРОВАНО С "header-a" */
  float: left;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 12px;
  text-decoration: none;
  line-height: 25px;
  border-radius: 4px;
  /* ЧТОБЫ ПОТОМ НЕ ОБОСРАЛАСЬ КАРТИНКА - padding: 0 !important; */
}

.header-right {
  float: right;
  display: flex;
  align-items: center;
  margin-top: 8px;
}






.burger-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  outline: none;
  position: relative;
  z-index: 1001;
}

.burger-menu-btn span {
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  transition: 0.3s;
  border-radius: 1px;
}

    
/* Панель (ЖИДКОЕ СТЕКЛО) */
.dropdown-panel {
  width: 300px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 30px rgba(2,6,10,0.6);
  border-radius: 12px;
  padding: 12px;
  position: absolute;
  z-index: 100;
  display: none;
  right: 40px;
  top: 80px;
  color: #fff;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
}

.account-row img {
  width: 44px;
  height: 44px;
  border-radius: 50px;
}

.account-row .meta {
  display: flex;
  flex-direction: column;
}

.account-row .meta .who {
  font-weight: 700;
}

.account-row .meta .small {
  font-size: 13px;
  color: var(--muted);
}

/* это (meta) - мини-блок с бейджами и именем.
  я сделал его меньше чтобы нижняя полоска не улетала*/
.meta {
  height: 35px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent);
  margin: 8px 0;
  border-radius: 1px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.menu-item .ico {
  width: 20px;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.menu-item .label {
  flex: 1;
}

/* кнопка ВЫЙТИ в бургер-меню */
button.signout {
  background-color: transparent;
  border: none;
}

.menu-item small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.menu-item:hover {
  background: rgba(255,255,255,0.2);
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.cta-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.signout {
  color: #ffb3b3;
}

/*  БЛЮР */
body.blurred > *:not(.dropdown-panel) {
  filter: blur(8px);
  transition: filter 0.3s ease;
  pointer-events: none;
}

@media (max-width:420px) {
  .dropdown-panel {
    right: 12px;
    left: 12px;
    top: 70px;
    width: auto;
  }
}

.dropdown-panel.active {
  display: block;
}

/* БЕЙДЖИ НА ГЛАВНОЙ СТРАНИЦЕ MAIN.PHP */

.badges-main {
  margin-top: -5px;
  display: flex;
  flex-direction: row;
  width: 100px;
  align-items: center;
}

.badges-main img {
  width: 27px;
  height: 27px;
}

/* тут конец, там отдельно оформлялся лишь их размер */





/* ОТОБРАЖЕНИЕ БЛОКА МАЙНКРАФТ АККАУНТА */


@font-face {
  font-family: 'Minecraft';
  src: url('/assets/fonts/Minecraft-shrift.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}



.mc-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  margin: 20px auto;
  padding: 20px 0px;
  color: #fff;
}

/* Блок со скином */
.mc-skin {
  display: flex;
  justify-content: center;
  width: 100%;
}

.mc-skin img {
  width: 150px;
  height: 150px;
  image-rendering: pixelated;
  border-radius: 8px;
  border: 2px solid rgb(52,52,52);
}

/* Блок с информацией (префикс + ник) */
.mc-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0px;
}

.mc-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mc-prefix {
  font-size: 14px;
  border-radius: 5px;
  font-weight: 700;
  text-shadow: none;
}

.mc-nick {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
}

/* ===== БЛОК СТАТИСТИКИ — ОТДЕЛЁННЫЙ ===== */

.mc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 колонки */
  gap: 10px;
  width: 90%;
  padding: 20px;
  background: rgba(22, 24, 30, 0.85);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  margin-top: 10px;
}

.mc-stat {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  transition: background .2s ease, transform .2s ease;
}

.mc-stat:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(3px);
}

.stat-label {
  font-size: 15px;
  color: #c9d1d9;
  font-weight: 500;
}

.stat-value {
  font-size: 15px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

@media (max-width: 600px) {
  .mc-stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .mc-nick {
    font-size: 20px;
  }

  .mc-prefix {
    font-size: 14px;
  }
}





/* ВКЛАДКИ НА СТРАНИЦЕ ПРОФИЛЯ */
.profile-panel {
  border: 1px solid rgb(52,52,52);
  background-color: rgb(39,41,48);
  border-radius: 15px;
  max-width: 1000px;
  height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-tabs-nav {
  display: flex;
  gap: 25px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0;
  padding: 15px 20px 0 20px;
  flex-shrink: 0;
}

/* Кнопки табов */
.tab-link {
  background: none;
  border: none;
  color: #8a8e9b;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 5px 15px 5px;
  position: relative;
  transition: color 0.2s ease;
}

.tab-link:hover {
  color: #d1d5db;
}

/* Активный таб */
.tab-link.active {
  color: #fff;
}

/* Линия под активным табом */
.tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #7d5fff;
  box-shadow: 0 -2px 8px rgba(125, 95, 255, 0.5);
}

/* Контент */
.tab-content-item {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
  flex-grow: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
}

.tab-content-item::-webkit-scrollbar { width: 8px; }
.tab-content-item::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 4px; }
.tab-content-item::-webkit-scrollbar-thumb { background-color: #3f3f46; border-radius: 4px; border: 2px solid transparent; background-clip: content-box; }
.tab-content-item::-webkit-scrollbar-thumb:hover { background-color: #7d5fff; }

.tab-content-item.active {
  display: block;
}

.posts-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #555;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}
