:root {
  --main-color: #1D1D1B;
  --primary-font-color: white;
  --mud-appbar-height: 106px !important;
  --secondary-color: rgba(255, 255, 255, 0.5);
  --offers-container-color: rgba(69, 63, 77, 1);
  --text-color: rgba(218, 218, 218, 1);
  --gradient-color: linear-gradient(135deg, #6b2ad1 0%, #8f78de 100%);
  --secondary-text-color: rgba(255, 255, 255, 1);
  --moderation-pending-color: initial;
}

button {
  color: inherit;
  border: 0;
  cursor: pointer;
  margin: 0;
  display: inline-flex;
  outline: 0;
  padding: 0;
  position: relative;
  align-items: center;
  user-select: none;
  border-radius: 0;
  vertical-align: middle;
  -moz-appearance: none;
  justify-content: center;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0);
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  line-height: 100%;
  color: #dadada;
}

.header {
  padding: 28px 86px;
  background-color: var(--main-color);
}

.user-login {
  background-color: rgba(218, 218, 218, 1);
  border-radius: 16px;
  padding: 18px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--main-color);
  min-width: 200px;

  &:hover {
    background: var(--gradient-color);
    color: white;
  }
}

.user-login-text {
  color: inherit;
}

.main-button {
  background-color: rgba(218, 218, 218, 1);
  border-radius: 16px;
  padding: 18px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--main-color);
  min-width: 200px;
  width: 100%;

  &:hover {
    background: var(--gradient-color);
  }
}

/* Premium Catalog Section */
.premium-catalog {
  margin-top: 48px;
}

.catalog-title {
  font-size: 28px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .catalog-title {
    font-size: 24px;
  }
}

.page-container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 1920px;
  flex-direction: column;
  min-height: 100vh;
  margin: 0 auto;
  background-color: #453f4d;
}

.page-header {
  background-color: #1d1d1b;
  width: 100%;
  margin: 0 auto;
  position: sticky;
  left: 0;
  top: 0;
  z-index: 100;
}

.header-container {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 52px;
  font-size: 18px;
  line-height: 100%;
  padding: 2vh 5vw;
}

.header-options {
  display: flex;
  width: 173px;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  line-height: 100%;
}

.search-label {
  width: 100%;
}

.button-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.options-language-icon,
.options-currency-icon {
  fill: #dadada;
}

/*.options-language-icon:hover,*/
/*.options-currency-icon:hover {*/
/*    fill: url(#Gradient-1);*/
/*    stop-color: orangered;*/
/*}*/

.options-text {
  display: block;
  text-align: center;
  padding: 7px 0 7px 5px;
}

.options-language {
  position: relative;
}

.popup {
  border-radius: 15px;
  background-image: var(--gradient-color);
  position: relative;
}

.popup-language {
  display: none;
  position: absolute;
  box-sizing: border-box;
  width: 96px;
  height: 121px;
  padding: 24px 29px;
  left: -10px;
  top: 56px;
  z-index: 2;

  &::after {
    content: "";
    width: 87px;
    height: 112px;
    background-color: #1D1D1B;
    position: absolute;
    left: 5px;
    top: 5px;
    border-radius: 15px;
    z-index: -1;
  }
}

.popup-list {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  gap: 29px;
  margin: 0;
  padding: 0;
}


.popup-item-text {
  font-weight: 500;
  font-size: 18px;
  line-height: 100%;
  color: #dadada;
}

.search-field {
  width: 100%;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 100%;
  color: #ffffff;
  opacity: 50%;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 18px 27px 18px 40px;
  background-color: #1d1d1b;
}

.header-user {
  display: flex;
  width: 167px;
  justify-content: space-between;
  align-items: center;
}

.chat-link-icon,
.account-link-icon {
  fill: #DADADA;
}

.chat-link-icon:hover,
.account-link-icon:hover {
  fill: url(#Gradient-1);
  stop-color: orangered;
}

/* Account dropdown */
.account-menu {
  position: absolute;
  right: 32px;
  top: 78px;
  width: 382px;
  max-width: calc(100vw - 32px);
  background: #0e0e0e;
  border-radius: 18px;
  border: 4px solid #8f78de;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  padding: 20px 24px 24px;
  box-sizing: border-box;
  z-index: 100;
}

.user-account {
  position: relative;
}

.account-menu-header {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 6px 0 14px;
}

.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-color);
}

.account-info {
  display: grid;
  gap: 6px;
}

.account-name {
  font-weight: 700;
  font-size: 20px;
}

.account-meta {
  color: #bdb7d6;
  font-size: 14px;
}

.account-sep {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin: 8px 0;
}

.account-menu-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;

  & > li {
    text-align: left;
  }
}

.account-menu-item {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
}

.account-menu-item:hover {
  color: #b9a7ff;
}

.account-logout {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  color: #fff;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.account-logout:hover {
  color: #e1d9ff;
}

@media (max-width: 584px) {
  .account-menu {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border-width: 0;
    padding: 24px 24px 32px;
    top: 0;
    right: 0;
    background: #0e0e0e;
    z-index: 1000;
    display: grid;
    align-content: start;
    gap: 12px;
  }
}

.main-container {
  flex-grow: 1;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.main-index {
  display: grid;
  grid-template-columns: 30% 1fr;

  .sidebar-closed & {
    grid-template-columns: 154px 1fr;
  }
}

.title {
  font-weight: 600;
  font-size: 25px;
  line-height: 100%;
  text-align: left;
  margin: 0;
}

.game-filter {
  position: relative;
}

.game-filter::before {
  content: "";
  width: 10px;
  height: 100%;
  right: -10px;
  position: absolute;
  background: rgba(172, 163, 232, 1);
}

.sidebar-toggle {
  position: fixed;
  width: 50px;
  height: 50px;
  background-color: rgba(69, 63, 77, 1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  outline: none;
  top: 50%;

  &::before {
    content: "";
    width: 40px;
    height: 40px;
    background-image: url("/images/icons/arrow-sidebar.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    position: relative;
    left: 0;
    top: 20px;
  }
}

.game-filter-open>.sidebar-toggle {
  left: calc(30% - 20px);
  transition: all 0.3s ease-in-out;
  transform: translateY(-50%) rotate(0deg);
}

.sidebar-closed .game-filter-open>.sidebar-toggle {
  transition: all 0.3s ease-in-out;
  transform: translateY(-50%) rotate(180deg);
  left: 135px;
}

.game-filter-open {
  position: fixed;
  overscroll-behavior-y: contain;
  overflow: auto;
  width: 30%;
  max-width: 576px;
  height: -webkit-fill-available;
  background: #1d1d1b;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: game-filter;
  transition: all 0.3s ease-in-out;
  padding: 0 54px;

  /* hide scrollbar but keep scrolling */
  -ms-overflow-style: none;
  /* IE and old Edge */
  scrollbar-width: none;
  /* Firefox */

  &::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .sidebar-closed & {
    max-width: 154px;
    width: 154px;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(218, 218, 218, 1);
    overflow: auto;

    &>.search-panel>*:not(.search-grid) {
      display: none;
    }
  }

  .search-grid {
    margin-bottom: 2vh;
  }

  .search-card {
    /* padding: 12px; */
  }
}

.game-filter-mobile {
  display: none;
}

.promo {
  display: grid;
  flex-direction: column;
  padding: 70px 85px;
  background-color: #453F4D;
}

.main-slider {
  width: 100%;
  margin-bottom: 40px;
  position: relative;
}

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  max-height: 297px;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slider-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 297px;
  overflow: hidden;
}

.slider-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.slider-image {
  width: 100%;
  height: 297px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.slider-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #ffffff;
  padding: 30px 20px 20px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  border-radius: 0 0 16px 16px;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(139, 92, 246, 0.8);
  color: #ffffff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(139, 92, 246, 1);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

@media (max-width: 768px) {
  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .slider-prev {
    left: 10px;
  }
  
  .slider-next {
    right: 10px;
  }
  
  .slider-title {
    font-size: 18px;
    padding: 20px 15px 15px;
  }
}

.promo-premium {
  width: 100%;
  overflow-x: hidden;
  position: relative;

  & + .promo-premium {
    margin-top: 14px;
  }
  
  /* На десктопе используем grid для размещения элементов */
  @media (min-width: 769px) {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 
      "title title title"
      "prev-btn slider next-btn";
    align-items: center;
    gap: 0 16px;
  }
}

/* Стили для секции премиум офферов с сеткой (не слайдер) */
.promo-premium-grid {
  margin-top: 2rem;
  width: 100%;
  
  @media (min-width: 769px) {
    display: block;
    grid-template-columns: none;
    grid-template-areas: none;
  }
  
  .offers-grid {
    margin-top: 1rem;
  }
  
  .promo-title {
    @media (min-width: 769px) {
      grid-area: unset;
      margin-bottom: 20px;
    }
  }
}

.promo-title {
  font-weight: 600;
  font-size: 25px;
  line-height: 100%;
  margin-bottom: 20px;
  color: #ffffff;
  
  @media (min-width: 769px) {
    grid-area: title;
  }
}

.promo-controls {
  display: flex;
  gap: 12px;
  z-index: 10;
  
  /* На десктопе скрываем общий контейнер, работаем с отдельными кнопками */
  @media (min-width: 769px) {
    display: contents;
  }
}

.promo-controls-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  
  &:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }
  
  &:active:not(:disabled) {
    transform: scale(0.95);
  }
  
  &:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
  
  &::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
  }
  
  /* На десктопе размещаем кнопки слева и справа */
  @media (min-width: 769px) {
    grid-area: prev-btn;
  }
}

