/* Личная страница */

/* ===== MODAL ===== */

/*.modal__wrapper {*/
/*    position: relative;*/
/*    width: 100%;*/
/*    height: 590px;*/
/*}*/

.modal {
    position: relative;
    height: 547px;
    width: calc(100% - 16px);
    background: url(https://forumstatic.ru/files/001c/c5/22/32358.png);
    background-size: cover;
    margin-left: 8px !important;
    margin-top: 24px !important;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1), -8px -8px 0px 0px rgba(255, 255, 255, 0.25);
    padding: 24px;
    box-sizing: border-box;
    font-family: var(--font-family-jost);
}

/* ===== HEADER ===== */
.modal__header {
    position: absolute;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    z-index: 10;
    box-sizing: border-box;
    margin-top: -24px !important;
}

/* ===== USERS ===== */
.modal__users {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-width: 0px 1px 1px 1px;
    border-style: solid;
    border-color: rgba(214, 214, 214, 1);
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    padding: 12px;
    gap: 16px;
    background: rgba(228, 228, 228, 1);
}

.punbb .modal__users a.users__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 4px;
  width: 39px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.punbb .modal__users a.users__item:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.users__icon {
    width: 20px;
    height: 20px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--white);
  border-radius: 2px;
}

.users__icon--add {
    border: none;
    text-align: center;
}

.users__icon--add::before {
   content: '\2b'; /* плюс */
    font-size: 12px;
    font-family: var(--font-family-fa);
    font-weight: 700;
    color: var(--black);
    margin: 0 3px;
}

.users__name {
  width: 39px;
  height: 6px;
  font-weight: 700;
  font-size: 8px;
  line-height: 133%;
  text-transform: lowercase;
  color: #000000;
  text-align: center;
}

/* ===== USER INFO ===== */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: -24px!important;
    width: 180px;
}

.user-info__card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 12px;
  gap: 12px;
  background: #EEEEEE;
  border: 1px solid var(--white);
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.user-info__avatar {
  width: 40px;
  height: 40px;
  background-size: cover;
  background-position: center;
  box-shadow: 1.79px 1.79px 0px #000000;
  border-radius: 2px;
}

.user-info__details {
  display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0px;
    gap: 6px;
    height: 40px;
}

.user-info__name {
  width: 102px;
  height: 7px;
  font-weight: 700;
  font-size: 10px;
  line-height: 133%;
  text-transform: lowercase;
  color: var(--black);
}

.user-info__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 4px;
  font-size: 9px;
}

.user-info__meta-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.user-info__meta-icon {
  width: 8px;
  height: 8px;
}

.user-info__meta-icon--pen {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
}

.user-info__meta-text {
  font-size: 8px;
  line-height: 100%;
  text-transform: lowercase;
  color: rgba(0, 0, 0, 0.6);
}

.user-info__actions {
  display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 74px 12px 8px;
    gap: 12px;
    background: #E4E4E4;
    border: 1px solid #D6D6D6;
    border-radius: 12px;
    width: 180px;
    position: absolute;
    z-index: -1;
    box-sizing: border-box;
}

.user-info__action {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-size: 10px;
}

.user-info__action:hover {
  opacity: 0.7;
}

.user-info__action::before,
.user-info__action::after {
  font-family: var(--font-family-fa);
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--black);
  font-weight: 900;
}

.user-info__action:first-of-type::before {
   content: '\f004'; /* сердечко */
}

.user-info__action:last-of-type::after {
   content: '\f521'; /* корона */
}

.user-info__action-text {
  font-size: 8px;
  line-height: 100%;
  text-transform: lowercase;
  color: rgba(0, 0, 0, 0.6);
}

.user-info__profile-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0px;
  gap: 4px;
  width: 142px;
  height: 38px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.user-info__profile-link:hover {
  opacity: 0.7;
}

.user-info__profile-icon {
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 4.8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.user-info__profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.user-info__profile-title {
  font-weight: 700;
  font-size: 12px;
  line-height: 133%;
  text-align: right;
  text-transform: lowercase;
  color: var(--black);
}

.user-info__profile-subtitle {
  font-size: 9px;
  line-height: 133%;
  text-align: right;
  text-transform: lowercase;
  color: var(--black);
}

/* ===== TABS ===== */
.modal__tabs {
 display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    position: relative;
}

.modal__body {
    padding: 70px 0 0;
    box-sizing: border-box;
}

.tabs__radio {
  display: none;
}

.tabs__item {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
  width: 109px;
  height: 24px;
  background: #E4E4E4;
  border-width: 0px 1px 1px 1px;
  border-style: solid;
  border-color: #D6D6D6;
  border-radius: 0px 0px 12px 12px;
  cursor: pointer;
  font-size: 10px;
  line-height: 100%;
  color: var(--black);
  transition: all 0.2s ease;
  user-select: none;
}

.tabs__item:hover {
  background: #EEEEEE;
}

/* Active tab in header */
#tab-main:checked ~ .modal__header .tabs__item--main,
#tab-achievements:checked ~ .modal__header .tabs__item--achievements,
#tab-badges:checked ~ .modal__header .tabs__item--badges {
  background: #EEEEEE;
  border-color: var(--white);
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.08);
  font-weight: 700;
  height: 32px;
  padding: 12px;
}

