.pht {
  width: 100%;
  margin-top: 24px;
}

.pht__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pht-tile {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2a2a34 0%, #232329 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.pht-tile:hover {
  border-color: rgba(79,234,159,.22);
  box-shadow: 0 10px 26px rgba(0,0,0,.26);
}

.pht-tile:nth-child(3n+1):nth-last-child(2),
.pht-tile:nth-child(3n+1):nth-last-child(2) + .pht-tile {
  grid-column: span 3;
}

.pht-tile:nth-child(3n+1):last-child {
  grid-column: span 6;
}

.pht-tile__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  min-width: 0;
}

.pht-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,234,159,.18), rgba(34,184,119,.08));
  color: #4fea9f;
  font-size: 20px;
}

.pht-tile__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.pht-tile__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #f4f5f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pht-tile__sub {
  font-size: 12px;
  line-height: 1.3;
  color: #9294a3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pht-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #4fea9f;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}

.pht-tile__more:hover {
  gap: 7px;
  color: #ffffff;
  text-decoration: none;
}

.pht-tile__more .bx {
  font-size: 17px;
}

.pht-tile__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.pht-tile--raw {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pht-tile--raw:hover {
  border-color: transparent;
  box-shadow: none;
}

.pht-tile__raw {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  gap: 20px;
}

.pht-tile__raw > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: 100%;
}

.pht-tile--models .pm-banner {
  flex: 1 1 auto;
  min-height: 100%;
}

.pht-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pht-list .empty-element {
  display: block;
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.12);
  color: #9294a3;
  font-size: 12px;
  text-align: center;
}

.pht-list--donators .pbg_top_card {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
}

.pht-list--donators .pbg_top_rank {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 auto;
  min-width: 34px;
  text-align: center;
}

.pht-list--donators .pbg_top_card_body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.pht-list--donators .pbg_top_avatar {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  margin: 0;
}

.pht-list--donators .pbg_top_avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pht-list--donators .pbg_top_name,
.pht-list--donators .pbg_top_role {
  display: block;
  justify-self: start;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pht-list--donators .pbg_top_name {
  font-size: 13px;
}

.pht-list--donators .pbg_top_stats {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0;
  border-top: 0;
}

.pht-list--donators .pbg_top_stat {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  white-space: nowrap;
}

.pht-tile--online .gt-top-widget {
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.pht-tile--online .gt-top-head {
  display: none;
}

.pht-tile--online .gt-top-list {
  gap: 8px;
}

.pht-tile--online .gt-top-row {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.pht-tile--online .gt-top-row:last-child {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.pht-tile--online .gt-top-row:hover {
  transform: translateY(-1px);
  border-color: rgba(79,234,159,.3);
  background: rgba(255,255,255,.05);
}

.pht-tile--online .gt-top-hours {
  color: #4fea9f;
}

.pht-tile--online .gt-top-total {
  margin-top: auto !important;
}

.pht-tile--gifts .gift-live-block {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pht-tile--gifts .gift-live-block .heading_block {
  display: none;
}

.pht-tile--gifts .gift-live-list {
  gap: 8px;
}

.pht-tile--gifts .gift-live-card {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-right: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.pht-tile--gifts .gift-live-card__thumb {
  width: 46px;
  height: 46px;
}

.pht-tile--gifts .gift-live-card__title {
  font-size: 13px;
}

.pht-tile--gifts .gift-live-card__price {
  color: #4fea9f;
}

.pht-tile--gifts .gift-live-empty {
  background: transparent;
  border-color: rgba(255,255,255,.12);
}

.pht-tile--tasks .sidebar-tasks-widget__list {
  gap: 8px;
}

.pht-tile--tasks .sidebar-tasks-widget__item {
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.pht-tile--tasks .sidebar-tasks-widget__reward {
  color: #4fea9f;
}

.pht-tile--tasks .sidebar-tasks-widget__bar-fill {
  background: linear-gradient(90deg, #22b877, #4fea9f);
}

.pht-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pht-social__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.pht-social__item:hover {
  transform: translateY(-1px);
  border-color: rgba(79,234,159,.3);
  background: rgba(255,255,255,.05);
  text-decoration: none;
}

.pht-social__img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform .25s ease;
}

.pht-social__item:hover .pht-social__img {
  transform: scale(1.08) rotate(-4deg);
}

.pht-social__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.pht-social__text b {
  font-size: 14px;
  font-weight: 700;
  color: #f4f5f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pht-social__text small {
  font-size: 12px;
  color: #9294a3;
}

.pht-social__go {
  flex: 0 0 auto;
  font-size: 20px;
  color: #4fea9f;
  transition: transform .2s ease;
}

.pht-social__item:hover .pht-social__go {
  transform: translateX(3px);
}

.phf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 24px;
}

.phf-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2a2a34 0%, #232329 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.phf-card:only-child {
  grid-column: 1 / -1;
}

.phf-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  min-width: 0;
}

.phf-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,234,159,.18), rgba(34,184,119,.08));
  color: #4fea9f;
  font-size: 20px;
}

.phf-card__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.phf-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #f4f5f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phf-card__sub {
  font-size: 12px;
  color: #9294a3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phf-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #4fea9f;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}

.phf-card__more:hover {
  gap: 7px;
  color: #ffffff;
  text-decoration: none;
}

.phf-card__more .bx {
  font-size: 17px;
}

.phf-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.phf #events .event.pbev {
  margin: 0;
  padding: 10px 12px 10px 14px;
  gap: 12px;
  border-radius: 12px;
}