.promo-controls-next {
  @media (min-width: 769px) {
    grid-area: next-btn;
  }
}

.promo-controls-prev::before {
  border-width: 6px 10px 6px 0;
  border-color: transparent #ffffff transparent transparent;
  margin-left: -2px;
}

.promo-controls-next::before {
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #ffffff;
  margin-right: -2px;
}

.slider-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  cursor: grab;
  box-sizing: border-box;
  
  /* Скрыть scrollbar для WebKit браузеров, но оставить функциональность */
  &::-webkit-scrollbar {
    height: 6px;
  }
  
  &::-webkit-scrollbar-track {
    background: transparent;
  }
  
  &::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    
    &:hover {
      background-color: rgba(255, 255, 255, 0.5);
    }
  }
  
  /* Плавная прокрутка */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  
  &:active {
    cursor: grabbing;
  }

  & li {
    scroll-snap-align: start;
    flex: 0 0 auto;
    min-width: 0;
  }
  
  /* На десктопе слайдер занимает среднюю колонку */
  @media (min-width: 769px) {
    grid-area: slider;
    width: 100%;
  }
}

.product-list {
  display: flex;
  margin: 0;
  padding: 0;
  margin-top: 25px;

  & .product-list-items {
    list-style-type: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: start;

    & .product-list-item {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      width: 202px;
      font-size: 15px;
      line-height: 100%;

      & .product-image {
        display: block;
      }
    }
  }
}