/* ===== TAB CONTENT ===== */
.tab {
  display: none;
  width: 100%;
  height: 100%;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Show specific tab & apply layout (Merged & Cleaned up) */
#tab-main:checked ~ .modal__body .tab--main {
  display: flex;
  flex-direction: row;
  gap: 6px;
  animation: fadeIn 0.3s ease;
}

#tab-achievements:checked ~ .modal__body .tab--achievements {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

#tab-badges:checked ~ .modal__body .tab--badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0px;
  gap: 24px;
  animation: fadeIn 0.3s ease;
}


/* ===== MAIN TAB ===== */
.tab--main {
  flex-direction: row;
  gap: 30px;
  gap: 6px;
}

.main__tickets {
  width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    overflow: auto;
    height: 424px;
    padding-right: 3px;
}

/* ===== DECO CARDS ===== */
.deco-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-content: flex-start;
  padding: 12px;
  gap: 12px;
  background: #EEEEEE;
  border: 1px solid var(--white);
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.08);
}

.deco-card--phrases {
    width: 210px;
    height: 424px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.deco-card--phrases .profile_plank {
    border-bottom: var(--border-dashed);
    padding-bottom: 10px;
}

.deco-card--col {
    width: 320px;
    display: flex;
    flex-direction: column;
    margin-right: 14px;
    box-sizing: border-box;
    gap: 6px;
}

.deco-card--stickers {
    height: 172px;
    overflow-x: auto;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}

.stickers__set {
    display: flex;
    justify-content: space-between;
    border-bottom: var(--border-dashed);
}

.stickers__set * {
   position: relative;
   width: 46px;
    height: 46px;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(0deg);
}

.deco-card--headers {
    position: relative;
    height: 120px;
    overflow-x: auto;
    justify-content: space-between;
    display: flex;
    gap: 6px;
    padding: 12px;
    box-sizing: border-box;
    flex-direction: row;
    flex-wrap: wrap;
}

.deco-card--headers img {
   position: unset;
    width: 50px;
    height: 50px;
    object-fit: cover;
    display: block;
}

.deco-card__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 16px;
  width: 180px;
  height: 29px;
}

.deco-card__image {
  width: 62px;
  height: 30px;
  background-size: cover;
  background-position: center;
}

.deco-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 2px;
  width: 110px;
  height: 22px;
}

.deco-card__title {
  width: 57px;
  height: 10px;
  font-weight: 700;
  font-size: 8px;
  line-height: 120%;
  display: flex;
  align-items: center;
  text-align: justify;
  color: rgba(0, 0, 0, 0.6);
  background: var(--white);
  padding: 0 4px;
}

.deco-card__subtitle {
  width: 110px;
  height: 10px;
  font-size: 8px;
  line-height: 120%;
  display: flex;
  align-items: center;
  text-align: justify;
  color: rgba(0, 0, 0, 0.6);
  background: var(--white);
  padding: 0 4px;
}

.deco-card__row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0px;
  gap: 24px;
  width: 305px;
  height: 40px;
}

.deco-card__ticket {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 5.36px;
  width: 137.4px;
  height: 40px;
}

.deco-card__ticket-image {
  background-size: cover;
  background-position: center;
}

.deco-card__ticket-image:nth-child(1) {
  width: 40.24px;
  height: 36.51px;
}

.deco-card__ticket-image:nth-child(2) {
  width: 40.24px;
  height: 36.51px;
}

.deco-card__ticket-image:nth-child(3) {
  width: 46.2px;
  height: 40px;
}

.deco-card__image-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  padding: 12px;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.deco-card__grid-item {
  width: 50px;
  height: 50px;
  background-size: cover;
  background-position: center;
  transform: rotate(-180deg);
  transition: transform 0.3s ease;
}

.deco-card__grid-item:hover {
  transform: rotate(0deg);
}

/* ===== TICKETS ===== */
.tickets__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 10px;
  width: 339px;
}

.tickets__stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 4px;
  height: 10px;
}