.phf #events .event.pbev .pbev__text,
.phf #events .event.pbev .pbev__text:hover {
  -webkit-line-clamp: 1;
}

.phf #events .event.pbev > a.pbev__go {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.phf #last_activity > .lst_activity_block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(79,234,159,.07) 0%, rgba(255,255,255,.02) 38%, rgba(255,255,255,.02) 100%);
  backdrop-filter: none;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.phf #last_activity > .lst_activity_block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #4fea9f;
  opacity: .85;
}

.phf #last_activity > .lst_activity_block:hover {
  border-color: rgba(79,234,159,.35);
  background: linear-gradient(90deg, rgba(79,234,159,.12) 0%, rgba(255,255,255,.035) 45%, rgba(255,255,255,.035) 100%);
  transform: translateY(-1px);
}

.phf #last_activity .left_side_activity {
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.phf #last_activity .left_side_activity > a {
  flex: 0 0 auto;
  line-height: 0;
}

.phf #last_activity .activity_flex {
  min-width: 0;
  gap: 4px;
  line-height: 1.3;
}

.phf #last_activity .activity_flex > a {
  min-width: 0;
  text-decoration: none;
}

.phf #last_activity .last_activity_theme {
  display: block;
  overflow: hidden;
  color: #f4f5f8;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.phf #last_activity .description_activity {
  color: #73758a;
  font-size: 11px;
}

.phf #last_activity .activity_btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: rgba(0,0,0,.2);
  color: #9294a3;
  font-size: 18px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.phf #last_activity > .lst_activity_block:hover .activity_btn {
  border-color: rgba(79,234,159,.4);
  background: rgba(79,234,159,.14);
  color: #4fea9f;
  transform: translateX(2px);
}

.phf .pbg_feed_scroll > .empty-element {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 90px;
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 12px;
  background: transparent;
  color: #9294a3;
  font-size: 12px;
}

.phf-card__icon--live {
  position: relative;
}

.phf-card__icon--live::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fea9f;
  box-shadow: 0 0 0 0 rgba(79,234,159,.6);
  animation: phf-live 1.8s ease-out infinite;
}

@keyframes phf-live {
  0% { box-shadow: 0 0 0 0 rgba(79,234,159,.55); }
  70% { box-shadow: 0 0 0 7px rgba(79,234,159,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,234,159,0); }
}

.phf--pres .pbg_pres_grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 252px;
}

.phf--pres .pbg_pres_card {
  padding: 9px 12px;
  border-color: rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}

.phf--pres .pbg_pres_card:hover {
  border-color: rgba(79,234,159,.32);
  background: rgba(255,255,255,.05);
}

.phf--pres .pbg_pres_dot {
  border-color: #26262e;
}

.phf--pres .pbg_pres_empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 18px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 12px;
  color: #9294a3;
  font-size: 12px;
}

.phf--pres .pbg_pres_more {
  margin-top: auto;
}

.phf--pres .phf-card__body {
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .phf-card__icon--live::after {
    animation: none;
  }
}

@media (max-width: 575px) {
  .phf--pres .pbg_pres_grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .phf {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .phf-card {
    padding: 16px;
  }
}

@media (max-width: 1199px) {
  .pht__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pht-tile,
  .pht-tile:nth-child(3n+1):nth-last-child(2),
  .pht-tile:nth-child(3n+1):nth-last-child(2) + .pht-tile,
  .pht-tile:nth-child(3n+1):last-child {
    grid-column: span 1;
  }

  .pht-tile:nth-child(odd):last-child {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .pht__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .pht-tile,
  .pht-tile:nth-child(odd):last-child {
    grid-column: span 1;
  }

  .pht-tile {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pht-tile,
  .pht-tile__more,
  .pht-social__item,
  .pht-social__img,
  .pht-social__go,
  .pht-tile--online .gt-top-row {
    transition: none;
  }
}