.promo-info {
  width: 100%;
  height: 297px;
  background-image: linear-gradient(103.58deg, #6B2AD1 -40.43%, #ACA3E8 52.24%, #37166B 152.63%);
  border-radius: 15px;
  margin-bottom: 25px;
}

.promo-month {
  margin-bottom: 15px;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  width: 100%;
  max-width: 202px;
  box-sizing: border-box;
}

.product-image {
  border-radius: 15px;
  background: white;
  display: block;
}

.product-description {
  margin: 0;
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-final {
  margin-top: 2px;
  margin-right: 11px;
}

.price-discount {
  width: 47px;
  height: 19px;
  box-sizing: border-box;
  font-weight: 700;
  font-size: 13px;
  color: #363636;
  border-radius: 15px;
  background-image: linear-gradient(103.58deg, #6B2AD1 -40.43%, #ACA3E8 52.24%, #37166B 152.63%);
  text-align: center;
  padding: 2px 10px;
  margin-right: 8px;
}

.price-old {
  font-weight: 400;
  font-size: 10px;
  line-height: 100%;
}

.rating-star {
  display: inline-block;
  font-size: 0;
  margin-right: 4px;
}

.rating-star-image {
  padding: 0 1px 0 0;
  font-size: 16px;
  line-height: 100%;
  color: #363636;
}

.rating-star-image:before {
  content: '★';
}

.star-active {
  color: #6b2ad1;
}

.rating-quantity {
  font-weight: 400;
  font-style: normal;
  font-size: 10px;
  color: #ffffff;
}

.page-footer {
  background-color: #1d1d1b;
  margin: 0;
  padding: 64px 85px 75px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
}

.main-footer-logo {
  display: block;
  margin-bottom: 56px;
}

.payment-container {
  margin-bottom: 30px;
}

.payment-list-title,
.footer-contacts-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  color: #dadada;
  margin: 0 0 10px 0;
  padding: 0;
}

.payment-list {
  width: 244px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.footer-contacts {
  margin-bottom: 45px;
}

.footer-contacts-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-contacts-phone,
.footer-contacts-mail {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  font-style: normal;
  color: #dadada;
}

.footer-navigation {
  width: auto;
}

.navigation-list,
.navigation-list-info {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navigation-list-info {
  display: flex;
  width: 1010px;
  justify-content: space-between;
  margin-bottom: 70px;
}

.navigation-list {
  width: 791px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 35px 230px;
}

.navigation-link,
.navigation-info-link {
  text-decoration: none;
}

.navigation-info-link {
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(103.58deg, #6B2AD1 -40.43%, #ACA3E8 52.24%, #37166B 152.63%);
}

.navigation-link {
  font-weight: 700;
  font-size: 25px;
  line-height: 100%;
  color: #ffffff;
}

.copyright-description {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: #848484;
}

.mud-list-item-clickable {
  /* background-color: var(--main-color) !important;
    border: none;
    outline: none; */
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred."
}

.mud-dialog-content {
  padding: 0 !important;
  margin: 0 !important;
}

.mud-dialog {
  border-radius: 24px !important;
}

/* Auth modal (custom, no Mud components) */
.auth-modal {
  position: fixed;
  inset: 0;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  padding: 24px;
  display: none !important;

  &.open {
    display: grid !important;
    grid-template-columns: auto;
    grid-template-rows: 0 1fr;
  }

  &[hidden] {
    display: none !important;
  }
}

/* Balance Page Styles */
.balance-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: var(--main-color);
  min-height: 100vh;
}

.balance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-pp {
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.balance-search {
  flex: 1;
  max-width: 500px;
  margin: 0 40px;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
}

.search-input {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0 16px 0 48px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  border-color: #8B5CF6;
  background: rgba(255, 255, 255, 0.15);
}

.balance-nav {
  display: flex;
  gap: 16px;
}

.nav-item {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.balance-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.balance-section,
.history-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0 0 20px 0;
}

.balance-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.balance-tab {
  flex: 1;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.balance-tab.active {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  border-color: #8B5CF6;
}

.balance-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.15);
}

.balance-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.balance-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.balance-icon {
  width: 48px;
  height: 48px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B5CF6;
}

.balance-amount {
  flex: 1;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.balance-arrow {
  color: #8B5CF6;
  cursor: pointer;
}

.balance-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  position: relative;
}

.amount-input {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0 16px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease;
}

.amount-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.amount-input:focus {
  border-color: #8B5CF6;
  background: rgba(255, 255, 255, 0.15);
}

.balance-button {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.balance-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.balance-result {
  margin-top: 16px;
}

.replenish-success,
.withdraw-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.replenish-success h3,
.withdraw-success h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.replenish-success p,
.withdraw-success p {
  margin: 0 0 4px 0;
  opacity: 0.9;
  font-size: 14px;
}

.balance-error,
.withdraw-error {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.balance-error h3,
.withdraw-error h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.balance-error p,
.withdraw-error p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.history-filters {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.date-input {
  position: relative;
  flex: 1;
}

.date-input input {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0 40px 0 12px;
  color: white;
  font-size: 14px;
  outline: none;
}

.date-input input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.date-icon,
.clear-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.date-icon {
  right: 32px;
}

.clear-icon {
  right: 12px;
}

.date-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  font-weight: 600;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.transaction-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.transaction-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transaction-type {
  font-size: 16px;
  font-weight: 500;
  color: white;
}

.transaction-method {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.transaction-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.amount-value {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.transaction-status {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
}

.status-success {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.status-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #FBBF24;
}

.status-error {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.status-cancelled {
  background: rgba(107, 114, 128, 0.2);
  color: #6B7280;
}

.no-transactions {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
}

.no-transactions p {
  margin: 0;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .balance-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .balance-header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .balance-search {
    margin: 0;
    max-width: none;
  }
  
  .balance-nav {
    justify-content: center;
  }
  
  .history-filters {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .filter-item:first-child {
    display: none;
  }
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: #181818;
  border-radius: 24px;
  padding: 32px;
  box-sizing: border-box;
  position: relative;
}

.auth-title {
  margin: 0 0 16px 0;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 12px;

  & > form:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  background: #39324B;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 16px;
}

.auth-actions {
  margin-top: 4px;
}

.auth-btn {
  width: 100%;
  border-radius: 16px;
  min-height: 48px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.auth-btn:disabled {
  opacity: .7;
  cursor: default;
}

.auth-btn-primary {
  background: #dbdbdb;
  color: #222;
  border: none;
}

.auth-btn-outline {
  background: transparent;
  color: #A084E8;
  border: 2px solid #A084E8;
}

.auth-links {
  text-align: right;
}

.auth-link {
  color: #A084E8;
  font-size: 15px;
  cursor: pointer;
}

.auth-social {
  display: grid;
  gap: 10px;
  margin: 8px 0;
}

.auth-switch {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  gap: 6px;
  color: #dbdbdb;
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  border: none;
  background: transparent;
  color: #bbb;
  font-size: 28px;
  line-height: 36px;
  cursor: pointer;
}

/* Fullscreen on small screens */
@media (max-width: 578px) {
  .auth-modal {
    padding: 0;
    background: #181818;
  }

  .auth-card {
    border-radius: 0;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    display: grid;
    align-content: center;
    padding: 24px;
  }
}

/*  Burger  */
.burger-checkbox {
  position: absolute;
  visibility: hidden;
}

.burger {
  position: relative;
  z-index: 1;
  cursor: pointer;
  display: block;
  position: relative;
  border: none;
  background: transparent;
  width: 28px;
  height: 24px;
}

.burger::before,
.burger::after {
  content: '';
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: var(--secondary-color);
}

.burger::before {
  top: 0;
  box-shadow: 0 10px 0 var(--secondary-color);
  transition: box-shadow .3s .15s, top .3s .15s, transform .3s;
}

.burger::after {
  bottom: 0;
  transition: bottom .3s .15s, transform .3s;
}

.burger-checkbox:checked+.burger::before {
  top: 10px;
  transform: rotate(45deg);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0);
  transition: box-shadow .15s, top .3s, transform .3s .15s;
}

.burger-checkbox:checked+.burger::after {
  bottom: 10px;
  transform: rotate(-45deg);
  transition: bottom .3s, transform .3s .15s;
}

.menu-list {
  top: 0;
  left: 0;
  position: fixed;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  height: 100%;
  display: grid;
  gap: 12px;
  margin: 0;
  list-style-type: none;
  transform: translateX(-100%);
  transition: .3s;
  z-index: 10;
  width: 100%;
  background: rgba(0, 0, 0, 0.65);

  .search-title {
    font-size: 20px;
  }
}

.menu-item {
  display: block;
  padding: 8px;
  color: white;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
}

.game-filter-mobile {
  display: none;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;

  &>.search-form {
    display: block;
    padding: 0;
  }

  & .search-field {
    padding: 10px 17px 10px 36px;
  }

  & .search-panel {
    padding: 34px;
  }
}

.menu-item:hover {
  background: rgba(255, 255, 255, .2)
}

.burger-checkbox:checked~.menu-list {
  transform: translateX(0);
}

@media (max-width: 1024px) {

  .game-filter-open>.sidebar-toggle {
    left: 330px;
  }
}

@media (max-width: 1024px) {

  .main-container {
    padding: 20px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .main-index {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .menu-list {
    padding: 0;
  }

  .header-container {
    gap: 0px;
    grid-template-columns: 1fr 1fr;
    padding: 16px 32px;
  }

  .header-user {
    display: none;
  }

  .header-options {
    justify-content: flex-end;
    gap: 8px;
    width: initial;
  }

  .options-language-icon {
    width: 22px;
    height: 22px;
  }

  .options-currency-icon {
    width: 22px;
    height: 22px;
  }

  .search-form {
    display: none;
  }

  .game-filter-mobile {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
  }

  .game-filter {
    display: none;
  }

  .game-filter-open {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .promo {
    padding: 20px 16px;
    gap: 24px;
    background-color: #453F4D;
  }

  .promo-info {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
  }

  .promo-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .slider-list {
    gap: 12px;
    
    & li {
      width: 154px;
      flex: 0 0 154px;
      scroll-snap-align: start;
    }
  }

  .promo-controls {
    display: none; /* Скрываем кнопки на мобилке */
  }

  .product-list {
    & .product-list-items {
      justify-content: center;
    }
  }

  .page-footer {
    padding: 28px 32px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;

    & .navigation-list-info {
      flex-direction: column;
      gap: 20px;
      width: 100%;
    }

    & .navigation-list {
      width: 100%;
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }

  .footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 20px;

    .navigation-list {
      order: -1;
    }
  }

  .user-login {
    display: none;
  }
}

/* ======================================
   Offer Create Page
   ====================================== */
.page-main {
  background: #0f0f0f;
}

.container {
  padding: 40px 85px;
}

.offer-create {}

.offer-create-grid {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 24px;
}

.offer-create-sidebar {
  background: #1d1d1b;
  border-radius: 20px;
  padding: 16px;
  position: sticky;
  top: 110px;
  height: fit-content;
}

.sidebar-search {
  margin-bottom: 16px;
}

.game-cards-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  gap: 12px;
}

.game-cards-item {
  height: 78px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-categories .field-label {
  display: block;
  font-weight: 700;
  margin: 8px 0 10px;
}

.field-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.field-item {}

.field-input {
  width: 100%;
  box-sizing: border-box;
  background: #392f49;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 16px;
}

.attributes-container .field-input {
  width: 115px;
}

.field-input::placeholder { color: rgba(255,255,255,.5); }

.field-actions {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  margin-top: 16px;
}

.button {
  background: linear-gradient(103.58deg, #6B2AD1 -40.43%, #ACA3E8 52.24%, #37166B 152.63%);
  color: #1b1527;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
}

.button-secondary {
  background: transparent;
  color: #b6a6f7;
  border: 2px solid #b6a6f7;
}

.button-danger {
  background: #ff2d5b;
  color: #fff;
}

.offer-create-content {}

.offer-media {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}

.offer-media-drop {
  height: 260px;
  border-radius: 18px;
  background: #2d253a;
  display: grid;
  place-items: center;
  color: #bdb7d6;
  position: relative;
  overflow: hidden;
}

.offer-media-preview { width: 100%; height: 100%; opacity: .2; background: url('/images/preview-placeholder.png') center/cover no-repeat; }
.offer-media-remove { position: absolute; bottom: 12px; left: 16px; font-weight: 700; }

.offer-price-actions { display: grid; gap: 12px; }

.offer-section { margin-top: 22px; }
.offer-section-title { margin: 0 0 12px 0; font-weight: 700; font-size: 18px; }

.field-row { display: grid; gap: 8px; margin-bottom: 10px; }
.field-row .field-label { font-weight: 600; }

.chips { display: flex; gap: 8px; margin-bottom: 10px; }
.chip { background: #2d253a; color: #dadada; border: none; border-radius: 12px; padding: 8px 10px; }
.chip.active { outline: 2px solid #a78bfa; }
.chip.chip-selected { background: #a78bfa; color: #fff; }
.system-attribute { opacity: 0.6; }
.system-attribute .field-label,
.system-attribute .toggle-label { color: #a994ff; font-style: italic; }
.system-attribute input:disabled,
.system-attribute .chip:disabled { 
    opacity: 0.5; 
    cursor: not-allowed;
}

/* Auth Error Page Styles */
.auth-error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.auth-error-content {
    max-width: 400px;
    width: 100%;
    text-align: center;
    background: #2a2438;
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid #3c3545;
}

.auth-error-icon {
    color: #ff6b6b;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.auth-error-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.auth-error-message {
    color: #a994ff;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.auth-error-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.button-primary {
    background: #6B2AD1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-primary:hover:not(:disabled) {
    background: #5a2599;
}

.button-secondary {
    background: transparent;
    color: #a994ff;
    border: 1px solid #4a4458;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.button-secondary:hover {
    background: #3c3545;
    border-color: #6B2AD1;
    color: #fff;
}


.auth-error-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #3c3545;
}

.auth-error-footer code {
    background: #3c3545;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #a994ff;
    font-size: 12px;
}

/* Offer Not Found Page */
.not-found-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.not-found-content {
    max-width: 400px;
    width: 100%;
    text-align: center;
    background: #2a2438;
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid #3c3545;
}

.not-found-icon {
    color: #ff6b6b;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.not-found-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.not-found-message {
    color: #a994ff;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.not-found-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-stub-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.review-stub-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
    background: #2a2438;
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid #3c3545;
}

.review-stub-icon {
    color: #8b5cf6;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.review-stub-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.review-stub-message {
    color: #a994ff;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.review-stub-message strong {
    color: #fff;
    font-weight: 600;
}

.review-stub-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.field-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }

.toggle-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.toggle-label { color: #dadada; }

.field-textarea { width: 100%; min-height: 110px; resize: vertical; background: #392f49; color: #fff; border: none; border-radius: 14px; padding: 12px 14px; box-sizing: border-box; }

.card { background: #2d253a; border-radius: 16px; padding: 12px; }
.card-title { font-weight: 700; margin-bottom: 10px; }
.switch-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.switch-item { display: flex; justify-content: space-between; align-items: center; background: #1f1a29; border-radius: 12px; padding: 10px 12px; }

.field-stack { display: grid; gap: 10px; margin-bottom: 10px; }

@media (max-width: 1200px) {
  .offer-create-grid { grid-template-columns: 1fr; }
  .offer-create-sidebar { position: static; }
  .offer-media { grid-template-columns: 1fr; }
}

/* Admin UI */
.admin-section { margin-bottom: 32px; }
.admin-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 24px; 
    margin-top: 24px; 
}
.admin-two-cols { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 32px; 
    margin-top: 24px; 
}
.admin-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: grid; 
    gap: 12px; 
    max-height: 60vh; 
    overflow-y: auto; 
    padding-right: 8px; 
}
.admin-list::-webkit-scrollbar { width: 6px; }
.admin-list::-webkit-scrollbar-track { background: #2d253a; border-radius: 3px; }
.admin-list::-webkit-scrollbar-thumb { background: #6b2ad1; border-radius: 3px; }
.admin-list::-webkit-scrollbar-thumb:hover { background: #8f78de; }
.admin-link { 
    background: linear-gradient(135deg, #2d253a 0%, #3a2f4a 100%); 
    color: #fff; 
    border: none; 
    border-radius: 12px; 
    padding: 12px 16px; 
    text-align: left; 
    font-size: 16px; 
    font-weight: 500; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); 
    width: 100%; 
}
.admin-link:hover { 
    background: linear-gradient(135deg, #3a2f4a 0%, #4a365a 100%); 
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(107, 42, 209, 0.3); 
}
.admin-link:active { transform: translateY(0); }
.admin-form { 
    display: grid; 
    gap: 20px; 
    background: linear-gradient(135deg, #1f1a29 0%, #2a1f3a 100%); 
    border-radius: 20px; 
    padding: 24px; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.4); 
    border: 1px solid rgba(107, 42, 209, 0.2); 
}
.admin-form label { 
    display: grid; 
    gap: 8px; 
    color: #e1d9ff; 
    font-weight: 600; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.admin-input { 
    width: 100%; 
    box-sizing: border-box; 
    background: #2d253a; 
    color: #fff; 
    border: 2px solid transparent; 
    border-radius: 12px; 
    padding: 12px 16px; 
    font-size: 16px; 
    transition: all 0.2s ease; 
    outline: none; 
}
.admin-input:focus { 
    border-color: #6b2ad1; 
    background: #392f49; 
    box-shadow: 0 0 0 3px rgba(107, 42, 209, 0.1); 
}
.admin-input::placeholder { color: rgba(255,255,255,0.4); }
.admin-actions { 
    display: flex; 
    gap: 12px; 
    margin-top: 8px; 
}
.admin-actions .button { 
    flex: 1; 
    padding: 12px 20px; 
    border-radius: 12px; 
    font-weight: 600; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    transition: all 0.2s ease; 
    border: none; 
    cursor: pointer; 
}
.admin-actions .button:not(.button-secondary):not(.button-danger) { 
    background: linear-gradient(135deg, #6b2ad1 0%, #8f78de 100%); 
    color: #fff; 
    box-shadow: 0 4px 16px rgba(107, 42, 209, 0.3); 
}
.admin-actions .button:not(.button-secondary):not(.button-danger):hover { 
    background: linear-gradient(135deg, #8f78de 0%, #6b2ad1 100%); 
    transform: translateY(-1px); 
    box-shadow: 0 6px 20px rgba(107, 42, 209, 0.4); 
}
.admin-actions .button-secondary { 
    background: transparent; 
    color: #8f78de; 
    border: 2px solid #8f78de; 
}
.admin-actions .button-secondary:hover { 
    background: #8f78de; 
    color: #fff; 
}
.admin-actions .button-danger { 
    background: linear-gradient(135deg, #ff2d5b 0%, #ff4757 100%); 
    color: #fff; 
    box-shadow: 0 4px 16px rgba(255, 45, 91, 0.3); 
}
.admin-actions .button-danger:hover { 
    background: linear-gradient(135deg, #ff4757 0%, #ff2d5b 100%); 
    transform: translateY(-1px); 
    box-shadow: 0 6px 20px rgba(255, 45, 91, 0.4); 
}
.subtitle { 
    margin: 0 0 16px 0; 
    font-weight: 700; 
    font-size: 20px; 
    color: #e1d9ff; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.title { 
    background: var(--text-color);
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
    font-weight: 800; 
    font-size: 32px; 
    margin: 0 0 8px 0; 
}
.admin-dashboard { 
    background: linear-gradient(135deg, #1f1a29 0%, #2a1f3a 100%); 
    border-radius: 20px; 
    padding: 32px; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.4); 
    border: 1px solid rgba(107, 42, 209, 0.2); 
}
.admin-dashboard p { 
    color: #bdb7d6; 
    font-size: 16px; 
    margin: 0 0 24px 0; 
}
.admin-dashboard .button { 
    background: linear-gradient(135deg, #2d253a 0%, #3a2f4a 100%); 
    color: #fff; 
    border: none; 
    border-radius: 16px; 
    padding: 16px 24px; 
    font-size: 16px; 
    font-weight: 600; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: all 0.2s ease; 
    box-shadow: 0 4px 16px rgba(0,0,0,0.3); 
    border: 1px solid rgba(107, 42, 209, 0.2); 
}
.admin-dashboard .button:hover { 
    background: linear-gradient(135deg, #6b2ad1 0%, #8f78de 100%); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 24px rgba(107, 42, 209, 0.4); 
}
.admin-dashboard .button::after { 
    content: "↗"; 
    font-size: 18px; 
    opacity: 0.7; 
}

@media (max-width: 900px) {
  .admin-two-cols { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-actions { flex-direction: column; }
  .title { font-size: 24px; }
}

.search-panel {
  color: #fff;
  padding-bottom: 24px;
  border-radius: 24px;
  margin: 0 auto;
  position: relative;
}

.search-title {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 24px 0;
  background-color: inherit;
  z-index: 10;
}

.search-title-close {
  top: 10px;
  transform: rotate(45deg);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0);
  transition: box-shadow .15s, top .3s, transform .3s .15s;

  &::after {
    bottom: 10px;
    transform: rotate(-45deg);
    transition: bottom .3s, transform .3s .15s;
  }
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(40px, 1fr));
  gap: 8px 28px;
  margin-bottom: 36px;

  .sidebar-closed & {
    grid-template-columns: repeat(1, minmax(40px, 69px));
    justify-content: center;
    margin-top: 12px;

    .search-card>p {
      display: none;
    }
  }
}

.search-grid>* {
  min-width: 0;
}

.search-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: initial;
  padding-bottom: 8px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;

  &>p {
    font-size: 18px;
    margin-bottom: 14px;
  }

  &.selected {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  &:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
  }
}

.search-card-img {
  width: 100%;
  max-width: 98px;
  max-height: 98px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
  background-size: cover;

  .sidebar-closed & {
    width: 68px;
    height: 68px;
  }
}

.search-card-title {
  font-size: 1.5vh;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 100%;
  margin-bottom: 0.5vh;

  &.close {
    font-size: 1.4vh;
  }
}

.search-categories-block {
  margin-bottom: 32px;
}

.search-categories-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.search-categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-category {
  display: flex;
  align-items: center;
  background: #2d253a;
  border-radius: 16px;
  padding: 0 16px;
  height: 48px;
  font-size: 1.1rem;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.search-category input[type="checkbox"] {
  display: none;
}

.search-category-text {
  flex: 1;
  color: #fff;
}

.search-category-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #b6a6f7;
  background: #2d253a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: background 0.2s, border 0.2s;
}

.search-category input[type="checkbox"]:checked+.search-category-text+.search-category-check {
  background: #b6a6f7;
  border-color: #b6a6f7;
}

.search-category input[type="checkbox"]:checked+.search-category-text+.search-category-check::after {
  content: "✔";
  color: #fff;
  font-size: 1.1rem;
  display: block;
}

/* Radio button styles */
.search-category input[type="radio"] {
  display: none;
}

.search-category input[type="radio"]:checked+.search-category-text+.search-category-check {
  background: #b6a6f7;
  border-color: #b6a6f7;
}

.search-category input[type="radio"]:checked+.search-category-text+.search-category-check::after {
  content: "●";
  color: #fff;
  font-size: 1.1rem;
  display: block;
}

.search-panel-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.search-next-btn {
  flex: 1;
  background: linear-gradient(135deg, #b6a6f7 0%, #a78bfa 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.search-next-btn:hover {
  background: linear-gradient(135deg, #a78bfa 0%, #b6a6f7 100%);
}

.search-reset-btn {
  flex: 1;
  background: transparent;
  color: #b6a6f7;
  border: 2px solid #b6a6f7;
  border-radius: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.search-reset-btn:hover {
  background: #b6a6f7;
  color: #fff;
}

@container game-filter (max-width: 1024px) {}

@container game-filter (max-width: 584px) {
  .search-panel {
    border-radius: 0;
  }

  .search-panel-mobile {
    margin-top: 64px;
  }
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #2d253a;
  border-radius: 10px;
  padding: 0 16px;
  height: 48px;
  margin-bottom: 2vh;
  position: relative;
}

.search-icon {
  font-size: 1.3rem;
  color: #b6a6f7;
  margin-right: 10px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  outline: none;
  width: 100%;
}

.search-add-btn {
  background: #a78bfa;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-add-btn:hover {
  background: #b6a6f7;
}

.search-list-container {
  /* display: flex; */
  width: -webkit-fill-available;
  list-style: none;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 90%;
  left: 0;
  background: #2d253a;
  border-radius: 0 0 10px 10px;
  padding: 18px 32px;
  z-index: 1000;

  & button {
    padding: 12px 0;
    justify-content: left;
    width: 100%;
    font-size: 16px;
    color: inherit;
    border: 0;
    cursor: pointer;
    margin: 0;
    display: inline-flex;
    outline: 0;
    position: relative;
    align-items: center;
    user-select: none;
    border-radius: 0;
    vertical-align: middle;
    -moz-appearance: none;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0);
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  & li {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
  }

  & li+li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  & li:hover {
    color: #b6a6f7;
  }
}

/* Admin file preview */
.file-preview {
  margin-top: 8px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #e0e7ff;
  border-radius: 8px;
  padding: 8px;
}

.file-preview img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Catalog styles */
.catalog-header {
  margin-bottom: 2rem;
}

.catalog-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-font-color);
  margin-bottom: 1.5rem;
}

.catalog-filters {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-font-color);
  font-size: 0.875rem;
  min-width: 200px;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(202px, 1fr));
  gap: 16px;
  margin-top: 2rem;
}

.offer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.offer-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.offer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.offer-card:hover .offer-img {
  transform: scale(1.05);
}

.offer-content {
  padding: 1.25rem;
}

.offer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.offer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-font-color);
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.offer-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-shrink: 0;
}

.price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
}

.price-currency {
  font-size: 0.875rem;
  color: var(--secondary-color);
}

.offer-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.offer-product,
.offer-category {
  color: var(--secondary-color);
}

.offer-product::before {
  content: "🎮 ";
}

.offer-category::before {
  content: "📂 ";
}

.offer-description {
  color: var(--text-color);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--secondary-color);
}

.offer-owner::before {
  content: "👤 ";
}

.offer-date::before {
  content: "📅 ";
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--secondary-color);
}

.catalog-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-font-color);
}

.catalog-empty p {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-container {
    padding: 12px 8px 0;
  }

  .main-index {
    gap: 16px;
  }

  .game-filter-mobile {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .search-form {
    width: 100%;
  }

  .search-field {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .promo {
    padding: 16px 12px;
    gap: 20px;
  }

  .promo-info {
    height: 140px;
    margin-bottom: 16px;
  }

  .promo-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .slider-list {
    gap: 8px;
    
    & li {
      width: 154px;
      flex: 0 0 154px;
      scroll-snap-align: start;
    }
  }

  .product-item {
    padding: 8px;
    width: 154px;
    max-width: 154px;
  }
  
  .product-image {
    max-width: 154px;
    width: 154px;
  }

  .promo-controls {
    display: none; /* Скрываем кнопки на мобилке */
  }
  
  .catalog-content {
    padding: 1rem 0.5rem;
  }
  
  .catalog-banner {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .catalog-banner-title {
    font-size: 20px;
  }
  
  .catalog-filters {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-select {
    min-width: auto;
    width: 100%;
  }
  
  .offers-grid {
    grid-template-columns: repeat(auto-fill, minmax(202px, 1fr));
    gap: 16px;
  }
  
  /* Для каталога (не слайдеров) карточки могут быть шире */
  .offers-grid .product-item {
    max-width: 100%;
  }
  
  .offers-grid .product-image {
    max-width: 100%;
  }
  
  .offer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .offer-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .offer-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ==================== Offer View Page Styles ==================== */

/* Back Button */
.offer-view-back {
  margin-bottom: 20px;
}

.back-btn-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.2s ease;
}

.back-btn-view:hover {
  color: #fff;
}

.back-btn-view svg {
  width: 20px;
  height: 20px;
}

/* Main Grid Layout */
.offer-view-grid {
  display: grid;
  grid-template-columns: 1fr 36%;
  grid-template-areas: "card sidebar" "reviews reviews";
  gap: 24px;
  margin-bottom: 40px;
}

/* Left Column */
.offer-view-left {
  grid-area: card;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Image Card */
.offer-view-image-card {
  background: #3f3a4b;
  border-radius: 18px;
  padding: 0;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.offer-view-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  aspect-ratio: 1.62;
}

.offer-view-image-placeholder {
  width: 100%;
  height: 380px;
  background: #3f3a4b;
  border-radius: 18px;
}

/* Description Card */
.offer-view-description-card {
  border-radius: 18px;
  padding: 24px 0;
}

.offer-view-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px 0;
}

/* Tabs */
.offer-view-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.offer-view-tab {
  background: transparent;
  border: 1px solid #3f3a4b;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.offer-view-tab:hover {
  border-color: #8B5CF6;
}

.offer-view-tab.active {
  border-color: #8B5CF6;
}

.tab-label {
  font-size: 13px;
  color: #a0a0a0;
  margin-bottom: 6px;
}

.tab-value {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* Characteristic */
.offer-view-characteristic {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #2d2d2d;
  margin-bottom: 20px;
}

.characteristic-label {
  font-size: 14px;
  color: #a0a0a0;
}

.characteristic-value {
  font-size: 14px;
  color: #fff;
}

/* Description Box */
.offer-view-description-box {
  background: #2d253a;
  border-radius: 12px;
  padding: 20px;
  min-height: 150px;
}

.offer-view-description-box p {
  margin: 0;
  color: #a0a0a0;
  font-size: 14px;
  line-height: 1.6;
}

/* Seller Card */
.offer-view-seller-card {
  border-radius: 18px;
  padding: 24px 0;
}

.seller-info {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2d2d2d;
}

.seller-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seller-details {
  flex: 1;
}

.seller-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.seller-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.seller-rating svg {
  width: 14px;
  height: 14px;
}

.rating-count {
  margin-left: 6px;
  font-size: 13px;
  color: #a0a0a0;
}

.seller-since {
  font-size: 13px;
  color: #a0a0a0;
}

/* Payment Security */
.payment-security {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2d2d2d;
}

.security-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-icon {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* Refund Items */
.refund-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #a0a0a0;
  line-height: 1.5;
}

.refund-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Chat Link */
.seller-chat-link {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #2d2d2d;
  font-size: 13px;
  color: #8B5CF6;
}

/* Right Column */
.offer-view-right {
  grid-area: sidebar;
  /* position: sticky; */
  /* top: 100px; */
  height: fit-content;
}

.offer-view-info-card {
  border-radius: 18px;
  padding: 24px;
}

/* Price Section */
.offer-view-price-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.offer-view-price {
  
}

.price-amount {
  font-size: 25px;
  font-weight: 700;
  background-image: var(--gradient-color);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.offer-view-discount-badge {
  background: #8B5CF6;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* Product Name */
.offer-view-product-name {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-color);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

/* Rating */
.offer-view-rating {
  margin-bottom: 20px;

  & .rating-stars {
    display: flex;
    align-items: center;
    gap: 0;
  }

  & .rating-stars svg {
    width: 18px;
    height: 18px;
  }

  & .rating-number {
    margin-left: 6px;
    font-size: 15px;
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 0;
  }
}

/* Delivery Method */
.offer-view-delivery {
  margin-bottom: 20px;
}

.delivery-header {
  font-size: 25px;
  color: #a0a0a0;
  margin-bottom: 8px;
}

.delivery-method-box {
  background: #2d253a;
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  color: #a0a0a0;
  text-align: center;
}

/* Buy Button */
.offer-view-buy-btn {
  width: 100%;
  background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  margin-top: 10px;
}

.offer-view-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.offer-view-reviews-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 0.75rem;
}

.offer-view-reviews-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
    transform: translateY(-1px);
}

.offer-view-buy-btn:not(.authenticated) {
  background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 100%);
}

/* Guarantee Link */
.offer-view-guarantee {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
  color: #a0a0a0;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
  background-image: var(--gradient-color);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.offer-view-guarantee svg {
  width: 14px;
  height: 14px;
}

/* Purchase Success */
.purchase-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.purchase-success h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.purchase-success p {
  margin: 0 0 16px 0;
  opacity: 0.9;
  font-size: 14px;
}

/* Order Created */
.order-created {
  margin-bottom: 16px;
}

.order-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.order-success h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.order-success p {
  margin: 0 0 16px 0;
  opacity: 0.9;
  font-size: 14px;
}

.order-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Purchase Error */
.purchase-error {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.purchase-error h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.purchase-error p {
  margin: 0 0 8px 0;
  opacity: 0.9;
  font-size: 14px;
}

/* Order Confirmed */
.order-confirmed {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.order-confirmed h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.order-confirmed p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

/* Order Cancelled */
.order-cancelled {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.order-cancelled h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.order-cancelled p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .offer-view-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .offer-view-right {
    position: static;
  }
  
  .offer-view-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }
  
  .offer-view-grid {
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .offer-view-image-card {
    min-height: 280px;
  }
  
  .offer-view-image-placeholder {
    height: 280px;
  }
  
  .offer-view-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .tab-label {
    font-size: 12px;
  }
  
  .tab-value {
    font-size: 14px;
  }
  
  .price-amount {
    font-size: 28px;
  }
  
  .offer-view-product-name {
    font-size: 18px;
  }
  
  .offer-view-description-card,
  .offer-view-seller-card,
  .offer-view-info-card {
    padding: 16px;
  }
  
  .offer-view-back {
    margin-bottom: 16px;
  }
  
  .offer-reviews-section {
    padding: 1rem;
  }
  
  .offer-reviews-section .reviews-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .reviews-rating-section {
    width: 100%;
    text-align: center;
  }
  
  .review-card {
    min-width: 240px;
    padding: 0.875rem;
  }
}

/* Order View Page Styles */
.order-page {
  max-width: 1200px;
  margin: 0 auto;
}

.order-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #dadada;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
  text-decoration: none;
}

.back-button:hover {
  color: #fff;
}

.order-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  flex: 1;
}

.order-status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #fff;
}

.status-completed {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
}

.status-cancelled {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #fff;
}

.order-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.order-main {
  display: grid;
  gap: 24px;
}

.order-info-card,
.offer-info-card,
.participants-card {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-info-card h2,
.offer-info-card h2,
.participants-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.info-item .label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.info-item .value {
  font-size: 16px;
  color: #dadada;
  font-weight: 600;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offer-details h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px 0;
}

.offer-details h3 a {
  color: #8B5CF6;
  text-decoration: none;
}

.offer-details h3 a:hover {
  color: #A855F7;
}

.offer-description {
  color: #dadada;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.offer-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.offer-meta .game,
.offer-meta .category {
  color: #666;
}

.offer-meta .game::before {
  content: "🎮 ";
}

.offer-meta .category::before {
  content: "📂 ";
}

.participants-grid {
  display: grid;
  gap: 16px;
}

.participant {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #2a2a2a;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.participant .label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.participant .value {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.participant .email {
  font-size: 14px;
  color: #dadada;
}

.order-actions {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: fit-content;
}

.order-actions h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px 0;
}

.order-actions p {
  color: #dadada;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.button-danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.completed-info,
.cancelled-info {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
}

.completed-info {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
}

.cancelled-info {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #fff;
}

.completed-info h3,
.cancelled-info h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.completed-info p,
.cancelled-info p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 24px;
}

.modal-content {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #dadada;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  margin-bottom: 24px;
}

.modal-body p {
  color: #dadada;
  font-size: 14px;
  margin-bottom: 16px;
}

.modal-body textarea {
  width: 100%;
  box-sizing: border-box;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
}

.modal-body textarea::placeholder {
  color: #666;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  .order-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .order-header h1 {
    font-size: 24px;
  }
  
  .modal-content {
    margin: 16px;
    padding: 20px;
  }
}

/* Profile Orders Page */
.profile-orders-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 40px 0;
}

.profile-orders-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-header {
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.page-header p {
  font-size: 16px;
  color: #b0b0b0;
  margin: 0;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.empty-state p {
  font-size: 16px;
  color: #b0b0b0;
  margin: 0 0 32px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.order-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.order-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.order-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.order-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #b0b0b0;
}

.product-name {
  font-weight: 500;
}

.category-name {
  color: #888;
}

.order-status {
  flex-shrink: 0;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-completed {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-cancelled {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-unknown {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.order-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.order-details > div {
  color: #b0b0b0;
}

.order-details strong {
  color: #ffffff;
  font-weight: 600;
}

.order-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.button-primary {
  background: #007bff;
  color: #ffffff;
}

.button-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.button-danger {
  background: #dc3545;
  color: #ffffff;
}

.button-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .profile-orders-page {
    padding: 20px 0;
  }
  
  .page-header h1 {
    font-size: 24px;
  }
  
  .order-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .order-details {
    grid-template-columns: 1fr;
  }
  
  .order-actions {
    flex-direction: column;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Purchases Section Styles */
.purchases-section {
  margin-top: 20px;
}

.purchases-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-font-color);
  margin-bottom: 16px;
}

.purchases-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.purchase-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.purchase-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.purchase-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-font-color);
}

.purchase-date {
  font-size: 14px;
  color: var(--secondary-color);
}

.purchase-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.purchase-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.purchase-status.status-success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.purchase-status.status-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.purchase-status.status-cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.no-purchases {
  text-align: center;
  padding: 40px 20px;
  color: var(--secondary-color);
}

.no-purchases p {
  font-size: 16px;
  margin: 0;
}

/* Chat Styles */
.chat-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.chat-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-nav {
  display: flex;
  gap: 16px;
}

.nav-item {
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-content {
  display: flex;
  gap: 30px;
  min-height: 600px;
}

.chat-list-section {
  flex: 1;
  max-width: 400px;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.chat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-font-color);
  margin-bottom: 4px;
}

.chat-type {
  font-size: 12px;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.chat-preview {
  font-size: 14px;
  color: var(--secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.chat-time {
  font-size: 12px;
  color: var(--secondary-color);
}

.unread-badge {
  background: #22c55e;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

.no-chats {
  text-align: center;
  padding: 60px 20px;
  color: var(--secondary-color);
}

.no-chats p {
  font-size: 16px;
  margin: 0;
}

/* Chat Room Styles */
.chat-room-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 600px;
}

.chat-room-header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.chat-room-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-font-color);
  margin: 0 0 8px 0;
}

.chat-room-type {
  font-size: 14px;
  color: var(--secondary-color);
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.user-message {
  align-items: flex-end;
}

.system-message {
  align-items: center;
}

.message-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 70%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.system-message-content {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  max-width: 80%;
}

.system-icon {
  color: #3b82f6;
  flex-shrink: 0;
}

.system-text {
  color: var(--primary-font-color);
  font-size: 14px;
}

.sender-info {
  margin-bottom: 4px;
}

.sender-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-font-color);
}

.sender-role {
  font-size: 10px;
  color: var(--secondary-color);
}

.message-text {
  color: var(--primary-font-color);
  font-size: 14px;
  line-height: 1.4;
}

.message-time {
  font-size: 11px;
  color: var(--secondary-color);
  margin-top: 4px;
}

.message-input-container {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.message-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.message-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--primary-font-color);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.message-input:focus {
  border-color: rgba(59, 130, 246, 0.5);
}

.message-input::placeholder {
  color: var(--secondary-color);
}

.send-button {
  background: #3b82f6;
  border: none;
  border-radius: 12px;
  padding: 12px;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-button:hover {
  background: #2563eb;
}

.no-chat-selected {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

.no-chat-selected p {
  font-size: 16px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .chat-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .chat-list-section {
    max-width: none;
  }
  
  .chat-room-section {
    height: 500px;
  }
  
  .message-content {
    max-width: 85%;
  }
}

/* Attributes Filter Styles */
.attributes-filter {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.attributes-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-font-color);
  margin: 0 0 20px 0;
}

.attributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.attribute-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attribute-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-font-color);
}

.attribute-select,
.attribute-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--primary-font-color);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.attribute-select:focus,
.attribute-input:focus {
  border-color: rgba(59, 130, 246, 0.5);
}

.attribute-select::placeholder,
.attribute-input::placeholder {
  color: var(--secondary-color);
}

.filter-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.filter-button {
  background: #3b82f6;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter-button:hover {
  background: #2563eb;
}

.filter-button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-font-color);
}

.filter-button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .attributes-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-actions {
    flex-direction: column;
  }
  
  .filter-button {
    width: 100%;
  }
}

/* New Catalog Design */
.main-catalog {
  display: flex;
  min-height: 100vh;
  background-color: var(--main-color);
}

.catalog-content {
  flex: 1;
  padding: 2rem;
}

.catalog-banner {
  margin-bottom: 2rem;
}

.catalog-banner-title {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: #1D1D1B;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin: 0;
}

.catalog-filters {
  margin-bottom: 2rem;
}

.catalog-filters-title {
  color: var(--primary-font-color);
  font-size: 1.25rem;
  font-weight: 600;
  width: 100%;
  margin: 0;
}

.catalog-filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: #2D2D2D;
  color: var(--primary-font-color);
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover {
  background-color: #404040;
  border-color: #555555;
}

.filter-btn.active {
  border-color: #3B82F6;
  background-color: #1E40AF;
}

.filter-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.attributes-filter {
  background-color: #2D2D2D;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.attributes-title {
  color: var(--primary-font-color);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.attributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.attribute-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.attribute-label {
  color: var(--primary-font-color);
  font-size: 0.875rem;
  font-weight: 500;
}

.attribute-select,
.attribute-input {
  background-color: #1D1D1B;
  border: 1px solid #404040;
  border-radius: 6px;
  color: var(--primary-font-color);
  padding: 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.attribute-select:focus,
.attribute-input:focus {
  outline: none;
  border-color: #8B5CF6;
}

.filter-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.filter-button {
  background-color: #8B5CF6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-button:hover {
  background-color: #7C3AED;
}

.filter-button-secondary {
  background-color: transparent;
  color: var(--primary-font-color);
  border: 1px solid #404040;
}

.filter-button-secondary:hover {
  background-color: #404040;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(202px, 1fr));
  gap: 16px;
}

.product-item {
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.product-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  max-width: 202px;
  height: auto;
  aspect-ratio: 202 / 111;
  object-fit: cover;
  border-radius: 15px;
  background-color: #E5E5E5;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-final {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-color);
}

.price-discount {
  background-color: #8B5CF6;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.price-old {
  font-size: 0.875rem;
  color: var(--secondary-text-color);
  text-decoration: line-through;
}

.product-description {
  font-size: 0.875rem;
  color: var(--text-color);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.rating-star {
  display: flex;
  gap: 0.125rem;
}

.rating-star-image {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23D1D5DB'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.rating-star-image.star-active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%238B5CF6' viewBox='0 0 24 24'%3E%3Cpath d='M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z'/%3E%3C/svg%3E");
}

.rating-quantity {
  font-size: 0.875rem;
  color: var(--secondary-text-color);
}

/* Mobile Responsive for New Catalog */
@media (max-width: 768px) {
  .catalog-content {
    margin-left: 0;
    padding: 1rem;
  }
  
  .catalog-banner-title {
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
  }
  
  .catalog-filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }
  
  .attributes-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .offers-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .filter-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .filter-button {
    width: 100%;
    justify-content: center;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Current Filter Indicator */
.modal-current-filter {
  padding: 1rem 1.5rem;
  background-color: #1E40AF;
  border-bottom: 1px solid #404040;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.current-filter-label {
  color: #E5E7EB;
  font-size: 0.875rem;
  font-weight: 500;
}

.current-filter-value {
  background-color: #3B82F6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.current-filter-value::before {
  content: "✓";
  font-weight: bold;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: #2D2D2D;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #404040;
}

.modal-title {
  color: var(--primary-font-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--primary-font-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #404040;
}

.modal-body {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem;
  border-top: 1px solid #404040;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.modal-btn-primary {
  background-color: #8B5CF6;
  color: white;
}

.modal-btn-primary:hover {
  background-color: #7C3AED;
}

.modal-btn-secondary {
  background-color: transparent;
  color: var(--primary-font-color);
  border: 1px solid #404040;
}

.modal-btn-secondary:hover {
  background-color: #404040;
}

/* Filter Options */
.filter-option {
  margin-bottom: 0.75rem;
}

.filter-option-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  color: var(--primary-font-color);
}

.filter-option-label:hover {
  background-color: #404040;
}

.filter-option-label input[type="radio"] {
  margin: 0;
  accent-color: #8B5CF6;
}

.filter-input-group {
  margin-bottom: 1rem;
}

.filter-input-label {
  display: block;
  color: var(--primary-font-color);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.filter-input {
  width: 100%;
  background-color: #1D1D1B;
  border: 1px solid #404040;
  border-radius: 6px;
  color: var(--primary-font-color);
  padding: 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.filter-input:focus {
  outline: none;
  border-color: #8B5CF6;
}

/* Range Filter Styles */
.filter-range-group {
  margin-bottom: 1rem;
}

.filter-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.filter-range-note {
  text-align: center;
  color: #888;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.filter-range-note small {
  color: #888;
}

/* Mobile Range Inputs */
@media (max-width: 480px) {
  .container {
    padding: 12px 8px;
  }
  
  .main-container {
    padding: 8px 4px 0;
  }

  .main-index {
    gap: 12px;
  }

  .game-filter-mobile {
    gap: 8px;
    margin-bottom: 8px;
  }

  .promo {
    padding: 12px 8px;
    gap: 16px;
  }

  .promo-info {
    height: 120px;
    margin-bottom: 12px;
  }

  .promo-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .slider-list {
    gap: 8px;
    
    & li {
      width: 154px;
      flex: 0 0 154px;
      scroll-snap-align: start;
    }
  }

  .product-item {
    padding: 6px;
    width: 154px;
    max-width: 154px;
  }
  
  .product-image {
    max-width: 154px;
    width: 154px;
  }

  .promo-controls {
    display: none; /* Скрываем кнопки на мобилке */
  }
  
  .catalog-content {
    padding: 0.75rem 0.25rem;
  }
  
  .catalog-banner {
    padding: 12px;
  }
  
  .catalog-banner-title {
    font-size: 18px;
  }
  
  .offers-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .product-item {
    max-width: 100%;
  }
  
  .product-image {
    height: auto;
    aspect-ratio: 16/9;
  }
  
  .offer-view-grid {
    gap: 12px;
  }
  
  .offer-view-tabs {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .offer-view-description-card,
  .offer-view-seller-card,
  .offer-view-info-card {
    padding: 12px;
  }
  
  .price-amount {
    font-size: 24px;
  }
  
  .offer-view-product-name {
    font-size: 16px;
  }
  
  .offer-reviews-section {
    padding: 0.75rem;
  }
  
  .reviews-title {
    font-size: 18px;
  }
  
  .reviews-rating-number {
    font-size: 32px;
  }
  
  .review-card {
    min-width: 200px;
    padding: 0.75rem;
  }
  
  .review-text {
    font-size: 0.8125rem;
  }
  
  .filter-range-inputs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Attribute Filter Buttons */
.attribute-filter-btn {
  background-color: #2D2D2D;
  color: var(--primary-font-color);
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.attribute-filter-btn:hover {
  background-color: #404040;
  border-color: #555555;
}

.attribute-filter-btn.active {
  border-color: #8B5CF6;
  background-color: #1E40AF;
}

/* Mobile Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== Chat Page Styles ==================== */

.chat-page-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 0;
  height: calc(100vh - 120px);
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
}

/* Left Sidebar */
.chat-sidebar {
  background: #1d1d1b;
  border-right: 1px solid #2d2d2d;
  overflow-y: auto;
  padding: 20px 0;
}

.chat-sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  padding: 0 20px 16px 20px;
  margin: 0;
}

.chat-list-group {
  margin-bottom: 24px;
}

.chat-list {
  display: flex;
  flex-direction: column;
}

.chat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.chat-list-item:hover {
  background: #2d2d2d;
}

.chat-list-item.active {
  background: #3f3a4b;
}

.chat-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-item-content {
  flex: 1;
  min-width: 0;
}

.chat-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.chat-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-time {
  font-size: 12px;
  color: #666;
  flex-shrink: 0;
}

.chat-item-preview {
  font-size: 13px;
  color: #a0a0a0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Right Panel: Chat Messages */
.chat-main {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  height: 100%;
  overflow: hidden;
}

/* Offer Creation Styles */
.search-card.selected {
  border-color: #007bff;
  background-color: rgba(0, 123, 255, 0.1);
}

.category-option {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.category-option input[type="radio"] {
  margin-right: 8px;
}

.attribute-field {
  margin-bottom: 16px;
}

.attribute-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

.success-message h3 {
  margin: 0 0 10px 0;
  color: #155724;
}

.success-message p {
  margin: 0 0 15px 0;
}

.success-message .main-button,
.success-message .button {
  margin: 0 10px;
}

/* Chat Messages Wrapper for proper scrolling */
.chat-messages-wrapper {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Chat Header */
.chat-room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #2d2d2d;
  background: #1d1d1b;
}

.chat-room-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-room-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-room-user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-room-user-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.chat-room-user-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.chat-room-avatar-link {
  text-decoration: none;
  transition: transform 0.2s ease;
}

.chat-room-avatar-link:hover {
  transform: scale(1.05);
}

.chat-room-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rating-text {
  font-size: 12px;
  color: #a0a0a0;
  margin-left: 4px;
}

.chat-room-user-role {
  font-size: 12px;
  color: #8B5CF6;
  font-weight: 500;
}

.chat-room-user-join {
  font-size: 11px;
  color: #666;
}

.chat-notifications-toggle {
  font-size: 14px;
  color: #8B5CF6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.chat-notifications-toggle:hover {
  color: #A855F7;
}

/* Messages Container */
.messages-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 16px;
}

.message-date-separator {
  text-align: center;
  margin: 16px 0;
}

.message-date-separator span {
  background: #2d2d2d;
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 13px;
  color: #a0a0a0;
}

/* Message Wrappers */
.message-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 70%;
}

.message-wrapper.incoming {
  align-self: flex-start;
}

.message-wrapper.outgoing {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar,
.message-avatar-right {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  position: relative;
}

.message-wrapper.incoming .message-bubble {
  background: #3f3a4b;
  border-bottom-left-radius: 4px;
}

.message-wrapper.outgoing .message-bubble {
  background: #8B5CF6;
  border-bottom-right-radius: 4px;
}

.message-text {
  font-size: 14px;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 4px;
}

.message-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
}

/* Message Input Container */
.message-input-container {
  padding: 20px 24px;
  border-top: 1px solid #2d2d2d;
  background: #1d1d1b;
}

.message-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2d253a;
  border-radius: 24px;
  padding: 8px 12px;
}

.attach-button {
  background: none;
  border: none;
  color: #a0a0a0;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.attach-button:hover {
  color: #fff;
}

.message-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 8px;
  outline: none;
}

.message-input::placeholder {
  color: #666;
}

.send-button {
  background: none;
  border: none;
  color: #8B5CF6;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.send-button:hover {
  color: #A855F7;
  transform: translateX(2px);
}

.no-chat-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 16px;
}

/* Purchase Confirmation Message */
.purchase-confirmation-message {
  align-self: center;
  max-width: 600px;
  width: 100%;
  margin: 24px 0;
  position: relative;
  z-index: 1;
}

/* Ensure purchase confirmation only appears in messages container */
.messages-container .purchase-confirmation-message {
  display: block;
}

.chat-sidebar .purchase-confirmation-message {
  display: none !important;
}

.purchase-header {
  text-align: center;
  margin-bottom: 20px;
}

.purchase-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.purchase-header p {
  font-size: 14px;
  color: #a0a0a0;
  margin: 0;
}

.purchase-offer-card {
  display: flex;
  gap: 16px;
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.purchase-offer-card:hover {
  background: #3f3a4b;
  transform: translateY(-2px);
}

.purchase-offer-image {
  width: 180px;
  height: 100px;
  border-radius: 12px;
  background: #3f3a4b;
  overflow: hidden;
  flex-shrink: 0;
}

.purchase-offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purchase-offer-placeholder {
  width: 100%;
  height: 100%;
  background: #3f3a4b;
}

.purchase-offer-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.purchase-offer-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.purchase-offer-price {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.purchase-offer-discount {
  background: #8B5CF6;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.purchase-offer-old-price {
  font-size: 14px;
  color: #666;
  text-decoration: line-through;
}

.purchase-offer-description {
  font-size: 13px;
  color: #a0a0a0;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.purchase-offer-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.purchase-offer-rating svg {
  width: 12px;
  height: 12px;
}

.purchase-offer-rating-value {
  margin-left: 4px;
  font-size: 13px;
  color: #a0a0a0;
}

/* Responsive */
@media (max-width: 1024px) {
  .chat-page-grid {
    grid-template-columns: 300px 1fr;
  }
}

/* Reviews styles */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(217, 217, 217, 0.5);
}

.reviews-header h1 {
    margin: 0;
    color: #1f2937;
}

.reviews-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    color: #d1d5db;
}

.star.filled {
    color: #fbbf24;
}

.star.half {
    color: #fbbf24;
}

.star.empty {
    color: #d1d5db;
}

.total-reviews {
    color: #6b7280;
    font-size: 0.875rem;
}

.create-review-section {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.create-review-section h2 {
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
}

.rating-input {
    display: flex;
    gap: 0.5rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.star-label {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input input[type="radio"]:checked ~ .star-label,
.rating-input input[type="radio"]:checked ~ .star-label ~ .star-label {
    color: #fbbf24;
}

.rating-input input[type="radio"]:hover ~ .star-label {
    color: #fbbf24;
}

textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

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

.review-author {
    font-weight: 600;
    color: #1f2937;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-rating .rating-stars {
    font-size: 1.25rem;
}

.review-rating .rating-number {
    font-size: 0.875rem;
    color: #6b7280;
}

.review-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.review-text {
    color: #374151;
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.no-reviews p {
    margin: 0;
    font-size: 1.125rem;
}

/* Review Prompt Block in Chat */
.review-prompt-block {
    background: #1a1a1a;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid #333;
}

.review-prompt-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.review-prompt-header h3 {
    color: #e5e7eb;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.review-prompt-header p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

.review-prompt-offer {
    display: flex;
    gap: 1rem;
    background: #2a2a2a;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.review-prompt-offer .offer-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.review-prompt-offer .offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.review-prompt-offer .offer-image-placeholder {
    width: 100%;
    height: 100%;
    background: #374151;
    border-radius: 0.5rem;
    border: 1px solid #4b5563;
}

.review-prompt-offer .offer-details {
    flex: 1;
    min-width: 0;
}

.review-prompt-offer .offer-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.review-prompt-offer .offer-price {
    font-weight: 600;
    color: #e5e7eb;
    font-size: 1rem;
}

.review-prompt-offer .offer-discount {
    background: #8B5CF6;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.review-prompt-offer .offer-old-price {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: line-through;
}

.review-prompt-offer .offer-name {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.review-prompt-offer .offer-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-prompt-offer .rating-stars {
    display: flex;
    gap: 0.125rem;
}

.review-prompt-offer .rating-stars .star {
    font-size: 1rem;
    color: #8B5CF6;
}

.review-prompt-offer .rating-count {
    color: #9ca3af;
    font-size: 0.875rem;
}

.review-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.review-prompt-actions .main-button {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
}

.review-prompt-actions .main-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.report-problem-link {
    color: #8B5CF6;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.report-problem-link:hover {
    color: #a78bfa;
}

/* Review Modal */
.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal {
    background: #36303D;
    border-radius: 1rem;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.review-modal-overlay.active .review-modal {
    transform: translateY(0);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.review-modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.review-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.review-modal-close:hover {
    background: #4b5563;
}

.review-modal-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.review-modal-star {
    font-size: 2rem;
    color: #4b5563;
    cursor: pointer;
    transition: color 0.2s;
}

.review-modal-star:hover,
.review-modal-star.active {
    color: #8B5CF6;
}

.review-modal-textarea {
    width: 100%;
    background: #212121;
    border: 1px solid #4b5563;
    border-radius: 0.75rem;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 2rem;
}

.review-modal-textarea::placeholder {
    color: #9ca3af;
}

.review-modal-textarea:focus {
    outline: none;
    border-color: #8B5CF6;
}

.review-modal-submit {
    width: 100%;
    background: #e0e0e0;
    color: #374151;
    border: none;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.review-modal-submit:hover {
    background: #d1d5db;
}

/* Offer Reviews Section */
.offer-reviews-section {
    grid-area: reviews;
    border-radius: 0.75rem;
    padding: 1.5rem 0;
    margin-top: 1.5rem;
}

.offer-reviews-section .reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 2rem;
}

.reviews-title-section {
    flex: 1;
}

.reviews-title {
    color: var(--text-color);
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.reviews-subtitle {
    font-size: 0.875rem;
    color: #8B5CF6;
    margin: 0 0 0.75rem 0;
}

.reviews-view-all {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.reviews-view-all:hover {
    color: #8B5CF6;
}

.reviews-rating-section {
    text-align: right;
    min-width: 120px;
}

.reviews-rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.reviews-rating-stars {
    display: flex;
    gap: 0.125rem;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
}

.reviews-rating-stars .star {
    font-size: 1.25rem;
    color: #d1d5db;
}

.reviews-rating-stars .star.filled {
    color: #8B5CF6;
}

.reviews-rating-stars .star.half {
    color: #8B5CF6;
}

.reviews-count {
    font-size: 0.875rem;
    color: #6b7280;
}

.offer-reviews-section .reviews-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.offer-reviews-section .reviews-list::-webkit-scrollbar {
    height: 4px;
}

.offer-reviews-section .reviews-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 2px;
}

.offer-reviews-section .reviews-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.review-card {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    min-width: 280px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.review-card .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 24px;
    height: 24px;
    background: #8B5CF6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.author-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.review-time {
    font-size: 0.75rem;
    color: #6b7280;
}

.review-card .review-rating {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 0.75rem;
}

.review-card .review-rating .star {
    font-size: 1rem;
    color: #d1d5db;
}

.review-card .review-rating .star.filled {
    color: #8B5CF6;
}

.review-text {
    color: #374151;
    line-height: 1.5;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.review-offer-preview {
    display: flex;
    gap: 0.75rem;
    background: white;
    border-radius: 0.375rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

.offer-image {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

.offer-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
}

.offer-details {
    flex: 1;
    min-width: 0;
}

.offer-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.offer-price {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.offer-discount {
    background: #8B5CF6;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.offer-old-price {
    color: #6b7280;
    font-size: 0.75rem;
    text-decoration: line-through;
}

.offer-name {
    color: #374151;
    font-size: 0.75rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Current User Header */
.current-user-header {
    background: #2a1f3d;
    border-bottom: 1px solid #3c3545;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.user-avatar {
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-username {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.user-balance {
    color: #6b2ad1;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Reviews Page Styles */
.reviews-page {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Seller Profile Section */
.seller-profile-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #1f1b2e;
    border-radius: 16px;
}

.seller-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: #6b2ad1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.avatar-placeholder.small {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.seller-info {
    flex: 1;
}

.seller-username {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.seller-rating .rating-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.seller-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviews-count {
    color: var(--secondary-color);
    font-weight: 500;
}

.join-date {
    color: #a994ff;
    font-size: 0.875rem;
}

/* Reviews Section Header */
.reviews-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.section-title h1 span {
    color: #6b2ad1;
}

.section-subtitle {
    color: #a994ff;
    font-size: 0.875rem;
    margin: 0;
}

.reviews-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rating-filter {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.filter-star {
    color: #6b7280;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-star.active,
.filter-star:hover {
    color: #6b2ad1;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-btn {
    background: #3c3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn.active {
    background: #6b2ad1;
}

.filter-btn:hover {
    background: #5a2599;
}

.filter-icon {
    width: 16px;
    height: 16px;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
}

.sort-arrow {
    width: 16px;
    height: 16px;
}

.overall-rating-summary {
    text-align: right;
    color: white;
}

.rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.overall-rating-summary .rating-stars {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
}

.total-reviews {
    color: #a994ff;
    font-size: 0.875rem;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: #3c3545;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.review-card:hover {
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    flex-shrink: 0;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviewer-username {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.review-date {
    color: #a994ff;
    font-size: 0.75rem;
}

.review-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.review-text {
    color: white;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.offer-details {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.offer-image {
    flex-shrink: 0;
}

.image-placeholder {
    width: 60px;
    height: 40px;
    background: #6b7280;
    border-radius: 6px;
}

.offer-info {
    flex: 1;
    min-width: 0;
}

.offer-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.current-price {
    color: #6b2ad1;
    font-weight: 600;
    font-size: 0.875rem;
}

.discount {
    background: #6b2ad1;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.original-price {
    color: #6b7280;
    font-size: 0.75rem;
    text-decoration: line-through;
}

.offer-description {
    color: #a994ff;
    font-size: 0.75rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.no-reviews {
    text-align: center;
    color: #a994ff;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* Star styles */
.star {
    font-size: 1rem;
    transition: color 0.2s;
}

.star.filled {
    color: #6b2ad1;
}

.star.empty {
    color: rgba(107, 42, 209, 1);
}

@media (max-width: 768px) {
  .chat-page-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-sidebar {
    display: none;
  }
  
  .message-wrapper {
    max-width: 85%;
  }
  
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .reviews-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .reviews-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .reviews-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile link styles */
.chat-room-user-name {
  cursor: pointer;
  color: #007bff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.chat-room-user-name:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Admin Sidebar Styles */
.admin-main {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c1a 0%, #1a1625 100%);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar-container {
  position: fixed;
  left: 0;
  top: 108px;
  width: 280px;
  height: 100vh;
  z-index: 100;
}

.admin-sidebar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1625 0%, #2a1f3a 100%);
  border-right: 1px solid rgba(107, 42, 209, 0.2);
  padding: 24px 0;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.admin-sidebar-header {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(107, 42, 209, 0.2);
  margin-bottom: 24px;
}

.admin-sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: #e1d9ff;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-user-info {
  background: linear-gradient(135deg, #2d253a 0%, #3a2f4a 100%);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(107, 42, 209, 0.2);
}

.admin-user-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.admin-user-type {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.admin-user-type-admin {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: #fff;
}

.admin-user-type-moderator {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: #fff;
}

.admin-user-type-support {
  background: linear-gradient(135deg, #feca57, #ff9ff3);
  color: #000;
}

.admin-sidebar-nav {
  padding: 0 12px;
}

.admin-nav-section {
  margin-bottom: 32px;
}

.admin-nav-title {
  font-size: 12px;
  font-weight: 600;
  color: #8f78de;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px 12px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 4px 0;
  color: #bdb7d6;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.admin-nav-link:hover {
  background: linear-gradient(135deg, #2d253a 0%, #3a2f4a 100%);
  color: #fff;
  border-color: rgba(107, 42, 209, 0.3);
  transform: translateX(4px);
}

.admin-nav-link:active,
.admin-nav-link[aria-current="page"] {
  background: linear-gradient(135deg, #6b2ad1 0%, #8f78de 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(107, 42, 209, 0.3);
}

.admin-nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.admin-content {
  flex: 1;
  margin-left: 280px;
  padding: 24px 0;
}

@media (max-width: 1024px) {
  .admin-sidebar-container {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .admin-sidebar-container.open {
    transform: translateX(0);
  }
  
  .admin-content {
    margin-left: 0;
  }
}

/* Header search results */
.search-form {
  position: relative;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #2d253a;
  border: 1px solid #b6a6f7;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 4px;
}

.search-result-item {
  list-style: none;
  border-bottom: 1px solid #3d3549;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-link {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.search-result-link:hover {
  background: #3d3549;
}

.search-result-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.search-result-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.search-result-product,
.search-result-category {
  font-size: 1.2rem;
  color: #b6a6f7;
  background: #3d3549;
  padding: 2px 6px;
  border-radius: 4px;
}

.search-result-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4ade80;
}