.tickets__star {
  width: 10.59px;
  height: 10px;
  color: var(--black);
  font-size: 10px;
}

.tickets__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
  width: 339px;
  height: 122px;
  position: relative;
}

.ticket {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px;
  gap: 8px;
  width: 167px;
  height: 59px;
  background: #EEEEEE;
  border: 1px solid var(--white);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ticket:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.ticket__content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  gap: 12px;
  width: 149px;
  height: 16px;
}

.ticket__icon {
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 4.8px;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.ticket__count {
  font-weight: 700;
  font-size: 11px;
  line-height: 133%;
  text-transform: lowercase;
  color: var(--black);
}

.ticket__name {
  font-size: 10px;
  line-height: 100%;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--black);
  text-align: right;
}

/* ===== ACHIEVEMENTS TAB ===== */
.tab--achievements {
  flex-direction: row;
  gap: 20px;
}

.achievements__column {
  display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 8px;
    width: 437px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 450px;
}

.achievement {
  display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 12px;
    gap: 12px;
    width: 424px;
    background: #EEEEEE;
    border: 1px solid var(--white);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
    height: 67px;
    z-index: 1;
}

.achievement:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.achievement__image {
  width: 40px;
  height: 40px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  filter: grayscale(1);
}

.completed .achievement__image {
    filter: grayscale(0);
}

.achievement__title-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  gap: 4px;
  width: 359px;
  height: 16px;
}

.achievement__title {
  font-weight: 700;
  font-size: 13px;
  text-transform: lowercase;
  color: var(--black);
}

.achievement__status {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 4px;
  height: 16px;
}

.achievement__status::before {
  content: '\f023'; /* замок */
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 4.8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 900;
  font-family: var(--font-family-fa);
  
}

.completed .achievement__status::before {
  content: '\f09c'; /* открытый замок */
}


.achievement__status-text {
  font-size: 8px;
  line-height: 100%;
  text-transform: lowercase;
  color: var(--06black);
}

.achievement__progress {
  display: flex;
    align-items: flex-start;
    align-items: center;
    padding: 0px;
    gap: 3px;
    width: 359px;
    height: 19px;
}

.achievement__progress-bar {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  width: 33%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.completed .achievement__progress-bar,
.achievement__progress-bar.completed {
  background: #43BE74;
}

.achievement__milestones {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  gap: 16px;
  width: 359px;
  height: 12px;
}

.achievement__milestone {
  font-size: 8px;
  line-height: 12px;
  text-transform: lowercase;
  color: var(--black);
}

/* ===== TOOLTIP ===== */
.achievement__tooltip,
.badge__tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px!important;
  padding: 8px;
  background: #eee;
  border: 1px solid var(--white);
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
  display: none;
}

.badge__tooltip {
    left: 110%;
}

.badge:nth-child(7n) .badge__tooltip {
    left: 30%;
}

.achievement:hover .achievement__tooltip,
.badge:hover .badge__tooltip {
  opacity: 1;
  visibility: visible;
  display: flex;
  z-index: 1000;
}

.achievement__tooltip-text,
.badge__tooltip-text {
  font-size: 10px;
    text-align: justify;
    text-transform: lowercase;
    color: var(--06black);
}

/* ===== BADGES TAB ===== */
.tab--badges {
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 24px;
}

.badges__grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  overflow-x: hidden;
    overflow-y: auto;
    max-height: 450px;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
  z-index: 1;
}

.badge:hover {
  transform: scale(1.05);
  z-index: 2;
}

.badge__icon {
  width: 100px;
  height: 100px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.badge__icon--not-found {
  opacity: 0.5;
}

.badge__label {
  font-size: 10px;
  line-height: 100%;
  text-transform: lowercase;
  color: var(--black);
  text-align: center;
  max-width: 100px;
}

/* Âñïëûâàþùåå îêíî */

.reveal-modal-bg { 
	position: fixed; 
	height: 100%;
	width: 100%;
	background: var(--06black);
	z-index: 100;
	display: none;
	top: 0;
	left: 0; 
}
	
.reveal-modal {
	visibility: hidden;
	top: 100px;
	position: absolute;
	z-index: 101;
    height: 547px;
    width: calc(100% - 16px);
    background: transparent!important;
}
	
.reveal-modal .close-reveal-modal {
	font-size: 22px;
	line-height: .5;
	position: absolute;
	top: 8px;
	right: 11px;
	color: #aaa;
	font-weight: bold;
	cursor: pointer;
    text-decoration: none;
}

.reveal-modal a.close-reveal-modal:active,
.reveal-modal a.close-reveal-modal:hover,
.reveal-modal a.close-reveal-modal:focus {
    text-decoration: none;
}